Skip to main content

Module approval

Module approval 

Source
Expand description

Approval strategies for tool calls.

Provides AutoApprovalHandler which implements a pure-strategy approval model — automatically approve all calls or deny all calls — suitable for CLI, CI, and headless environments.

Also provides QueuedApprovalHandler for UI-fronted runtimes: instead of touching the terminal it pushes each request into a queue the UI drains, and waits on a per-request oneshot for the user’s decision.

Structs§

ApprovalItem
A pending approval request handed to the UI, carrying the channel the user’s decision is returned on.
AutoApprovalHandler
I/O-free approval handler — pure strategy, suitable for all consumers.
QueuedApprovalHandler
Queued approval handler: enqueue each request and let the UI render one prompt at a time, then return the user’s decision.

Enums§

ApprovalMode
Approval strategy.