🚀 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
XSearchcapability model-agnostic via subagent fallback by @colesmcintosh in #5120 - Support
top_kmodel setting inGoogleModel,AnthropicModel, andCohereModelby @madanlalit in #5558
🐛 Bug Fixes
- Fix
AnthropicModeldropping 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
BaseModeltool arguments sent in wrapped form when the model uses defaultextra='ignore'by @macayu17 in #5560 - Preserve Xai tool result IDs and require
xai-sdk1.6.0 by @FU-max-boop in #5355
📦 Dependencies
- Bump
genai-pricesminimum version by @adtyavrdhn in #5565
New Contributors
- @FU-max-boop made their first contribution in #5355
- @putramkti made their first contribution in #5559
- @2830500285 made their first contribution in #5568
- @macayu17 made their first contribution in #5560
Full Changelog: v2.0.0b1...v2.0.0b2