Expand description
Shared-state wrapper for web tool operations.
Web holds configuration — such as result count — so callers don’t
have to construct WebFetch / WebSearch on every invocation.
§Example
ⓘ
use cosh_tools::web::Web;
let web = Web::new().num_results(5);
web.fetch("https://example.com").await;
web.search("rust programming").await;Re-exports§
pub use fetch::WebFetch;pub use fetch::fetch;pub use search::WebSearch;pub use search::search;pub use types::WebFetchInput;pub use types::WebSearchInput;
Modules§
- fetch
- URL content extraction via Exa AI and/or local extraction.
- search
- Web search via Exa AI, with local fallback.
- types
Structs§
- Web
- Shared-state wrapper for web tool operations.