-
feat: v4.0 Command Handoff - Agent间可互相交接任务
released this
2026-04-24 10:38:33 +08:00 | 0 commits to main since this release核心改动:
- 每个 Agent 成为独立图节点(weather/math/knowledge/mcp/general)
- Agent 间通过 Command(goto=目标节点) 实现任务交接
- Supervisor 返回普通dict,由 conditional_edges 路由
- 并行模式使用独立 parallel_worker 节点(SubTaskState),避免并发冲突
- 新增 handoff_from/handoff_context/handoff_history 状态字段
- handoff 判断:Agent先回答,再由LLM判断是否需要交接给其他Agent
- 保留 Send API 并行 + Aggregator 聚合能力
测试通过:单Agent、直接回复、多Agent并行、Handoff链路追踪
Downloads