github pydantic/pydantic-ai v2.20.0
v2.20.0 (2026-07-28)

3 hours ago

What's Changed

🚀 Features

  • Add Claude Opus 5 (claude-opus-5) support by @dsfaccini in #6723
  • Add OpenAI Responses API reasoning.context support (default all_turns) for the gpt-5.4/gpt-5.5/gpt-5.6 families by @pydanty[bot] in #6673

🐛 Bug Fixes

  • Preserve arbitrary RequestUsage fields across serialization by @alexmojaki in #6685
  • Capture Anthropic thinking tokens in usage details by @jakub-orsula-parrot in #6753
  • Fix ALLOW_MODEL_REQUESTS guards for embeddings by @zcxGGmu in #6774
  • Skip include_server_side_tool_invocations for Vertex on Gemini 3+ by @pydanty[bot] in #6773
  • Fix _openrouter_settings_to_openai_settings mutating caller's settings dict by @pydanty[bot] in #6743
  • Replay tool-search history across provider boundaries instead of dropping it by @DouweM in #6780
  • Preserve zero-valued OpenTelemetry usage details by @dsfaccini in #6796
  • Expose OpenAI Responses phase on the streamed PartStartEvent by @Jonas1312 in #6785
  • Make a bare McpError from an MCP server recoverable instead of fatal by @dsfaccini in #6787

New Contributors

Full Changelog: v2.19.0...v2.20.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.