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
- Pydantic-AI v2.19.0 adds headers and retry_after to ModelHTTPError Pydantic AI Releases ·
- OpenAI Agents Python: Programmatic Tool Calling and SDK Enhancements OpenAI Agents SDK (Python) Releases ·
- crewAI 1.15.7: Security patches and observability improvements CrewAI Releases ·
- crewAI 1.15.6: Bug fixes and documentation updates CrewAI Releases ·
- Pydantic-AI v2.17.0: Cache OTel serialization, support arbitrary fields Pydantic AI Releases ·
- pydantic-ai v2.16.0 adds Model Armor and new Gemini models Pydantic AI Releases ·