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
- OpenAI Agents Python: Programmatic Tool Calling and SDK Enhancements OpenAI Agents SDK (Python) Releases ·
- crewAI 1.15.7: Security patches and observability improvements CrewAI Releases ·
- pydantic-ai v2.18.0 adds Anthropic/OpenRouter tool support, web access Pydantic AI Releases ·
- crewAI 1.15.6: Bug fixes and documentation updates CrewAI Releases ·
- Pydantic-AI v2.17.0: Cache OTel serialization, support arbitrary fields Pydantic AI Releases ·
- pydantic-ai v2.16.0 adds Model Armor and new Gemini models Pydantic AI Releases ·