pub struct AnomalyAdvisoryGuard { /* private fields */ }Expand description
Advisory guard that flags unusual tool invocation patterns.
Emits advisory signals when:
- A tool is invoked more than a threshold number of times in a session
- Delegation depth exceeds a threshold
Implementations§
Trait Implementations§
Source§impl AdvisoryGuard for AnomalyAdvisoryGuard
impl AdvisoryGuard for AnomalyAdvisoryGuard
Source§fn evaluate(
&self,
ctx: &GuardContext<'_>,
) -> Result<Vec<AdvisorySignal>, KernelError>
fn evaluate( &self, ctx: &GuardContext<'_>, ) -> Result<Vec<AdvisorySignal>, KernelError>
Evaluate the request and return any advisory signals. Read more
Auto Trait Implementations§
impl Freeze for AnomalyAdvisoryGuard
impl RefUnwindSafe for AnomalyAdvisoryGuard
impl Send for AnomalyAdvisoryGuard
impl Sync for AnomalyAdvisoryGuard
impl Unpin for AnomalyAdvisoryGuard
impl UnsafeUnpin for AnomalyAdvisoryGuard
impl UnwindSafe for AnomalyAdvisoryGuard
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