Expand description
Smart routing: classify each user turn as simple or strong and route to different models (OpenClaude pattern), plus per-agent model routing.
Structs§
- Agent
Route - A per-agent model/provider override (OpenClaude agentModels pattern).
- Agent
Router - Routes agent names to configured models, falling back to a default.
- Routing
Config - Configuration for smart routing between a simple and a strong model.
- Routing
Stats - Aggregate statistics produced by a
SmartRouter. - Smart
Router - Routes prompts to a simple or strong model based on turn complexity.
Enums§
- Turn
Complexity - Classification of a single user turn.
Functions§
- classify_
turn - Heuristic classifier: simple turns are short, code-free, and lack reasoning keywords; strong turns are long, contain code blocks, or mention reasoning keywords.