UNPKG

@langchain/core

Version:
33 lines (31 loc) 630 B
const require_base = require('./base.cjs'); //#region src/messages/modifier.ts /** * Message responsible for deleting other messages. */ var RemoveMessage = class extends require_base.BaseMessage { type = "remove"; /** * The ID of the message to remove. */ id; constructor(fields) { super({ ...fields, content: [] }); this.id = fields.id; } get _printableFields() { return { ...super._printableFields, id: this.id }; } static isInstance(obj) { return super.isInstance(obj) && obj.type === "remove"; } }; //#endregion exports.RemoveMessage = RemoveMessage; //# sourceMappingURL=modifier.cjs.map