Pydantic AI v2.49.0 (2026-09-23)
Pydantic AI v2.49.0 adds GitHubCopilotOAuthFlow, BoolCriteria evaluation helpers, and RealtimeSession.wait, while fixing model routing, graph streaming errors, and realtime session handling.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Pydantic AI release v2.49.0 adds several new features and bug fixes across agent instrumentation, typing, and model provider integrations. Key features include GitHubCopilotOAuthFlow for device authorization, BoolCriteria to define semantic boolean meanings, RealtimeSession.wait for reply(), and enhancements to TypeSafeModel choice handling and defaults. Key fixes address graph streaming node error exposure in graph.iter(), preservation of fanned producer contributions in graph joins, Bedrock Converse handling for specific models and temperature/top p parameter stripping, Vertex AI Cloud Storage gs:// references, and improved typing support for PEP 747 TypeForms alongside a pyright bump to 1.1.414.
可执行摘要
Pydantic AI v2.49.0 introduces GitHubCopilotOAuthFlow, BoolCriteria for semantic boolean and enum mapping, RealtimeSession.wait for reply(), and updates to TypeSafeModel handling. Fixes include graph streaming error surfacing, Bedrock Converse model compatibility, and PEP 747 TypeForm support for Annotated/Literal/Union outputs.
- Agent 实用度
- 82/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade to pydantic-ai v2.49.0 via your dependency manager.
- Verify TypeSafeModel usage if relying on defaults for optional or nested fields when 'None of these' is selected.
- Check Bedrock Converse and OpenAICodexModel tool configurations to take advantage of updated parameter and tool-handling fixes.