InternalTool

Trait InternalTool 

Source
pub trait InternalTool {
    type Input;
    type Output;
    type Error;

    // Required methods
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        input: Self::Input,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Output, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn metadata(&self) -> ToolMetadata;
}
Expand description

Tool trait for internal AGCodex tools

Required Associated Types§

Required Methods§

Source

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

Execute the tool with the given input

Source

fn metadata(&self) -> ToolMetadata

Get tool metadata

Implementors§