pypi pydantic-ai 2.10.0
v2.10.0 (2026-07-14)

5 hours ago

What's Changed

🚀 Features

  • Make message_history provider-valid out of the box (repair tool-call/result pairing) by @DouweM in #6319
  • Add support for OpenAI background mode and handle Anthropic stop_reason=pause_turn by @DouweM in #6303

🐛 Bug Fixes

  • Fix has_values() returning True for all-zero usage details by @sean-kim05 in #6466
  • Fix RenamedToolset silently dropping a tool on a name collision by @sean-kim05 in #6462
  • Preserve invalid UTF-8 bytes in instrumentation serialization by @alexmojaki in #6483
  • Fix event-loop affinity in run_stream_sync by @adtyavrdhn in #6454
  • Attach xAI ToolCallPart to the preceding reasoning message by @dsfaccini in #5924
  • Filter unconfigured Anthropic native tool calls by @hxaxd in #6463
  • Fix DeferredToolResults resume when an output tool call was settled in the same batch as deferred calls by @DouweM in #6491

📦 Dependencies

New Contributors

Full Changelog: v2.9.1...v2.10.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.