返回全部动态

PydanticAI 发布 v2.47.0:兼容性调整与多项修复

原标题:v2.47.0 (2026-09-21)

PydanticAI Releases一手来源开源质量 60

AI 摘要

PydanticAI 发布 v2.47.0 版本,主要包含兼容性调整、新功能与多项 bug 修复。兼容性方面,将 None 输出路由命名为 None 而非 NoneType,并在 UserPromptPart.content 非字符串或序列时抛出错误而非静默发送字典键。新功能方面,TypeSafeModel 新增支持三种字段类型。此外修复了 tuple 输出字段、rubric 层级、None 路由识别等多项问题,并将 ag-ui-protocol 依赖固定为小于 1 的版本。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### ⚠️ Compatibility Notes * Name a `None` output route `None` rather than `NoneType` by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8590 * Raise when `UserPromptPart.content` is not a `str` or a sequence, instead of silently sending a `dict`'s keys by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8595 ### 🚀 Features * Ask three more field types `TypeSafeModel` can already


发布时间:2026-09-22 11:59
抓取时间:2026-09-22 12:23
来源机构:Pydantic
阅读原文github.com