In short.
Pydantic AI Common Tools is a guide for Python developers adding web search and page fetching to agents, but its Exa common tools are deprecated. It provides installation commands and Python examples for DuckDuckGo, web fetching and Tavily, plus a migration direction for Exa users. Its most useful technical details concern fetch limits, credential forwarding and developer control over Tavily search parameters. Tavily requires an account and API key and is described as paid with free exploratory credits; exact costs are unknown. Runtime behavior, search accuracy, performance and security effectiveness were not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied page at [https://pydantic.dev/docs/ai/tools-toolsets/common-tools/index.md], including all four tool areas, installation and usage examples, fetch limits and credential warnings, Tavily parameter controls, and the Exa deprecation and migration notice. Linked documentation, repositories, service pages and the documentation index are excluded. No packages, agent examples, network requests, security protections or performance characteristics were executed or tested.
The overview
Identity
Common Tools is a Pydantic AI documentation guide describing ready-made tools that extend an agent with web search and page retrieval. Its source address is [https://pydantic.dev/docs/ai/tools-toolsets/common-tools/index.md].
The resource is the documentation page itself. It covers DuckDuckGo, web fetching, Tavily and deprecated Exa integrations; the linked packages, API references and ExaSearch capability documentation are separate resources.
Assessment
The guide is useful when a developer already uses Pydantic AI and needs concrete instructions for connecting an agent to web information. It goes beyond basic examples by explaining fetch limits, sensitive-header behavior and which Tavily parameters the model can control.
It does not establish production reliability or answer quality. The DuckDuckGo example asks for five films but its displayed response identifies only two and leaves the remaining positions unresolved. The examples should be read as illustrations, not evidence of accurate or complete research.
Users
The guide suits Python developers building Pydantic AI agents that need to find information online or retrieve known web pages. Beginners get installation commands and short integration examples; experienced developers get configuration details relevant to controlling requests and handling credentials.
It assumes familiarity with Python imports, package installation and Agent construction. Model-provider setup and a complete introduction to Pydantic AI are not supplied.
Capabilities
The DuckDuckGo tool searches the web through the linked ddgs project. Tavily provides another search integration, with configurable result counts and domain filters. The web-fetch tool retrieves page content and converts HTML to Markdown for the agent.
The WebFetch capability can automatically use the local web-fetch tool when a model lacks native URL fetching. The documented fetch defaults limit returned text to 50,000 characters and downloaded response bodies to 50 MiB. Either limit can be disabled by passing None to its corresponding parameter.
For Exa, the page directs readers toward the separate ExaSearch capability, described as combining search, full-page retrieval, deep search and an ExaAgent capability for long-running research.
Using it
Requirements
The examples require a Python environment, Pydantic AI, the relevant optional dependencies and a configured model connection. DuckDuckGo, web fetching and Tavily each have a separate pydantic-ai-slim installation extra.
Tavily explicitly requires an account and API key. Its example reads TAVILY_API_KEY from the environment. The page does not establish minimum Python versions, exact package versions, hardware requirements or complete model-provider authentication steps.
Mechanism
The examples create a tool with a factory function and pass it into the Agent tools list. Search integrations retrieve external search results; web fetching retrieves content from a requested URL. The model chooses the fetch URL, which matters when configured headers contain credentials.
Tavily's max_results is always controlled by the developer and excluded from the model's tool schema. Other optional search parameters become fixed and hidden when supplied at tool creation; parameters left unset remain available for the model to choose per call.
HTML conversion runs in worker threads, with at most four pages converting simultaneously per event loop. Further HTML responses wait. JSON indentation also runs in a worker thread and is limited to the needed output. With max_content_length=None, JSON whose indented form would exceed 20 million characters is returned as fetched.
Setup
For DuckDuckGo, the documented command is pip install "pydantic-ai-slim[duckduckgo]". Import duckduckgo_search_tool from pydantic_ai.common_tools.duckduckgo and register duckduckgo_search_tool() in the Agent tools list.
For page retrieval, install pip install "pydantic-ai-slim[web-fetch]". Import web_fetch_tool from pydantic_ai.common_tools.web_fetch and register web_fetch_tool(). The page also shows uv add equivalents for the installation commands.
For Tavily, install pip install "pydantic-ai-slim[tavily]", obtain an API key and pass it to tavily_search_tool. Optional settings can be fixed at construction, as in the example using max_results=5 and include_domains=['arxiv.org'].
The Exa migration example installs pydantic-ai-harness[exa], imports ExaSearch from pydantic_ai_harness.exa and supplies ExaSearch() through the Agent capabilities argument. Further migration details are outside this page.
Example
The page-fetching example constructs an Agent with tools=[web_fetch_tool()] and instructions to fetch and summarize pages. It then calls agent.run_sync with a question about [https://ai.pydantic.dev] and prints result.output. This illustrates retrieving a known URL rather than searching for one.
The Tavily filtering example fixes the result limit at five and restricts included domains to arxiv.org while leaving exclude_domains available to the model. These are documented examples; no installation, tool call or agent execution was performed.
Assessment & evidence
Limitations
The Exa common tools are explicitly deprecated, with removal planned for v3. This includes exa_search_tool, exa_find_similar_tool, exa_get_contents_tool, exa_answer_tool and ExaToolset. The page recommends ExaSearch instead.
The web-fetch tool is documented as using SSRF protection, but its effectiveness was not assessed. Configured headers are sent to model-chosen URLs. The page recommends allowed_domains when headers contain credentials, while warning that this filter matches hostnames only and still permits plain HTTP or non-standard ports on an allowed host.
On redirects, configured Authorization, Cookie and Proxy-Authorization headers are retained only for the same origin or a same-host HTTP-to-HTTPS upgrade on default ports; otherwise they are stripped.
Complex HTML may exceed a separate conversion limit even when the configurable fetch limits are disabled. Search completeness, retrieved-content accuracy, latency and behavior under service failures are not established.
Reasoning
The guide's practical value is that it places installation and registration patterns beside configuration details that affect an agent's behavior. Developers can distinguish searching for sources from fetching a known page, and can decide which Tavily settings remain under model control.
Its usefulness is strongest for integration planning. The displayed outputs do not establish correctness, and the documented security features do not establish that a particular deployment handles credentials safely.
Alternatives
Within this guide, DuckDuckGo and Tavily are alternative search integrations. Tavily has an explicit account requirement and documented developer controls; the page supplies no comparative evidence about coverage, speed, reliability or answer quality.
For known URLs, web_fetch_tool offers direct retrieval. The WebFetch capability provides an automatic local fallback when native model fetching is unavailable.
For users of the deprecated Exa tools, the named replacement is ExaSearch. The page links the ExaSearch capability documentation in the Pydantic AI Harness at [https://pydantic.dev/docs/ai/harness/exa-search/], but that linked page's contents are outside the supplied evidence.
Evidence
The source is the complete Common Tools page at [https://pydantic.dev/docs/ai/tools-toolsets/common-tools/index.md], captured on 15 November 2026.
The evidence consists of documentation, code examples and displayed sample responses. It contains no independent measurements or test results. Linked API references, repositories and provider documentation are excluded.
Access & freshness
Costs
The page describes Tavily as a paid service with free credits for exploration. It gives no credit allowance, expiry, pricing schedule or per-search charge.
Costs for model usage, DuckDuckGo access, Exa, hosting and network traffic are not established. The installation commands do not demonstrate that operating an agent is free. Total operating cost is unknown.
Rights
The supplied page contains no licence or explicit redistribution grant for its documentation, sample code or referenced packages. Permission to reuse or redistribute those materials is unknown from this evidence.
Search-provider terms and rights governing fetched web content are also not supplied. The linked repositories and service pages were not included, so their licences and terms cannot be established here.
Freshness
The capture date establishes when this documentation snapshot was acquired; it does not establish when each feature was released or last changed. No publication date, last-update date or exact package release is supplied.
The Exa notice refers to removal in v3 without establishing the current installed version or a calendar deadline. The examples include questions about 2025, which do not demonstrate current search quality. Current service availability and pricing are unknown.
Actions
Choose the integration according to the task: search for unknown sources with DuckDuckGo or Tavily, or fetch a known URL with web_fetch_tool. Install the matching extra and complete the model-provider configuration, which this page does not explain.
For Tavily, decide which parameters should be fixed by the developer before exposing the tool to the model. For web fetching, set appropriate text and download limits and resolve hostname, scheme, port and redirect requirements before adding credentials.
Use the documented ExaSearch migration direction when replacing deprecated Exa common tools. Before relying on any integration, establish package compatibility, provider costs, applicable terms and behavior on representative tasks; those outcomes remain unassessed.
