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
- crewAI 1.15.10 Patch Release CrewAI Releases ·
- LangGraph checkpoint-postgres 3.1.1 update LangGraph Releases ·
- LangGraph checkpoint-sqlite 3.1.1 released LangGraph Releases ·
- adk-python adds async non-blocking tool support Google ADK (Python) Releases ·
- Google ADK Python v2.6.0 adds features, fixes Google ADK (Python) Releases ·
- crewAI 1.15.9: Improved Tool Failure Reporting and Flow Events CrewAI Releases ·