pub struct CustomClassifierConfig {
pub prompt: String,
pub response_schema: Value,
pub policy: CustomClassifierPolicy,
pub classify_trigger: ClassifyTrigger,
pub message_hash_fallback: bool,
pub recent_turn_window: Option<usize>,
pub judge_max_images: Option<usize>,
pub max_output_tokens: u64,
pub judge_deadline_ms: Option<u64>,
}Expand description
Settings for a classifier whose JSON Schema and target-selection policy are user supplied.
Fields§
§prompt: StringSystem prompt sent to the classifier judge.
response_schema: ValueInner JSON Schema placed inside the provider’s structured-output wrapper.
policy: CustomClassifierPolicyDeterministic policy applied after the verdict passes schema validation.
classify_trigger: ClassifyTriggerHow often the classifier re-decides this session’s target.
message_hash_fallback: boolUses the first user message when session metadata is unavailable.
recent_turn_window: Option<usize>Trailing conversation turns shown to the classifier judge.
judge_max_images: Option<usize>Maximum images attached to the latest user instruction message; excess causes an error.
None is unlimited; Some(0) omits those images from the judge input.
Earlier messages, tool results, and the answer request are unchanged.
max_output_tokens: u64Maximum completion tokens available to the classifier verdict.
judge_deadline_ms: Option<u64>Whole-consultation bound on the judge call, in milliseconds. None is unbounded.