Skip to main content

ToolRuntime

Trait ToolRuntime 

Source
pub trait ToolRuntime: Send + Sync {
    // Required method
    fn execute<'a>(
        &'a self,
        tool_call: ToolCall,
        context: ToolExecutionContext,
    ) -> Pin<Box<dyn Future<Output = Result<ToolExecutionResult, ToolError>> + Send + 'a>>;
}

Required Methods§

Source

fn execute<'a>( &'a self, tool_call: ToolCall, context: ToolExecutionContext, ) -> Pin<Box<dyn Future<Output = Result<ToolExecutionResult, ToolError>> + Send + 'a>>

Implementors§