Toolset

Trait Toolset 

Source
pub trait Toolset: Send + Sync {
    // Required method
    fn get_tools(&self) -> Vec<Arc<dyn ToolFunction>>;

    // Provided method
    fn close<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

A collection of tools that can be enumerated.

Required Methods§

Source

fn get_tools(&self) -> Vec<Arc<dyn ToolFunction>>

Get all tools in this toolset.

Provided Methods§

Source

fn close<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clean up resources when the toolset is no longer needed.

Implementors§