pub struct ValidationConfig {
pub min_confidence: f64,
pub max_content_length: usize,
pub forbidden_terms: Vec<String>,
pub require_provenance: bool,
}Expand description
Configuration for the validation agent.
Fields§
§min_confidence: f64Minimum confidence threshold (0.0 - 1.0). Proposals below this are rejected.
max_content_length: usizeMaximum content length allowed.
forbidden_terms: Vec<String>Forbidden terms that cause rejection.
require_provenance: boolWhether to require provenance information.
Trait Implementations§
Source§impl Clone for ValidationConfig
impl Clone for ValidationConfig
Source§fn clone(&self) -> ValidationConfig
fn clone(&self) -> ValidationConfig
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 moreSource§impl Debug for ValidationConfig
impl Debug for ValidationConfig
Auto Trait Implementations§
impl Freeze for ValidationConfig
impl RefUnwindSafe for ValidationConfig
impl Send for ValidationConfig
impl Sync for ValidationConfig
impl Unpin for ValidationConfig
impl UnwindSafe for ValidationConfig
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