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
Auto Trait Implementations§
impl Forget for DirectClassifierConfig
impl Freeze for DirectClassifierConfig
impl Move 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