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(