Expand description
Compatibility router for Codex-style handler dispatch.
The ToolRouter provides the critical dispatch layer that:
- Builds tool calls from LLM response items
- Routes tool calls to appropriate handlers
- Manages tool registry with specs
This module bridges handler-oriented LLM outputs to tool execution.
The canonical public tool resolver is the registry assembly in
crate::tools::registry; keep name normalization here compatibility-scoped.
Structs§
- Dispatch
Registry - Dispatch registry holding handler mappings.
- Dispatch
Registry Builder - Builder for constructing a dispatch registry with specs.
- Tool
Call - A parsed tool call ready for dispatch.
- Tool
Router - The main router that builds and dispatches tool calls.
Traits§
- Tool
Router Provider - Trait for types that can provide a ToolRouter.