Skip to content

pydantic-ai

v2.1.0 Feature

This release adds 3 notable features for engineering teams evaluating rollout.

βœ“ No known CVEs patched
Read the diff β†’ Tool health β†’ What is this tool? β†’

✓ No known CVEs patched in this version

Topics

agent-framework genai llm pydantic python

Summary

AI summary

Updates πŸ› Bug Fixes, πŸš€ Features, and feat across a mixed release.

Full changelog

What's Changed

πŸš€ Features

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

πŸ› Bug Fixes

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

New Contributors

  • @lucaszhu-hue made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5982
  • @syf2211 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6065
  • @dyscott made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5480
  • @hon-gyu made their first contribution in https://github.com/pydantic/pydantic-ai/pull/3373

Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v2.0.0...v2.1.0

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track pydantic-ai

Get notified when new releases ship.

Sign up free

About pydantic-ai

AI Agent Framework, the Pydantic way

All releases β†’

Related context

Earlier breaking changes

  • v1.95.0 rename β€˜built-in tools’ to β€˜native tools’, deprecate old fields, register via capabilities=[NativeTool(...)]

Beta — feedback welcome: [email protected]