1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/// Provider-level configuration for regex-based dynamic tool discovery.
///
/// `ToolSearchConfig` allows filtering tools by name using a regex pattern.
/// When set on an Anthropic provider, only tools whose names match the pattern
/// are loaded per request. When not set, all available tools are loaded.
///
/// # Example
///
/// ```
/// use adk_anthropic::ToolSearchConfig;
///
/// let config = ToolSearchConfig::new("^(search|fetch)_.*");
/// assert!(config.matches("search_web").unwrap());
/// assert!(!config.matches("delete_all").unwrap());
/// ```