JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix: 修复AgentTeam.md 文档检查问题
xiaoxiawang75587e63bcb7
diff --git a/docs/en/AgentTeam.md b/docs/en/AgentTeam.mdindex 4d10bd2cde..19ba907bc9 100644--- a/docs/en/AgentTeam.md+++ b/docs/en/AgentTeam.md@@ -238,12 +238,38 @@ In Agent Team mode you can still use and develop **Skills**. Each agent can conf### 2.5 Team Memory-Each Agent Team has two memory layers: **personal memory** (each member reads/writes its own) and a shared **`TEAM_MEMORY.md`** (read-only to members; the Leader writes it via an extractor agent at the end of each round).+**Round definition**: In Agent Team, a round is one complete team collaboration cycle, typically including task assignment, execution, reporting, and consolidation.-- **Temporary team** — members read-only access the parent agent's workspace memory; nothing persists once the team is torn down-- **Persistent team** — each member has isolated personal memory plus team memory that accumulates across rounds; predefined members keep their existing workspace via symlink+In Agent Team mode, each team has two-layer memory: each member's own **personal memory** (independent read/write) and a shared **`TEAM_MEMORY.md`** (read-only to all members; the Leader writes it via an extractor agent at the end of each round).-For the full layout, extraction categories (`[decision]` / `[lesson]` / `[member]` / `[context]`), and cross-team / cross-member isolation, see [Memory → Agent Team Memory](Memory.md#agent-team-memory).+**Team lifecycle and memory behavior:**++| Lifecycle | Personal Memory | Team Memory | Applicable Scenarios |+|-----------|-----------------|-------------|----------------------|+| **Temporary team** | Read-only access to parent agent's workspace memory | None | One-off tasks, use-and-discard |+| **Persistent team** | Each member reads/writes independently | Auto-extracted + accumulated across rounds | Long-term collaboration, experience accumulation |++**Detailed explanation:**++- **Temporary team**:+ - Members have read-only access to the parent agent's workspace memory and cannot pollute the source memory+ - No team memory; nothing persists after the team is destroyed+ - Suitable for one-off tasks and use-and-discard scenarios++- **Persistent team**:+ - Each member has independent personal memory with read/write support+ - Team memory is auto-extracted by the Leader at the end of each round and accumulates across rounds+ - Predefined members' existing workspaces are continued via symlink+ - Suitable for long-term collaboration and scenarios requiring experience accumulation++**Memory hierarchy and access permissions:**++| Layer | Access Permission | Writer |+|-------|-------------------|--------|+| Personal memory | Exclusive to the member | The member itself (via memory tool calls in session) |+| Team memory | Read-only to all members | Leader writes via extractor agent at the end of each round |++For the full storage layout, extraction categories (`[decision]` / `[lesson]` / `[member]` / `[context]`), and cross-team / cross-member isolation, see [Memory → Agent Team Memory](Memory.md#advanced-agent-swarm-team-memory).---@@ -391,8 +417,6 @@ Full path layout:│ │ ├── docs/ ← document artifacts│ │ └── reports/ ← report artifacts│ └── skills/ ← team-shared skills- ├── team-memory/ ← shared team memory (auto-extracted by leader)- │ └── TEAM_MEMORY.md└── workspaces/ ← per-member workspaces└── <agent_name>_workspace/ ← each agent’s private space├── AGENT.md ← agent configurationdiff --git a/docs/zh/AgentTeam.md b/docs/zh/AgentTeam.mdindex 7073b35a49..610a104c23 100644--- a/docs/zh/AgentTeam.md+++ b/docs/zh/AgentTeam.md@@ -227,28 +227,54 @@ Agent Team 模式下同样支持技能(Skills)的使用和开发。团队中### 2.5 Team Memory+**Round 定义**:Agent Team 中一轮完整的团队协作周期,通常包含任务分配、执行、汇报和汇总等阶段。+Agent Team 模式下,每个团队都有自己的双层记忆:成员各自的**个人记忆**(独立读写)和团队共享的 **`TEAM_MEMORY.md`**(所有成员只读,Leader 在 round 结束后由提取 agent 自动写入)。-- **临时团队**:成员只读访问父 agent 的 workspace 记忆,团队销毁后不留痕-- **持久团队**:每个成员独立的个人记忆 + 跨 round 累积的团队记忆,预定义成员的原有 workspace 通过 symlink 自动延续+**团队生命周期与记忆行为:**++| 生命周期 | 个人记忆 | 团队记忆 | 适用场景 |+|----------|----------|----------|----------|+| **临时团队(temporary)** | 只读访问父 agent 的 workspace 记忆 | 无 | 单次任务、即用即弃 |+| **持久团队(persistent)** | 每个成员独立读写 | 自动提取 + 跨 round 累积 | 长期协作、需经验沉淀 |++**详细说明:**++- **临时团队**:+ - 成员只读访问父 agent 的 workspace 记忆,无法污染源记忆+ - 无团队记忆,团队销毁后不留痕+ - 适合单次任务、即用即弃的场景++- **持久团队**:+ - 每个成员拥有独立的个人记忆,支持读写操作+ - 团队记忆由 Leader 在每个 round 结束后自动提取,并跨 round 累积+ - 预定义成员的原有 workspace 通过 symlink 自动延续+ - 适合长期协作、需要经验沉淀的场景++**记忆层级与访问权限:**++| 层级 | 访问权限 | 写入方 |+|------|----------|--------|+| 个人记忆 | 该成员独占 | 成员自身(在会话中调用记忆工具) |+| 团队记忆 | 所有成员只读 | Leader 在 round 结束后由提取 agent 自动写入 |-完整的存储布局、提取分类(`[decision]` / `[lesson]` / `[member]` / `[context]`)、跨团队/跨成员隔离机制详见 [记忆系统 → Agent Team 团队记忆](记忆.md#agent-team-团队记忆)。+完整的存储布局、提取分类(`[decision]` / `[lesson]` / `[member]` / `[context]`)、跨团队/跨成员隔离机制详见 [记忆系统 → Agent Team 团队记忆](记忆.md#进阶agent-swarm-团队记忆)。----## 案例实践+## 四、案例实践-### 任务目标+### 4.1 任务目标深度调研新能源汽车行业,生成一份分析报告。-### 用户输入+### 4.2 用户输入```帮我调研新能源汽车行业的发展现状、主要厂商、技术趋势,并生成一份分析报告。```-### 协作过程+### 4.3 协作过程**Leader 分析需求**@@ -257,7 +283,7 @@ Leader Agent 接收目标后,分析任务:- 需要角色:行业分析师、竞争分析师、技术分析师、市场分析师、报告撰写专家- 执行计划:先调研,再分析,最后撰写-+**Leader 组建团队**@@ -268,7 +294,7 @@ Leader Agent 组建团队:- 市场分析师:负责市场前景预测- 报告撰写专家:负责报告整合与撰写-+**Team Agent 执行**Team Agent 接收指派任务后,开始执行@@ -282,9 +308,9 @@ Leader Agent 整合所有结果:- 整合最终报告- 向用户交付成果-+-### 产出结果+### 4.4 产出结果最终交付物:一份完整的新能源汽车行业分析报告,包含:- 行业发展现状@@ -292,14 +318,14 @@ Leader Agent 整合所有结果:- 技术趋势总结- 数据图表展示-+----## 三、协作方式+## 五、协作方式-### 3.1 角色分工+### 5.1 角色分工**Leader Agent 的职责**@@ -336,7 +362,7 @@ Agent Team 采用的是"分级自主协同"模式:> **关键理解**:Leader 负责统筹协调,Teammate 负责专业执行,两者协同完成任务。-### 3.2 共享协作+### 5.2 共享协作**团队共享工作区**@@ -374,8 +400,6 @@ Agent Team 的文件结构分为两个层级:**团队共享工作区**和**成│ │ ├── docs/ ← 文档产出│ │ └── reports/ ← 报告产出│ └── skills/ ← 团队共享技能- ├── team-memory/ ← 团队共享记忆(Leader 自动提取)- │ └── TEAM_MEMORY.md└── workspaces/ ← 各成员独立工作空间└── <agent_name>_workspace/ ← 各 Agent 的独立空间├── AGENT.md ← 智能体配置@@ -394,7 +418,7 @@ Agent Team 的文件结构分为两个层级:**团队共享工作区**和**成> **协作体验**:用户可以看到团队共享的中间产物,了解任务推进情况,而不需要手动传递文件。-### 3.3 任务推进+### 5.3 任务推进**事件驱动机制**@@ -424,7 +448,7 @@ Agent Team 不是一次性分完工就结束,而是依靠事件驱动持续推----## 常见问题+## 六、常见问题### Q1:Agent Team 和普通对话有什么区别?@@ -464,9 +488,9 @@ Agent Team 采用事件驱动机制:----## 附录+## 七、附录-### 相关资源+### 7.1 相关资源- [官网技术博客:Agent Team](https://openjiuwen.com/blogs/blog-artical?id=225)