From d3a1fa50b5a5cd4ae5cd19ea1736897821a2363b Mon Sep 17 00:00:00 2001 From: deepakachu5114 Date: Thu, 10 Oct 2024 19:16:54 +0530 Subject: [PATCH] bug fix --- src/openagi/agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openagi/agent.py b/src/openagi/agent.py index 05971f1..7b6f955 100644 --- a/src/openagi/agent.py +++ b/src/openagi/agent.py @@ -496,6 +496,8 @@ def run(self, query: str, description: str,planned_tasks: Optional[List[Dict]] = # Human feedback part if self.memory.long_term: if bad_feedback: + bad_session.plan = str(planned_tasks) + bad_session.answer = result self.save_ltm("update", bad_session) else: session = SessionDict(