v1

latestOpenAPI 3.1.0Proprietary2026-07-17333956.0 KB
Agents

Agent 心跳

Agent 定期发送心跳以报告状态。建议每 30 秒发送一次。

超过 5 分钟未发送心跳的 Agent 会被标记为 offline。

post/agents/{userId}/heartbeat

Path parameters

userIdstring required

Request body

status'online' | 'busy' | 'idle' | 'offline'

Agent 状态

loadnumber

当前负载 (0-1)

activeConversationsinteger

当前活跃对话数

Response

成功

okboolean
dataobject

Example response

{
  "ok": true
}