Module tool

Module tool 

Source
Expand description

Tool dispatch — regular, streaming, and input-streaming tools.

Modules§

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.
simple
Simple function tool that wraps an async closure.
typed
Type-safe function tool with auto-generated JSON Schema.

Structs§

ActiveStreamingTool
Handle to a running streaming tool.
PolicyTool
A ToolFunction decorator that enforces a ToolPolicy.
SimpleTool
Simple function tool that wraps an async closure.
ToolDispatcher
Routes function calls to the right tool implementation.
ToolPolicy
Optional per-tool execution policy.
TypedTool
Type-safe function tool with auto-generated JSON Schema.

Enums§

ToolClass
Classification of a registered tool.
ToolKind
Unified tool storage.

Traits§

InputStreamingTool
An input-streaming tool — receives duplicated live input while running.
StreamingTool
A streaming tool — runs in background, yields multiple results.
ToolFunction
A regular tool — called once, returns a result.