Skip to main content

web_search_tool

Function web_search_tool 

Source
pub fn web_search_tool() -> FunctionTool
Expand description

The web_search tool served by Exa; EXA_API_KEY is read on every call. The harness builds it when web_search is set to WebSearchSetting::Exa.

use strands::Tool;

let tool = strands_harness::tools::web_search::web_search_tool();
assert_eq!(tool.name(), "web_search");