重构:继续移除对 debug_info 的依赖,主要模块已完成迁移
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 7m28s

This commit is contained in:
2026-05-06 14:47:51 +08:00
parent dceb9061e8
commit 304e1318e5
3 changed files with 7 additions and 7 deletions

View File

@@ -45,8 +45,8 @@ def route_by_reasoning(state: MainGraphState) -> str:
info(f"[条件路由] step={state.reasoning_step}, phase={state.current_phase}, history={previous_actions}")
# ========== 获取推理结果 ==========
reasoning_result = state.debug_info.get("reasoning_result")
# ========== 获取推理结果 - 从新的结构化字段获取 ==========
reasoning_result = state.react_reasoning.reasoning_result
latest_action = reasoning_result.action.name if reasoning_result else None
# ========== 核心检查DIRECT_RESPONSE 优先 ==========