pypi pydantic-ai 2.0.0b2
v2.0.0b2 (2026-05-21)

3 hours ago

🚀 Pydantic AI V2 Beta 2 is here!

For more information on Pydantic AI V2, see the release notes for yesterday's v2.0.0b1 and the Upgrade Guide.

Beta 2 adds no new breaking or v2-specific changes, but pulls in these changes from v1.101.0:

What's Changed

🚀 Features

  • Add pending message queue (ctx.enqueue / agent_run.enqueue) by @DouweM in #4980
  • Add support for MCP background tasks (SEP-1686) by @Alex-Resch in #5192
  • Make XSearch capability model-agnostic via subagent fallback by @colesmcintosh in #5120
  • Support top_k model setting in GoogleModel, AnthropicModel, and CohereModel by @madanlalit in #5558

🐛 Bug Fixes

  • Fix AnthropicModel dropping code execution tool results when continuing a conversation by @2830500285 in #5568
  • Fix thinking being silently dropped for Claude Sonnet 4.6 and Opus 4.6 on Bedrock, and support adaptive thinking efforts by @sarth6 in #5326
  • Don't drop single BaseModel tool arguments sent in wrapped form when the model uses default extra='ignore' by @macayu17 in #5560
  • Preserve Xai tool result IDs and require xai-sdk 1.6.0 by @FU-max-boop in #5355

📦 Dependencies

New Contributors

Full Changelog: v2.0.0b1...v2.0.0b2

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.