Expand description
Asynchronous human-in-the-loop approval for tool calls.
When a tool or the permission engine returns PermissionDecision::Ask,
the runtime can suspend the turn and ask an ApprovalHandler to decide
whether to allow, deny, or modify the call.
Structs§
- Approval
Request - A request presented to an approval handler.
- Auto
Deny Handler - Built-in handler that always denies approval requests.
- Fixed
Decision Handler - Test helper that always returns a fixed decision.
Enums§
- Approval
Decision - Decision returned by an approval handler.
Traits§
- Approval
Handler - Handler invoked when a tool call requires explicit human approval.