Expand description
Tool dispatch — regular, streaming, and input-streaming tools.
Modules§
- commit
- Commit governance for a tool that acts on the world: idempotency and compensation.
- context
- What a tool knows about the call it serves.
- dispatcher
- Tool dispatcher — routes function calls to the right tool implementation.
- media
- Tool media returns — the ADK pattern where a function response carries images or other media to the model alongside its JSON payload, so vision tools (screenshots, chart renderers, document croppers) feed the model something it can actually look at.
- policy
- Per-tool execution policy — timeout, caching, and confirmation.
- schema
- One schema pipeline from Rust types to the Gemini wire format.
- 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.
- Commit
Guard - A tool wrapped with idempotency and compensation. See the module docs.
- Context
Tool - A tool from a closure that receives the
ToolContext. - Policy
Tool - A
ToolFunctiondecorator that enforces aToolPolicy. - Simple
Tool - Simple function tool that wraps an async closure.
- Tool
Context - The session a tool call runs in.
- 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.
Functions§
- wire_
schema - Derive a JSON Schema in the shape the Gemini API will actually enforce.