pub struct DenyOnSensitive;Expand description
Default evaluator that denies any tool call whose input matches one of the envelope’s sensitive_invocations predicates.
“Deny on sensitive” is the safe default per D10. To allow such calls,
install a custom evaluator that returns RequireApproval
and pair it with a non-default HumanApproval.
Trait Implementations§
Source§impl Clone for DenyOnSensitive
impl Clone for DenyOnSensitive
Source§fn clone(&self) -> DenyOnSensitive
fn clone(&self) -> DenyOnSensitive
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 DenyOnSensitive
impl Debug for DenyOnSensitive
Source§impl Default for DenyOnSensitive
impl Default for DenyOnSensitive
Source§fn default() -> DenyOnSensitive
fn default() -> DenyOnSensitive
Returns the “default value” for a type. Read more
Source§impl SensitivityEvaluator for DenyOnSensitive
impl SensitivityEvaluator for DenyOnSensitive
Source§fn evaluate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_ctx: &'life1 Context,
call: &'life2 ToolCall,
envelope: &'life3 Envelope,
) -> Pin<Box<dyn Future<Output = AppResult<Decision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn evaluate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_ctx: &'life1 Context,
call: &'life2 ToolCall,
envelope: &'life3 Envelope,
) -> Pin<Box<dyn Future<Output = AppResult<Decision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Evaluate a tool call against the given envelope.
Auto Trait Implementations§
impl Freeze for DenyOnSensitive
impl RefUnwindSafe for DenyOnSensitive
impl Send for DenyOnSensitive
impl Sync for DenyOnSensitive
impl Unpin for DenyOnSensitive
impl UnsafeUnpin for DenyOnSensitive
impl UnwindSafe for DenyOnSensitive
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