Skip to main content

Module router

Module router 

Source
Expand description

Catalog-driven model routing.

Selects the best model for a given set of requirements (tool calling, reasoning, vision, context window, cost) using the compile-time catalog and the runtime provider registry.

Structs§

ModelRouter
Routes requests to the most appropriate model based on capability requirements.
RouteRequirements
Requirements for model selection.

Functions§

route_requirements_for_model_class
Turn a skill’s declared model-class hint for one phase (model_routing.phases in its SKILL.md frontmatter — see crate::uar::domain::skills::SkillModelRouting) into a RouteRequirements. Returns None when the skill has no routing hint for phase.