Skip to main content

Module routing

Module routing 

Source
Expand description

Phase-aware model routing (PSP-8 System 3).

Exploration is read-only orientation and should use a low-cost model without weakening acceptance gates. Routing therefore resolves a ModelRoute per AgentPhase: an explicit explorer_model wins; otherwise exploration defaults to the cheapest tier (Speculator). --model sets all tiers unless a phase-specific override is provided.

Structs§

ModelBudget
Per-route budget.
ModelRoute
A resolved model route for one phase (PSP-8 ModelRoute).
ModelTierConfig
The configured models per tier, plus optional explorer overrides.
PortfolioModels
The per-tier fully qualified routes from the [models] table.
PortfolioRoute
A resolved portfolio route: fully qualified, with a failover chain.
RouteObjective
What a route resolution optimizes (PSP-9 system 3).

Enums§

AgentPhase
Agent phases that request a model.
ModelTier
Model capability tiers, cheapest to most capable.

Functions§

resolve_portfolio_route
Resolve a portfolio route for a phase (PSP-9 system 3).
resolve_route
Resolve the model route for a phase.