pub struct StageClassifierConfig {
pub target: String,
pub base_threshold: f64,
pub threshold_step: f64,
pub classify_trigger: ClassifyTrigger,
pub message_hash_fallback: bool,
pub recent_turn_window: Option<usize>,
pub prompt: Option<String>,
pub response_format_type: ClassifierResponseFormat,
pub max_output_tokens: u64,
}Expand description
The judge a stage_router route falls through to, and how it routes.
Fields§
§target: StringTarget the judge is called through. Not a routing destination.
base_threshold: f64Lowest solve probability that still routes to the efficient tier, from 0 to 1.
threshold_step: f64How much to raise the threshold when the judge is uncertain. Added once for an uncertain verdict and twice for unsupported.
classify_trigger: ClassifyTriggerHow often the judge runs. new_session has no effect here.
message_hash_fallback: boolReuses the session’s target by hashing the first user message when no session ID is available.
recent_turn_window: Option<usize>How many trailing turns the judge sees. Unset shows it the opening task and the latest user follow-up only.
prompt: Option<String>Replaces the packaged judge prompt.
response_format_type: ClassifierResponseFormatHow the judge is asked for structured output. Use json_object when the
provider cannot do JSON Schema.
max_output_tokens: u64Most completion tokens the judge verdict may use.