Skip to main content

SecurityConfirmationCallback

Trait SecurityConfirmationCallback 

Source
pub trait SecurityConfirmationCallback: Send + Sync {
    // Required method
    fn confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tool_name: &'life1 str,
        args: &'life2 Value,
        risk: RiskLevel,
    ) -> Pin<Box<dyn Future<Output = Result<bool, SynapticError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Callback for obtaining user confirmation before executing a risky tool call.

Required Methods§

Source

fn confirm<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tool_name: &'life1 str, args: &'life2 Value, risk: RiskLevel, ) -> Pin<Box<dyn Future<Output = Result<bool, SynapticError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§