Pydantic AI v2.62.0 (2026-10-26)
Pydantic AI v2.62.0 introduces mid-conversation thinking effort adjustment, new granular error categories, and SubAgent task control (backgrounding, steering, and cancellation). It also includes breaking changes for GraphBuilder replay order and MCP tool naming.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Pydantic AI released v2.62.0 with key feature updates and compatibility notes: - Mid-conversation thinking effort adjustment: Enabled via OpenAI config update and Anthropic per-message output config, tracked via ModelSettingsDeltaPart. - Error handling: Added ModelRequestRejectedError, ModelAuthenticationError, and ModelNotFoundError. - SubAgents task control: Lets models background, steer, answer, and cancel delegated SubAgent tasks. - MCP improvements: Hosted MCP capability tool names are now prefixed with the service name by default (configurable via tool prefix), and URL MCPToolsets without an ID default to their hostname. - Durable workflows: GraphBuilder broadcast branches now start in .to() order instead of reversed (potential replay breakage for paused workflows); run identity is preserved in Prefect capability replay; TemporalDurability allows running tools as Temporal child workflows. - Compaction and Memory: SummarizingCompaction stores summaries as CompactionPart instead of system prompts; added CompactOnRequest and Anthropic native compaction support.
可执行摘要
Pydantic AI v2.62.0 updates conversation management and durable execution. It adds mid-conversation thinking effort updates via ModelSettingsDeltaPart, new model error classes (ModelRequestRejectedError, ModelAuthenticationError, ModelNotFoundError), and SubAgent background task steering. Breaking/compatibility changes include starting GraphBuilder broadcast branches in .to() order, prefixing hosted MCP tool names…
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Verify durable workflow replay if upgrading with in-flight workflows paused across GraphBuilder broadcast branches due to execution order changes.
- Update MCP tool integration logic if relying on un-prefixed hosted MCP tool names, or set explicit tool prefixes.
- Handle new model error types (ModelRequestRejectedError, ModelAuthenticationError, ModelNotFoundError) in exception handling blocks.
- Migrate deprecated CodeMode monty sandbox url to CodeMode(monty sandbox=...) and Harness cache ttl settings.