Agent Collaboration Protocol是定义多个AI Agent之间如何分工、协调、通信和解决冲突的标准化协议,让Agent团队能够高效协作完成复杂任务。
| 模式 | 描述 | 适用场景 |
|---|---|---|
| 主从模式 | 一个主Agent分配任务 | 任务明确、分工清晰 |
| 对等模式 | Agent平等协商 | 创意任务、头脑风暴 |
| 竞争模式 | 多个Agent竞争最优解 | 需要高质量输出 |
| 流水线模式 | 按顺序传递处理 | 处理流程固定 |
# openclaw.config.yaml - 多Agent协作配置
agents:
- id: researcher
role: "信息收集"
capabilities: ["web_search", "document_analysis"]
- id: writer
role: "内容创作"
capabilities: ["text_generation", "editing"]
- id: reviewer
role: "质量审核"
capabilities: ["evaluation", "feedback"]
collaboration:
mode: pipeline # pipeline | peer | competitive
workflow:
- step: 1
agent: researcher
task: "收集相关资料"
output_to: writer
- step: 2
agent: writer
task: "撰写内容"
output_to: reviewer
- step: 3
agent: reviewer
task: "审核质量"
feedback_to: writer