mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-28 08:14:48 +08:00
fix:planner AttributeError 'list' object has no attribute 'get' (#436)
This commit is contained in:
@@ -134,7 +134,7 @@ def planner_node(
|
|||||||
return Command(goto="reporter")
|
return Command(goto="reporter")
|
||||||
else:
|
else:
|
||||||
return Command(goto="__end__")
|
return Command(goto="__end__")
|
||||||
if curr_plan.get("has_enough_context"):
|
if isinstance(curr_plan, dict) and curr_plan.get("has_enough_context"):
|
||||||
logger.info("Planner response has enough context.")
|
logger.info("Planner response has enough context.")
|
||||||
new_plan = Plan.model_validate(curr_plan)
|
new_plan = Plan.model_validate(curr_plan)
|
||||||
return Command(
|
return Command(
|
||||||
|
|||||||
Reference in New Issue
Block a user