Module tool
Expand description
Tool dispatch — regular, streaming, and input-streaming tools.
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.
- Policy
Tool - A
ToolFunctiondecorator that enforces aToolPolicy. - Simple
Tool - Simple function tool that wraps an async closure.
- 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§
Traits§
- 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.