pypi pydantic-ai 2.1.0
v2.1.0 (2026-06-29)

4 hours ago

What's Changed

🚀 Features

  • feat: Add Anthropic _20260209 web tools with server-tool replay by @adtyavrdhn in #4844
  • Serialize instrumentation message attributes with to_json instead of json.dumps by @Kludex in #6045
  • Add TypeAdapter for EvaluatorContext by @hon-gyu in #3373

🐛 Bug Fixes

  • Convert ExceptionGroup-wrapped tool errors to ModelRetry in MCPToolset by @dmontagu in #6004
  • fix: prevent cancel() from flipping complete state on finished stream by @Oxygen56 in #5795
  • fix(temporal): add return type annotation to PydanticAIPlugin.__init__ by @syf2211 in #6065
  • fix(anthropic): support Bedrock token counting by @dyscott in #5480

New Contributors

Full Changelog: v2.0.0...v2.1.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.