Agent 基础设施官方发布自动监测

Pydantic AI v2.50.0 (2026-09-24)

Pydantic AI v2.50.0 introduces DecisionModel routing infrastructure, support for Gemini 3.8 realtime models, durable context indicators, and numerous realtime audio fixes.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

Pydantic AI v2.50.0 includes compatibility updates and new features centered on model routing and realtime sessions. Compatibility changes update how DecisionModel routes are named and queried, adjust ModelSelectionContext to append routed requests, expose ModelSelectionContext.prompt, and replace tool-call lean with an opt-in decision route threshold. New features include the DecisionModel base class (applied to TypeSafeModel), tracing via decide spans, OpenAI service tier exposure, RunContext durable workflow flags, and realtime support for gemini-3.8-live and gemini-3.8-live-extended-thinking. Bug fixes resolve several pricing inaccuracies (Anthropic 1-hour cache writes, realtime image input, and voice model audio seconds), fix realtime audio stream buffering and session rollback behavior across OpenAI and Gemini providers, and correct generic OutputSpec typing under mypy.

Agent 解析

可执行摘要

Pydantic AI v2.50.0 introduces breaking changes to decision model routing interfaces (ModelSelectionContext, route thresholds) and adds DecisionModel, TypeSafeModel decisions protocol support, Gemini 3.8 live models, and durable workflow detection via RunContext.

Agent 实用度
82/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Update routing logic to adapt to DecisionModel route name queries and the replacement of tool-call lean with the opt-in decision route threshold.
  • Review usages of ModelSelectionContext to handle the updated messages array and the new prompt attribute.
  • Update any exception or event handling referencing renamed decision types (e.g., ToolCallProposed renamed to UnfillableRoute under DecisionHandOff).
  • Verify pricing calculations if relying on Anthropic one-hour cache writes, realtime image inputs, or duration-billed audio.
分类

标签与路由

pydantic-aityped-agentspython
相关信号

继续阅读