Skip to content

pydantic-ai

v2.3.0 Feature

This release adds 1 notable feature 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, fix, and πŸš€ Features across a mixed release.

Full changelog

What's Changed

πŸš€ Features

  • Add native Z.AI (Zhipu AI) provider with thinking support by @eliasaronson in https://github.com/pydantic/pydantic-ai/pull/4273

πŸ› Bug Fixes

  • fix(test): set provider_name on TestModel non-streaming responses by @syf2211 in https://github.com/pydantic/pydantic-ai/pull/6066
  • Keep Bedrock tool results non-empty for empty lists by @Whning0513 in https://github.com/pydantic/pydantic-ai/pull/6155
  • fix(huggingface): don't silently drop file content in tool returns by @HaozheZhang6 in https://github.com/pydantic/pydantic-ai/pull/5881
  • fix: skip OpenAI thinking-only chat history messages by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6182
  • Don't send defer_loading without tool_search on models without native tool search by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6144
  • Route remaining instrumentation serialization through safe_to_json by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/6073
  • fix: reconstruct multimodal ToolReturnPart.content via a ToolReturnContent discriminator by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6191
  • Fix AGUIAdapter.dump_messages reordering ToolReturnPart after UserPromptPart by @amarjaleelbanbhan in https://github.com/pydantic/pydantic-ai/pull/5969
  • fix: track new_messages() boundary by position so a rebuilt resumed request isn't leaked by @klplentific in https://github.com/pydantic/pydantic-ai/pull/6034
  • Preserve tool_kind in Vercel AI and AG-UI message round-trips by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/5873
  • Make durable-exec MCP get_tools caching replay-deterministic by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5883
  • Preserve FilePart.content.vendor_metadata in AG-UI and Vercel AI adapter round-trips by @Navaneethp007 in https://github.com/pydantic/pydantic-ai/pull/6095
  • Resolve dynamic toolset get_instructions in an activity under Temporal by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5925

New Contributors

  • @Whning0513 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6155
  • @eliasaronson made their first contribution in https://github.com/pydantic/pydantic-ai/pull/4273
  • @amarjaleelbanbhan made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5969
  • @klplentific made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6034
  • @Navaneethp007 made their first contribution in https://github.com/pydantic/pydantic-ai/pull/6095

Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v2.2.0...v2.3.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]