接口
POST/v1/agent/heartbeat
认证:Authorization: Bearer <agent-token>
请求体
string
required
注册时返回的稳定 agent ID。
array
当前 GPU 清单快照。
string
智能体状态,例如
online。string
智能体二进制版本。
响应
boolean
心跳是否被接受。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GPU 节点智能体向 PIN 控制器上报存活状态与刷新后的 GPU 清单。
Authorization: Bearer <agent-token> 传递。/v1/agent/heartbeat
认证:Authorization: Bearer <agent-token>
online。curl -X POST http://<pin-host>:8001/v1/agent/heartbeat \
-H "Authorization: Bearer <agent-token>" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "ag_1234567890",
"gpus": [
{"index":0,"model":"A100","mem_total_gb":80.0,"mem_used_gb":10.0,"slots":1,"used_slots":1}
],
"status": "online",
"version": "1.2.0"
}'
{
"ok": true
}
Was this page helpful?