Module tool

Module tool 

Source
Expand description

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

Re-exports§

pub use dispatcher::*;
pub use simple::*;
pub use typed::*;

Modules§

dispatcher
Tool dispatcher — routes function calls to the right tool implementation.
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.

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.