python Pydantic AI Releases · · 2.19.0

Pydantic-AI v2.19.0 adds headers and retry_after to ModelHTTPError

sdkaiengineerpython-agentic
feature patch

Pydantic-AI version 2.19.0 introduces new fields, `headers` and `retry_after`, to the `ModelHTTPError` class, making error handling more informative by capturing details from various provider SDKs. This release also includes a bug fix related to external cancellation assertion and updates a dependency. These changes are aimed at improving robustness for developers integrating AI models with Pydantic.

  • Re-assert absorbed external cancellation at run step boundaries by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6496
Features (1)
  • Add headers and retry_after to ModelHTTPError, populate from all provider SDKs by @dmontagu in https://github.com/pydantic/pydantic-ai/pull/6733

Fixes (1)
  • Re-assert absorbed external cancellation at run step boundaries by @DouweM in https://github.com/pydantic/pydantic-ai/pull/6496
Read the original announcement →

https://github.com/pydantic/pydantic-ai/releases/tag/v2.19.0

Related releases