Expand description
Tool definitions, dispatch, toolsets, the confirmation flow, and frames.
Modules§
- dispatcher
- Tool dispatcher — routes function calls to the right tool implementation.
- policy
- Per-tool execution policy — timeout, caching, and confirmation.
- simple
- Simple function tool that wraps an async closure.
- typed
- Type-safe function tool with auto-generated JSON Schema.
Structs§
- Active
Streaming Tool - Handle to a running streaming tool.
- Confirmation
Request - A request for confirmation of a sensitive tool call, handed to a
ConfirmationProviderbefore the tool executes. - Frame
Spec - The slot definition of a frame — the source of truth for what a stage that
collects this frame must gather, plus the metadata that drives confirmation and repair. - Policy
Tool - A
ToolFunctiondecorator that enforces aToolPolicy. - Record
Extractor - A
TurnExtractorthat runs anExtractrecord’s recognizers and resolvers, and promotes the recognized fields into state. - Simple
Tool - Simple function tool that wraps an async closure.
- Slot
Spec - Metadata for a single slot within a
FrameSpec. - Static
Confirmation - A
ConfirmationProviderthat approves or denies every request uniformly — handy for tests and “deny-all” / “allow-all” defaults. - Static
Toolset - A simple toolset backed by a fixed list of tools.
- Tool
Confirmation - Represents a user’s confirmation decision for a tool call.
- Tool
Dispatcher - Routes function calls to the right tool implementation.
- Tool
Policy - Optional per-tool execution policy.
- Typed
Tool - Type-safe function tool with auto-generated JSON Schema.
Enums§
- Confirm
Policy - When a slot’s value should be confirmed back to the user before it is trusted.
- Recognizer
- A deterministic transcript recognizer:
text -> (value, confidence). - Slot
Recognizer - A serializable description of the deterministic recognizer that fills a slot.
- Slot
Validator - A serializable validator applied to a recognized slot value; a value failing it is rejected (the slot stays unfilled until a valid value is recognized).
- Tool
Class - Classification of a registered tool.
- Tool
Kind - Unified tool storage.
Traits§
- Confirmation
Provider - Decides whether a confirmation-gated tool call may proceed.
- Input
Streaming Tool - An input-streaming tool — receives duplicated live input while running.
- Streaming
Tool - A streaming tool — runs in background, yields multiple results.
- Tool
Function - A regular tool — called once, returns a result.
- Toolset
- A collection of tools that can be enumerated.