clear消息后重启agent

This commit is contained in:
lik
2026-06-04 10:45:23 +08:00
parent fb2925507c
commit 6e355729e1

View File

@@ -30,6 +30,7 @@ export default class EscortAgent {
msgs.forEach(msg => {
if (msg.type === "clear") {
this.messages = [];
this.agent = null;
} else {
this.messages.push(new HumanMessage(`${msg.ts} - ${msg.content}`));
}