From 4fb053b6d22f3960dc79141f05dc3220f6d2afd9 Mon Sep 17 00:00:00 2001 From: Willem Jiang Date: Sat, 14 Jun 2025 22:04:03 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20solves=20the=20malformed=20jso?= =?UTF-8?q?n=20output=20and=20pydantic=20validation=20error=20p=E2=80=A6"?= =?UTF-8?q?=20(#325)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a7315b46df1ecf7a59b1b8c80dd7cf2adc8552ad. --- src/graph/nodes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graph/nodes.py b/src/graph/nodes.py index 5ed4cd9..5fa574e 100644 --- a/src/graph/nodes.py +++ b/src/graph/nodes.py @@ -106,8 +106,7 @@ def planner_node( elif AGENT_LLM_MAP["planner"] == "basic": llm = get_llm_by_type("basic").with_structured_output( Plan, - method="json_schema", - strict=True, + method="json_mode", ) else: llm = get_llm_by_type(AGENT_LLM_MAP["planner"])