Documentation Index
Fetch the complete documentation index at: https://docs.xhipai.com/llms.txt
Use this file to discover all available pages before exploring further.
Human-in-the-Loop Approval Gates
Agentium supports requiring human approval before executing sensitive tool calls. Approvals work via callbacks, events, or REST API.Configuration
REST API
When using the transport layer, three approval endpoints are automatically available:| Endpoint | Method | Description |
|---|---|---|
/approvals/pending | GET | List all pending approval requests |
/approvals/:requestId/approve | POST | Approve a pending request |
/approvals/:requestId/deny | POST | Deny a pending request |
/approvals/stream | GET (SSE) | Real-time stream of new approval requests |
SSE Integration
Timeout Actions
| Action | Behavior |
|---|---|
"deny" (default) | Auto-deny when timeout expires |
"approve" | Auto-approve when timeout expires |
"throw" | Throw an error when timeout expires |