pub struct StageRouterConfig {
pub mode: PickerMode,
pub confidence_threshold: f64,
pub recent_window: Option<usize>,
pub handoff_notes: Option<HandoffNoteConfig>,
pub tier_prompts: TargetPrompts,
pub llm_fallback: Option<LlmFallback>,
}Expand description
How a stage router scores turns, and what it hands the model it picks.
Fields§
§mode: PickerModeTier a turn falls open to when the scorer is not confident.
confidence_threshold: f64How much corroboration a decisive pick needs, in [0.0, 1.0].
recent_window: Option<usize>Trailing tool results the signals are computed over. None uses
DEFAULT_RECENT_WINDOW.
handoff_notes: Option<HandoffNoteConfig>Note handed to the model on a signal-driven escalation, and on a hand-back to the efficient tier when a de-escalation note is configured.
tier_prompts: TargetPromptsSystem prompts keyed by target, handed over on every turn that target serves. Empty by default.
llm_fallback: Option<LlmFallback>Capability judge consulted on turns the signals leave undecided — the judge’s own target, plus the same configuration the standalone capability route takes.
Implementations§
Source§impl StageRouterConfig
impl StageRouterConfig
Sourcepub fn new(mode: PickerMode, confidence_threshold: f64) -> Self
pub fn new(mode: PickerMode, confidence_threshold: f64) -> Self
The signal-only configuration: no notes, no per-tier prompts, no judge. Set the optional fields to add them.