Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Agentium 4.11.0 is available · Release and upgrade guidance.
Human-in-the-loop approval for tool calls
import { Agent, openai } from "@agentium/core"; const agent = new Agent({ name: "careful-bot", model: openai(process.env.OPENAI_MODEL ?? "gpt-6.1-sol"), tools: [deleteTool, readTool], approval: { policy: ["delete_record"], // only this tool needs approval timeout: 60_000, timeoutAction: "deny", // "approve" | "deny" | "throw" }, });
/approvals/pending
/approvals/:requestId/approve
/approvals/:requestId/deny
/approvals/stream
const source = new EventSource("/approvals/stream"); source.onmessage = (event) => { const request = JSON.parse(event.data); // Show approval UI to human reviewer showApprovalDialog(request); };
"deny"
"approve"
"throw"