PydanticAI v2.65.0 发布:新增 WebSocket 传输与 ConversationStore
原标题:v2.65.0 (2026-11-02)
AI 摘要
PydanticAI 发布 v2.65.0,为 OpenAI Responses 增加 WebSocket 传输,并新增 ConversationStore 以消息日志形式保存会话、通过 Conversation.revision 检测保存冲突。该版本还支持 GPT-5.6 及以上的 12 小时提示缓存保留、模型拒绝时在 ModelFallback 中回退到下一个模型,并修复了 Bedrock、Azure、Z.ai 等提供方的错误分类与 Temporal 重试逻辑。
正文节选
<!-- Release notes generated using configuration in .github/release.yml at a56a6d6f138d1e3a9c45a9697ea513bef47a6cea --> ## What's Changed ### ⚠️ Compatibility Notes * Protect the `gh-aw` canonical session capture from agent tools by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/10606 * Add multimodal notes to `AskUserAnswer` by @dsfaccini in https://github.com/pydantic/pydantic-ai/pull/11664 * Count `BrowserUse` model calls toward the host run's usage and `UsageLimits` by @mpfaffen