pub struct ClassifierConfig {
pub model: String,
pub max_tokens: u32,
pub max_retries: u32,
pub retry_delay: Duration,
pub confidence_threshold: f64,
}Expand description
Configuration for the AI classifier.
All fields have sensible defaults via Default.
Fields§
§model: StringAnthropic model ID (or equivalent for other providers).
max_tokens: u32Maximum tokens in the response.
max_retries: u32Number of retry attempts on transient errors (total attempts = max_retries + 1).
retry_delay: DurationDelay between retry attempts.
confidence_threshold: f64Minimum confidence score required to return a successful result.
If the response includes a "confidence" field below this threshold,
an Error::LowConfidence is returned. Set to 0.0 to disable.
Trait Implementations§
Source§impl Clone for ClassifierConfig
impl Clone for ClassifierConfig
Source§fn clone(&self) -> ClassifierConfig
fn clone(&self) -> ClassifierConfig
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 moreSource§impl Debug for ClassifierConfig
impl Debug for ClassifierConfig
Auto Trait Implementations§
impl Freeze for ClassifierConfig
impl RefUnwindSafe for ClassifierConfig
impl Send for ClassifierConfig
impl Sync for ClassifierConfig
impl Unpin for ClassifierConfig
impl UnsafeUnpin for ClassifierConfig
impl UnwindSafe for ClassifierConfig
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