mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
feat:Strip code blocks in plan data. (#738)
* feat:Strip code blocks in plan data. * feat: add repair_json_output for current_plan_content --------- Co-authored-by: ryan-gz <ryzhangga1991@gmail.com>
This commit is contained in:
parent
c36ab393f1
commit
bd6c50de33
@ -468,7 +468,7 @@ def human_feedback_node(
|
||||
# increment the plan iterations
|
||||
plan_iterations += 1
|
||||
# parse the plan
|
||||
new_plan = json.loads(current_plan_content)
|
||||
new_plan = json.loads(repair_json_output(current_plan_content))
|
||||
# Validate and fix plan to ensure web search requirements are met
|
||||
configurable = Configuration.from_runnable_config(config)
|
||||
new_plan = validate_and_fix_plan(new_plan, configurable.enforce_web_search)
|
||||
@ -1233,4 +1233,4 @@ async def analyst_node(
|
||||
config,
|
||||
"analyst",
|
||||
[], # No tools - pure reasoning
|
||||
)
|
||||
)
|
||||
Loading…
x
Reference in New Issue
Block a user