Skip to main content

ToolExecutor

Trait ToolExecutor 

Source
pub trait ToolExecutor {
    // Required methods
    fn name(&self) -> String;
    fn description(&self) -> String;
    fn input_schema(&self) -> Value;
    fn category(&self) -> ToolCategory;
    fn process<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: &'life1 ToolRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn ToolCallHandle>>> + '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 input_schema(&self) -> Value

Source

fn category(&self) -> ToolCategory

Source

fn process<'life0, 'life1, 'async_trait>( &'life0 self, request: &'life1 ToolRequest, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn ToolCallHandle>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§