curl --request POST \
--url https://zeus-api.agentspro.cn/api/agent/resume \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"session_id": "sess_456",
"llm_config": {
"baseUrl": "https://api.openai.com/v1",
"apiKey": "sk-...",
"modelName": "gpt-4o"
},
"tool_call_results": [
{
"tool_call_id": "call_abc",
"tool_name": "sandbox_exec",
"decision": "approved"
}
],
"human_order": "执行时注意备份文件"
}'
data: {"type": "tool_result", "tool_name": "sandbox_exec", "result": "..."}
data: {"type": "message_chunk", "content": "操作已完成,已备份文件。"}
data: {"type": "done", "session_id": "sess_456"}
恢复被中断的 Agent 执行 — HITL 审批后继续
curl --request POST \
--url https://zeus-api.agentspro.cn/api/agent/resume \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"session_id": "sess_456",
"llm_config": {
"baseUrl": "https://api.openai.com/v1",
"apiKey": "sk-...",
"modelName": "gpt-4o"
},
"tool_call_results": [
{
"tool_call_id": "call_abc",
"tool_name": "sandbox_exec",
"decision": "approved"
}
],
"human_order": "执行时注意备份文件"
}'
data: {"type": "tool_result", "tool_name": "sandbox_exec", "result": "..."}
data: {"type": "message_chunk", "content": "操作已完成,已备份文件。"}
data: {"type": "done", "session_id": "sess_456"}
user_id 从 JWT Token 中自动提取,无需在 body 中传入。
user_id 从中自动提取)显示 tool_call_result
approved | rejected | modified | timeoutcurl --request POST \
--url https://zeus-api.agentspro.cn/api/agent/resume \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"session_id": "sess_456",
"llm_config": {
"baseUrl": "https://api.openai.com/v1",
"apiKey": "sk-...",
"modelName": "gpt-4o"
},
"tool_call_results": [
{
"tool_call_id": "call_abc",
"tool_name": "sandbox_exec",
"decision": "approved"
}
],
"human_order": "执行时注意备份文件"
}'
data: {"type": "tool_result", "tool_name": "sandbox_exec", "result": "..."}
data: {"type": "message_chunk", "content": "操作已完成,已备份文件。"}
data: {"type": "done", "session_id": "sess_456"}