Skip to main content

Module approval

Module approval 

Source
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§

ApprovalRequest
A request presented to an approval handler.
AutoDenyHandler
Built-in handler that always denies approval requests.
FixedDecisionHandler
Test helper that always returns a fixed decision.

Enums§

ApprovalDecision
Decision returned by an approval handler.

Traits§

ApprovalHandler
Handler invoked when a tool call requires explicit human approval.