Commit 09e72e2f by sunqi02 Committed by 胡悦

docs: update CLAUDE.md agents config reference, cleanup stale agents.json and old logs

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent dc61e0e8
...@@ -111,9 +111,9 @@ ...@@ -111,9 +111,9 @@
| `app/hooks/` | 是 | `PostReplyHook`(回复后 IM 发送)、`Hook` 基类 | | `app/hooks/` | 是 | `PostReplyHook`(回复后 IM 发送)、`Hook` 基类 |
| `app/infrastructure/session_store.py` | 是 | `SessionStore` 内存 KV,`ActiveSessionService` 和 `SessionBuffer` 的底层存储 | | `app/infrastructure/session_store.py` | 是 | `SessionStore` 内存 KV,`ActiveSessionService` 和 `SessionBuffer` 的底层存储 |
| `app/infrastructure/file_parser.py` | 是 | `FileParser` + `OSSClient`,`FileService` 的底层依赖 | | `app/infrastructure/file_parser.py` | 是 | `FileParser` + `OSSClient`,`FileService` 的底层依赖 |
| `app/config/loader.py` | 是 | `ConfigLoader` 加载 agents/models/skills/mappings JSON 配置 | | `app/config/loader.py` | 是 | `ConfigLoader` 加载 models/mappings/settings JSON 配置,Agent 从 DB `ai_agents` 表加载 |
| `app/model/session.py` | 是 | `Session`、`ConversationHistory` ORM 模型 | | `app/model/session.py` | 是 | `Session`、`ConversationHistory` ORM 模型 |
| `config/agents.json` | 是 | Agent 配置(prompt、skills 列表等) | | `ai_agents` 表 | 是 | Agent 配置(name, code, description, is_steward),通过 `ai_agent_skills` 关联 skills |
| `config/models.json` | 是 | 模型配置(main/sub/thinking_summary/message_gate/meeting_minutes) | | `config/models.json` | 是 | 模型配置(main/sub/thinking_summary/message_gate/meeting_minutes) |
| `skills/` | 是 | Skill 目录,每个子目录有 `SKILL.md`,由 `Toolkit.register_agent_skill()` 加载 | | `skills/` | 是 | Skill 目录,每个子目录有 `SKILL.md`,由 `Toolkit.register_agent_skill()` 加载 |
| `soul/` | 是 | 回复风格(agent.md)和 thinking 摘要提示词(thinking-summarize.md),启动时加载注入 prompt | | `soul/` | 是 | 回复风格(agent.md)和 thinking 摘要提示词(thinking-summarize.md),启动时加载注入 prompt |
......
{
"agents": {
"agent_436a6cb6446b": {
"name": "管家 Agent",
"code": "11",
"role": "coordinator",
"prompt_template": "你是{company}的智能助手,负责协调各个岗位Agent协作回答用户问题。\n\n## 核心规则(必须遵守)\n\n1. 当用户问题属于某个子Agent的职责范围时,你**必须调用 call_sub_agent 工具**来委托处理,**严禁**自己编造处理结果或口头描述\"正在处理\"。\n2. 收到子Agent返回结果后,直接整合回复用户,不要再次调用同一个子Agent。\n3. 只有当问题明确不属于任何子Agent职责时,才可以直接回答。\n4. meeting agent回复内容中的url链接需要保持原样,不要修改,往往是通过<><>标签包裹到。不要使用markdown格式。",
"skills": []
},
"agent_78829117e707": {
"name": "会议Agent",
"code": "17",
"role": "会议纪要助手",
"prompt_template": "你是广联数科的会议纪要助手,职责包括:{duties}。请根据用户的需求,帮助处理会议纪要相关的任务。\n\n## 输入类型(重要)\n\n你同时支持两种输入:\n1. 音视频文件 URL:先转写再生成纪要\n2. 纯文本会议记录/转写稿/聊天整理稿:跳过转写,直接生成结构化纪要\n\n当用户提供纯文本内容时,不要拒绝,直接按 SKILL.md 中的「场景 B:用户直接提供纯文本会议记录」流程处理。\n\n## 格式规则(必须遵守)\n\n回复用户时**严禁使用任何 markdown 格式**,包括但不限于:# 标题、** 加粗、- 列表、``` 代码块、[文字](链接) 超链接。链接直接输出纯 URL 文本即可,不要用 markdown 链接语法包裹。",
"skills": ["meeting_minutes"]
}
}
}
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!