pub struct AnomalyConfig {
pub enabled: bool,
pub window_size: usize,
pub error_threshold: f64,
pub critical_threshold: f64,
pub reasoning_model_warning: bool,
}Expand description
Configuration for the sliding-window anomaly detector.
Fields§
§enabled: boolEnable the anomaly detector. Default: true.
window_size: usizeNumber of recent tool calls in the sliding window. Default: 10.
error_threshold: f64Error-rate fraction triggering a WARN. Default: 0.5.
critical_threshold: f64Error-rate fraction triggering a CRIT. Default: 0.8.
reasoning_model_warning: boolEmit a WARN when a reasoning model produces a quality failure. Default: true.
Trait Implementations§
Source§impl Clone for AnomalyConfig
impl Clone for AnomalyConfig
Source§fn clone(&self) -> AnomalyConfig
fn clone(&self) -> AnomalyConfig
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 AnomalyConfig
impl Debug for AnomalyConfig
Source§impl Default for AnomalyConfig
impl Default for AnomalyConfig
Source§fn default() -> AnomalyConfig
fn default() -> AnomalyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnomalyConfig
impl<'de> Deserialize<'de> for AnomalyConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnomalyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnomalyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AnomalyConfig
impl Serialize for AnomalyConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AnomalyConfig
impl RefUnwindSafe for AnomalyConfig
impl Send for AnomalyConfig
impl Sync for AnomalyConfig
impl Unpin for AnomalyConfig
impl UnsafeUnpin for AnomalyConfig
impl UnwindSafe for AnomalyConfig
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