pub struct StageClassifier { /* private fields */ }Expand description
Signal-only stage-router classifier: scores each turn onto the capable/efficient tiers from tool-result signals, via the configured picker mode and the confidence the scorer must reach before it acts on the signal alone.
With with_handoff_notes it also splices a note
into the request explaining why the signals sent the turn where they did.
Implementations§
Source§impl StageClassifier
impl StageClassifier
Sourcepub fn new(mode: PickerMode, confidence_threshold: f64) -> Self
pub fn new(mode: PickerMode, confidence_threshold: f64) -> Self
Scores onto the runtime capable and efficient models, with the given
default tier (mode) and confidence_threshold.
Sourcepub fn with_capable_first_threshold(self, threshold: f64) -> Self
pub fn with_capable_first_threshold(self, threshold: f64) -> Self
Threshold used when an outer classifier selects capable-first.
Sourcepub fn with_capable_hold_turns(self, turns: u32) -> Self
pub fn with_capable_hold_turns(self, turns: u32) -> Self
Keep the capable tier for this many requests after an escalation. A clean passing test clears the hold early. Set to zero to disable.
Sourcepub fn with_handoff_notes(self, config: HandoffNoteConfig) -> Self
pub fn with_handoff_notes(self, config: HandoffNoteConfig) -> Self
Hand the routed model a note on a signal-driven escalation, and on a hand-back to the efficient tier when a de-escalation note is configured.