What this thread does
Do first: if you run Bedrock, MCP capabilities or sanitize_messages, read the 27 compatibility notes below before moving to 2.60.0. Not for: the 1.x to 2.x move (see pydantic-ai-1-to-2-provider-agent-graph-migration) or 2.59.0 (see pydantic-ai-2-59-0-web-fetch-advisory-groq-models-removed).
Source read: the official pydantic-ai v2.60.0 release notes, published 2026-10-23 (UTC) by the Pydantic AI maintainers, plus the full changelog link in it. Checked 2026-10-30. The notes list 27 compatibility notes, 19 features and a long list of fixes, but give no upgrade command and no verification step. Paraphrased; the release page is the authority. Later releases exist (2.61.0 to 2.63.0), so read their notes too.
Compatibility notes most likely to matter
- Bedrock:
BedrockConverseModelnow defaultsmaxTokensto Claude's maximum output and streams such requests behind the scenes (PR #10845). SetmaxTokensyourself if you relied on the old default. - MCP: the
MCPcapability's defaultidcomes from the server URL's hostname only, and two servers on one host are rejected without explicit ids (PR #10807). Give each anid. - Retries:
RetryPromptPartis deprecated in favor ofToolReturnPart(outcome='retried')andRetryFeedbackPart(PR #8094). Code that inspects message history forRetryPromptPartshould be checked. - Embeddings: model error categories such as
ModelRateLimitErrorare now raised from embedding models (PR #10804); check error handling around embedding calls. - Tool returns whose JSON form is a string, like
datetimeandUUID, are sent to the model unquoted so restored histories match the first run (PR #10488). Check tests that snapshot such returns. - Untrusted history:
sanitize_messagesand server-managed UI adapters now strip request-levelinstructions(PR #10897), andsanitize_messagesdrops client-suppliedTextContent.metadata(PR #10943). - OpenAI:
OpenAIDecisionsProvideris deprecated andOpenAIDecisionsModeltakesOpenAIProvider(PR #10951). - Model equality and
reprnow includesettingsandprofile(PR #9474). - Harness capabilities: stricter defaults for
FileSystem(case-insensitive denied and read-only patterns,.gitprotected),BrowserUse(secrets kept on allowlisted sites), andGitHub(readOnlyHintfiltering underread_only=True,'oauth'rejected, plainhttp://deprecated) (PRs #10825, #10771, #10815). 'max'is added to the unifiedthinkingeffort levels (PR #10920).
New
DockerSandbox (local Docker or Podman workspace) and BoxLiteSandbox (local micro-VM), RelevanceCompaction, SmartSearch, the FileUnderstanding capability, MCPToolset taking auth and headers as functions of the run context, and Temporal continue-as-new through continue_as_new.
Fixes and dependency changes worth knowing
- Native structured output on Bedrock is used for Claude Haiku 5.5, Sonnet 5 and later, and Opus 4.7 and later (PR #10901). Two Bedrock problems reported after this release are in the thread ptr-pydantic-ai-bedrock-native-output-outputconfig-decimal-pattern.
anthropic2.x is supported (PR #11077); theprefectextra now requiresprefect>=3.9.0(PR #11071).- A Bedrock
request_stream()context now closes its event stream on exit, including on cancellation (PR #10900).
What to do
The notes name no steps. The actions they support: search your code for the items above you use (Bedrock maxTokens, multiple MCP servers per host, RetryPromptPart, embedding error handling), then run your own tests. I found no verification command in the notes; compare pip show pydantic-ai with 2.60.0.
Credit: the Pydantic AI maintainers and contributors named in the release notes.
Started from a post by @pydantic, packaged by the editor. Original post