pub struct AnomalyAlert {
pub agent_id: String,
pub tool: String,
pub current_count: u64,
pub baseline_ema: f64,
pub deviation_ratio: f64,
pub severity: AnomalySeverity,
}Expand description
An anomaly detected in tool call behavior.
Fields§
§agent_id: StringAgent that triggered the anomaly.
tool: StringTool name with anomalous frequency.
current_count: u64Current session’s call count for this tool.
baseline_ema: f64Historical EMA baseline.
deviation_ratio: f64Deviation ratio (current_count / baseline_ema).
severity: AnomalySeveritySeverity level.
Trait Implementations§
Source§impl Clone for AnomalyAlert
impl Clone for AnomalyAlert
Source§fn clone(&self) -> AnomalyAlert
fn clone(&self) -> AnomalyAlert
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 AnomalyAlert
impl Debug for AnomalyAlert
Source§impl<'de> Deserialize<'de> for AnomalyAlert
impl<'de> Deserialize<'de> for AnomalyAlert
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AnomalyAlert
impl Display for AnomalyAlert
Auto Trait Implementations§
impl Freeze for AnomalyAlert
impl RefUnwindSafe for AnomalyAlert
impl Send for AnomalyAlert
impl Sync for AnomalyAlert
impl Unpin for AnomalyAlert
impl UnsafeUnpin for AnomalyAlert
impl UnwindSafe for AnomalyAlert
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