v2.19.0

payloadcms/payloadv2.19.0Jul 28, 2026by dsfaccini

AI Summary

Pydantic AI v2.19.0 improves error reporting by adding headers and retry metadata to HTTP errors and updates the FastMCP dependency.

Key Highlights

  • Added `headers` and `retry_after` to ModelHTTPError.
  • Updated FastMCP dependency range to <4.

New Features

  • Add `headers` and `retry_after` to ModelHTTPError
  • Update FastMCP dependency range

Full Release Notes

<!-- Release notes generated using configuration in .github/release.yml at main -->

## What's Changed
### 🚀 Features
* Add `headers` and `retry_after` to `ModelHTTPError`, populate from all provider SDKs by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/6733
### 🐛 Bug Fixes
* Re-assert absorbed external cancellation at run step boundaries by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6496
### 📦 Dependencies
* Update FastMCP dependency range to `<4` by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6737


**Full Changelog**: https://github.com/pydantic/pydantic-ai/compare/v2.18.0...v2.19.0