Skip to main content

ApprovalChannel

Trait ApprovalChannel 

Source
pub trait ApprovalChannel: Send + Sync {
    // Required method
    fn request<'life0, 'async_trait>(
        &'life0 self,
        req: ApprovalRequest,
    ) -> Pin<Box<dyn Future<Output = ApprovalResponse> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Approval channel for tool calls needing human/external OK.

Required Methods§

Source

fn request<'life0, 'async_trait>( &'life0 self, req: ApprovalRequest, ) -> Pin<Box<dyn Future<Output = ApprovalResponse> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§