Skip to main content

ExecutableTool

Trait ExecutableTool 

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

Required Methods§

Source

fn name(&self) -> &str

Source

fn description(&self) -> Option<&str>

Source

fn input_schema(&self) -> &Value

Source

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

Implementors§