feat(v3): T26 两级智能体(大模型规划/审查 + 本地小模型执行,D7)
- run_dual 编排:规划者两阶段 JSON(plan/review,失败回喂重试一次再降级),
redo 时裁决意见回喂执行者,交接上限 agent.max_handoffs(默认 2)
- 交接文档 agent_runs/{id}/handoff.json(智能体版交流文本:instructions/acceptance/exchanges)
- /agent 新增 executor_pool_id;规划者==执行者条目拒绝;整体 token_cap 覆盖两级调用
- ToolLoop 增 emit_final 开关(内层循环不发终态,防前端 SSE 提前收口)
- 前端:执行者选择器 + phase/message 事件渲染(阶段徽标 + 双色消息卡)
- 测试 +3(done/redo/执行者故障),全量 277 passed
- fix(tests): test_config_get_put_reset 增加设置备份/恢复隔离,防止清掉用户真实配置
This commit is contained in:
@@ -43,6 +43,7 @@ DEFAULTS: Dict[str, Any] = {
|
||||
"token_cap": 20000, # 单次智能体任务 token 熔断
|
||||
"allow_shell": False, # 允许 run_command 执行 shell(默认关)
|
||||
"shell_timeout_s": 20, # shell 命令超时
|
||||
"max_handoffs": 2, # 两级模式:规划者<->执行者交接轮数上限
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user