@@ -134,12 +134,13 @@ Prompt 越结构化,Agent 生成效果越稳定。也可以先给出简单描
134134
135135### 6.1 存储位置
136136
137- Flocks 的 Agent 分为系统内置 Agent 和用户自定义 Agent :
137+ Flocks 的 Agent 主要来自系统内置目录、项目级插件目录和用户级插件目录 :
138138
139139| 类型 | 存储位置 | 说明 |
140140| --- | --- | --- |
141- | 系统内置 Agent | 项目目录下的 ` .flocks/plugins/agents/ ` | 随项目或系统提供,适合项目级能力。 |
142- | 用户自定义 Agent | 用户目录下的 ` ~/.flocks/plugins/agents/ ` | 当前用户自定义的 Agent,可在用户环境中复用。 |
141+ | 系统内置 Agent | Flocks 包内的 ` flocks/agent/agents/<name>/ ` | 随 Flocks 安装包提供,属于内置能力。 |
142+ | 项目级插件 Agent | 当前项目或 Workspace 下的 ` .flocks/plugins/agents/<name>/ ` | 只在当前项目 / Workspace 中可见。 |
143+ | 用户级插件 Agent | 用户目录下的 ` ~/.flocks/plugins/agents/<name>/ ` | 当前用户自定义的 Agent,可在用户环境中复用。 |
143144
144145### 6.2 目录结构
145146
@@ -181,12 +182,12 @@ agents/
181182| ` tools ` | 工具白名单,决定该 Agent 可调用哪些工具。 |
182183| ` model ` | 单独指定模型;为空或默认时跟随系统默认模型。 |
183184| ` temperature ` / ` topP ` | 模型采样参数,影响输出稳定性和探索性。 |
184- | ` prompt ` | Prompt 文件或 Prompt 内容引用,通常对应 ` prompt.md ` 。 |
185185| ` tags ` | 标签,用于分类、搜索或能力管理。 |
186186| ` hidden ` | 是否在页面中隐藏。 |
187- | ` native ` | 是否为系统内置或原生 Agent。 |
188187| ` delegatable ` | 是否允许 Rex 将任务委派给该 Agent。 |
189188
189+ Prompt 不在 ` agent.yaml ` 中用 ` prompt ` 字段声明。运行时会优先读取 Agent 目录下的 ` prompt.md ` 作为静态 System Prompt;如果没有 ` prompt.md ` ,则可以通过 ` prompt_builder.py ` 提供动态 Prompt。` native ` 也不是 ` agent.yaml ` 字段,而是系统根据加载目录自动判断:包内置 Agent 和项目级插件 Agent 视为 native,用户级插件 Agent 视为非 native。
190+
190191` mode ` 会影响 ` delegatable ` 的默认行为。主 Agent 通常不作为被委派对象;子 Agent 通常可以被 Rex 调度。对于关键 Agent,建议把 ` description ` 、` tools ` 和 ` prompt.md ` 写清楚,这会直接影响 Rex 是否能正确选择它。
191192
192193## 7. 运行与验证
@@ -409,7 +410,7 @@ Rex 即使没有被显式告知巡检 Agent 名称,也会根据任务目标选
409410
410411### 11.4 创建完 Agent 后在哪里查看源文件?
411412
412- 系统内置或项目级 Agent 通常在项目目录下的 ` .flocks/plugins/agents/ ` ;用户自定义 Agent 通常在 ` ~/.flocks/plugins/agents/ ` 。每个 Agent 是一个独立文件夹,核心文件是 ` agent.yaml ` 和 ` prompt.md ` 。
413+ 系统内置 Agent 位于 Flocks 包内的 ` flocks/agent/agents/<name>/ ` ;项目级插件 Agent 位于当前项目或 Workspace 下的 ` .flocks/plugins/agents/<name>/ ` ;用户级插件 Agent 位于 ` ~/.flocks/plugins/agents/<name>/ ` 。每个 Agent 是一个独立文件夹,核心文件是 ` agent.yaml ` ,通常还会包含 ` prompt.md ` 。
413414
414415### 11.5 一定要用 ReAct 模式吗?
415416
0 commit comments