pub struct ToolSearchConfig {
pub threshold: f32,
pub max_tools: usize,
pub always_include_builtins: bool,
pub enabled: bool,
}Expand description
Configuration for tool search behavior.
Fields§
§threshold: f32Minimum relevance score (0.0–1.0) for a tool to be included. Default: 0.3
max_tools: usizeMaximum number of MCP tools to include per turn. Default: 20
always_include_builtins: boolAlways include builtin tools regardless of score. Default: true
enabled: boolEnable tool search. When false, all tools are included (legacy behavior). Default: true
Trait Implementations§
Source§impl Clone for ToolSearchConfig
impl Clone for ToolSearchConfig
Source§fn clone(&self) -> ToolSearchConfig
fn clone(&self) -> ToolSearchConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolSearchConfig
impl Debug for ToolSearchConfig
Auto Trait Implementations§
impl Freeze for ToolSearchConfig
impl RefUnwindSafe for ToolSearchConfig
impl Send for ToolSearchConfig
impl Sync for ToolSearchConfig
impl Unpin for ToolSearchConfig
impl UnsafeUnpin for ToolSearchConfig
impl UnwindSafe for ToolSearchConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more