Skip to main content

ToolCallGuard

Trait ToolCallGuard 

Source
pub trait ToolCallGuard: Send + Sync {
    // Required method
    fn on_tool_call<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 TurnContext,
        call: &'life2 ToolCall,
    ) -> Pin<Box<dyn Future<Output = Result<ToolCallGuardDecision>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn on_tool_call<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 TurnContext, call: &'life2 ToolCall, ) -> Pin<Box<dyn Future<Output = Result<ToolCallGuardDecision>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§