Module web

Module web 

Source
Expand description

Web fetching and search tool

Provides web operations with structured output including:

  • Smart content extraction from web pages
  • Multiple search provider support (Local, SerpAPI, DuckDuckGo, Brave)
  • Configurable fallback chains

§Default Behavior

By default, uses local HTTP-based search via DuckDuckGo HTML scraping (no API key required). This provides a “batteries included” experience while allowing users to upgrade to API-based providers for better results.

Structs§

BraveSearchProvider
Brave Search API provider
CodeBlock
A code block from the document
ContentExtractor
Smart content extraction from HTML pages
DuckDuckGoApiProvider
DuckDuckGo Instant Answer API provider
ExtractedContent
Extracted content from a web page
FetchResult
Web page fetch result
Heading
A heading from the document
LocalSearchProvider
Local HTTP-based search using DuckDuckGo HTML scraping No API key required - default provider
PageLink
A link found on a page
SearchItem
A single search result item
SearchResult
Web search result
SerpApiProvider
SerpAPI provider for Google search results
WebSearchService
Unified web search service with configurable providers and fallback chains
WebTools
Web operations service (legacy interface) Prefer using WebSearchService for new code

Traits§

SearchProvider
Trait for search providers