Skip to main content
Web capabilities let agents search the internet and fetch page content to answer questions with up-to-date information.

Quick Start

1

Enable Web

2

With Configuration


Web Features

Find relevant pages for a query:

Page Fetch

Retrieve full content from URLs:

Configuration Options

Provider preset strings disable fetch by default. Passing a provider name as a string (e.g. web="duckduckgo", web="tavily") enables search only so the tool set stays compatible with OpenAI models. Enable fetch explicitly with WebConfig(search=True, fetch=True, search_provider="duckduckgo") or use web=True for both.

Choosing the right form


Search Providers

Using Different Providers


How It Works


Use Cases

Research

Find and synthesize information from multiple sources

News

Get current events and latest updates

Fact-Checking

Verify claims with web sources

Monitoring

Track topics and get updates

Combining with Knowledge

Web search complements local knowledge:

Best Practices

Free and requires no API key - good for basic search needs.
Tavily is optimized for AI agents with better structured results.
Lower max_results for faster responses when you don’t need many sources.
Use local knowledge for domain-specific info, web for current events.

Knowledge

Local document search

RAG

Retrieval augmented generation