包页面→ /agents.md
pages/agents.md
65 行, 2.7 KB. 以页面形式查看.
- ---
- type: Collection
- title: "智能体"
- icon: "🤖"
- description: "项目里的执行者:每类智能体一个页面,包含运行时、模型、推理强度、角色和限额。这里是配置,不是对话。"
- itemType: Worker
- items: {mode: path, path: /agents, recursive: false}
- writeTo: /agents
- properties:
- runtime: {kind: text, label: "运行时(claude、codex、hermes、dsh 等)"}
- model: {kind: text, label: "模型"}
- profile: {kind: text, label: "运行时配置"}
- effort:
- kind: select
- label: "推理强度"
- options:
- - {name: low, label: "低", color: gray}
- - {name: medium, label: "中", color: blue}
- - {name: high, label: "高", color: purple}
- - {name: xhigh, label: "很高", color: orange}
- - {name: max, label: "最高", color: red}
- tier:
- kind: select
- label: "分级"
- options:
- - {name: cheap, label: "便宜", color: gray}
- - {name: medium, label: "中", color: blue}
- - {name: strong, label: "强", color: purple}
- role: {kind: text, label: "角色(做什么:执行者、评审者、协调者等)"}
- memory:
- kind: select
- label: "记忆范围"
- options:
- - {name: none, label: "只记得本次运行", color: gray}
- - {name: conversation, label: "自己的对话", color: blue}
- - {name: knowledge, label: "项目知识", color: green}
- skills: {kind: text, label: "技能"}
- account: {kind: text, label: "账户(不含密钥)"}
- views:
- - id: agents--table
- name: "全部智能体"
- layout: table
- fields: {}
- sorting:
- - {propertyId: title, direction: ascending}
- properties:
- - {name: title, visible: true, width: 240}
- - {name: runtime, visible: true}
- - {name: model, visible: true}
- - {name: effort, visible: true}
- - {name: tier, visible: true}
- - {name: role, visible: true}
- ---
- 一个页面对应项目运行的一类智能体。页面类型说明智能体的存活时长:
- - `Worker`:执行者,只负责一次运行。接到任务后完成并交回,运行结束后不保留任何记忆。
- - `Assistant`:服务于某个人的长期助手,有自己的对话。
- - `Specialist`:负责某一领域的长期智能体。
- 页头写明智能体运行在什么上:运行时(`runtime`)、模型(`model`)或运行时配置(`profile`)、推理强度和分级。限额写在 `limits` 中:`{minutes, tokens, perHour, perDay}`。页面正文就是启动智能体时使用的指令。
- 智能体定义属于配置。它不包含对话、会话或历史记录:这些应放在运行日志 `/runs` 中(`runs` 包)。它也不包含密钥或密码:账户只按名称给出。
- 规范 [AGT-R01](/norms/rules/agents/AGT-R01.md) 保证定义可以重复使用。