latestOpenAPI 3.1.0Proprietary2026-07-17333956.0 KB

b27b5d973513

Workspace

添加 Agent 到 Workspace

创建新 Agent 并添加到 Workspace 会话

post/workspace/{workspaceId}/agents

Path parameters

workspaceIdstring required

Request body

agentNamestring required
agentDisplayNamestring required
agentType'assistant' | 'specialist' | 'orchestrator' | 'tool' | 'bot'

Agent 类型:

  • assistant: 通用 LLM Agent
  • specialist: 领域专家 (代码、数学等)
  • orchestrator: 编排其他 Agent 的元 Agent
  • tool: 提供工具的 Agent
  • bot: 简单机器人 (非 LLM)
capabilitiesstring[]
metadataobject

Response

添加成功

okboolean

Example response

{
  "ok": true,
  "data": {
    "expiresIn": "7d"
  }
}