fix : possible crash with planner agent if wrong format returned by llm

This commit is contained in:
martin legrand
2025-03-30 17:38:22 +02:00
parent 8ccb6f4d77
commit b34e343535
3 changed files with 2 additions and 2 deletions
+2
View File
@@ -74,6 +74,8 @@ class PlannerAgent(Agent):
def show_plan(self, json_plan):
agents_tasks = self.parse_agent_tasks(json_plan)
if agents_tasks == (None, None):
return
pretty_print(f"--- Plan ---", color="output")
for task_name, task in agents_tasks:
pretty_print(f"{task}", color="output")