Skip to main content

Module router

Module router 

Source
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§

DispatchRegistry
Dispatch registry holding handler mappings.
DispatchRegistryBuilder
Builder for constructing a dispatch registry with specs.
ToolCall
A parsed tool call ready for dispatch.
ToolRouter
The main router that builds and dispatches tool calls.

Traits§

ToolRouterProvider
Trait for types that can provide a ToolRouter.