pypi pydantic-ai 2.16.0
v2.16.0 (2026-07-22)

6 hours ago

What's Changed

🚀 Features

  • Add mistral_prompt_cache_key setting and pass parallel_tool_calls to the Mistral SDK by @lionpeloux in #6654
  • Add ToolFailed for model-visible failures without retries by @adtyavrdhn in #5585
  • Add optional run_id= to agent runs, durable wrappers, and UI adapters by @grahamcracker1234 in #6615
  • Hoist openai_moderation to OpenAIChatModelSettings and expose Chat Completions moderation results in provider_details by @dsfaccini in #6658
  • feat(google): add Model Armor support for Google Cloud via GoogleModelSettings by @Alex-Resch in #5691
  • Add gemini-3.6-flash and gemini-3.5-flash-lite models by @dsfaccini in #6668

🐛 Bug Fixes

  • Raise a consistent ctx.enqueue() error inside durable units across Temporal, DBOS, and Prefect by @DouweM in #6666
  • Preserve $ref sibling keywords when inlining $defs by @lntutor in #6592
  • Guard ctx.enqueue() from an event_stream_handler inside DBOS steps / Prefect tasks by @DouweM in #6671
  • Preserve failed tool outcomes across AG-UI message round trips by @dsfaccini in #6659
  • Fix tool retry counts across skipped steps by @zcxGGmu in #6582

📦 Dependencies

  • Bump pillow, pyasn1, and setuptools to resolve Dependabot alerts by @hramezani in #6657

New Contributors

Full Changelog: v2.15.0...v2.16.0

Don't miss a new pydantic-ai release

NewReleases is sending notifications on new releases.