Skip to main content

ToolCaller

Trait ToolCaller 

Source
pub trait ToolCaller: Send + Sync {
    // Required method
    fn call<'life0, 'async_trait>(
        &'life0 self,
        request: ToolCallRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Value, SynapticError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait representing the next step in the tool call chain.

Required Methods§

Source

fn call<'life0, 'async_trait>( &'life0 self, request: ToolCallRequest, ) -> Pin<Box<dyn Future<Output = Result<Value, SynapticError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§