Skip to main content

ToolSelector

Trait ToolSelector 

Source
pub trait ToolSelector: Send + Sync {
    // Required method
    fn select_tool(
        &self,
        context: &ToolSelectionContext,
        candidates: &[&str],
    ) -> Option<String>;
}
Expand description

Trait for selecting which tool to use

Required Methods§

Source

fn select_tool( &self, context: &ToolSelectionContext, candidates: &[&str], ) -> Option<String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§