pub struct TaskClassifierConfig {
pub base_threshold: f64,
pub min_confidence: f64,
pub capability_elevated_floor: Option<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.
min_confidence: f64Lowest judge confidence that permits efficient routing.
capability_elevated_floor: Option<f64>Higher solve-probability floor for uncertain, unmatched, and unsupported tasks.
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 newest user message alone — the task, with
no history. 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