pub struct ToolSearchConfig {
pub enabled: bool,
pub algorithm: ToolSearchAlgorithm,
pub defer_by_default: bool,
pub always_available_tools: Vec<String>,
/* private fields */
}Expand description
Configuration for Anthropic’s tool search feature (advanced-tool-use beta) Enables dynamic tool discovery for large tool catalogs (up to 10k tools)
Fields§
§enabled: boolEnable tool search feature (requires advanced-tool-use-2025-11-20 beta)
algorithm: ToolSearchAlgorithmSearch algorithm: “regex” (Python regex patterns) or “bm25” (natural language)
defer_by_default: boolAutomatically defer loading of all tools except core tools
always_available_tools: Vec<String>Tool names that should never be deferred (always available)
Trait Implementations§
Source§impl Clone for ToolSearchConfig
impl Clone for ToolSearchConfig
Source§impl Debug for ToolSearchConfig
impl Debug for ToolSearchConfig
Source§impl Default for ToolSearchConfig
impl Default for ToolSearchConfig
Source§impl<'de> Deserialize<'de> for ToolSearchConfig
impl<'de> Deserialize<'de> for ToolSearchConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ToolSearchConfig
impl JsonSchema for ToolSearchConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto 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