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
//! Web tools for search and fetching.
//!
//! This module provides tools for web operations:
//!
//! - [`WebSearchTool`] - Search the web using pluggable providers
//! - [`SearchProvider`] - Trait for search provider implementations
//! - [`BraveSearchProvider`] - Brave Search API integration
//! - [`LinkFetchTool`] - Securely fetch and read web page content
//! - [`UrlValidator`] - URL validation with SSRF protection
//!
//! # Example
//!
//! ```ignore
//! use agent_sdk::web::{WebSearchTool, BraveSearchProvider, LinkFetchTool, UrlValidator};
//!
//! // Create a web search tool
//! let provider = BraveSearchProvider::new(api_key);
//! let search_tool = WebSearchTool::new(provider);
//!
//! // Create a link fetch tool with default security
//! let fetch_tool = LinkFetchTool::new();
//!
//! // Or customize the URL validator
//! let validator = UrlValidator::new()
//! .with_allowed_domains(vec!["example.com".to_string()]);
//! let fetch_tool = LinkFetchTool::new().with_validator(validator);
//! ```
pub use ;
pub use ;
pub use WebSearchTool;
pub use UrlValidator;