返回全部动态
PydanticAI v2.19.0 发布:增强错误信息与依赖更新
原标题:v2.19.0 (2026-07-27)
AI 摘要
PydanticAI 发布 v2.19.0 版本,新增了在 ModelHTTPError 中提供 headers 和 retry_after 字段的功能,并修复了运行步骤边界处外部取消处理的问题。同时更新了 FastMCP 依赖范围至 <4。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
<!-- 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 http
发布时间:2026-07-28 11:27
抓取时间:2026-08-02 00:30
来源机构:Pydantic