pub struct DirectClassifierConfig {
pub options: Vec<Category>,
pub fail_open: bool,
pub classify_trigger: ClassifyTrigger,
pub message_hash_fallback: bool,
pub recent_turn_window: Option<usize>,
}Expand description
Settings for a decision service that selects one model category.
Fields§
§options: Vec<Category>Categories the service may select. Their names are the option IDs.
fail_open: boolRoutes to the default target when the decision call fails or returns an invalid choice.
classify_trigger: ClassifyTriggerHow often the decision service 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 sent to the decision service. Defaults to 10.
Trait Implementations§
Source§impl Clone for DirectClassifierConfig
impl Clone for DirectClassifierConfig
Source§fn clone(&self) -> DirectClassifierConfig
fn clone(&self) -> DirectClassifierConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DirectClassifierConfig
impl RefUnwindSafe for DirectClassifierConfig
impl Send for DirectClassifierConfig
impl Sync for DirectClassifierConfig
impl Unpin for DirectClassifierConfig
impl UnsafeUnpin for DirectClassifierConfig
impl UnwindSafe for DirectClassifierConfig
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