Skip to main content

ToolExecutor

Trait ToolExecutor 

Source
pub trait ToolExecutor: Send + Sync {
    // Required method
    fn execute_tool<'life0, 'async_trait>(
        &'life0 self,
        input: ToolExecutionInput,
    ) -> Pin<Box<dyn Future<Output = Result<Value, ToolExecutionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Async host tool executor surface.

Required Methods§

Source

fn execute_tool<'life0, 'async_trait>( &'life0 self, input: ToolExecutionInput, ) -> Pin<Box<dyn Future<Output = Result<Value, ToolExecutionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Executes one workflow tool node.

Implementors§