接口
认证
传递Authorization: Bearer <api-key> 或 Authorization: ApiKey <key> 之一。
路径参数
string
required
智能体会话标识符。
string
required
子智能体标识符。
响应
string
唯一的子智能体标识符。
string
父会话标识符。
string
子智能体状态,例如
active 或 completed。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl https://agent.example.com/v1/agents/sessions/sess_01J5X8/subagents/sub_01D \
-H "Authorization: Bearer <api-key>"
{
"id": "sub_01D",
"session_id": "sess_01J5X8",
"status": "active",
"created_at": "2024-06-01T12:35:00Z"
}
在智能体会话内按 ID 获取单个子智能体,以检查其状态与配置详情。
curl https://agent.example.com/v1/agents/sessions/sess_01J5X8/subagents/sub_01D \
-H "Authorization: Bearer <api-key>"
{
"id": "sub_01D",
"session_id": "sess_01J5X8",
"status": "active",
"created_at": "2024-06-01T12:35:00Z"
}
GET /v1/agents/sessions/{session_id}/subagents/{subagent_id}
Authorization: Bearer <api-key> 或 Authorization: ApiKey <key> 之一。
active 或 completed。curl https://agent.example.com/v1/agents/sessions/sess_01J5X8/subagents/sub_01D \
-H "Authorization: Bearer <api-key>"
{
"id": "sub_01D",
"session_id": "sess_01J5X8",
"status": "active",
"created_at": "2024-06-01T12:35:00Z"
}
Was this page helpful?