d858e92aff404778390c47472135bfb46123d82ec2076b960d104ac345985e98.json 2.3 KB

1
  1. {"ast":null,"code":"import { BaseMessage } from \"./base.js\";\n/**\n * Message responsible for deleting other messages.\n */\nexport class RemoveMessage extends BaseMessage {\n constructor(fields) {\n super({\n ...fields,\n content: \"\"\n });\n /**\n * The ID of the message to remove.\n */\n Object.defineProperty(this, \"id\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.id = fields.id;\n }\n _getType() {\n return \"remove\";\n }\n get _printableFields() {\n return {\n ...super._printableFields,\n id: this.id\n };\n }\n}","map":{"version":3,"names":["BaseMessage","RemoveMessage","constructor","fields","content","Object","defineProperty","enumerable","configurable","writable","value","id","_getType","_printableFields"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@langchain/core/dist/messages/modifier.js"],"sourcesContent":["import { BaseMessage } from \"./base.js\";\n/**\n * Message responsible for deleting other messages.\n */\nexport class RemoveMessage extends BaseMessage {\n constructor(fields) {\n super({\n ...fields,\n content: \"\",\n });\n /**\n * The ID of the message to remove.\n */\n Object.defineProperty(this, \"id\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.id = fields.id;\n }\n _getType() {\n return \"remove\";\n }\n get _printableFields() {\n return {\n ...super._printableFields,\n id: this.id,\n };\n }\n}\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,WAAW;AACvC;AACA;AACA;AACA,OAAO,MAAMC,aAAa,SAASD,WAAW,CAAC;EAC3CE,WAAWA,CAACC,MAAM,EAAE;IAChB,KAAK,CAAC;MACF,GAAGA,MAAM;MACTC,OAAO,EAAE;IACb,CAAC,CAAC;IACF;AACR;AACA;IACQC,MAAM,CAACC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE;MAC9BC,UAAU,EAAE,IAAI;MAChBC,YAAY,EAAE,IAAI;MAClBC,QAAQ,EAAE,IAAI;MACdC,KAAK,EAAE,KAAK;IAChB,CAAC,CAAC;IACF,IAAI,CAACC,EAAE,GAAGR,MAAM,CAACQ,EAAE;EACvB;EACAC,QAAQA,CAAA,EAAG;IACP,OAAO,QAAQ;EACnB;EACA,IAAIC,gBAAgBA,CAAA,EAAG;IACnB,OAAO;MACH,GAAG,KAAK,CAACA,gBAAgB;MACzBF,EAAE,EAAE,IAAI,CAACA;IACb,CAAC;EACL;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}