python Pydantic AI Releases · · 2.18.0

pydantic-ai v2.18.0 adds Anthropic/OpenRouter tool support, web access

sdkaiawsengineerpython-agentic
feature patch

Version 2.18.0 of pydantic-ai introduces new features for integrating with AI services. It adds AdvisorTool support for Anthropic and OpenRouter, enabling more flexible AI agent development. Additionally, it includes external web access options for the WebSearchTool with OpenAI, and improves multi-region support for Google Cloud Provider. These updates are primarily relevant for developers building AI-powered applications with pydantic-ai.

  • Add AdvisorTool support for Anthropic and OpenRouter by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6605
  • Add external_web_access option to WebSearchTool for OpenAI Responses by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/6710
  • Map deferred google-genai stream errors in GoogleModel by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/6693
Features (3)
  • 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
Fixes (1)
  • Map deferred google-genai stream errors in GoogleModel by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/6693
Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v2.18.0

Related releases