返回全部动态

PydanticAI 发布 v2.46.0:新增 TypeSafeModel 与实时会话改进

原标题:v2.46.0 (2026-09-18)

PydanticAI Releases一手来源开源质量 72

AI 摘要

PydanticAI 发布 v2.46.0 版本,新增 TypeSafeModel 对工具参数、联合输出类型及选项数量的填充与校验能力,并加入 RealtimeSession.wait_for_playback()、ModelProfile.supports_text_output、typesafe_boolean_threshold、Choices 辅助类等特性。同时修复了实时工具异常处理、Bedrock 自适应思考、网关模型 ID 误分类、实时响应计费等问题,并新增 TemporalDurability 事件流支持。

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

正文节选

<!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🚀 Features * Let `TypeSafeModel` fill a tool's arguments when Jev can express them by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8501 * Add `RealtimeSession.wait_for_playback()` and let the docs examples finish the reply before closing by @DouweM in https://github.com/pydantic/pydantic-ai/pull/8141 * Add `supports_text_output` to `ModelProfile`, and run `LLMJudge` and `GEval` o


发布时间:2026-09-19 11:51
抓取时间:2026-09-19 18:03
来源机构:Pydantic
阅读原文github.com