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 max_output_tokens: 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.
max_output_tokens: u64Maximum completion tokens available to the classifier verdict.
Implementations§
Trait Implementations§
Source§impl Clone for CustomClassifierConfig
impl Clone for CustomClassifierConfig
Source§fn clone(&self) -> CustomClassifierConfig
fn clone(&self) -> CustomClassifierConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CustomClassifierConfig
impl RefUnwindSafe for CustomClassifierConfig
impl Send for CustomClassifierConfig
impl Sync for CustomClassifierConfig
impl Unpin for CustomClassifierConfig
impl UnsafeUnpin for CustomClassifierConfig
impl UnwindSafe for CustomClassifierConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more