Skip to content

pydantic-ai

v1.96.1 Bugfix

This release fixes issues for SREs watching stability and regressions.

✓ 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

Omit input_fidelity when None for OpenAI image generation and honor the openai_system_prompt_role setting.

Changes in this release

Deprecation Medium

Deprecate Agent constructor prepare_tools, prepare_output_tools, event_stream_handler in favor of PrepareTools, PrepareOutputTools, ProcessEventStream capabilities

Deprecate Agent constructor prepare_tools, prepare_output_tools, event_stream_handler in favor of PrepareTools, PrepareOutputTools, ProcessEventStream capabilities

Source: llm_adapter@2026-05-21

Confidence: high

Bugfix Medium

Omit input_fidelity when None in image generation tool

Omit input_fidelity when None in image generation tool

Source: llm_adapter@2026-05-21

Confidence: low

Bugfix Medium

Respect openai_system_prompt_role in OpenAIResponsesModel

Respect openai_system_prompt_role in OpenAIResponsesModel

Source: llm_adapter@2026-05-21

Confidence: low

Full changelog

What's Changed

🆕 V2 Preparation (coming in June)

  • Deprecate Agent constructor prepare_tools=, prepare_output_tools=, event_stream_handler= in favor of PrepareTools, PrepareOutputTools, ProcessEventStream capabilities by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/5335

🐛 Bug Fixes

  • openai: omit input_fidelity when None in image generation tool by @pydanty[bot] in https://github.com/pydantic/pydantic-ai/pull/5415
  • openai: respect openai_system_prompt_role in OpenAIResponsesModel by @navalprakhar in https://github.com/pydantic/pydantic-ai/pull/5430

New Contributors

  • @pydanty[bot] made their first contribution in https://github.com/pydantic/pydantic-ai/pull/5415

Full Changelog: https://github.com/pydantic/pydantic-ai/compare/v1.96.0...v1.96.1

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]