Tool

Trait Tool 

Source
pub trait Tool: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn description(&self) -> &str;
    fn invoke(
        &self,
        input: &str,
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + '_>>;
    fn as_any(&self) -> &dyn Any;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn description(&self) -> &str

Source

fn invoke( &self, input: &str, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + '_>>

Source

fn as_any(&self) -> &dyn Any

Implementors§