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
- →Update FastMCP dependency range to <4 by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6737
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
Maintenance (1) ›
- Update FastMCP dependency range to <4 by @adtyavrdhn in https://github.com/pydantic/pydantic-ai/pull/6737
Read the original announcement →
https://github.com/pydantic/pydantic-ai/releases/tag/v2.19.0
Related releases
- ADK-Python v2.9.0 enhances agent resilience, voice integration, and workflow management Google ADK (Python) Releases ·
- CrewAI 1.15.21 Release Introduces Telemetry and Resolves Multiple Bugs CrewAI Releases ·
- OpenAI Python Agents SDK v0.22.2 Released OpenAI Agents SDK (Python) Releases ·
- Pydantic-AI v2.42.0 Enhances GitHub Copilot Integration and Fixes Bugs Pydantic AI Releases ·
- OpenAI Agents Python SDK v0.22.1 enhances tools, guardrails, and voice features OpenAI Agents SDK (Python) Releases ·
- Pydantic-AI v2.41.0 Adds Image Generation API, Deprecates `fallback_model` Pydantic AI Releases ·