Approval
TheApproval class lets you review and respond to tool execution approval requests — listing pending items, approving or denying individually, and processing in bulk.
Listing pending approvals
Retrieving an approval
Responding to approvals
Bulk responses
Stats and summaries
Properties
| Property | Type | Description | |
|---|---|---|---|
id | str | Approval UUID | |
tool_name | str | Name of the tool requesting approval | |
tool_id | str | Tool UUID | |
agent_id | str | Agent that triggered the tool call | |
status | str | "pending", "approved", "denied", or "cancelled" | |
arguments | dict | Arguments the tool was called with | |
conversation_id | str | Conversation where the tool call originated | |
created_at | datetime | When the approval request was created | |
expires_at | `datetime | None` | When the approval expires (if timeout is set) |

