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§
- Approval
Item - A pending approval request handed to the UI, carrying the channel the user’s decision is returned on.
- Auto
Approval Handler - I/O-free approval handler — pure strategy, suitable for all consumers.
- Queued
Approval Handler - Queued approval handler: enqueue each request and let the UI render one prompt at a time, then return the user’s decision.
Enums§
- Approval
Mode - Approval strategy.