tavily_tool/lib.rs
1//! Tavily web search integration for the agent platform.
2//!
3//! The crate exposes a provider-backed web search tool. Tavily-specific HTTP
4//! details stay inside this crate; the agent runtime only sees the registered
5//! tool definition and its JSON result.
6
7mod client;
8mod tool;
9
10use std::path::PathBuf;
11
12use agent_config::ConfigError;
13use agent_runtime::ToolRegistry;
14
15/// Register the Tavily web search tool.
16pub fn register_tools(registry: &mut ToolRegistry) -> Result<(), ConfigError> {
17 let definition_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("data/web_search.toml");
18 registry.register_from_file(definition_path, tool::WebSearch)
19}