Agents 与工作区
列出 Agents
GET /external/v1/projects/{project_id}/agentsbash
curl http://localhost:8000/external/v1/projects/PROJECT_ID/agents \
-H "Authorization: Bearer API_KEY"响应(200):
json
[
{
"id": "agent-uuid",
"name": "默认 Agent",
"description": "通用代码助手",
"is_default": true,
"agent_type": "hermes"
}
]列出工作区
GET /external/v1/projects/{project_id}/workspacesbash
curl http://localhost:8000/external/v1/projects/PROJECT_ID/workspaces \
-H "Authorization: Bearer API_KEY"响应(200):
json
[
{
"id": "ws-uuid",
"name": "默认工作区",
"slug": "default",
"type": "local",
"is_default": true,
"artifact_type": null
},
{
"id": "kb-ws-uuid",
"name": "知识库",
"slug": "kb",
"type": "local",
"is_default": false,
"artifact_type": "knowledge_base"
}
]