74 lines
2.7 KiB
Markdown
74 lines
2.7 KiB
Markdown
# 测试用 · 可用智能体清单(可直接复制粘贴)
|
||
|
||
测试时面板需要传入**真实存在的 `agent_id`**(后端真正拿去跑的标识,不能只写名字)。
|
||
下面是当前后端里**可直接用于测试**的内置智能体(已排除 intent / recommender / coordinator 这些系统角色)。
|
||
|
||
> 注:`name` 只是显示用、可省略;`agent_id` 必须照抄。下列为本环境实测可用的内置智能体;
|
||
> 你部署里的智能体可能不同,用文末方法自查。
|
||
|
||
## 可用智能体
|
||
|
||
| agent_id | 显示名 |
|
||
| --------------------------- | -------- |
|
||
| `roundtable-solution-design`| 方案设计 |
|
||
| `roundtable-risk-review` | 风险审查 |
|
||
| `roundtable-execution-plan` | 执行规划 |
|
||
| `roundtable-report` | 方案总结 |
|
||
| `demo-expert` | 演示专家 |
|
||
|
||
## A. 粘贴进 dev demo 页「智能体」输入框(每行 `agent_id, 显示名`)
|
||
|
||
推荐至少 2 个以便点头像切换查看不同智能体:
|
||
|
||
```
|
||
roundtable-solution-design, 方案设计
|
||
roundtable-risk-review, 风险审查
|
||
```
|
||
|
||
想多看几列就多贴几行:
|
||
|
||
```
|
||
roundtable-solution-design, 方案设计
|
||
roundtable-risk-review, 风险审查
|
||
roundtable-execution-plan, 执行规划
|
||
```
|
||
|
||
## B. 粘贴进组件 `:agents` prop(嵌入场景)
|
||
|
||
```ts
|
||
const agents = [
|
||
{ agent_id: "roundtable-solution-design", name: "方案设计" },
|
||
{ agent_id: "roundtable-risk-review", name: "风险审查" },
|
||
{ agent_id: "roundtable-execution-plan", name: "执行规划" },
|
||
];
|
||
```
|
||
|
||
```vue
|
||
<ParallelAgentsPanel :username="'demo'" :agents="agents" />
|
||
```
|
||
|
||
## C. 配一个示例任务(直接粘贴到面板)
|
||
|
||
- **任务名称**:`新功能上线方案评估`
|
||
- **任务简介**:
|
||
```
|
||
我们要给 App 上线「扫码点餐」功能。请从你的专业角度,评估方案可行性、列出关键风险、
|
||
并给出落地步骤与里程碑。
|
||
```
|
||
|
||
## 自查:列出你部署里所有可用的 agent_id
|
||
|
||
```bash
|
||
# 1) 免密登录拿 token(用户名换成你的)
|
||
TOKEN=$(curl -s -X POST -H "Content-Type: application/json" \
|
||
-d '{"username":"demo"}' http://localhost:8001/api/v1/auth/login/username \
|
||
| python -c "import sys,json;print(json.load(sys.stdin)['access_token'])")
|
||
|
||
# 2) 列出 agent_id <TAB> name
|
||
curl -s -H "Authorization: Bearer $TOKEN" http://localhost:8001/api/agents -o agents.json
|
||
python -c "import json,io;[print(a['id'],'\t',a['name']) for a in json.load(io.open('agents.json',encoding='utf-8')).get('agents',[])]"
|
||
```
|
||
|
||
第一列 `id` 才是要填的 `agent_id`。挑你需要的智能体即可(避开 `roundtable-intent` /
|
||
`roundtable-recommender` / `roundtable-coordinator*` 这些系统角色——它们不是用来当并行席位的)。
|