We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5061ce8 commit 11818a6Copy full SHA for 11818a6
1 file changed
crates/core/src/agent/mod.rs
@@ -358,7 +358,12 @@ impl Agent {
358
}
359
360
fn include_tool_for_provider(&self, tool_name: &str) -> bool {
361
- !(self.use_native_web_search() && tool_name == "web_search")
+ // Elide the web search tool if the provider support native search
362
+ if tool_name == "web_search" {
363
+ return !self.use_native_web_search();
364
+ }
365
+
366
+ true
367
368
369
pub fn tool_names(&self) -> Vec<&str> {
0 commit comments