From f17b06f2060f2ca371a9c016516a603173e62f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=81=93=E5=BF=83=E5=9D=9A=E5=AE=9A=E9=9F=A9=E9=81=93?= =?UTF-8?q?=E5=8F=8B?= Date: Fri, 18 Jul 2025 09:27:15 +0800 Subject: [PATCH] fix:planner AttributeError 'list' object has no attribute 'get' (#436) --- src/graph/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/nodes.py b/src/graph/nodes.py index 4d3bc09..23b5046 100644 --- a/src/graph/nodes.py +++ b/src/graph/nodes.py @@ -134,7 +134,7 @@ def planner_node( return Command(goto="reporter") else: 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.") new_plan = Plan.model_validate(curr_plan) return Command(