pub trait Tool: Send + Sync {
    // Required methods
    fn name(&self) -> String;
    fn description(&self) -> String;
    fn call<'life0, 'life1, 'async_trait>(
        &'life0 self,
        input: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn name(&self) -> String

source

fn description(&self) -> String

source

fn call<'life0, 'life1, 'async_trait>( &'life0 self, input: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§