Skip to main content

EngineToolDispatch

Trait EngineToolDispatch 

Source
pub trait EngineToolDispatch: Send + Sync {
    // Required method
    fn dispatch_tool<'life0, 'async_trait>(
        &'life0 self,
        call: ToolCall,
        allow_mutating: bool,
    ) -> Pin<Box<dyn Future<Output = Result<ToolOutput, FunctionCallError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Minimal tool surface required by Engine / turn_loop.

Required Methods§

Source

fn dispatch_tool<'life0, 'async_trait>( &'life0 self, call: ToolCall, allow_mutating: bool, ) -> Pin<Box<dyn Future<Output = Result<ToolOutput, FunctionCallError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§