Skip to main content

ToolCallHandle

Trait ToolCallHandle 

Source
pub trait ToolCallHandle: Send {
    // Required methods
    fn tool_request(&self) -> ToolRequestEvent;
    fn execute<'async_trait>(
        self: Box<Self>,
    ) -> Pin<Box<dyn Future<Output = ToolOutput> + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Handle for a validated tool call, encapsulating request generation and execution

Required Methods§

Source

fn tool_request(&self) -> ToolRequestEvent

Source

fn execute<'async_trait>( self: Box<Self>, ) -> Pin<Box<dyn Future<Output = ToolOutput> + 'async_trait>>
where Self: 'async_trait,

Implementors§