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§
Sourcefn get_tools(&self) -> Vec<Arc<dyn ToolFunction>>
fn get_tools(&self) -> Vec<Arc<dyn ToolFunction>>
Get all tools in this toolset.