pub struct StageClassifierConfig {Show 14 fields
pub target: String,
pub mode: Option<ClassifierMode>,
pub response_schema: Option<String>,
pub policy: Option<ClassifierPolicyConfig>,
pub decision: Option<DecisionJudgeRouteConfig>,
pub fail_open: Option<bool>,
pub base_threshold: Option<f64>,
pub threshold_step: Option<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.
mode: Option<ClassifierMode>Composite accepts custom-schema judges as well as capability judges.
response_schema: Option<String>§policy: Option<ClassifierPolicyConfig>§decision: Option<DecisionJudgeRouteConfig>§fail_open: Option<bool>§base_threshold: Option<f64>Lowest solve probability that still routes to the efficient tier, from 0 to 1.
threshold_step: Option<f64>How 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. Composite honors it. A standalone stage route
rejects any value other than every_request, because its fallback judge
runs on every ambiguous turn and retains no verdict.
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.
Trait Implementations§
Source§impl Clone for StageClassifierConfig
impl Clone for StageClassifierConfig
Source§fn clone(&self) -> StageClassifierConfig
fn clone(&self) -> StageClassifierConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more