Skip to main content

TurnToolExecutor

Trait TurnToolExecutor 

Source
pub trait TurnToolExecutor: Send + Sync {
    // Required method
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        call: ToolCallCompleted,
    ) -> Pin<Box<dyn Future<Output = Result<TurnToolOutcome, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Executes a single tool call through the runtime’s registry + policy. Implemented by the runtime; used by providers that run their own in-stream agent loop.

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, call: ToolCallCompleted, ) -> Pin<Box<dyn Future<Output = Result<TurnToolOutcome, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§