Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakachu5114 committed Oct 10, 2024
1 parent 71a0cf4 commit d3a1fa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/openagi/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d3a1fa5

Please sign in to comment.