整理文件路径:Technical→AI/
This commit is contained in:
64
wiki/concepts/多Agent系统.md
Normal file
64
wiki/concepts/多Agent系统.md
Normal file
@@ -0,0 +1,64 @@
|
||||
---
|
||||
title: "多Agent系统"
|
||||
type: concept
|
||||
tags: [multi-agent, collaboration, agent]
|
||||
last_updated: 2026-04-14
|
||||
---
|
||||
|
||||
# 多Agent系统
|
||||
|
||||
多个专业Agent协同工作的架构模式,每个Agent有独特的角色和职责。
|
||||
|
||||
## 核心模式
|
||||
|
||||
### 分散式协调
|
||||
通过共享STATE.yaml文件协调,而非中央orchestrator:
|
||||
- Agent读写共享状态文件
|
||||
- 多子Agent并行工作
|
||||
- 主会话保持精简(CEO模式)
|
||||
|
||||
### STATE.yaml
|
||||
项目协调文件,作为单一事实来源:
|
||||
```yaml
|
||||
project: website-redesign
|
||||
tasks:
|
||||
- id: homepage-hero
|
||||
status: in_progress
|
||||
owner: pm-frontend
|
||||
```
|
||||
|
||||
### 团队配置示例
|
||||
- [[Milo]]:策略Lead
|
||||
- [[Josh]]:商业分析
|
||||
- Marketing Agent:营销研究
|
||||
- Dev Agent:开发
|
||||
|
||||
## 关键优势
|
||||
|
||||
1. **专业化分工**:每个Agent专注特定领域
|
||||
2. **并行执行**:多任务同时处理
|
||||
3. **可扩展性**:新增Agent无需修改主逻辑
|
||||
4. **共享记忆**:团队成员共享项目上下文
|
||||
|
||||
## 协作机制
|
||||
|
||||
- **Telegram路由**:通过标签分配到不同Agent
|
||||
- **共享内存**:项目文档、目标、决策
|
||||
- **私有上下文**:每个Agent独有会话历史
|
||||
- **定时任务**:Agent主动工作
|
||||
|
||||
## Race Condition处理
|
||||
|
||||
当多个Agent编辑同一文件时:
|
||||
1. AUTONOMOUS.md:仅主会话编辑
|
||||
2. memory/tasks-log.md:仅追加,子Agent只添加新行
|
||||
|
||||
## 使用场景
|
||||
|
||||
- [[多Agent专业团队]]
|
||||
- [[多Agent内容工厂]]
|
||||
- [[自主项目管理]]
|
||||
- [[动态仪表板]]
|
||||
|
||||
## 相关链接
|
||||
- [Anthropic: Building Effective Agents](https://www.anthropic.com/research/building-effective-agents)
|
||||
Reference in New Issue
Block a user