pub struct TaskClassifierConfig {
pub base_threshold: f64,
pub threshold_step: f64,
pub session_affinity: bool,
pub message_hash_fallback: bool,
pub recent_turn_window: Option<usize>,
pub contract: ClassifierContractConfig,
pub max_output_tokens: u64,
}Expand description
Settings that control capability classifier prompting and routing.
Fields§
§base_threshold: f64Lowest solve probability that routes a supported task to the efficient target.
threshold_step: f64Amount added per capability-boundary step.
Supported verdicts use base_threshold, uncertain and unmatched verdicts use one
step, and unsupported verdicts use two steps.
session_affinity: boolEnables session affinity before the judge-backed classifier.
message_hash_fallback: boolUses the first user message as the SessionKey for sticky routing when session metadata is unavailable.
recent_turn_window: Option<usize>Trailing conversation turns the judge sees on top of the client instructions and the opening task.
None (the default) judges the opening task and latest user follow-up.
Some(n) widens that to the client instructions, the opening task, and
the last n turns after it.
contract: ClassifierContractConfigPrompt and verdict contract settings for the classifier judge.
max_output_tokens: u64Maximum completion tokens available to the classifier verdict.
Trait Implementations§
Source§impl Clone for TaskClassifierConfig
impl Clone for TaskClassifierConfig
Source§fn clone(&self) -> TaskClassifierConfig
fn clone(&self) -> TaskClassifierConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more