From 6d350f1c1d8e1b341a116ae4974c6a34e9b3e5bc Mon Sep 17 00:00:00 2001 From: Sweaterdog Date: Thu, 27 Feb 2025 21:16:05 -0800 Subject: [PATCH] Update history.js --- src/agent/history.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agent/history.js b/src/agent/history.js index a578377..c76e0d3 100644 --- a/src/agent/history.js +++ b/src/agent/history.js @@ -84,7 +84,8 @@ export class History { const data = { memory: this.memory, turns: this.turns, - self_prompt: this.agent.self_prompter.on ? this.agent.self_prompter.prompt : null, + self_prompting_state: this.agent.self_prompter.state, + self_prompt: this.agent.self_prompter.isStopped() ? null : this.agent.self_prompter.prompt, last_sender: this.agent.last_sender }; writeFileSync(this.memory_fp, JSON.stringify(data, null, 2)); @@ -116,4 +117,4 @@ export class History { this.turns = []; this.memory = ''; } -} \ No newline at end of file +}