pydantic-ai v2.1.0: Anthropic web tools, serialization, and bug fixes
sdkaiengineerpython-agentic
feature patch
Pydantic-ai has released version 2.1.0, introducing new features like Anthropic web tools for server-tool replay and improved instrumentation message serialization. Several bug fixes are also included, addressing issues with tool errors, streaming behavior, and Bedrock token counting. This release impacts developers integrating AI models with Pydantic, particularly those using Anthropic or Bedrock.
- →Add Anthropic _20260209 web tools with server-tool replay by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/4844
- →Add TypeAdapter for EvaluatorContext by @hon-gyu in https://github.com/pydantic/pydantic-ai/pull/3373
- →Convert ExceptionGroup-wrapped tool errors to ModelRetry in MCPToolset by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/6004
- →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
Features (3) ›
- 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
Fixes (4) ›
- 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
Read the original announcement →
https://github.com/pydantic/pydantic-ai/releases/tag/v2.1.0
Related releases
- Pydantic-AI v2.35.3 Patch Release Addresses Several Bug Fixes Pydantic AI Releases ·
- pydantic-ai v2.35.2 Patches GLM Routing and Tooling Issues Pydantic AI Releases ·
- Google ADK Python v1.39.1 Patch Addresses Numerous Fixes Google ADK (Python) Releases ·
- LangChain LangGraph SDK 0.4.4 Released LangGraph Releases ·
- crewAI 1.15.18 Improves Conversational Flows and Agent Stability CrewAI Releases ·
- Pydantic-AI v2.35.1 Patch Release Addresses Key Bug Fixes Pydantic AI Releases ·