Expand description
Tool registry and handler trait.
User code registers a ToolHandler for each tool the runtime should
be able to execute. The runtime dispatches tool.invoke envelopes by
looking up the handler in the ToolRegistry and driving it inside a
per-job tokio task with a tokio_util::sync::CancellationToken.
Structs§
- Tool
Registry - Runtime-owned registry of tools.
- Tool
Registry Builder - Builder for
ToolRegistry— accumulate handlers, thenbuild.
Traits§
- Tool
Handler - Application-supplied tool handler.