Skip to main content

Module router

Module router 

Source
Expand description

Model routing logic.

The ModelRouter combines a ComplexityScorer with a RoutingConfig and a CostTracker to decide which worker backend should serve each prompt and to adaptively adjust routing thresholds based on observed outcomes.

Structs§

ModelRouter
Intelligent model router.

Enums§

RoutingDecision
The routing decision for a single prompt.