Skip to main content

StepToolProvider

Trait StepToolProvider 

Source
pub trait StepToolProvider: Send + Sync {
    // Required method
    fn provide<'life0, 'life1, 'async_trait>(
        &'life0 self,
        input: StepToolInput<'life1>,
    ) -> Pin<Box<dyn Future<Output = Result<StepToolSnapshot, AgentLoopError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Provider that resolves the tool snapshot for each step.

Required Methods§

Source

fn provide<'life0, 'life1, 'async_trait>( &'life0 self, input: StepToolInput<'life1>, ) -> Pin<Box<dyn Future<Output = Result<StepToolSnapshot, AgentLoopError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Resolve tool map + descriptors for the current step.

Implementors§