feat : enhance planner

This commit is contained in:
martin legrand
2025-04-25 21:15:49 +02:00
parent a11445e7c0
commit 309a481a69
3 changed files with 10 additions and 2 deletions
+9
View File
@@ -69,6 +69,15 @@ class Interaction:
break
return ai_name
def get_last_blocks_result(self) -> List[Dict]:
"""Get the last blocks result."""
if self.current_agent is None:
return []
blks = []
for agent in self.agents:
blks.extend(agent.get_blocks_result())
return blks
def load_last_session(self):
"""Recover the last session."""
for agent in self.agents: