v2.18.0

pydantic/pydantic-aiv2.18.0Jul 25, 2026by dsfaccini

AI Summary

Adds `AdvisorTool` support for Anthropic and OpenRouter, expands Google Cloud provider locations, and adds `external_web_access` option to OpenAI Responses WebSearchTool.

Key Highlights

  • Add `AdvisorTool` support for Anthropic and OpenRouter
  • Add 'us'/'eu' multi-region locations to GoogleCloudProvider
  • Add `external_web_access` option to `WebSearchTool` for OpenAI Responses

New Features

  • AdvisorTool support
  • Google Cloud multi-region support
  • WebSearchTool external web access

Full Release Notes

<!-- Release notes generated using configuration in .github/release.yml at main -->

## What's Changed
### 🚀 Features
* Add `AdvisorTool` support for Anthropic and OpenRouter by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6605
* Add 'us'/'eu' multi-region locations to GoogleCloudProvider location type by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6715
* Add `external_web_access` option to `WebSearchTool` for OpenAI Responses by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6710
### 🐛 Bug Fixes
* Map deferred `google-genai` stream errors in `GoogleModel` by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/6693


**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v2.17.0...v2.18.0