pydantic-ai breaking changes
Updated December 4, 2026
On this page
Latest version 2.79.0, released December 4, 2026. Source repository
Its 2.55.0 release requires Python 3.11 or later. Python end of life dates.
- From 1.107.8 to 2.74.0: 294 breaking changes in 51 versions.
- From 0.8.0 to 2.74.0: 304 breaking changes in 54 versions.
pydantic-ai 2.74.0 breaking changes
- Behavior changed
NATIVE_TOOLS_REQUIRING_CONFIG
ComputerTool was added to NATIVE_TOOLS_REQUIRING_CONFIG, so code using it must also provide a computer tool. github.com - Behavior changed
openai_previous_response_id
Continuing through openai_previous_response_id without message_history now carries over the response's static instructions. Pass message_history, or set openai_responses_stable_instructions_as_input=False in the profile. github.com - Behavior changed
OpenAIProvider
Usage figures for gemini models streamed through OpenAIProvider now show the endpoint's final totals instead of their sum, so costs drop and UsageLimits token limits trigger later. github.com - Behavior changed
PlaywrightBrowser
Under the default enforced egress policy, pages no longer have these APIs and launched browsers start with them off. If your agent needs one, open an issue. github.com
pydantic-ai 2.73.0 breaking changes
- Behavior changed
Agent._override_root_capability
The private context variable now stores a (capability, injected) tuple, so code reading it directly must be updated. github.com - Behavior changed
Coder
Images read by Coder are capped at 1024 pixels on the longest side; use FileSystem(max_image_side=...) to control this. github.com - Behavior changed
Dataset
Evaluator fields with init=False are no longer written to Dataset files or schemas, so code relying on them there must change. github.com - Behavior changed
FallbackModel
A FallbackModel that relied on the rejected request to reach a later model now stays on the first model; list a supporting model first to keep the setting. github.com - Default changed
clai
The default model for clai and clai web changed from openai:gpt-5 to openai:gpt-6.1-sol. github.com - Configuration changed
Every extra that installs openai now requires openai 3.50.0 or later, so pins below that must be updated. github.com - Configuration changed
Installing the coder extra pulls in pillow>=12.3.0, so environments pinning older pillow must be updated. github.com
pydantic-ai 2.71.0 breaking changes
- Renamed
PeerNetwork
PeerNetwork is now named PeerConnection, so code that imports or references PeerNetwork must be updated. github.com - Behavior changed
A run with content queued at a DeferredToolRequests or PendingModelResponse pause now stays paused, and BackgroundTools waits for its tasks at a DeferredToolRequests pause. github.com - Behavior changed
CodeMode
Under CodeMode(tools='all'), approval-required and external tools are kept as native tools rather than being routed through code. github.com
pydantic-ai 2.70.0 breaking changes
- Behavior changed
For forced tool choice on OpenRouter's qwen/qwen3.8-flash, the model now falls back to 'auto' or raises ModelRequestRejectedError, where requests were previously sent with the forced choice. github.com - Behavior changed
Requests that send tools to GPT-6 models with reasoning enabled now raise ModelRequestRejectedError before being sent, instead of being sent to the API. github.com - Behavior changed
IncompleteToolCall
When the token limit cuts off an output tool call, IncompleteToolCall is raised right away instead of the request being retried. Code that caught or relied on the retry must be updated. github.com - Behavior changed
ModelFallback
For a ModelFallback attempt, get_instructions and get_model_settings are now re-run for the model that serves that attempt. github.com - Behavior changed
RepoContext
Nested traversal in RepoContext now skips node_modules, .venv and other package directories. Use nested_exclude to control which directories are skipped. github.com - Behavior changed
supported_image_media_types
File input is now checked by media type using supported_image_media_types, supported_audio_media_types and supported_video_media_types, which changes which files are accepted. github.com
pydantic-ai 2.69.0 breaking changes
- Removed
RequestInput
RequestInput no longer exists as a separate type. Its handler behaviour now lives in HandleDeferredToolCalls, whose handler can take a resume token. github.com - Renamed
BubblewrapSandbox
Use BubblewrappedWorkspace in place of BubblewrapSandbox. github.com - Renamed
DockerSandbox
The harness capability is now DockerContainer. DockerSandbox remains only as a deprecated alias. github.com - Behavior changed
Gemini IMAGE_RECITATION and TOO_MANY_TOOL_CALLS finish reasons now map to content_filter and error. Code that matched the old finish reasons may need updating. github.com - Behavior changed
Dataset
Dataset files now save keyword-only evaluator arguments by name, and the positional spec schema form for keyword-only parameters is dropped. github.com - Behavior changed
ModelContextWindowExceededError
Only Mistral 3059 prompt-too-long errors raise ModelContextWindowExceededError now. Other 3051 invalid-argument errors no longer do. github.com - Behavior changed
TestModel
TestModel integers now satisfy mixed inclusive and exclusive bounds and fractional bounds, so generated values may differ from before. github.com - Behavior changed
TextOutput
Creating an agent with a TextOutput function that takes a model, dataclass or TypedDict now raises an error. github.com - Default changed
FunctionToolset
The strict, sequential, defer_loading and include_return_schema defaults of FunctionToolset now also apply to Tool instances. github.com
pydantic-ai 2.68.0 breaking changes
- Renamed
Sub-agent task-control events are renamed with the Event suffix and past-participle names, and gain agent_name and parent_task_id fields. Code matching the old event names should switch to the new names. github.com - Renamed
CapabilityEvent
CapabilityEvent fields are renamed to *_count, *_name, duration_ms and previous_item. Update code that reads the old field names. github.com - Renamed
max_duration_secs
The max_duration_secs parameter is renamed to max_duration_seconds. Update calls that pass max_duration_secs. github.com - Renamed
num_results
The num_results parameter is renamed to max_results. Update calls that pass num_results. github.com - Behavior changed
Text in user and tool content that looks like an application frame is now noted rather than escaped. Output for such content may differ. github.com - Behavior changed
AskUser
Approvals and answers are now requested inside the run with RequestInput, and AskUser is placed on the deferred pipeline. Deferred calls are marked with kind and answered_by, so code handling deferred calls may need updating. github.com - Behavior changed
ModelFallback
A response cut off at max_tokens now triggers fallback to the next model in ModelFallback instead of being returned as-is. Code that relied on receiving the truncated response must handle the new OutputTokenLimitExceeded case. github.com - Behavior changed
WorkspaceBackendSuite
Workspace backends are now required to leave detached processes running, and WorkspaceBackendSuite checks this. Custom backends that stop such processes will no longer conform. github.com
Older versions
49 older versions, each with its first changes. Sign up to see every change
Show 49 older versions
pydantic-ai 2.67.0 breaking changes
- Renamed
Provider-specific native-tool fields now go in provider_settings. Update code that sets them as direct fields. github.com - Behavior changed
Documents of any media type that mimetypes knows are sent, with the format taken from it. Check code that relied on the previous set of document types. github.com
And 11 more in this version.
pydantic-ai 2.66.0 breaking changes
- Behavior changed
When citations are requested, Anthropic's 20260209 web tools are now called directly on the Anthropic API rather than through the previous path. Check code that relies on the old routing. github.com - Behavior changed
Session instructions are now re-resolved before each model turn, and their changes are sent as appends. Code that assumed instructions were fixed for the session may behave differently. github.com
And 4 more in this version.
pydantic-ai 2.65.0 breaking changes
- Behavior changed
Temporal stops retrying subclasses of non-retryable errors, such as ContentFilterError or UserError subclasses, which were previously retried. github.com - Behavior changed
Google requests now send a server deadline of at least 20 minutes instead of the client's read timeout, so the effective timeout differs from before. github.com
And 5 more in this version.
pydantic-ai 2.64.0 breaking changes
- Behavior changed
Model.accepts_server_state
Stored response, item, conversation and container IDs are now sent back only to the endpoint that created them, controlled by Model.accepts_server_state. Code that relied on sending them to other endpoints must opt in. github.com - Behavior changed
ModelHTTPError
An error status that a retrying transport gives up on is now raised as ModelHTTPError, so fallback moves on to the next model. Code that catches other exceptions for that case must catch ModelHTTPError instead. github.com
And 5 more in this version.
pydantic-ai 2.63.0 breaking changes
- Behavior changed
A GPT-Live reply that delegated now ends at Live's next pause instead of mid-sentence when the backend answers. github.com - Behavior changed
Signed and encrypted history data is now replayed to providers sharing the same canonical_system. github.com
And 6 more in this version.
pydantic-ai 2.62.0 breaking changes
- Behavior changed
Forced tool_choice now raises on Gemini Live, and parallel_tool_calls=False now warns. Code that depended on these settings being silently ignored will change behavior. github.com - Behavior changed
Loaded deferred capabilities' instructions are now stated in the system voice and their changes appended, and shown to before_model_request. github.com
And 8 more in this version.
pydantic-ai 2.61.0 breaking changes
- Behavior changed
Bool and int inputs now take separate Literal decision branches in pydantic_graph, so graph routing for those inputs can change. github.com - Behavior changed
aws_cli
aws configure no longer writes to ~/.aws, service-list bypasses are stopped, and aws_cli output is capped. Code relying on those writes or long output must change. github.com
And 5 more in this version.
pydantic-ai 2.60.0 breaking changes
- Behavior changed
The agent's system_prompt and seeded history's system prompts are now sent to realtime sessions. github.com - Behavior changed
Tool returns such as datetime and UUID values are now sent unquoted, so the model sees a different form than before. github.com
And 20 more in this version.
pydantic-ai 2.59.0 breaking changes
- Removed
meta-llama.llama-4-maverick-17b-128e-instruct
The Groq model meta-llama/llama-4-maverick-17b-128e-instruct has been shut down and removed. Stop passing it to the package. github.com - Removed
meta-llama.llama-guard-4-12b
The Groq model meta-llama/llama-guard-4-12b has been shut down and removed. Stop passing it to the package. github.com
And 17 more in this version.
pydantic-ai 2.58.0 breaking changes
- Behavior changed
A native tool is now treated as unsupported when the model cannot apply its allowed_domains, blocked_domains, max_uses or external_web_access setting. github.com - Behavior changed
anthropic_cache
The profile's supports_auto_cache now decides anthropic_cache, and legacy AsyncAnthropicBedrock uses automatic caching for Claude Opus 4.7 and later. github.com
And 9 more in this version.
pydantic-ai 2.57.0 breaking changes
- Behavior changed
Gemini Live realtime sessions now take history, usage and reply waits from the session core. Code relying on the previous per-model handling of these may behave differently. github.com - Behavior changed
GPT-Live realtime sessions now take history, usage and reply waits from the session core. Code relying on the previous per-model handling of these may behave differently. github.com
And 2 more in this version.
pydantic-ai 2.56.0 breaking changes
- Removed
WarnNearLimits
WarnNearLimits is no longer part of the harness Coder capability, so code that references it must be updated. github.com - Behavior changed
MCPToolset
MCPToolset now leaves a user-supplied http_client open instead of closing it, so callers must close it themselves. github.com
And 2 more in this version.
pydantic-ai 2.55.0 breaking changes
- Removed
Python 3.10 installs now resolve to 2.54.0 and earlier, so users on Python 3.10 must upgrade Python to 3.11 or newer to get this release. github.com - Renamed
LogfireMCP
Tool names exposed by LogfireMCP now start with logfire_, so code that looks up the old tool names must use the prefixed names. github.com
And 10 more in this version.
pydantic-ai 2.54.0 breaking changes
- Behavior changed
Model errors from Temporal model activities are re-raised with their original type in workflow code, so except clauses matching the previous type may behave differently. github.com - Behavior changed
An agent now refuses to bind a second durable execution engine before either binds, so setups using two engines will fail. github.com
And 12 more in this version.
pydantic-ai 2.53.0 breaking changes
- Behavior changed
When function tool calls share a tool_call_id, the run now raises UnexpectedModelBehavior instead of running the wrong tool. github.com - Behavior changed
AbstractConcurrencyLimiter
A custom AbstractConcurrencyLimiter must allow release() to be called from a different task than the one that acquired the slot. github.com
And 3 more in this version.
pydantic-ai 2.52.0 breaking changes
- Renamed
ModalSandboxSession
Use ModalSandboxBackend in place of ModalSandboxSession. ModalSandbox's own tools are also replaced by a Modal workspace, so Coder, Shell and FileSystem now run in the sandbox. github.com - Renamed
resolve_prompt_cache_retention
Call resolve_cache_retention instead of resolve_prompt_cache_retention. github.com
And 8 more in this version.
pydantic-ai 2.51.0 breaking changes
- Behavior changed
Dated gemini-3.8-live ids are matched, google_affective_dialog is rejected at connect on Gemini 3.1 Flash Live and 3.8 Live, and Gemini Live close codes now raise RealtimeError. Code relying on the previous behavior may need changes. github.com - Behavior changed
tool_choice
A realtime tool_choice that forces a tool call now raises UserError on OpenAI, Azure OpenAI, and xAI. Code that forces tool calls must change its tool_choice setting. github.com
pydantic-ai 2.50.0 breaking changes
- Renamed
ToolCallProposed
ToolCallProposed was renamed to UnfillableRoute and now sits under a DecisionHandOff base. Code that imports or references ToolCallProposed must switch to UnfillableRoute. github.com - Behavior changed
DecisionModel
A DecisionModel now asks which route to take by name, with one label per route. Code that relied on the previous route selection must be updated. github.com
And 1 more in this version.
pydantic-ai 2.49.0 breaking changes
- Behavior changed
instrumentation_version
instrumentation_version now follows an explicit Instrumentation capability, so code that relied on the previous lookup may see different values. Add an explicit Instrumentation capability to keep the value in effect. github.com - Behavior changed
RunContext.tracer
RunContext.tracer now follows an explicit Instrumentation capability, so code that relied on the previous tracer lookup may see different tracing behavior. Add an explicit Instrumentation capability to keep tracing configured. github.com
And 1 more in this version.
pydantic-ai 2.47.0 breaking changes
- Behavior changed
The release renames the route for a None output from NoneType to None. Code that matches on the old NoneType route name must be updated. github.com - Behavior changed
UserPromptPart.content
Passing a value to UserPromptPart.content that is not a str or a sequence now raises an error instead of silently sending a dict's keys. Code that passed a dict must be changed to pass a supported type. github.com
pydantic-ai 2.46.0 breaking changes
- Behavior changed
TypeSafeModel
TypeSafeModel now refuses more options than Jev can pick from, so code that relied on the previous acceptance of such option sets may now fail. github.com
pydantic-ai 2.45.0 breaking changes
- Behavior changed
Each agent run's span now reports that run's own usage. Code that reads usage from spans may see different values. github.com - Behavior changed
One MCP server session is now held per durable run instead of one per durable unit. Durable code relying on separate sessions per unit may behave differently. github.com
And 1 more in this version.
pydantic-ai 2.44.0 breaking changes
- Behavior changed
UI adapter requests without a JSON Content-Type header are now rejected. Clients must send a JSON Content-Type on these requests. github.com - Behavior changed
@durable_operation
A capability @durable_operation called from a per-request hook is now dispatched rather than run inline. Code relying on inline execution may behave differently. github.com
And 2 more in this version.
pydantic-ai 2.42.0 breaking changes
- Behavior changed
DeferredToolResults.approvals
Invalid values passed in DeferredToolResults.approvals are now rejected instead of accepted. Check that code passes only valid approval values. github.com
pydantic-ai 2.38.0 breaking changes
- Behavior changed
One-off capabilities now get a default id and a combine rule when repeated, so code relying on their previous identity or repeat handling may behave differently. github.com
pydantic-ai 2.37.0 breaking changes
- Behavior changed
capabilities
Passing per-run capabilities= on DBOS now raises an error, matching Temporal. Move capabilities to the agent constructor instead. github.com
pydantic-ai 2.36.0 breaking changes
- Signature changed
durable_operation
The durable_operation decorator now requires an explicit operation name. Code that applies it without a name must pass one. github.com
pydantic-ai 2.35.0 breaking changes
- Behavior changed
TestModel
TestModel can now produce the inclusive maximum for integer fields, so generated test values may differ from before. github.com - Default changed
The default Temporal metric export frequency is now lower. Set it explicitly if you need the previous rate. github.com
pydantic-ai 2.33.0 breaking changes
- Behavior changed
AnthropicProvider
A custom http_client passed to AnthropicProvider must now be an httpx2.AsyncClient; legacy httpx clients are rejected by the 1.x Anthropic SDK. github.com
pydantic-ai 2.32.0 breaking changes
- Behavior changed
The package now uses httpx2 for compatible HTTP clients. Code that passes or depends on httpx clients may need to be updated to httpx2. github.com - Behavior changed
Blocking sync tools and hooks now run in a thread pool, and the timeout= setting is enforced on them. Code that relied on them running inline on the calling thread or ignoring timeout= should be reviewed. github.com
pydantic-ai 2.30.0 breaking changes
- Behavior changed
A deferred tool can no longer be called until it has been revealed and its capability loaded. Code that calls deferred tools without this step may now fail. github.com - Behavior changed
Agent.to_web
The local web chat UI rejects Host headers outside localhost, loopback and LAN addresses unless configured. Deployments reached under a real hostname must set the new allowed_hosts option. github.com
pydantic-ai 2.28.0 breaking changes
- Behavior changed
Agent.to_web
The development web chat endpoint now requires Content-Type: application/json and rejects other requests before the agent runs. Clients that send other content types must send JSON instead. github.com
pydantic-ai 2.27.1 breaking changes
- Behavior changed
InstrumentationSettings.include_content
Retry-prompt content sent back to the model is no longer included in OpenTelemetry output when include_content=False. Users who relied on seeing that content in traces must set include_content=True to keep it. github.com
pydantic-ai 2.26.0 breaking changes
- Behavior changed
CompactionPart
Requests now send only the compacted window, dropping history before the latest same-provider CompactionPart. Code that relied on the full history being sent must account for this. github.com - Behavior changed
supports_inline_system_prompts
OpenRouter requests are gated off native mid-conversation system messages when supports_inline_system_prompts=False. Code that depended on those messages being sent must set the option explicitly. github.com
pydantic-ai 2.24.0 breaking changes
- Behavior changed
ToolApprovalResponded.approved
ToolApprovalResponded.approved is now a StrictBool, so values that were coerced before, such as strings, must be passed as real booleans. github.com
pydantic-ai 2.22.0 breaking changes
- Behavior changed
Mid-conversation system prompts are now sent to Anthropic as native system messages instead of the previous format. Code that depends on the old message shape may behave differently. github.com - Behavior changed
A history processor or fallback_on handler with unresolvable type annotations now raises UserError. Fix the annotations so they resolve. github.com
And 3 more in this version.
pydantic-ai 2.15.0 breaking changes
- Behavior changed
Tool schemas with untyped arrays are now marked as not strict-compatible when sent to OpenAI, which can change how those tools are sent. github.com
pydantic-ai 2.14.0 breaking changes
- Removed
gemini-2.5-flash-lite-preview-09-2025
The Gemini model gemini-2.5-flash-lite-preview-09-2025 was shut down and removed, so code that selects it must switch to another model. github.com - Removed
gemini-3.1-flash-lite-preview
The Gemini model gemini-3.1-flash-lite-preview was shut down and removed, so code that selects it must switch to another model. github.com
pydantic-ai 2.10.0 breaking changes
- Behavior changed
message_history
message_history is repaired so tool-call and tool-result pairs are valid for providers without extra code. Code that relied on the history being passed through unchanged should be checked. github.com
pydantic-ai 2.7.0 breaking changes
- Behavior changed
AlibabaProvider
Document input is disabled for AlibabaProvider when using the Chat Completions API. Code that sends documents through this provider must change how it passes them. github.com
pydantic-ai 2.6.0 breaking changes
- Behavior changed
Native tool IDs that conflict within a single capability layer are now rejected. Code that relied on such conflicting IDs must give each native tool a unique ID. github.com
pydantic-ai 2.5.0 breaking changes
- Behavior changed
Agent spec inputs that are not objects, which were previously accepted, are now rejected. Pass agent specs as objects. github.com - Behavior changed
Runs that pass duplicate deferred tool call IDs, which were previously accepted, now fail. Make sure each deferred tool call ID is unique. github.com
pydantic-ai 2.4.0 breaking changes
- Renamed
preserve_file_data
The preserve_file_data option is split into allow_uploaded_files, which controls inbound security, and a separate AG-UI representation opt-in. Code using preserve_file_data must switch to the new option names. github.com - Behavior changed
max_concurrency
Passing a zero or negative max_concurrency to evals is now rejected instead of being accepted. Code that passes such values must use a positive number. github.com
pydantic-ai 2.0.0 breaking changes
- Removed
BuiltinToolCallEvent
Native tool calls no longer emit dedicated events and surface only through PartStartEvent and PartDeltaEvent. github.com - Removed
ModelProfile.update
ModelProfile is now a TypedDict, so use the module-level merge_profile function instead of update() and from_profile(). github.com
And 36 more in this version.
pydantic-ai 2.0.0b1 breaking changes
- Behavior changed
Add provider extras such as bedrock, groq or mistral explicitly to keep them working. github.com - Behavior changed
capture_run_messages
Messages from interrupted runs are now included in the captured output. github.com
And 9 more in this version.
pydantic-ai 1.107.8 breaking changes
- Behavior changed
MCP request traces no longer expose server URLs, authorization tokens, or header values, and URL-based MCP identifiers no longer carry embedded credentials. URL-based MCP activity names are unchanged for now; with Temporal tracing enabled... github.com
pydantic-ai 1.0.0 breaking changes
- Removed
Python 3.9 is no longer supported; users on Python 3.9 must upgrade their interpreter before using this release. github.com - Renamed
ModelResponse.price
Calls to ModelResponse.price() must be changed to ModelResponse.cost(). github.com
And 4 more in this version.
pydantic-ai 1.0.0b1 breaking changes
- Removed
Python 3.9 is no longer supported; users on Python 3.9 must upgrade their interpreter before using this release. github.com - Behavior changed
InstrumentationSettings
The default instrumentation version is now 2, so telemetry output changes unless the version is set explicitly. github.com
And 1 more in this version.
pydantic-ai 0.8.0 breaking changes
- Signature changed
AgentStreamEvent
The AgentStreamEvent type is now a union of ModelResponseStreamEvent and HandleResponseEvent. Code that relies on its previous shape may need updating. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.