unstale

pypi / pydantic-ai-slim

pydantic-ai-slim

What changed in pydantic-ai-slim 1 to 2, from its official release notes, upgrade guides and advisories. Also covers pydantic-evals. Sources checked 2026-12-05.

196 breaking58 security47 deprecations664 new APIs and options11 performance183 behavior and defaults992 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

pydantic-ai-slim 21522 changes

Breaking changes 171

  • Runs remain paused when content is queued at DeferredToolRequests or PendingModelResponse pauses; BackgroundTools waits for its tasks at a DeferredToolRequests pause.

    2.71.0release notes

  • PeerNetwork is renamed to PeerConnection.

    2.71.0release notes

  • Peers(network) joins an InMemoryPeerNetwork under the agent's name; PeerNetwork is renamed to PeerConnection.

    2.71.0release notes

  • Fixes JSON output and reasoning flags; raises UserError for NativeOutput with function tools.

    2.70.0release notes

  • Raises immediately when the token limit cuts off an output tool call instead of retrying.

    2.70.0release notes

  • Fixes quadratic-time backtracking in the secret-redaction JWT pattern; the fixed pattern no longer matches JWTs whose header segment contains -eyJ.

    2.70.0release notes

  • Raised before OpenAIChatModel sends tools to GPT-6 models with reasoning enabled.

    2.70.0release notes

  • Its strict, sequential, defer_loading, and include_return_schema defaults now apply to Tool instances.

    2.69.0release notes

  • Raises Gemini API errors as their error category, such as ModelRateLimitError.

    2.69.0release notes

  • Gave-up transport status or connection errors from Google embeddings, image generation, and token counting are raised as ModelAPIError.

    2.69.0release notes

  • Now incorporates RequestInput, and its handler can take a resume token.

    2.69.0release notes

  • OpenRouter's flag is no longer counted as a usage detail.

    2.69.0release notes

  • Mistral 3059 prompt-too-long errors raise this error, while other 3051 invalid-argument errors do not.

    2.69.0release notes

  • Retrying transports that give up on an HTTP status now raise it as ModelHTTPError for the listed Gemini, embedding, image-generation, and batch paths.

    2.69.0release notes

  • Raises OpenAI API and connection errors as their error category, such as ModelRateLimitError.

    2.69.0release notes

  • Structured tool return items next to a file are sent to the model as JSON rather than escaped JSON strings.

    2.69.0release notes

  • Rejects functions taking a model, dataclass, or TypedDict when the agent is created.

    2.69.0release notes

  • Text in user and tool content that looks like an application frame is noted instead of escaped.

    2.68.0release notes

  • Renames outlier events to <Subject><PastParticiple>Event and adds STEP_PERSISTENCE_EVENTS.

    2.68.0release notes

  • Renames num_results to max_results and max_duration_secs to max_duration_seconds.

    2.68.0release notes

  • Workspace backends are required to leave detached processes running.

    2.68.0release notes

  • Runs are refused when directory is below operator authority.

    2.67.0release notes

  • Rejects tools named after Python builtins, which the sandbox would otherwise call instead of the tool.

    2.67.0release notes

  • Raises UserError for nodes that are not JSON Schemas.

    2.67.0release notes

  • Raises immediately instead of retrying when token limits truncate text that fails validation.

    2.67.0release notes

  • An OpenAI response without a history_digest is no longer continued through this setting.

    2.67.0release notes

  • Provider-specific native-tool fields move to provider_settings.

    2.67.0release notes

  • Raises UserError if a run_stream() run stops while finishing.

    2.67.0release notes

  • FunctionToolset(requires_approval=True) is now applied to Tool instances passed to the toolset.

    2.66.0release notes

  • Counts its model calls toward the host run's usage and UsageLimits.

    2.65.0release notes

  • Z.ai balance and plan-limit 429s now raise ModelQuotaExceededError instead of ModelRateLimitError.

    2.65.0release notes

  • Adds a way to prevent Temporal from retrying model errors that cannot succeed on retry; this is the default behavior.

    2.65.0release notes

  • Coder tool schemas are no longer strict by default; pass strict=True to opt in.

    2.64.0release notes

  • RealtimeEvent is removed from pydantic_ai.agent.__all__ because it cannot be resolved.

    2.64.0release notes

  • AdvisorTool is no longer offered on AsyncAnthropicBedrockMantle because that integration rejects it.

    2.63.0release notes

  • dynamic_catalog now defaults to true, so revealed tools are appended instead of rewriting the cached prompt.

    2.63.0release notes

  • A delegated GPT-Live reply ends at Live's next pause after the backend answers, rather than mid-sentence.

    2.63.0release notes

  • Harness LLMReminder now defaults to interval=10 instead of generating on every request.

    2.63.0release notes

  • MistralModel imports on fresh installs after requiring mistralai>=3.1.0 and dropping the legacy httpx import.

    2.63.0release notes

  • WebSearchTool and WebFetchTool are no longer offered on AsyncAnthropicBedrockMantle because that integration rejects them.

    2.63.0release notes

  • Adds monty_sandbox, accepting a remote Monty URL or a function that builds the pool.

    2.62.0release notes

  • Broadcast branches now start in .to() order instead of reversed; this can break replay of durable workflows paused across the upgrade.

    2.62.0release notes

  • An id-less URL MCPToolset uses its hostname as its id.

    2.62.0release notes

  • Stores the summary as a CompactionPart instead of a system prompt; provider-less CompactionParts are sent to every model.

    2.62.0release notes

  • Realtime shared settings now warn, raise, or ignore like standard ModelSettings; forced tool_choice raises on Gemini Live.

    2.62.0release notes

  • Hosted MCP capabilities prefix tool names with the service by default; the prefix is configurable.

    2.62.0release notes

  • Prohibited lists now reject hostnames that browser-use would match by exact hostname.

    2.61.0release notes

  • A file in a tool return now raises NotImplementedError instead of being silently dropped.

    2.61.0release notes

  • Redacts the user's own prompt and closes fail-open paths in guardrails.

    2.61.0release notes

  • Azure Responses API prompts blocked without content_filter_result now raise ContentFilterError.

    2.60.0release notes

  • Raises a clear UserError on Trio before making any E2B request.

    2.60.0release notes

  • Rejects auth='oauth'.

    2.60.0release notes

  • The default capability ID is derived only from the server hostname; multiple servers on one host require explicit IDs.

    2.60.0release notes

  • Embedding models now raise model error categories such as ModelRateLimitError.

    2.60.0release notes

  • The prefect extra now requires prefect>=3.9.0 so it imports on current FastAPI.

    2.60.0release notes

  • Request-level instructions are stripped from untrusted history and client-supplied TextContent metadata is dropped from user prompts.

    2.60.0release notes

  • Harness-added user-channel content is summarized as <harness_data> rather than as user messages.

    2.60.0release notes

  • Frames results as <tool_result> tool output instead of untagged user text.

    2.59.0release notes

  • CodeMode run_code now returns the value of BackgroundTools tools it calls instead of a started message.

    2.59.0release notes

  • Raises when model_id is overridden for elevenlabs_agents_llm in ElevenLabs Agents Realtime voice mode.

    2.59.0release notes

  • Raises when model_id is overridden for elevenlabs_agents_tts in ElevenLabs Agents Realtime voice mode.

    2.59.0release notes

  • Removed this shut-down Groq model.

    2.59.0release notes

  • A realtime session is no longer recorded as ended when a tool raises; the session goes on.

    2.59.0release notes

  • Escapes tool names in discovery announcements and no longer recognizes announcements by their text.

    2.58.0release notes

  • Events are emitted after store reads so DBOS recovery with an event_stream_handler replays in order; existing workflows may not recover after upgrading.

    2.58.0release notes

  • A GPT-Live connection drop without a reconnect policy raises RealtimeError instead of a raw websockets exception.

    2.58.0release notes

  • Now aligns with the exchange boundary that wait_for_reply() waits for; use PartEndEvents to react when a particular response ends.

    2.58.0release notes

  • Raises instead of returning a response when a model request hook rejects with ModelRetry.

    2.58.0release notes

  • A resumed 'suspended' response's usage is counted only in the run that produced it.

    2.58.0release notes

  • Native tool_search is no longer granted to this model.

    2.57.0release notes

  • BrowserUse now runs on the host model by default.

    2.56.0release notes

  • Exa payment-required errors are propagated instead of retried.

    2.56.0release notes

  • A 200 response with a text/plain body from OpenAI Responses, Anthropic, Groq, or OpenAI images now raises ModelAPIError.

    2.56.0release notes

  • WarnNearLimits has been removed from the harness Coder capability.

    2.56.0release notes

  • A deleted Sprite now raises WorkspaceUnavailableError during a command regardless of its exit code.

    2.56.0release notes

  • Raises ModelHTTPError or ModelAPIError instead of an ExceptionGroup, and maps botocore transport errors.

    2.55.0release notes

  • Prefixes tool names with logfire_.

    2.55.0release notes

  • Every package now requires Python 3.11 or newer; Python 3.10 installs resolve to 2.54.0 and earlier.

    2.55.0release notes

  • Responses no longer include the empty moderation stub.

    2.55.0release notes

  • A max_duration error ends the session instead of reconnecting into the same limit.

    2.55.0release notes

  • An unexpected tool exception ends the run, matching sequential tool behavior.

    2.54.0release notes

  • Model errors are re-raised in workflow code with their original type.

    2.54.0release notes

  • Hooks now enclose complete stage lifecycles.

    2.54.0release notes

  • Takes a slot on every call, even when called by the same task.

    2.53.0release notes

  • A model wrapper now raises UserError when it shares a limiter with the requesting agent or an enclosing model wrapper.

    2.53.0release notes

  • Raises this error for a thinking-only response refused by the content filter, instead of retrying.

    2.52.0release notes

  • Replaces ModalSandboxSession as the Modal sandbox backend, with harness tools running through a Modal workspace.

    2.52.0release notes

  • Raises ModelAPIError instead of ValidationError when a stream drops mid-response.

    2.52.0release notes

  • Renames resolve_prompt_cache_retention() to resolve_cache_retention().

    2.52.0release notes

  • Stops loading agent files by default.

    2.52.0release notes

  • Reject google_affective_dialog on Gemini 3.1 Flash Live and 3.8 Live at connect.

    2.51.0release notes

  • Raise RealtimeError for Gemini Live close codes.

    2.51.0release notes

  • Raise a UserError when realtime tool_choice forces a tool call on OpenAI, Azure OpenAI, or xAI.

    2.51.0release notes

  • Introduces a base for UnfillableRoute, renamed from ToolCallProposed.

    2.50.0release notes

  • The messages now end with the request being routed.

    2.50.0release notes

  • Offers an unfillable output_type as a route beside other routes and renames ToolCallProposed under the DecisionHandOff base.

    2.50.0release notes

  • Raises when content is not a string or sequence instead of silently sending a dictionary’s keys.

    2.47.0release notes

  • A capability durable operation called from a per-request hook is dispatched instead of silently running inline.

    2.44.0release notes

  • UI adapter requests must include a JSON Content-Type.

    2.44.0release notes

  • Invalid approvals values are now rejected.

    2.42.0release notes

  • Rejects per-run capabilities on DBOS, matching Temporal.

    2.37.0release notes

  • pydantic-ai v2.33.0 requires and supports anthropic>=1.0.0, avoiding runtime failures when that SDK version is installed.

    2.33.0release notes

  • When supplying a custom http_client, use an httpx2.AsyncClient; the 1.x SDK rejects legacy httpx clients at construction.

    2.33.0release notes

  • The workflow now fails on UnexpectedModelBehavior and FallbackExceptionGroup under the deprecated TemporalAgent.

    2.32.2release notes

  • Rejects calls from synchronous callbacks inside agent runs, preventing this unsupported usage.

    2.32.1release notes

  • Native structured output is denied for Claude Sonnet 5 and Fable 5 on Bedrock.

    2.31.1release notes

  • The local dev web chat validates Host against localhost, loopback, and LAN addresses by default; deployments using a real hostname must opt in with allowed_hosts.

    1.107.5, 2.30.0release notesrelease notessecurity advisory

  • A deferred tool must be revealed and its capability loaded before it can be called.

    2.30.0release notes

  • The web UI chat endpoint now requires Content-Type: application/json and rejects other requests before parsing the body or running the agent, preventing cross-origin requests from triggering tools.

    1.107.4, 2.28.0release notesrelease notessecurity advisory

  • An OpenRouter model that omits its provider prefix now raises a UserError.

    2.24.0release notes

  • Pydantic AI: Unbounded memory use when downloading remote content via web_fetch or FileUrl

    1.107.2, 2.24.0security advisoryrelease notesrelease notes

  • Vercel AI's ToolApprovalResponded.approved field is now a StrictBool.

    2.24.0release notes

  • TemporalDurability rejects unknown ActivityConfig keys.

    2.22.0release notes

  • Raises UserError when a history processor or fallback_on handler has unresolvable type annotations.

    2.22.0release notes

  • HookTimeoutError and FallbackExceptionGroup fail the workflow instead of retrying forever.

    2.22.0release notes

  • Rehydrates sets, carries conversation_id, and errors on omitted fields.

    2.22.0release notes

  • Durable runs reject unregistered Model instances instead of re-inferring them from model_id.

    2.22.0release notes

  • Moves openai_moderation to OpenAIChatModelSettings.

    2.16.0release notes

  • Removes this shut-down Gemini model.

    2.14.0release notes

  • Removes retired models and restores Gateway-supported models in KnownModelName.

    2.9.1release notes

  • Disables document input for AlibabaProvider when using the Chat Completions API.

    2.7.0release notes

  • The deprecated Bedrock gateway model is excluded.

    2.5.1release notes

  • Non-positive OnlineEvaluator.max_concurrency values are rejected.

    2.5.1release notes

  • Non-object agent specification inputs are now rejected.

    2.5.0release notes

  • Separates the AG-UI representation opt-in from inbound uploaded-file security.

    2.4.0release notes

  • Splits inbound file security from the AG-UI representation opt-in, allowing uploaded files to be controlled separately.

    2.4.0release notes

  • Drops the redundant description from ToolSearchMatch.

    2.4.0release notes

  • A model name without a provider prefix now raises UserError; supply a prefix such as openai:.

    2.0.0upgrade guide

  • Replaces tool_retries= and output_retries= with retries: int | AgentRetries.

    1.98.0, 2.0.0release notesupgrade guide

  • Agent behavior configured through several V1 arguments now uses composable capabilities for tools, hooks, instructions, and model settings.

    2.0.0upgrade guide

  • Use Agent.parallel_tool_call_execution_mode('sequential') in place of Agent.sequential_tool_calls().

    2.0.0upgrade guide

  • Use async with agent: in place of the removed server-running method.

    2.0.0upgrade guide

  • Run methods and override now configure output retries with retries={'output': N} instead of output_retries=N.

    2.0.0upgrade guide

  • Generic defaults for Agent, RunContext, and Tool changed from None to object when dependencies are not actually None.

    2.0.0upgrade guide

  • Replaces the HTTP client cache with create_async_http_client and a context manager.

    1.79.0, 2.0.0release notesupgrade guide

  • The listed Dataset.evaluate() and evaluate_sync() arguments are now keyword-only.

    2.0.0upgrade guide

  • A name is now required when constructing a Dataset.

    2.0.0upgrade guide

  • The default changed from 'early' to 'graceful', so function tools requested alongside a successful output tool now run instead of being skipped.

    2.0.0upgrade guide

  • Enforces the deps type on FunctionToolset.tool through a tool/tool_plain split.

    1.69.0, 2.0.0release notesupgrade guide

  • Run spans now report token usage under gen_ai.aggregated_usage.*; set use_aggregated_usage_attribute_names=False to retain V1 names.

    2.0.0upgrade guide

  • Use google: in place of the google-gla: model prefix.

    2.0.0upgrade guide

  • Use google-cloud: in place of google-vertex: and vertexai:.

    2.0.0upgrade guide

  • Google Vertex provider integrations now use pydantic_ai.providers.google_cloud.GoogleCloudProvider.

    2.0.0upgrade guide

  • The Google GLA provider is now pydantic_ai.providers.google.GoogleProvider.

    2.0.0upgrade guide

  • Use Graph.render() to render diagrams; pydantic_graph.mermaid was removed.

    2.0.0upgrade guide

  • Import GraphBuilder from pydantic_graph instead of pydantic_graph.beta.

    2.0.0upgrade guide

  • The default instrumentation version is now 5; versions 2–4 still work but warn, and the listed V1 settings were removed.

    2.0.0upgrade guide

  • MCP(url=...) now runs the server locally; set native=True to retain the V1 remote behavior.

    2.0.0upgrade guide

  • Per-transport MCP server classes are replaced by one toolset whose transport is inferred from its arguments.

    2.0.0upgrade guide

  • Use merge_profile(profile, other) in place of calling profile.update(other).

    2.0.0upgrade guide

  • ModelProfile and its subclasses are now TypedDicts, changing how developers read, mutate, merge, and check profiles.

    2.0.0upgrade guide

  • Use provider_details in place of vendor_details.

    2.0.0upgrade guide

  • Use provider_response_id in place of vendor_id and provider_request_id.

    2.0.0upgrade guide

  • This profile field is a sequence of setting names to drop, replacing the V1 boolean that covered sampling settings as a group.

    2.0.0upgrade guide

  • The openai: model prefix now selects the Responses API; use openai-chat: for Chat Completions.

    2.0.0upgrade guide

  • system_prompt_role is now configured through OpenAIModelProfile in the model profile rather than as a model argument.

    2.0.0upgrade guide

  • A prepare callback must return [] to strip all tools; returning None now raises TypeError.

    2.0.0upgrade guide

  • A bare install now includes fewer extras; add the provider or integration extras your project uses.

    2.0.0upgrade guide

  • The Google GLA provider import path changes from pydantic_ai.providers.google to pydantic_ai.providers.google_gla.

    2.0.0upgrade guide

  • The Google Vertex provider import path changes from pydantic_ai.providers.google_cloud to pydantic_ai.providers.google_vertex.

    2.0.0upgrade guide

  • Importing common removed names, or checking them with hasattr() or getattr(), raises an ImportError naming the replacement and linking the migration page; detect versions with try/except ImportError.

    2.0.0upgrade guide

  • run_stream_events() must be used as an async context manager before iterating events.

    2.0.0upgrade guide

  • Use RunUsage in place of Usage.

    2.0.0upgrade guide

  • sequential=True is now a per-tool barrier rather than a batch-wide serial switch, and also applies to output tools.

    2.0.0upgrade guide

  • The streamed response API replaces stream_structured; stream_response() yields bare ModelResponse values rather than (response, is_last) pairs.

    2.0.0upgrade guide

  • Usage token fields are now named input_tokens and output_tokens instead of request_tokens and response_tokens.

    2.0.0upgrade guide

  • Usage limit arguments now use input_tokens_limit and output_tokens_limit instead of request and response token limits.

    2.0.0upgrade guide

  • Web fetch is native-only by default; set local=True to use the local implementation.

    2.0.0upgrade guide

  • Web search is native-only by default; specify local='duckduckgo' to use the local implementation.

    2.0.0upgrade guide

  • Use xai: in place of the grok: model prefix.

    2.0.0upgrade guide

  • Grok provider integrations now use XaiProvider and the XAI model APIs.

    2.0.0upgrade guide

Security 49

  • Adds secret_env to Shell and masks the injected secrets in tool results.

    2.71.0release notes

  • Fixes quadratic-time ANSI escape removal when strip_ansi=True, preventing attacker-influenced tool output from occupying the event loop for tens of seconds to minutes.

    2.70.0release notes

  • Tool-schema reference inlining is protected against crafted schemas that could cause exponential time and memory use.

    2.66.0release notes

  • The local web-fetch tool checks domain allowlists before DNS resolution, preventing refused hostnames from reaching a nameserver.

    1.107.10, 2.66.0release notesrelease notes

  • Tool argument schema references are handled without repeated exponential expansion, protecting against crafted schemas that consume excessive time and memory.

    2.66.0release notes

  • Embedding spans no longer record the extra_headers and extra_body settings, preventing credentials in those settings from being exposed in exported traces.

    1.107.10, 2.66.0release notesrelease notes

  • URL downloads now block Tencent Cloud's instance metadata address, protecting temporary role credentials when local URLs are allowed.

    2.66.0release notes

  • Reloaded tool results that resemble serialized file types are no longer rebuilt as files, preventing unintended URL or object access using application credentials.

    1.107.10, 2.66.0release notesrelease notes

  • Egress policies check domain allowlists before DNS resolution, preventing refused hostnames from reaching a nameserver.

    2.66.0release notes

  • Local URL downloads now block Tencent Cloud's instance metadata address, protecting temporary role credentials.

    2.66.0release notes

  • JSON responses are no longer re-indented on the event loop before the returned-content limit is applied, preventing excessive memory use and event-loop delays.

    2.66.0release notes

  • Adds security scanning for agent Memory and Skills artifacts.

    2.64.0release notes

  • allowed_patterns is enforced against the real path when a single symlinked file is searched.

    2.63.0release notes

  • Redacts URL-encoded forms of secrets from browse_web results.

    2.61.0release notes

  • Redaction also rewrites the history prompt when the model was sent a copy.

    2.61.0release notes

  • Shares one container inside async with agent: and closes service-list bypasses and aws configure writes to ~/.aws.

    2.61.0release notes

  • Keeps secrets on allowlisted sites and out of tool results, and fixes allowlist and file:// gaps.

    2.60.0release notes

  • Matches denied and read-only patterns case-insensitively, protects .git files, and bounds reads and Python regex searches.

    2.60.0release notes

  • Refuses reads of non-regular files.

    2.60.0release notes

  • Steering is sent as a SystemPromptPart note and judge feedback as escaped <judge_feedback> data, both marked with metadata; the steering note is tied to its frame with a ref.

    2.59.0release notes

  • Fixed HTML conversion that could delay unrelated work when web_fetch_tool fetched attacker-controlled HTML containing many elements.

    1.107.9, 2.59.0release notesrelease notes

  • Provider-native MCP configuration no longer exposes server URLs, authorization tokens, or custom header values in OpenTelemetry request traces; URL-based MCP capabilities also no longer expose URL-embedded credentials in identifiers.

    1.107.8, 2.58.0release notesrelease notes

  • Vercel AI and AG-UI adapters no longer execute available tools with client-chosen arguments when server-side message history is non-empty and the system prompt is server-managed.

    2.58.0release notes

  • Requests made through MCPToolset with a supplied HTTP client now apply auth, and the user-supplied client is no longer closed.

    2.56.0release notes

  • Prevents commands from running code on the SSH host through shell startup files or the SSHWorkspaceBackend stop script's PATH.

    2.54.0release notes

  • Refuses a root owned by another user.

    2.54.0release notes

  • Custom implementations must allow release() from a task other than the one that acquired the slot.

    2.53.0release notes

  • Prevents planted files from escaping the sandbox on the next launch.

    2.53.0release notes

  • Fixes streamed requests retaining concurrency slots and blocking other requests sharing the limiter after early exits or fully consuming debounced stream_text().

    2.53.0release notessecurity advisory

  • Adds a sandbox harness capability; file methods are sandboxed and sockets are blocked when networking is disabled.

    2.52.0release notes

  • Applies default read-only patterns to nested .env and .git/ paths.

    2.52.0release notes

  • Pydantic AI: Excessive resource use when local web fetching converts nested HTML

    1.107.7, 2.52.0security advisoryrelease notesrelease notes

  • Fixes an IPv6 zone identifier bypass of cloud-metadata and private-IP blocklists when local network access is allowed.

    1.107.6, 2.44.0release notessecurity advisory

  • Fixes OpenTelemetry spans carrying exceptions, error statuses, instructions, and the output template when include_content=False.

    1.107.6, 2.44.0release notessecurity advisory

  • With content inclusion disabled, spans no longer carry exceptions, error statuses, instructions, or the output template.

    1.107.6, 2.44.0release notessecurity advisory

  • Pydantic AI: SSRF cloud-metadata blocklist bypass via IPv6 zone identifiers

    1.107.6, 2.44.0security advisoryrelease notes

  • Fixes superlinear HTML conversion and charset decoding that could let one attacker-chosen page stall every agent in the process.

    1.107.6, 2.44.0release notessecurity advisory

  • Fixes domain-list comparisons so a blocked domain cannot be reached using another spelling.

    1.107.6, 2.44.0release notesrelease notes

  • Fixes superlinear response processing in HTML conversion and charset decoding that could block the event loop.

    1.107.6, 2.44.0release notessecurity advisory

  • Cookies are now scoped to original hostnames when using safe_download.

    2.35.3release notes

  • The local dev web chat UI validates the Host header against localhost, loopback, and LAN addresses by default, preventing DNS rebinding from reaching the served agent.

    1.107.5, 2.30.0release notessecurity advisory

  • Retry-prompt content is now redacted when include_content=False, including retries not tied to a tool call, preventing information disclosure.

    1.107.4, 2.27.1release notessecurity advisory

  • Pydantic AI OpenTelemetry instrumentation: retry prompt content is not redacted when include_content=False

    1.107.4, 2.27.1security advisoryrelease notes

  • Fixes credential scoping and an ADC authentication environment-variable leak.

    2.23.0release notes

  • Redirect credential handling compares the full origin rather than only the hostname.

    2.22.0release notes

  • Fixes ALLOW_MODEL_REQUESTS guards for embeddings.

    2.20.0release notes

  • Adds Model Armor support for Google Cloud through GoogleModelSettings.

    2.16.0release notes

  • Non-crypto hashes are marked usedforsecurity=False as a FIPS precaution.

    2.9.0release notes

  • Adds inbound message-history hardening and fixes a vulnerability on the AG-UI serving path that could re-expose an unresolved tool call for execution.

    2.5.0release notes

Deprecations 19

  • Deprecates DEPRECATED_ANTHROPIC_MODELS, which Pydantic AI no longer uses.

    2.71.0release notes

  • Deprecates api_key in favor of auth.

    2.71.0release notes

  • The Advisor option is deprecated in favor of native= and local=.

    2.69.0release notes

  • Renames fields to *_count, *_name, duration_ms, and previous_item; old names remain deprecated aliases.

    2.68.0release notes

  • Task-control events use Event-suffixed, past-participle names and gain agent_name and parent_task_id fields; old names remain deprecated aliases.

    2.68.0release notes

  • Deprecates cache_ttl.

    2.62.0release notes

  • Deprecates monty_sandbox_url in favor of CodeMode(monty_sandbox=...).

    2.62.0release notes

  • Realtime shared settings now warn, raise, or ignore like standard ModelSettings; parallel_tool_calls=False warns.

    2.62.0release notes

  • Deprecated on GoogleRealtimeModel because no Gemini Live model supports it.

    2.61.0release notes

  • Deprecated; OpenAIDecisionsModel can now take OpenAIProvider.

    2.60.0release notes

  • Deprecated in favor of ToolReturnPart with outcome='retried' and RetryFeedbackPart.

    2.60.0release notes

  • This API is deprecated.

    2.53.0release notes

  • Deprecates inherit_tools.

    2.52.0release notes

  • Deprecates fallback_model in favor of fallback_subagent_model.

    2.41.0release notes

  • Deprecates available_capability_ids in favor of active_capability_ids.

    2.35.0release notes

  • Deprecates capability_loaded in favor of capability_active.

    2.35.0release notes

  • The Exa search common tools are deprecated in favor of the ExaSearch capability in Pydantic AI Harness.

    2.15.0release notes

  • Deprecates cerebras_disable_reasoning.

    2.0.0release notes

  • Deprecates method-style result.usage() in favor of the property-style result.usage.

    1.96.0, 2.0.0release notesupgrade guideupgrade guide

New APIs and options 405

  • Adds a setting for Anthropic message threads to specify the previous message ID.

    2.71.0release notes

  • Adds metadata to ConversationRecord, set with ConversationStore.update().

    2.71.0release notes

  • Adds title to ConversationRecord, set with ConversationStore.update().

    2.71.0release notes

  • Adds a capability to provide an agent today's date or the current hour in a chosen time zone.

    2.71.0release notes

  • Adds validated_args so an approver sees the arguments a deferred tool call will run with.

    2.71.0release notes

  • Adds a harness capability to answer deferred calls.

    2.71.0release notes

  • Keeps unattended runs working until a caller-defined completion check passes.

    2.71.0release notes

  • Supports Gemini 4 Neon (gemini-4-neon).

    2.71.0release notes

  • Tells the model when earlier assistant turns came from another model.

    2.71.0release notes

  • Adds routing of agent runs with ModelRouter.

    2.71.0release notes

  • Adds Otari as an OpenAI-compatible gateway provider.

    2.71.0release notes

  • Adds rules in Harness Permissions to allow, ask about, or deny tool calls and shell commands.

    2.71.0release notes

  • Tells the model how much of its usage limits and spend budgets is left on every request.

    2.71.0release notes

  • Tells the model when workspace files it read change or are deleted.

    2.71.0release notes

  • Sends an unhandled tool exception to the model as a failed tool result instead of ending the run.

    2.71.0release notes

  • Sends a coding agent back to run its checks when it tries to finish after an unverified edit.

    2.71.0release notes

  • Adds auth to StackOne to match other hosted MCP capabilities; api_key is deprecated.

    2.71.0release notes

  • Adds a provider for the Stav European inference gateway.

    2.71.0release notes

  • Keeps the tool list fixed behind tool_search, tool_describe, and tool_call so the prompt cache holds for large or changing tool sets.

    2.71.0release notes

  • Adds grep_tool_result for ToolOutputLimits spills.

    2.71.0release notes

  • Adds unit='bytes' reads for ToolOutputLimits spills.

    2.71.0release notes

  • Adds a harness capability to end a run with a final answer instead of UsageLimitExceeded.

    2.71.0release notes

  • Temporal activity-only workers can skip child workflow registration.

    2.70.0release notes

  • Includes the failed run's conversation; capture_run_conversation() can capture it so a failed turn can be stored.

    2.70.0release notes

  • Adds a request part describing what a capability tells the model, rendered before any model sees it.

    2.70.0release notes

  • Keeps nested scopes out of the Memory file listing.

    2.70.0release notes

  • Lets a parent inspect a running background delegation with check_task and a snapshot.

    2.70.0release notes

  • Adds support for the OpenAI gpt-6.2-sol and gpt-6.2-astra models.

    2.70.0release notes

  • Adds Hugging Face log-probability settings and returns logprobs in provider_details.

    2.70.0release notes

  • Can resume a finished sub-agent task.

    2.70.0release notes

  • Lets the model replace a tool result it just received with a summary.

    2.70.0release notes

  • Nested traversal can skip node_modules, .venv, and other package directories.

    2.70.0release notes

  • Adds a capability to retry the same model on transient model API errors.

    2.70.0release notes

  • Loaded skills can expose bundled files with read_files=True and substitute ${SKILL_DIR} placeholders.

    2.70.0release notes

  • Screens each streamed text, thinking, and tool-call part before the caller sees it.

    2.70.0release notes

  • Adds on_model_error= to choose retry or return for a failed sub-agent separately from on_failure.

    2.70.0release notes

  • File input can be judged by media type using supported image, audio, and video media type lists.

    2.70.0release notes

  • Adds durable to run a tool outside its durable unit on every durable execution engine.

    2.70.0release notes

  • Adds a tools selector for pre-search deferral.

    2.70.0release notes

  • Accepts native= and local= like other NativeOrLocalTool capabilities; mode is deprecated.

    2.69.0release notes

  • Can take a callable so a consultation budget can span several runs.

    2.69.0release notes

  • Adds an Anthropic data-residency setting.

    2.69.0release notes

  • Adds authority and path_authority to sandbox and SSHWorkspace capabilities.

    2.69.0release notes

  • Adds DynamicWorkflow(call_scheduler=) to decide when sub-agent calls start.

    2.69.0release notes

  • Adds os_policy= to set the sandbox clock and time zone.

    2.69.0release notes

  • Adds Coder(autonomy=...) and trims the default instructions.

    2.69.0release notes

  • Lets subclasses customize how sub-agent calls are scheduled.

    2.69.0release notes

  • Supports Gemini 4 Hydrogen (gemini-4-hydrogen).

    2.69.0release notes

  • Adds opt-in recursive node registration.

    2.69.0release notes

  • Adds service_tier support.

    2.69.0release notes

  • Adds a way to find retries in message history.

    2.69.0release notes

  • Adds SubAgent(keep_partial_output=) to pass the sub-agent's last text to the parent when its timeout or usage budget stops it.

    2.69.0release notes

  • Adds a MiniMax model profile used for MiniMax models on Bedrock and the listed providers.

    2.69.0release notes

  • Adds a profile setting to pair replayed tool-search calls and results when an API rejects unpaired calls.

    2.69.0release notes

  • Adds a model setting for the OpenAI safety identifier.

    2.69.0release notes

  • Adds a model profile flag to generalize response-scoped tool call IDs.

    2.69.0release notes

  • Answers over-budget and repeated tool calls instead of raising.

    2.69.0release notes

  • Adds the conversation_store option for loading and saving UI adapter conversations.

    2.68.0release notes

  • Adds a store for loading and saving UI adapter conversations.

    2.68.0release notes

  • Deferred calls are marked with kind and answered_by.

    2.68.0release notes

  • Adds a method to discover delegation tasks.

    2.68.0release notes

  • Adds a backend for the Gemini Decisions API.

    2.68.0release notes

  • Adds an exception for responses cut off at max_tokens.

    2.68.0release notes

  • Adds the RefineOutput harness capability.

    2.68.0release notes

  • Adds a way to ask for approvals and answers inside a run.

    2.68.0release notes

  • Supports running delegations to durable delegates as Temporal and DBOS child workflows.

    2.68.0release notes

  • Adds a per-command cwd to Workspace.run.

    2.68.0release notes

  • Adds child_workflow tool metadata for running tool calls as DBOS child workflows.

    2.67.0release notes

  • Adds support for Claude Fable 5.2.

    2.67.0release notes

  • Adds support for Claude Mythos 5.2.

    2.67.0release notes

  • Adds a way to change a message queued with enqueue before delivery.

    2.67.0release notes

  • Adds a client parameter.

    2.67.0release notes

  • Adds a setting that controls framing announcements; the <system> voice tag is announced only once a conversation needs it.

    2.67.0release notes

  • Adds support for Gemini 4 Carbon on GoogleModel.

    2.67.0release notes

  • Lists Claude Fable 5.2 on Bedrock and sends per-message effort to it on OpenRouter.

    2.67.0release notes

  • Adds support for this OpenAI image model.

    2.67.0release notes

  • Adds a capability for keyless web research.

    2.67.0release notes

  • Adds the Bedrock model names gateway/bedrock:global.moonshotai.kimi-k3 and gateway/bedrock:global.moonshotai.kimi-k3.1.

    2.67.0release notes

  • Adds a client parameter.

    2.67.0release notes

  • Adds a profile setting to handle special tokens in content on open-model routes by breaking them up and restoring them in model output.

    2.67.0release notes

  • Keeps Chat Completions response data that Pydantic AI does not map.

    2.67.0release notes

  • Supports OpenAI fast and ultrafast service tiers.

    2.67.0release notes

  • Caps inlined nested instructions at 32,000 characters per conversation by default.

    2.67.0release notes

  • Adds walk_up for walking up directories when locating repository context.

    2.67.0release notes

  • Adds a way to change the priority of a message queued with enqueue before delivery.

    2.67.0release notes

  • Supports task_control under Temporal and DBOS durability.

    2.67.0release notes

  • Supports the Anthropic web fetch tool through provider_settings.

    2.67.0release notes

  • Supports the Anthropic web search tool through provider_settings.

    2.67.0release notes

  • Adds per-path workspace authority lookup.

    2.67.0release notes

  • Adds Azure Durable Task durability to pydantic_ai_harness.

    2.66.0release notes

  • Lets server instructions be left out of the agent's instructions.

    2.66.0release notes

  • Adds OpenSandbox support for self-hosted agent workspaces.

    2.66.0release notes

  • Adds Pixeltable tools and memory storage to Harness.

    2.66.0release notes

  • Adds RenderSandbox support for running agent workspaces in Render sandboxes.

    2.66.0release notes

  • Adds a retries field to configure summarization compaction retries.

    2.66.0release notes

  • Adds Workspace.authority and AuthorityWorkspace for workspaces whose files the operator does not control.

    2.66.0release notes

  • Adds a setting for configuring allowed_callers on Anthropic web tools.

    2.65.0release notes

  • Adds a revision field to catch conflicting conversation saves.

    2.65.0release notes

  • Adds a store for keeping a conversation as a log of messages stored once.

    2.65.0release notes

  • Supports '12h' prompt cache retention for GPT-5.6 and later.

    2.65.0release notes

  • Adds WebSocket transport for OpenAI Responses.

    2.65.0release notes

  • Sends mid-conversation system prompts natively on OpenRouter OpenAI routes and supported Claude models.

    2.65.0release notes

  • AskUser answerers can now receive RunContext.

    2.64.0release notes

  • Adds a workspace that runs Coder, Shell, FileSystem, and other harness capabilities in a boxd machine.

    2.64.0release notes

  • Function evaluators are saved to Dataset files under the function's name.

    2.64.0release notes

  • Adds a model setting so a stream that never starts can fall back.

    2.64.0release notes

  • Online evaluation result events now include the scorer run ID attribute.

    2.64.0release notes

  • Online evaluation result events now include the scorer score type attribute.

    2.64.0release notes

  • The sticky option keeps a conversation on the fallback model that answered.

    2.64.0release notes

  • Adds a fallback capability, constructible from agent specs, for moving to another model when an attempt fails.

    2.64.0release notes

  • Records which model the agent sent each request to.

    2.64.0release notes

  • The dynamic system prompt decorator can append changes to keep the cached prompt.

    2.64.0release notes

  • Reports word timing for realtime speech on Azure AI Voice Live and ElevenLabs Agents.

    2.64.0release notes

  • Adds a per-attempt hook for preparing model requests.

    2.64.0release notes

  • Adds conversation-scoped harness reminders that stay in the message history.

    2.64.0release notes

  • Adds RetryModelRequest for use with model fallback and per-attempt request preparation.

    2.64.0release notes

  • Loads on-demand capabilities from code.

    2.64.0release notes

  • Support is added for ag-ui-protocol 1.0.

    2.63.0release notes

  • task_timeout bounds the duration of each evaluation task attempt.

    2.63.0release notes

  • A capability is available to interrupt repeated-action loops.

    2.63.0release notes

  • Gemini Live reconnect replay is passed to dial as a keyword-only replay argument.

    2.63.0release notes

  • The OpenAI gpt-6.1-terra model is now supported.

    2.63.0release notes

  • An IPython-based Code Mode is available alongside the Monty-based CodeMode.

    2.63.0release notes

  • UI adapters can use manage_message_history to avoid sending server-held history to the model twice.

    2.63.0release notes

  • Harness SpendLimits budgets can now be shared through PostgreSQL using PostgresSpendStore.

    2.63.0release notes

  • A public framing module provides wrap, neutralize_tags, and register_tag so extensions can frame their own tags.

    2.63.0release notes

  • Restricts tool_choice subsets on OpenAI Chat Completions while preserving the prompt cache.

    2.62.0release notes

  • Adds on-demand native message compaction for Anthropic models.

    2.62.0release notes

  • Adds a capability for provider batch API support.

    2.62.0release notes

  • TemporalDurability can run tool calls as child workflows using tool metadata.

    2.62.0release notes

  • Adds task_control to turn on SubAgents task control.

    2.62.0release notes

  • Lets the model request harness compaction at a natural break in the task.

    2.62.0release notes

  • OpenAI and Anthropic can change thinking effort mid-conversation; the change is recorded as a ModelSettingsDeltaPart.

    2.62.0release notes

  • Exports this helper from pydantic_ai.durable_exec for third-party durability engines.

    2.62.0release notes

  • Adds a capability hook for provider batch API support.

    2.62.0release notes

  • Adds a model error category for authentication failures.

    2.62.0release notes

  • Adds a model error category for models that cannot be found.

    2.62.0release notes

  • Adds a model error category for rejected requests.

    2.62.0release notes

  • Changed MCP server instructions can be appended, with instruction blocks cached behind a second cache point after static instructions.

    2.62.0release notes

  • Adds StructuredContent as user content, sent as its value to decision models.

    2.62.0release notes

  • Enables delegations to run as model-controllable background tasks that can be steered, answered, or cancelled.

    2.62.0release notes

  • Adds tool_prefix to the MCP capability to configure hosted MCP tool-name prefixes.

    2.62.0release notes

  • Hosted MCP capabilities now accept asynchronous auth functions.

    2.61.0release notes

  • Accepts transport=; httpx2 retry transports now receive their pool limits.

    2.61.0release notes

  • Adds the kimi-k3.1-pro model name.

    2.61.0release notes

  • Adds the kimi-k3.1-pro-highspeed model name.

    2.61.0release notes

  • Adds a WebRTC URL that carries webrtcfilter=on on Azure OpenAI.

    2.61.0release notes

  • Adds an audio-output capability flag so text-only realtime models default to text output.

    2.61.0release notes

  • Bounds background and shell job logs with a configurable maximum byte count.

    2.61.0release notes

  • Adds structured citations to text parts.

    2.61.0release notes

  • Adds a local BoxLite micro-VM workspace capability.

    2.60.0release notes

  • Adds a harness capability that runs the workspace in a local Docker or Podman container.

    2.60.0release notes

  • Adds the FileUnderstanding capability.

    2.60.0release notes

  • Adds lockdown to ask GitHub's server to withhold public content from users without push access.

    2.60.0release notes

  • A named instruction passed to a run can opt into on_change='append', keyed as run:<name>.

    2.60.0release notes

  • Accepts auth and headers as functions of run context, allowing each run to connect as its own user.

    2.60.0release notes

  • Opt in to recording who wrote a memory file through MetadataMemoryStore and Memory(write_metadata=...).

    2.60.0release notes

  • The context now includes usage limits, deadline, run and conversation identifiers, plus output retry count and budget.

    2.60.0release notes

  • Adds base_url and MOONSHOTAI_BASE_URL support.

    2.60.0release notes

  • Adds compaction that keeps, reduces, or drops older history steps according to a judge model's ranking.

    2.60.0release notes

  • Adds a harness capability for plain-English code search with a pluggable judge model.

    2.60.0release notes

  • Can now use a VM that the application already has.

    2.60.0release notes

  • Adds model profile flags for audio-file input and supported document media types; unreadable returned files are sent as notes.

    2.60.0release notes

  • Supports Temporal continue-as-new through continue_as_new.

    2.60.0release notes

  • The unified thinking effort levels now include 'max'.

    2.60.0release notes

  • Every mid-run change to tool population is now recorded as a ToolAvailabilityDeltaPart.

    2.60.0release notes

  • Adds unless_tool_kind to ToolDefinition and tool_name_for_kind to RunContext; instructions also receive the current step's tools.

    2.60.0release notes

  • Added an event so a realtime reply settles only with the response that answers it.

    2.59.0release notes

  • Added a workspace that runs Coder, Shell, FileSystem, and other harness capabilities in a Daytona sandbox.

    2.59.0release notes

  • Added a model for Eleven Realtime speech-to-speech models.

    2.59.0release notes

  • FileSystem tools now have registered tool kinds and typed call parts.

    2.59.0release notes

  • Can send a configurable copilot-integration-id via integration_id or GITHUB_COPILOT_INTEGRATION_ID.

    2.59.0release notes

  • Added a provider-neutral model error category.

    2.59.0release notes

  • Added for_category to construct a ModelHTTPError for a provider-neutral model error category.

    2.59.0release notes

  • Added provider-neutral model error categories.

    2.59.0release notes

  • Added on_change='append' to preserve dynamic instruction prefixes; FunctionToolset.instructions and instruction functions can opt into this behavior.

    2.59.0release notes

  • Added a lifecycle event recording what the user heard of ElevenLabs Agents replies they barged in on.

    2.59.0release notes

  • Added non_retryable_model_errors to stop Temporal retrying specified model error categories.

    2.59.0release notes

  • Added a warning for unavailable usage limits, distinguishing omitted provider usage from reported zero.

    2.59.0release notes

  • Steers a running delegated task.

    2.58.0release notes

  • UI adapter dispatch_request() accepts timeout=.

    2.58.0release notes

  • Runs realtime sessions on ElevenLabs Agents.

    2.58.0release notes

  • Sets how many times the provider SDK retries a request.

    2.58.0release notes

  • Sets a timeout covering all attempts and stream consumption of one model request.

    2.58.0release notes

  • Adds a provider that lets app users sign in with ChatGPT and use their plan.

    2.58.0release notes

  • Deletes answered tool rounds from the OpenAI Realtime conversation.

    2.58.0release notes

  • Requests reasoning summaries from the GPT-Live backend.

    2.58.0release notes

  • RealtimeConnection yields lifecycle events through this public module.

    2.58.0release notes

  • UI adapter run_stream_native() accepts timeout=.

    2.58.0release notes

  • UI adapter run_stream() accepts timeout=.

    2.58.0release notes

  • Provides the deadline for a run bounded with timeout=.

    2.58.0release notes

  • Set unknown_names='skip' to ignore include and exclude names that no library has.

    2.58.0release notes

  • Request-scoped system prompts are sent natively as Anthropic clear_at system messages.

    2.58.0release notes

  • Bounds a whole agent run.

    2.58.0release notes

  • Any module can define a ToolKind with typed tool parts, and unknown kinds remain loadable.

    2.58.0release notes

  • Adds a Harness reviewer that lets a model approve low-risk tool calls before a person sees them.

    2.57.0release notes

  • Adds dataset_name to EvaluationReport.

    2.57.0release notes

  • Adds a method to relay MCP Apps tool calls.

    2.57.0release notes

  • Adds read_resource_contents and forwards MCP Apps tool results to AG-UI and Vercel AI frontends.

    2.57.0release notes

  • Adds MetaProvider for Meta Muse models, with meta: using the Responses API.

    2.57.0release notes

  • GoogleModel supports Gemini 4 Argon, including long decode past the per-request output cap.

    2.56.0release notes

  • Adds PGTaskDurability based on pgtask for durable task execution.

    2.56.0release notes

  • Adds an integration for Render Workflows with Durable Execution engines.

    2.56.0release notes

  • Skills can layer project and personal libraries, name each skill's directory, and render a skill for a host command.

    2.56.0release notes

  • Adds a workspace that runs harness capabilities in a local smolvm microVM.

    2.56.0release notes

  • ZaiProvider accepts a base_url argument, allowing the provider endpoint to be set.

    2.56.0release notes

  • Seeds message_history into a WebRTC call.

    2.55.0release notes

  • Supports configuring semantic VAD, end-of-utterance detection, noise suppression, and echo cancellation.

    2.55.0release notes

  • Adds a unified setting and Caching capability for cross-provider prompt caching.

    2.55.0release notes

  • Adds support for this model.

    2.55.0release notes

  • Carries and stores a conversation between runs and is accepted as conversation= by every entry point.

    2.55.0release notes

  • Adds support on Bedrock Converse.

    2.55.0release notes

  • Ends a WebRTC call from the server on gpt-realtime and GPT-Live.

    2.55.0release notes

  • Places a prompt-cache breakpoint on the instructions.

    2.55.0release notes

  • Allows text-only GPT-Live sessions to work without a microphone.

    2.55.0release notes

  • A new backend supports image input.

    2.55.0release notes

  • Adds a hosted Postgres backend for media.

    2.55.0release notes

  • Adds a hosted Postgres backend for messages.

    2.55.0release notes

  • Records prompt-cache diagnostics; enabled by default for OpenAI Responses, with anthropic_cache_diagnostics as an opt-in.

    2.55.0release notes

  • Span attributes report prompt-cache health per conversation, and events are collapsed.

    2.55.0release notes

  • Bounds retained realtime audio, like retained images.

    2.55.0release notes

  • Adds a dedicated warning category for CodeMode's missing-return-schema warning.

    2.54.0release notes

  • Adds native to prefer the model's native web search.

    2.54.0release notes

  • Adds a web_search_tool factory for WebSearch(local=...).

    2.54.0release notes

  • Works on OpenAI GPT-Live through its delegated backend.

    2.54.0release notes

  • Adds AbsurdDurability to the harness as a replacement for pydantic-ai-absurd.

    2.53.0release notes

  • Questions can be deferred to the host, and slow answers can time out.

    2.53.0release notes

  • Exposes the message-history repair pipeline.

    2.53.0release notes

  • Adds a model for running decision models such as CLM and Laya over the /v1/systemone API.

    2.53.0release notes

  • Generated data now supports oneOf schemas.

    2.53.0release notes

  • Adds an API to assess tool calls before execution.

    2.53.0release notes

  • Supports browser WebRTC on OpenAI GPT-Live with a sideband session.

    2.52.0release notes

  • Models realtime asynchronous tool calls as a profile setting, alongside the shared async_tool_calls setting.

    2.52.0release notes

  • Adds an Azure AI Voice Live temperature setting.

    2.52.0release notes

  • Selects an Azure voice for Azure AI Voice Live sessions.

    2.52.0release notes

  • Adds support for Claude Sonnet 5.5.

    2.52.0release notes

  • Provides tools one API for files and commands across local machines and sandboxes, with durable execution support.

    2.52.0release notes

  • Adds a default cache-retention profile setting.

    2.52.0release notes

  • Adds a workspace that runs harness capabilities in an E2B sandbox.

    2.52.0release notes

  • Delivers images and text files returned from tools.

    2.52.0release notes

  • Allows image output on this model.

    2.52.0release notes

  • Adds support for the OpenAI gpt-6.1-sol model.

    2.52.0release notes

  • Emits identified response, turn, and input lifecycle events.

    2.52.0release notes

  • Adds a hook for processing provider details.

    2.52.0release notes

  • Accepts mxfp4, nvfp4, and mxfp8 quantization values.

    2.52.0release notes

  • Accepts exacto as a sort value.

    2.52.0release notes

  • Adds a helper for the prompt-cache cold window.

    2.52.0release notes

  • Adds a workspace that runs harness capabilities in a Fly.io Sprite.

    2.52.0release notes

  • Adds an SSH workspace harness capability.

    2.52.0release notes

  • Add OpenAI GPT-Live support with OpenAILiveModel.

    2.51.0release notes

  • Replaces the decision model's tool-call lean with an opt-in threshold.

    2.50.0release notes

  • Adds DecisionModel as a base for Decisions-protocol models and makes TypeSafeModel one.

    2.50.0release notes

  • Adds realtime support for this Gemini model.

    2.50.0release notes

  • Adds the routed request as a prompt on the model selection context.

    2.50.0release notes

  • Adds audio duration usage so duration-billed voice models can be priced.

    2.50.0release notes

  • Lets hooks detect when they run in durable workflow code.

    2.50.0release notes

  • Exposes OpenAI service_tier in provider details.

    2.50.0release notes

  • Adds a way to specify what a bool field's yes and no mean, including through a True/False Enum.

    2.49.0release notes

  • Offers whole-number choices that are not a rubric in TypeSafeModel.

    2.49.0release notes

  • Adds device authorization for GitHub Copilot OAuth.

    2.49.0release notes

  • Adds RealtimeSession.wait_for_reply().

    2.49.0release notes

  • Adds support for Claude Opus 5.5.

    2.48.0release notes

  • Adds support for the OpenAI gpt-6-luna model.

    2.48.0release notes

  • Adds support for the OpenAI gpt-6-sol model.

    2.48.0release notes

  • Adds support for new OpenAI audio models.

    2.48.0release notes

  • Adds a helper for a set of described options built at run time.

    2.46.0release notes

  • Adds a profile field and allows LLMJudge and GEval to run on a model without text output support.

    2.46.0release notes

  • Adds a method to wait for playback to finish before closing a realtime session.

    2.46.0release notes

  • Adds a topic for streaming agent events via Workflow Streams.

    2.46.0release notes

  • Adds a threshold for deciding when a yes/no answer counts as True.

    2.46.0release notes

  • TypeSafeModel can fill a tool's arguments when Jev can express them.

    2.46.0release notes

  • Enums mixing in this helper describe their options using their member docstrings.

    2.46.0release notes

  • Adds TypeSafeModel for TypeSafe's Jev.

    2.45.0release notes

  • Emits an event when a realtime session delivers enqueued content.

    2.44.0release notes

  • Adds a first-run banner describing the run and opens clai sessions with it.

    2.43.0release notes

  • Adds a provider for GitHub Copilot's OpenAI-compatible API.

    2.42.0release notes

  • Adds a direct image generation API.

    2.41.0release notes

  • Adds a provider for ChatGPT/Codex subscription authentication.

    2.41.0release notes

  • Adds RealtimeSession.enqueue() for out-of-band prompts from code driving the session.

    2.40.0release notes

  • Adds handle_barge_in=True to handle barge-in in the session.

    2.40.0release notes

  • Adds provider_factory to infer_realtime_model.

    2.40.0release notes

  • Adds the played_bytes parameter for handling barge-in in the session.

    2.40.0release notes

  • Adds @agent.on_event for registering event listeners on an Agent.

    2.40.0release notes

  • Adds played_audio_bytes for handling barge-in in the session.

    2.40.0release notes

  • Adds an API to update prices in the background.

    2.40.0release notes

  • Adds respond= to RealtimeSession.send(); a text turn solicits a reply.

    2.40.0release notes

  • Adds support for the OpenAI gpt-6-astra model.

    2.39.0release notes

  • UI adapter run methods now support CancellationToken.

    2.38.0release notes

  • Capabilities can emit typed events into the run event stream.

    2.38.0release notes

  • Adds support for the Claude Fable 5.1 model.

    2.38.0release notes

  • Adds support for the Claude Mythos 5.1 model.

    2.38.0release notes

  • Application code and capabilities can emit typed custom events into the run event stream.

    2.38.0release notes

  • Adds support for the gemini-3.8-flash model.

    2.38.0release notes

  • Adds context_window to ModelProfile.

    2.38.0release notes

  • Adds a profile flag to reject streams that do not include finish_reason.

    2.38.0release notes

  • Adds support for NativeOutput on DeepSeek's Responses API.

    2.38.0release notes

  • Adds an event subscription decorator for run event streams.

    2.38.0release notes

  • Adds a provider for vLLM servers.

    2.38.0release notes

  • Adds glm-5.3-flash as a supported model.

    2.37.0release notes

  • Adds the @durable_operation decorator for capabilities; it requires an explicit operation name.

    2.36.0release notes

  • Instruction parts now have a stable ID.

    2.36.0release notes

  • The clai command supports --mcp-config.

    2.36.0release notes

  • Adds a public backend API for third-party durable execution engines.

    2.36.0release notes

  • send_audio() now accepts async iterables.

    2.36.0release notes

  • The clai command supports tool-call streaming.

    2.36.0release notes

  • Adds a skill for migrating from LangChain.

    2.34.0release notes

  • Adds support for GLM-5.3.

    2.34.0release notes

  • Instrumentation version 6 emits tool results under role: 'tool'.

    2.32.0release notes

  • Adds support for the xAI attachment search lifecycle.

    2.32.0release notes

  • AGUIEventStream now has its own thread_id and run_id.

    2.31.0release notes

  • A UIEventStream can now be built without a run_input.

    2.31.0release notes

  • Adds the gemini-3.7-flash model.

    2.30.0release notes

  • Use openrouter:web_search for web search.

    2.30.0release notes

  • Exposes gRPC metadata on XaiProvider.

    2.30.0release notes

  • Adds the azure_voice_live setting for Azure AI Voice Live.

    2.29.0release notes

  • Adds realtime speech-to-speech support through Agent.realtime().

    2.28.0release notes

  • Adds browser WebRTC and server-sideband support for realtime speech-to-speech.

    2.28.0release notes

  • Adds the cerebras optional dependency group.

    2.28.0release notes

  • Adds the Crusoe provider.

    2.28.0release notes

  • Adds SnowflakeModel for Snowflake Cortex.

    2.27.0release notes

  • Adds SnowflakeProvider for Snowflake Cortex.

    2.27.0release notes

  • Adds xai_agent_count to XaiModelSettings.

    2.27.0release notes

  • Adds first-party run cancellation through AgentRun.cancel(), RunContext.cancel(), and RunCancelled.

    2.26.0release notes

  • Promotes the run_stream_events() iterator to a public handle with cancel() and run-state access.

    2.26.0release notes

  • Adds coverage and documentation for using DeepSeek V4 Flash via OpenAIResponsesModel and DeepSeekProvider.

    2.26.0release notes

  • Function tools can be hidden until revealed through tool search, load_capability, or ToolReturn.tools, using each provider's native deferral/addition channel.

    2.26.0release notes

  • Resolves effective prompt-cache retention from model settings.

    2.26.0release notes

  • Forwards xAI FileSearchTool collections search options.

    2.25.0release notes

  • Bedrock supports ModelSettings.extra_headers, allowing extra headers to be configured for Bedrock requests.

    2.23.0release notes

  • RunUsage now includes cost.

    2.23.0release notes

  • Adds ToolAvailabilityDeltaPart with native tool_addition and additional_tools rendering.

    2.23.0release notes

  • MCPToolset clients can use prefer_tasks to skip optional MCP tasks.

    2.22.0release notes

  • Adds is_tool_available for checking whether a tool is available.

    2.22.0release notes

  • Adds configurable max_retries.

    2.22.0release notes

  • Adds per_request_input_tokens_limit to UsageLimits so developers can limit input tokens per request.

    2.21.0release notes

  • Adds support for the Claude Opus 5 model.

    2.20.0release notes

  • Adds OpenAI Responses API reasoning.context support for the gpt-5.4, gpt-5.5, and gpt-5.6 families, defaulting to all_turns.

    2.20.0release notes

  • Adds headers to ModelHTTPError and populates it from all provider SDKs, making response headers available to developers.

    2.19.0release notes

  • Adds retry_after to ModelHTTPError and populates it from all provider SDKs, making retry timing available to developers.

    2.19.0release notes

  • AdvisorTool is now supported for Anthropic and OpenRouter.

    2.18.0release notes

  • A BedrockMantleProvider is added.

    2.18.0release notes

  • The location type accepts the multi-region locations 'us' and 'eu'.

    2.18.0release notes

  • WebSearchTool for OpenAI Responses gains the external_web_access option.

    2.18.0release notes

  • RequestUsage now supports arbitrary fields for upcoming genai-prices.

    2.17.0release notes

  • RunUsage now supports arbitrary fields for upcoming genai-prices.

    2.17.0release notes

  • Adds support for the gemini-3.5-flash-lite model.

    2.16.0release notes

  • Adds support for the gemini-3.6-flash model.

    2.16.0release notes

  • Adds the mistral_prompt_cache_key setting for Mistral models.

    2.16.0release notes

  • Passes parallel_tool_calls to the Mistral SDK.

    2.16.0release notes

  • Exposes Chat Completions moderation results in provider_details.

    2.16.0release notes

  • Adds an optional run_id= to agent runs, durable wrappers, and UI adapters.

    2.16.0release notes

  • Adds ToolFailed for model-visible failures that do not trigger retries.

    2.16.0release notes

  • DynamicToolset is wrapped in DBOS steps and Prefect tasks.

    2.15.0release notes

  • Explicit prompt caching is supported for gpt-5.6.

    2.15.0release notes

  • Adds the openai_moderation setting.

    2.15.0release notes

  • OpenAI Responses API moderation results are exposed in provider_details.

    2.15.0release notes

  • Adds register_legacy_workflows to DBOSDurability for clean DBOSAgent migration.

    2.15.0release notes

  • The tool-retry budget can be overridden at run, iter, or override time.

    2.15.0release notes

  • Adds DBOSDurability as a durability capability to replace deprecated wrapper agents.

    2.14.0release notes

  • Adds PrefectDurability as a durability capability to replace deprecated wrapper agents.

    2.14.0release notes

  • Mistral supports reasoning_effort via thinking settings.

    2.14.0release notes

  • Adds TemporalDurability as a durability capability to replace deprecated wrapper agents.

    2.14.0release notes

  • Adds a property to RequestUsage and RunUsage for accessing the cache hit ratio.

    2.13.0release notes

  • Adds a capability hook for agents.

    2.13.0release notes

  • Adds a capability hook for getting a model.

    2.13.0release notes

  • Adds an instrumentation setting to omit the model_request_parameters span attribute.

    2.13.0release notes

  • Adds a capability to raise a content filter error for non-empty content filter responses.

    2.13.0release notes

  • Adds a capability hook for resolving a model ID.

    2.13.0release notes

  • Adds DeferredToolCallEvent to AgentStreamEvent.

    2.12.0release notes

  • Adds DeferredToolResultEvent to AgentStreamEvent.

    2.12.0release notes

  • Emits an event when enqueued messages are delivered into the run.

    2.12.0release notes

  • Adds the Moonshot AI kimi-k3 model.

    2.12.0release notes

  • HistoryProcessor is now exported for developers to use.

    2.11.0release notes

  • Adds support for OpenAI background mode.

    2.10.0release notes

  • GPT-5.6 models and reasoning mode are added for OpenAI.

    2.9.0release notes

  • Tools and capabilities can access the run's usage limits through RunContext.

    2.9.0release notes

  • The clai CLI adds a slash command for cumulative token usage.

    2.9.0release notes

  • to_cli() can pass model for agents without a set model.

    2.8.0release notes

  • Supports the azure-responses:[model-id] shorthand for specifying a model.

    2.7.0release notes

  • Adds the xAI grok-4.5 model.

    2.7.0release notes

  • Adds model profiles for Writer, Z.AI, and Moonshot AI, and refreshes LatestBedrockModelNames.

    2.6.0release notes

  • Adds files support for Anthropic and OpenAI code execution tools.

    2.6.0release notes

  • Streaming model requests now record time-to-first-token.

    2.6.0release notes

  • Adds an agentic span-based evaluator for argument correctness.

    2.4.0release notes

  • Adds the GEval evaluator and standard quality metric rubrics for LLMJudge.

    2.4.0release notes

  • Adds standard quality metric rubrics for LLMJudge.

    2.4.0release notes

  • Adds an agentic span-based evaluator for maximum model requests.

    2.4.0release notes

  • Adds an agentic span-based evaluator for maximum tool calls.

    2.4.0release notes

  • Adds an agentic span-based evaluator for tool correctness.

    2.4.0release notes

  • Adds an agentic span-based trajectory evaluator.

    2.4.0release notes

  • Adds a native Z.AI (Zhipu AI) provider with thinking support.

    2.3.0release notes

  • Adds support for the Claude Sonnet 5 model.

    2.2.0release notes

  • The lifecycle argument can now be a factory function.

    2.2.0release notes

  • Adds a retry_options parameter to GoogleProvider.

    2.2.0release notes

  • Adds prompt and completions cost fields to OpenRouter.

    2.2.0release notes

  • Adds Anthropic _20260209 web tools with server-tool replay.

    2.1.0release notes

  • Adds a TypeAdapter for EvaluatorContext.

    2.1.0release notes

  • Adds cerebras_clear_thinking.

    2.0.0release notes

  • Adds support for the gemini-embedding-2 embedding model.

    2.0.0release notes

  • Adds google_task text-prefix conditioning for gemini-embedding-2 embeddings.

    2.0.0release notes

  • Adds the groq_reasoning_effort setting.

    2.0.0release notes

  • Configure the output retry budget on Agent, run methods, and override(); agent specs also accept output_retries.

    2.0.0upgrade guide

  • Configure output and tool retry budgets with a mapping; a bare integer sets both budgets. Agent specs accept an integer or a mapping with output and tools keys.

    2.0.0upgrade guide

  • Configure the tool retry budget on Agent.

    2.0.0upgrade guide

  • Adds the xai_max_turns model setting.

    2.0.0release notes

Performance 9

  • Makes the speculation scan of streamed code linear in its length.

    2.70.0release notes

  • Prefix filters can use an index.

    2.70.0release notes

  • Loading client-submitted messages no longer takes time proportional to the square of the number of parts, reducing event-loop delays.

    2.66.0release notes

  • Loading client-submitted messages no longer takes time proportional to the square of the number of parts, reducing event-loop delays.

    2.66.0release notes

  • Stores each message once instead of repeating history in every snapshot.

    2.58.0release notes

  • Stores each message once instead of repeating history in every snapshot.

    2.58.0release notes

  • The module is loaded only when an MCP capability needs it, halving import pydantic_ai time.

    2.55.0release notes

  • Validation no longer makes a Python call per JSON node.

    2.42.0release notes

  • OTel serialization is cached per message to avoid O(n²) instrumentation cost.

    2.17.0release notes

Behavior and default changes 116

  • Under CodeMode(tools='all'), approval-required and external tools remain native.

    2.71.0release notes

  • An HTTP 408 from a provider is raised as ModelTimeoutError.

    2.71.0release notes

  • SpendLimits budgets can resolve their usd or tokens ceiling per scope from the run context.

    2.70.0release notes

  • Harness FileSystem and Shell tools now run on Azure Durable Task and Render.

    2.70.0release notes

  • Can provision its CDP endpoint per run and attach to the default context.

    2.70.0release notes

  • Each flagged verdict is recorded as a prompt_injection flagged span.

    2.70.0release notes

  • Durability capabilities wait durably for a model error's retry_after before retrying a model request.

    2.70.0release notes

  • Forward service_tier to xAI and record the served tier in provider_details.

    2.70.0release notes

  • Settled sub-agent task histories stay in their saved files instead of every owner's memory.

    2.69.0release notes

  • Detects loops in streamed thinking, text, and tool call arguments.

    2.69.0release notes

  • Moves AskUser onto the deferred pipeline.

    2.68.0release notes

  • Uses the AI Gateway's streamed cost for BedrockConverseModel streams.

    2.68.0release notes

  • A CancellationToken fired from a workflow signal can cancel a Temporal durable run.

    2.68.0release notes

  • Uses the AI Gateway's streamed cost for GoogleModel streams.

    2.68.0release notes

  • Falls back to the next model when a response is cut off at max_tokens.

    2.68.0release notes

  • Runs semantic classification as durable operations so it works on Temporal.

    2.68.0release notes

  • Phrase matching strips default-ignorable characters and flags hidden variation selectors.

    2.67.0release notes

  • Documents can be sent for any media type known to mimetypes, with the format inferred from it.

    2.67.0release notes

  • Guardrail verdicts are recorded as durable operations.

    2.67.0release notes

  • Curates the known model names and provider model-name literals to models a user would pick.

    2.67.0release notes

  • Nested instruction files are surfaced when the model writes or edits in a directory.

    2.67.0release notes

  • Loads one instruction file per directory and nested files by default; Coder builds on those instructions.

    2.67.0release notes

  • Supports dynamic agents under durable execution.

    2.67.0release notes

  • Evaluations are checkpointed as a durable operation when the judge has an id.

    2.67.0release notes

  • When citations are requested, these web tools are called directly on the Anthropic API.

    2.66.0release notes

  • xAI Grok Voice speech timing is reported as segment timestamps.

    2.66.0release notes

  • Instructions are re-resolved before each model turn, and changes are delivered as appends.

    2.66.0release notes

  • Copies with keep_user_messages=True are recognized only by the marker on their text.

    2.66.0release notes

  • Sends Google a server deadline of at least 20 minutes instead of using the client's read timeout, and warns about httpx's 5 s default.

    2.65.0release notes

  • Falls back to the next model when a model refuses; ContentFilterError in fallback_on can match refusals.

    2.65.0release notes

  • Tool results are paired with the response that made the calls.

    2.64.0release notes

  • json-repair is now optional and is needed only by Coder and RepairToolArguments.

    2.64.0release notes

  • Stored response, item, conversation, and container IDs are sent only to the endpoint that created them.

    2.64.0release notes

  • A retrying transport that gives up now raises ModelHTTPError, allowing model fallback to proceed.

    2.64.0release notes

  • Evaluators are dispatched once per durable run instead of on every replay.

    2.64.0release notes

  • Plain functions are accepted as evaluators.

    2.64.0release notes

  • Signed and encrypted history data is replayed to providers that use the same canonical_system.

    2.63.0release notes

  • A deferred CombinedCapability loads as one capability, while its members retain their global ordering.

    2.63.0release notes

  • Strict schemas stay within Anthropic and OpenAI complexity limits, with non-strict output used as a fallback when no mode was chosen.

    2.63.0release notes

  • Delivers ctx.emit() events into the realtime session event stream.

    2.62.0release notes

  • Uses the Pydantic AI Gateway's reported cost for RequestUsage.cost.

    2.62.0release notes

  • Delivers realtime SystemPromptParts on each provider's operator channel.

    2.62.0release notes

  • Harness SystemReminders are built on request-scoped system prompts.

    2.62.0release notes

  • OpenRouter keeps the prompt cache when thinking effort changes mid-conversation via its configuration_update system message.

    2.62.0release notes

  • Caps command output.

    2.61.0release notes

  • Citations from Bedrock, OpenRouter, and xAI are normalized.

    2.61.0release notes

  • Makes durable-engine operation types, ParameterTransports, DurableRunContext, and run identity hooks public.

    2.61.0release notes

  • Replays citations in message history to the provider that produced them.

    2.61.0release notes

  • Warns when a session has capabilities implementing hooks it never calls.

    2.61.0release notes

  • Warns when a provider-specific thinking setting from a broader scope overrides thinking.

    2.61.0release notes

  • For models that cannot turn thinking off, thinking=False now sends the least thinking the model accepts.

    2.61.0release notes

  • AskUser and several other capabilities now have stable default IDs.

    2.60.0release notes

  • Defaults maxTokens to Claude's maximum output and streams requests of that size behind the scenes.

    2.60.0release notes

  • Appends the next hour to history instead of rewriting instructions, keeping the prompt cache.

    2.59.0release notes

  • The profile's supports_auto_cache decides whether automatic Anthropic caching is used; legacy AsyncAnthropicBedrock uses it for Claude Opus 4.7 and later.

    2.58.0release notes

  • Enqueued messages stream to Vercel AI and AG-UI frontends as history they send back but do not render.

    2.58.0release notes

  • WarnNearLimits warnings are sent as request-scoped system prompts.

    2.58.0release notes

  • With Temporal tracing enabled, pass an explicit id= to URL-based MCP after in-flight workflows complete; changing it renames the activities.

    2.58.0release notes

  • A native tool is treated as unsupported when the model cannot apply its domain, usage, or external web access settings.

    2.58.0release notes

  • Can return images and PDFs, and describes other binary files.

    2.58.0release notes

  • Warns when a model ignores settings such as timeout, max_retries, or stop_sequences.

    2.58.0release notes

  • BackgroundTools completions now receive namespaced origin and tool_call_id metadata.

    2.57.0release notes

  • Realtime history, usage, and reply waits now come from the session core.

    2.57.0release notes

  • Realtime history, usage, and reply waits now come from the session core.

    2.57.0release notes

  • Requests are priced at their reported service tier.

    2.57.0release notes

  • Browser-use telemetry is now opt-in.

    2.56.0release notes

  • The Google providers' default timeout is raised to 20 minutes.

    2.56.0release notes

  • Defaults to API version 2026-07-15 and applies parallel_tool_calls=False.

    2.55.0release notes

  • Raises warning events as Python warnings instead of dropping them.

    2.55.0release notes

  • When cache=True, Anthropic automatic caching also caches instructions and tool definitions.

    2.55.0release notes

  • Prompt caching is on by default in harness Coder.

    2.55.0release notes

  • Each failed attempt is recorded with its model, timing, error, and usage; rejected responses are counted in RunUsage.

    2.55.0release notes

  • The HTTPX2 client factory is now public.

    2.54.0release notes

  • A second durable execution engine on an agent is refused before either engine binds.

    2.54.0release notes

  • Embedder instances are compared by identity.

    2.54.0release notes

  • The default input transcription model changes from auto to gpt-live-transcribe; gpt-transcribe is also listed.

    2.54.0release notes

  • Reconnects dropped sessions by forking a stored session or replaying history.

    2.54.0release notes

  • Default to the OpenAI SDK's connection pool limits.

    2.54.0release notes

  • Inventory is disabled by default.

    2.54.0release notes

  • Images and documents from tool results are now sent to the delegated backend.

    2.53.0release notes

  • Google grounding web search queries are now counted in usage.

    2.53.0release notes

  • Removes the default ACP request limit.

    2.52.0release notes

  • Defaults max_tokens to the model's maximum output, streaming such requests behind the scenes.

    2.52.0release notes

  • Raises the default from 4096 to 16384 on Claude Sonnet 4.5 and later.

    2.52.0release notes

  • File tools now have a retry budget of 5, and scratch files are kept out of the project.

    2.52.0release notes

  • Seeds retained user audio on this Gemini Live model.

    2.52.0release notes

  • Seeds retained user audio and seeds tool calls and results as native function parts.

    2.52.0release notes

  • Harness capabilities now work through ctx.workspace in any workspace, locally or in a sandbox.

    2.52.0release notes

  • Maps the shared parallel_tool_calls setting to the GPT-Live backend model.

    2.52.0release notes

  • Maps the shared thinking setting to the GPT-Live backend model.

    2.52.0release notes

  • Emits a decide span for every request a DecisionModel sends.

    2.50.0release notes

  • Routes are asked for by name, with one label per route.

    2.50.0release notes

  • Route fields are asked with the route question under a route premise; nested fields receive context, and tool calls are followed by a done state.

    2.50.0release notes

  • Uses the user's description of None as the “none of these” option.

    2.49.0release notes

  • Can answer three additional field types.

    2.47.0release notes

  • Can fill a union of output types by choosing the type first.

    2.46.0release notes

  • Provides a stable serialized shape, and finished streams settle into that shape.

    2.44.0release notes

  • One-off capabilities now receive a default id and a combine rule for repeats.

    2.38.0release notes

  • Reduces the default Temporal metric export frequency.

    2.35.0release notes

  • Invalid model identifiers now suggest known model names.

    2.32.0release notes

  • OpenRouter web-search sources are surfaced in provider_details annotations.

    2.32.0release notes

  • MCPToolset supports FastMCP 4 and MCP SDK v2 alongside FastMCP 3.

    2.29.0release notes

  • CompactionPart now round-trips through the Vercel AI and AG-UI adapters.

    2.27.0release notes

  • The stable Gemini Gateway alias is restored.

    2.23.0release notes

  • Gemini VALIDATED tool mode is now the default on supported models.

    2.22.0release notes

  • Mid-conversation system prompts are sent as native system messages on Anthropic.

    2.22.0release notes

  • Anthropic no longer advertises tool search for capability-owned deferred tools.

    2.22.0release notes

  • DynamicCapability toolsets are supported in durable execution.

    2.15.0release notes

  • Text-like files in MistralModel prompts are inlined.

    2.15.0release notes

  • Tool-retry errors now include actionable hints.

    2.11.0release notes

  • Usage-limit errors now include actionable hints.

    2.11.0release notes

  • Agent.to_web() targets sdk_version=7 and bundles chat UI 2.0.0.

    2.8.0release notes

  • Multimodal tool returns now round-trip through the AG-UI and Vercel AI adapters in history and streaming.

    2.5.0release notes

  • On Pyodide/emscripten, sync callbacks now run inline by default.

    2.2.0release notes

  • Maps AG-UI interrupts to DeferredTools.

    2.0.0release notes

  • Captured messages now include the partial request and response of an interrupted run, marked state='interrupted'.

    2.0.0upgrade guide

Fixes and other changes 753

  • Restores empty tool_args when Anthropic streams a zero-argument mcp_tool_use.

    2.71.0release notes

  • Skips Anthropic content blocks and deltas of unknown types, with a warning.

    2.71.0release notes

  • Preserves stale-thinking-block recovery for later counts when the request carries a ModelSettingsDeltaPart.

    2.71.0release notes

  • Remote CodeMode turns run as Temporal activities so long snippets do not trip the deadlock detector.

    2.71.0release notes

  • A deferred pause resumes by pausing again when its step ran other tools and deferred_tool_results are omitted.

    2.71.0release notes

  • Fixes wording for retained-audio and ImageUrl errors and gives session.send() WAV errors their own wording.

    2.71.0release notes

  • Attach errors cut every URL to its origin, not only the exact cdp_url.

    2.71.0release notes

  • Classifies Bedrock ModelErrorException and Groq 498 errors.

    2.71.0release notes

  • A lost Sprite create is sent again instead of only being looked up.

    2.71.0release notes

  • Closes the debounce generator when the consumer stops early instead of leaving it to the garbage collector.

    2.71.0release notes

  • Replaying xAI WebSearchTool calls keeps the stored function name.

    2.71.0release notes

  • Replays every input field so thinking after a search stays valid.

    2.70.0release notes

  • Expired-container and stale-thinking-block retries run for a status a retrying transport gave up on.

    2.70.0release notes

  • Preserves tool_plan in message history and replays it on follow-up requests.

    2.70.0release notes

  • Accepts any task ID when the owner has no directory.

    2.70.0release notes

  • Waits for pending parallel InputGuardrail verdicts before stopping a streamed request and checks long parts in linear time.

    2.70.0release notes

  • xAI upload file names now use extensions based on the downloaded media type.

    2.70.0release notes

  • A malformed frame now ends the response it closes instead of merging later replies into it.

    2.70.0release notes

  • Turns the reasoning field of responses into ThinkingParts.

    2.70.0release notes

  • Unknown IDs list valid IDs, and loading already-active capabilities is a no-op.

    2.70.0release notes

  • Re-runs get_instructions and get_model_settings for the model serving a fallback attempt.

    2.70.0release notes

  • Answers tool results and ends the response after an unreadable or id-less response.done.

    2.70.0release notes

  • No longer sends Responses reasoning item ids as assistant-message fields in auto thinking mode.

    2.70.0release notes

  • Raises ModelHTTPError for the relevant failed status.

    2.70.0release notes

  • For qwen/qwen3.8-flash, falls back to auto or raises ModelRequestRejectedError when forced tool choice is rejected during reasoning.

    2.70.0release notes

  • Sends tool-returned video only to models whose profile reads video; other models receive a note instead of a 404.

    2.70.0release notes

  • Checks model-written pin(source='model') bodies for lookalike frames.

    2.70.0release notes

  • Processes spilled payloads in chunks.

    2.70.0release notes

  • Keeps instruction files under a linked directory inside the scanned directory.

    2.70.0release notes

  • Dropped with a warning on Bedrock Converse models that reject the setting.

    2.70.0release notes

  • Include docstring admonition sections and whole annotated Returns sections.

    2.70.0release notes

  • Caches uploaded documents per model instance.

    2.70.0release notes

  • Keeps the body of an error status that the transport gives up on.

    2.69.0release notes

  • Ollama sends the setting as max_tokens, not max_completion_tokens.

    2.69.0release notes

  • Anthropic tier spend caps and user-set spend limits raise this error.

    2.69.0release notes

  • Raises ModelContextWindowExceededError when Ollama Cloud reports exceeded max context length.

    2.69.0release notes

  • OpenAIProvider accepts an async api_key callable.

    2.69.0release notes

  • Skips a tier that fails on model errors, and tiers can omit their trigger.

    2.69.0release notes

  • Sends the request's betas and raises its all-deferred-tools UserError.

    2.68.0release notes

  • Drops the account-age claim because Claude Fable 5.2 and Mythos 5.2 bind thinking blocks on every account.

    2.68.0release notes

  • A damaged saved task no longer prevents opened() from proceeding.

    2.68.0release notes

  • Completes a turn that ends silently after a tool result.

    2.68.0release notes

  • Lowers a value above a Claude model's maximum output to that maximum instead of sending it.

    2.68.0release notes

  • Honors remembered approvals inside durable execution.

    2.68.0release notes

  • Summarizes tail messages displaced by copied user messages instead of dropping them.

    2.68.0release notes

  • Maps unified thinking to reasoning_effort for Z.AI GLM and DeepSeek V3.2 on Bedrock.

    2.68.0release notes

  • Reports when tiers retain more than target_tokens and the target cannot be reached.

    2.68.0release notes

  • Resolves vendor/model IDs through one case-insensitive family map on OpenAICompatibleProvider, LiteLLMProvider, and TogetherProvider.

    2.68.0release notes

  • Carries ModelResponse.canonical_system through both event streams.

    2.68.0release notes

  • Anthropic beta headers from extra_headers are merged with other betas regardless of capitalization.

    2.67.0release notes

  • Anthropic client's default_headers betas are sent alongside Pydantic AI's betas.

    2.67.0release notes

  • Builds off the event loop.

    2.67.0release notes

  • Renders keyword and non-identifier tool parameter and field names as valid Python in CodeMode and IPythonCodeMode.

    2.67.0release notes

  • Setup errors are raised to callers, timeout advice is corrected, and local and remote sessions reset after memory or output limits.

    2.67.0release notes

  • Stops commands under crun 1.14.1.

    2.67.0release notes

  • A user-agent supplied through extra_headers replaces the built-in one regardless of header-name spelling on OpenAI, Anthropic, and Groq requests.

    2.67.0release notes

  • A user-agent supplied through extra_headers is sent as one header line on Google requests.

    2.67.0release notes

  • Limits the total size of file URLs downloaded for one model request.

    2.67.0release notes

  • Sends max_num_results to OpenAI Responses.

    2.67.0release notes

  • Fresh installs keep GoogleModel on the v1beta Gemini API by capping google-genai<3.

    2.67.0release notes

  • Renders keyword and non-identifier tool parameter and field names as valid Python.

    2.67.0release notes

  • Sends the setting to DeepSeek as max_tokens rather than max_completion_tokens.

    2.67.0release notes

  • Is populated from Gemini's RetryInfo.retryDelay.

    2.67.0release notes

  • Treats additional IPv6 prefixes as private addresses.

    2.67.0release notes

  • Is raised for Gemini daily quota and disabled billing, and for an exhausted Moonshot balance.

    2.67.0release notes

  • Replayed durable work is excluded from traces and token and cost metrics on AWS Lambda and Temporal.

    2.67.0release notes

  • Anthropic fast mode responses are priced at fast mode rates by recording this provider detail.

    2.67.0release notes

  • Sync runs no longer warn that there is no current event loop.

    2.67.0release notes

  • No longer raises TypeError when timeout is not a number.

    2.67.0release notes

  • Tool search discoveries are retained across compaction by recording them again as a ToolAvailabilityDeltaPart.

    2.67.0release notes

  • Is announced for a background task that settles before delegate_task resumes, including on durable replay.

    2.67.0release notes

  • Is retained on tool call arguments sent by the special-token restorer when a stream ends.

    2.67.0release notes

  • Fixes ToolOutput for gpt-oss on BedrockMantleProvider by not forcing tool_choice.

    2.67.0release notes

  • The focus prompt takes user constraints only from the user's messages.

    2.66.0release notes

  • Code-loaded on-demand capabilities persist across compaction, and every removed load is recorded again as a CapabilityLoadDeltaPart.

    2.66.0release notes

  • A code-loaded capability's instructions are retained across instruction windows.

    2.66.0release notes

  • Adds streaming support for Cohere models.

    2.66.0release notes

  • Inlines $defs in tool schemas for GLM-5.3 on the listed providers and OpenAI-compatible gateways.

    2.66.0release notes

  • Instrumented embedding spans now include the embeddings attribute when include_content=True.

    2.66.0release notes

  • Approvals are rejected for tool calls that server-held history is not waiting on.

    2.66.0release notes

  • Stops failing with AttributeError on Modal 1.6, which removed FilesystemExecutionError.

    2.66.0release notes

  • Earlier tool-call turns remain byte-stable when a later response thinks in field mode.

    2.66.0release notes

  • Repairs are written back to the ToolCallPart in history.

    2.66.0release notes

  • Connections are closed when a WAL switch fails on a locked database.

    2.66.0release notes

  • Extra keys in tool_search and load_capability message history are preserved.

    2.66.0release notes

  • Raises ModelContextWindowExceededError and ModelQuotaExceededError for the corresponding Bedrock errors.

    2.65.0release notes

  • Treats auth='' as unset, alongside client, in GitHub, Notion, Ordinal, PostHog, Pylon, and Slack.

    2.65.0release notes

  • Forwards cache='1h' to Claude Haiku 5.5 on Bedrock instead of changing it to '5m'.

    2.65.0release notes

  • Includes refusal text when the provider also reports a finish reason.

    2.65.0release notes

  • Raises ContentFilterError rather than TypeError when Azure filters a streamed prompt.

    2.65.0release notes

  • No longer retries subclasses of non-retryable errors, including ContentFilterError and UserError subclasses.

    2.65.0release notes

  • Reads tool parameter descriptions from Keyword Args and Other Parameters docstring sections and retains *args and **kwargs descriptions.

    2.65.0release notes

  • Capability specs can set the base fields id, description, and defer_loading.

    2.64.0release notes

  • Publishes schema fields for Advisor, SummarizingCompaction, ManagedPrompt, PyaiDocs, CodeMode, ModalSandbox, and Skills.

    2.64.0release notes

  • No longer rejects all-deferred tool requests and no longer undercounts server tools on the Anthropic API.

    2.64.0release notes

  • on_run_error, shielded capability cleanup, and model stream close run when an anyio scope cancels a run.

    2.64.0release notes

  • An asyncpg pool now type-checks as PostgresMemoryStore's PostgresPool.

    2.64.0release notes

  • Finished results remain in history when a run pauses for deferred tools.

    2.64.0release notes

  • Falls back from Native Output when the installed botocore predates outputConfig.

    2.64.0release notes

  • A stalled call or stream read stops waiting when its request is cancelled or times out.

    2.64.0release notes

  • Regex patterns rejected by Bedrock are stripped from strict JSON schemas.

    2.64.0release notes

  • The unified cache setting is enabled for GPT-5.6 and later with the Azure OpenAI v1 API.

    2.64.0release notes

  • Tool results end before a mid-conversation system entry so it is not read as tool output.

    2.64.0release notes

  • Bedrock AnthropicModel clients no longer advertise CodeExecutionTool.

    2.64.0release notes

  • Mixed tool-search corpora are searched with search_tools so native deferred tools no longer declare sandboxed tools.

    2.64.0release notes

  • Sub-agents run under the parent run's usage_limits instead of the 50-request default.

    2.64.0release notes

  • Can edit non-UTF-8 text files read by read_file while honoring expected_hash.

    2.64.0release notes

  • Judges each attempt's model and lets prepare_model_request persist history changes.

    2.64.0release notes

  • The event stream stays alive when a resumed session loses a tool call without an ID.

    2.64.0release notes

  • OpenAI, Anthropic, and Gemini batch requests ignore max_retries instead of raising UserError.

    2.64.0release notes

  • The canonical system value is preserved through Vercel AI and AG-UI message round-trips.

    2.64.0release notes

  • Accepts list-typed content from compatible servers.

    2.64.0release notes

  • Reports no audio input for OpenAI non-audio models and no video input on Bedrock outside Nova.

    2.64.0release notes

  • Plan tools' results show the harness plan rather than a per-request reminder copy.

    2.64.0release notes

  • Usage and response IDs received by a primed stream are retained even if the consumer leaves without iterating.

    2.64.0release notes

  • Queued realtime messages are delivered after a mid-reply reconnect on OpenAI, Azure, and xAI.

    2.64.0release notes

  • Nested instruction files between a traversed path and the working directory are surfaced without repeating the root file.

    2.64.0release notes

  • Nested instruction files explain how they relate when nested_traversal is enabled, and files above the working directory are labeled as ../AGENTS.md.

    2.64.0release notes

  • Compatible compactions are honored during Responses continuation.

    2.64.0release notes

  • V1-style result.usage() now warns instead of raising TypeError.

    2.64.0release notes

  • Job files use a private temporary directory when the workspace is not writable.

    2.64.0release notes

  • Failure records are kept when an anyio scope cancels a run.

    2.64.0release notes

  • Children sharing usage run under the parent's usage_limits.

    2.64.0release notes

  • Request-scoped system prompt parts are marked visible: false in OTel spans for requests where the model no longer sees them.

    2.64.0release notes

  • No longer leaks script or style source into markdown content.

    2.64.0release notes

  • Teardown no longer causes RuntimeError: coroutine ignored GeneratorExit or an escaping KeyboardInterrupt.

    2.63.0release notes

  • Per-message effort changes are sent through this integration on Claude Opus 5.5, and thinking-block binding recovery is enabled.

    2.63.0release notes

  • The rate-limit category is preserved for Azure too_many_requests Responses failures on openai>=3.32.0.

    2.63.0release notes

  • When a hook rewrites history, the instructions it sent are recorded with a copy of the request.

    2.63.0release notes

  • If repl_store loading fails, the stored REPL state is retained instead of being overwritten with a fresh REPL.

    2.63.0release notes

  • Bare None type arguments are normalized.

    2.63.0release notes

  • A request records a deferred capability's instructions when a before_model_request hook loads it.

    2.63.0release notes

  • Framing tags are escaped consistently in BackgroundTools, RepoContext, TrajectoryJudge, Planning, and the SummarizingCompaction summarizer transcript.

    2.63.0release notes

  • Typed turns on Gemini realtime models now see the image sent immediately before them.

    2.63.0release notes

  • A GPT-Live WebRTC sideband session ends cleanly when the browser hangs up.

    2.63.0release notes

  • A thinking change after an unanswered ModelSettingsDeltaPart is recorded instead of replacing it, preserving it in UI streams and hook-rebuilt requests.

    2.63.0release notes

  • Runs are evaluated with every OnlineEvaluation capability on an agent, not just the outermost one.

    2.63.0release notes

  • A pending batch request is withdrawn if the run does not end with its PendingModelResponse.

    2.63.0release notes

  • Realtime span model_settings is omitted when include_content=False.

    2.63.0release notes

  • A wrap_run or on_run_error recovery result is returned rather than raising AgentRunError.

    2.63.0release notes

  • The model's realtime SpeechPart.id now records the provider item ID.

    2.63.0release notes

  • In delta mode, a transcript corrected to empty now clears its caption.

    2.63.0release notes

  • An automatically generated summary that would make history larger is no longer committed.

    2.63.0release notes

  • On models without mid-conversation system messages, the tag's meaning is stated and the tag is escaped in user and tool text.

    2.63.0release notes

  • Spill writes run in a durable_operation so replay does not write them again.

    2.63.0release notes

  • Streamed assistant messages are split at reasoning, compaction, and preserved file parts, as AGUIAdapter.dump_messages does.

    2.62.0release notes

  • No longer injects newlines between adjacent TextParts.

    2.62.0release notes

  • Counts a ModelRetry raised after a tool's step has ended toward max_retries.

    2.62.0release notes

  • Forwards nested ToolReturn.content from run_code to the model instead of silently dropping it.

    2.62.0release notes

  • History before a CompactionPart with an empty summary is retained instead of treating it as a compaction boundary.

    2.62.0release notes

  • The model is now recognized by DeepSeekProvider.

    2.62.0release notes

  • Recognizes the deepseek-flash model.

    2.62.0release notes

  • An explicit FileUrl media_type takes precedence over the downloaded Content-Type; binary/octet-stream is treated as unknown.

    2.62.0release notes

  • Replays local history into a fresh Gemini Live session when a reconnect has no resumption handle.

    2.62.0release notes

  • Works on the default Gemini provider with a separate v1alpha Live client.

    2.62.0release notes

  • Preserves Cohere response IDs in ModelResponse.provider_response_id.

    2.62.0release notes

  • Carries non-native Claude thinking in a user turn on OpenAI-compatible providers.

    2.62.0release notes

  • The reconnect policy re-attaches a dropped GPT-Live WebRTC sideband.

    2.62.0release notes

  • Preserves Gateway costs in Groq streams.

    2.62.0release notes

  • Anthropic no longer replays a non-empty result as "No matching tools found" when its matches are no longer declared.

    2.62.0release notes

  • Fixes thinking=False on OpenRouter's anthropic/claude-sonnet-5.5, which cannot turn reasoning off.

    2.62.0release notes

  • Realtime models are told about tool-call failures on every provider so they answer instead of going silent.

    2.62.0release notes

  • Limits no longer reduce load_capability and search_tools returns; combined bands remain largest-first, with the later band winning a shared threshold.

    2.62.0release notes

  • Each UIMessage of a split request gets its own id in Vercel AI dump_messages().

    2.62.0release notes

  • Supports hang_up() for Azure OpenAI WebRTC calls.

    2.61.0release notes

  • Raises UserError instead of AssertionError for an unconverted response SpeechPart.

    2.61.0release notes

  • Retries when redacted schema keys collide.

    2.61.0release notes

  • Failed re-authoring keeps the last valid capability, locks are shared per directory, and runs can cancel authoring.

    2.61.0release notes

  • Runs authoring checks and no longer overwrites unreadable manifests.

    2.61.0release notes

  • Discoveries no longer rewrite the cached prompt when dynamic_catalog=True.

    2.61.0release notes

  • Stops returning inherited history once per run and clips excerpts around the matched term.

    2.61.0release notes

  • Keeps deferred tool entries in place when a deferred-loading capability is loaded on Anthropic.

    2.61.0release notes

  • Validates env and sandbox_timeout at construction and names the operation in probe timeouts.

    2.61.0release notes

  • Cancels Exa runs left behind by a cancelled poll and stops retrying errors the model cannot fix.

    2.61.0release notes

  • Rebuilds its default client on a new event loop and builds the client once.

    2.61.0release notes

  • Supports NativeOutput on every FireworksProvider model.

    2.61.0release notes

  • No longer sends a thinking configuration that this model rejects.

    2.61.0release notes

  • Leaves audio split from its words by a tool call out of history instead of recording an empty SpeechPart.

    2.61.0release notes

  • Attaches a late sideband that is no longer sent session.started.

    2.61.0release notes

  • Includes tool-call arguments in message history.

    2.61.0release notes

  • Keeps Linear(id=None) uncombined, matching GitHub(id=None).

    2.61.0release notes

  • Boolean and integer inputs now stay on separate Literal decision branches in pydantic_graph.

    2.61.0release notes

  • The first-run banner now points to the wizard with the pydantic-ai task.

    2.61.0release notes

  • Preserves dictionary key order when histories are stored and reloaded, keeping resumed-run prompt caches.

    2.61.0release notes

  • Keeps responses with non-standard finish_reason values instead of raising UnexpectedModelBehavior.

    2.61.0release notes

  • Can force a tool revealed mid-run on models before GPT-5.6.

    2.61.0release notes

  • Preserves streamed reasoning that arrives without reasoning_details.

    2.61.0release notes

  • Concurrent workspace runs remain attached to their own Prefect environments.

    2.61.0release notes

  • Carries sub-agent cancellation across the durable tool-call boundary as a failed tool result.

    2.61.0release notes

  • Omits framework-owned __pydantic_ai__ metadata from sanitized output, matching UI adapters.

    2.61.0release notes

  • Starts long quote-heavy shell commands and returns commands too long to start to the model.

    2.61.0release notes

  • Uses TOOL_CALL_ID_PREFIX rather than a hardcoded prefix to detect pydantic-ai-minted Gemini tool-call IDs.

    2.61.0release notes

  • Preserves citations in the Vercel AI adapter.

    2.61.0release notes

  • Records failed status on streamed native tool return parts.

    2.61.0release notes

  • Stores a failed non-streamed native tool call as a call part and one return part.

    2.61.0release notes

  • Uses explicit output_type overloads, alongside Agent.from_file.

    2.60.0release notes

  • Supports anthropic 2.x by building message parameters as dicts and retaining Bedrock's anthropic_version.

    2.60.0release notes

  • Emitted with failed=True when the AskUser answerer raises.

    2.60.0release notes

  • Fixes cancelled steps, tool metadata key validation, and handler typing.

    2.60.0release notes

  • Response handlers are now applied when continuing a suspended response.

    2.60.0release notes

  • OpenAI GPT-Live now accepts an explicit input_transcription_model='auto'.

    2.60.0release notes

  • Treats id=None as the default ID and accepts client with auth=''.

    2.60.0release notes

  • Invalid templates now reject TemplateVariable and fall back to the code default.

    2.60.0release notes

  • wait_retry_after now honors the retry-after-ms value.

    2.60.0release notes

  • The background setting now takes effect on BackgroundTools.

    2.60.0release notes

  • Accepts unrounded float probabilities and scores from backends such as vLLM.

    2.60.0release notes

  • Allows strategy='bm25' on the legacy Bedrock AsyncAnthropicBedrock client.

    2.60.0release notes

  • Applies an ElevenLabs Agents correction only to the message it names.

    2.59.0release notes

  • Keeps typed const constraints, such as Literal discriminators, in Anthropic strict schemas.

    2.59.0release notes

  • Treats auth='' as unset alongside client in DayAI.

    2.59.0release notes

  • Retries deeply nested optional-tool arguments instead of raising RecursionError.

    2.59.0release notes

  • Schedules a tool once when BackgroundTools instances with distinct ids select it.

    2.59.0release notes

  • Moves unsupported Bedrock array contains constraints into descriptions.

    2.59.0release notes

  • Can clear typed read_file results again.

    2.59.0release notes

  • Preserves boolean $defs semantics during schema transformation.

    2.59.0release notes

  • Fixed revealed type names, nested tool exposure, and empty WorkflowAgent descriptions.

    2.59.0release notes

  • Added to xAI known models and the Grok reasoning profile.

    2.59.0release notes

  • OpenAI-compatible chat completions now accept non-string metadata values.

    2.59.0release notes

  • Keeps a push-to-talk turn in realtime history when the session ends before the provider confirms commit_audio().

    2.59.0release notes

  • Records a realtime barge-in cut in history when interrupt() races a failed send, reply end, or later cancel.

    2.59.0release notes

  • Recognizes Bedrock inference profile and foundation model ARNs so they receive the same model capabilities as the bare ID.

    2.59.0release notes

  • CodeMode checks the tool-call limit before each nested tool call.

    2.59.0release notes

  • Added a realtime lifecycle event so an abandoned tool call no longer holds its exchange open.

    2.59.0release notes

  • Streams returns of tool calls skipped after a final result to AG-UI frontends.

    2.58.0release notes

  • Preserves separate UserPromptParts through a round trip.

    2.58.0release notes

  • Ignores deeply nested ReasoningMessage.encrypted_value JSON.

    2.58.0release notes

  • Fixes UseEnumMemberDocstrings enums, Choices, and BoolCriteria failing in strict schemas.

    2.58.0release notes

  • Uses automatic prompt caching through anthropic_cache.

    2.58.0release notes

  • Fixes tool_choice='none' failing after a tool call.

    2.58.0release notes

  • Clears tool results in batches instead of on every request past the threshold.

    2.58.0release notes

  • Resolves the default output mode once per run so toggling thinking per step keeps tools stable.

    2.58.0release notes

  • Falls back on stream errors raised before the first event.

    2.58.0release notes

  • Writes mapping keys that are not valid XML names to a key attribute.

    2.58.0release notes

  • No longer return DeferredToolRequests to a parent that cannot resolve them.

    2.58.0release notes

  • Closes the AsyncInferenceClient it builds when the provider or agent exits.

    2.58.0release notes

  • Rewrites nested $refs when merging JSON schema definitions.

    2.58.0release notes

  • Walks propertyNames and contains when inlining JSON Schema definitions.

    2.58.0release notes

  • Forces a single tool natively instead of filtering tools.

    2.58.0release notes

  • Sends tool results in call order so UI round trips keep the prompt cache.

    2.58.0release notes

  • Adds a tool-call ID length profile setting and rewrites IDs rejected by Mistral models.

    2.58.0release notes

  • Keeps an unsaved token refresh instead of reverting to stored credentials it spent.

    2.58.0release notes

  • Stops continuing an OpenAI response once its preceding history or the response itself has changed.

    2.58.0release notes

  • Ends a response created without an id when a malformed response.done closes it.

    2.58.0release notes

  • Processes streamed responses as well.

    2.58.0release notes

  • A realtime reply cut off by the user is recorded as interrupted after generation finishes, and seeded interrupted speech is marked.

    2.58.0release notes

  • Replacing the client's system prompt no longer removes mid-run system prompts.

    2.58.0release notes

  • Escapes context-file blocks and sends the nested-directory pointer as a SystemPromptPart.

    2.58.0release notes

  • Labels a symlinked instruction file with its target's name, so CLAUDE.md -> AGENTS.md reads AGENTS.md.

    2.58.0release notes

  • Keeps every usage counter so durable runs retain one-hour cache writes and reasoning tokens; declares cache_write_1h_tokens and output_reasoning_tokens.

    2.58.0release notes

  • Non-native ThinkingParts are carried in a user turn for models that imitate assistant formatting.

    2.58.0release notes

  • Sends tool-call arguments as compact JSON so UI round trips keep the prompt cache.

    2.58.0release notes

  • Preserves tools reveals when a Vercel AI frontend rebuilds history from the event stream.

    2.58.0release notes

  • A resumed 'suspended' response's usage is counted only in the run that produced it.

    2.58.0release notes

  • Streams returns of tool calls skipped after a final result to Vercel AI frontends.

    2.58.0release notes

  • Keeps parallel tool calls in one ModelResponse when loading messages.

    2.58.0release notes

  • Preserves separate UserPromptParts through a round trip.

    2.58.0release notes

  • No longer waits forever when a realtime tool batch receives no reply after a call is cancelled.

    2.58.0release notes

  • Waits between continuation polls are durable DBOS.sleep steps under DBOSDurability and DBOSAgent.

    2.57.0release notes

  • Warns when response handlers are skipped on a streamed request.

    2.57.0release notes

  • GoogleModel now supports Gemini agentic media processing.

    2.57.0release notes

  • A backend response that ends while the session closes is now counted as a request.

    2.57.0release notes

  • Closes the HTTP client for a model built from a model name and reuses one client per name inside async with agent.

    2.57.0release notes

  • Gemini tool-call thought signatures are now sent back from OpenAIChatModel.

    2.57.0release notes

  • In default 'auto' mode, current-turn tool calls now receive an empty thinking field when needed.

    2.57.0release notes

  • Unavailable tool_choice names are no longer sent in allowed_tools.

    2.57.0release notes

  • Planning tool loops remain in the prompt cache, and a leading CachePoint is attached to the previous user message.

    2.57.0release notes

  • Cleanup is awaited after early exit and cancellation.

    2.57.0release notes

  • Realtime output now records and streams one part per output item even when its transcript arrives late.

    2.57.0release notes

  • Run context copies inside Temporal activities and Render child tasks retain available_tool_names and active_capability_ids.

    2.57.0release notes

  • Skills now honor disable-model-invocation and user-invocable, and skip stray skill library paths.

    2.57.0release notes

  • The partial response of an interrupted stream is now charged.

    2.57.0release notes

  • Concurrency slots are released after streamed request cleanup.

    2.57.0release notes

  • Token-based compaction now retains more recent history.

    2.57.0release notes

  • A tool's prepare function now has its own retry count under .prefixed(), .renamed(), and PrefixTools.

    2.57.0release notes

  • The discriminator mapping now references multimodal URL choices.

    2.57.0release notes

  • Unset optional fields are omitted from UIMessage JSON so the AI SDK accepts it.

    2.57.0release notes

  • User prompts quoting its [WarnNearLimits] marker are no longer deleted.

    2.57.0release notes

  • Sessions can reconnect past max_duration when a reconnect policy is set.

    2.57.0release notes

  • AnthropicModel no longer picks native structured output that Bedrock rejects on AsyncAnthropicBedrock.

    2.56.0release notes

  • The opt-in needed when Claude Fable 5 / 5.1 reject the default mode is explained.

    2.56.0release notes

  • Gathered CodeMode calls run concurrently under parallel_ordered_events.

    2.56.0release notes

  • Stale thinking blocks are retried with drop_block when Bedrock rejects them.

    2.56.0release notes

  • Decorated partials are unwrapped when evaluation task names are inferred.

    2.56.0release notes

  • Native tool events are recorded in gh-aw sessions.

    2.56.0release notes

  • Changed instructions and tool-returned files are no longer double-counted in harness context estimates.

    2.56.0release notes

  • The Memory snapshot is kept with the latest user prompt instead of after tool results.

    2.56.0release notes

  • Adjustable reasoning is supported on mistral-large-4 and mistral-large-4-0.

    2.56.0release notes

  • Explicit prompt caching fields are no longer sent to the openai-codex backend.

    2.56.0release notes

  • openai-decisions pricing is checked before matching the shared OpenAI base URL.

    2.56.0release notes

  • Importing pydantic_ai.models works on Pyodide by skipping the eager httpcore2 import on Emscripten.

    2.56.0release notes

  • Python 3.15 is supported.

    2.56.0release notes

  • A chunk whose send fails is no longer recorded in realtime SpeechPart.audio while it is being sent.

    2.56.0release notes

  • Repeated runs keep one summary, receipt, and system prompt copy.

    2.56.0release notes

  • List-form tool_choice can name output tools, and static lists may include one.

    2.56.0release notes

  • Every UsageLimits field is mapped to an explicit ACP stop reason.

    2.56.0release notes

  • xAI server-side tool results are replayed as tool turns paired with their calls.

    2.56.0release notes

  • ID-only tool call deltas no longer emit a null args fragment.

    2.55.0release notes

  • Returns 422 instead of 500 for invalid chat requests.

    2.55.0release notes

  • Its public shape is included in its validation JSON schema.

    2.55.0release notes

  • Earlier breakpoints are raised to a later, longer TTL so requests are not rejected.

    2.55.0release notes

  • Retried requests no longer send empty base64 image and PDF bytes.

    2.55.0release notes

  • Decodes percent-encoded Base64 payloads.

    2.55.0release notes

  • OpenAI's implicit prompt cache is kept when cache={'messages': False} cannot place an instruction breakpoint.

    2.55.0release notes

  • A leading cache point is attached to the previous OpenAI message instead of raising.

    2.55.0release notes

  • Interrupted tool calls are closed out when resuming a sub-agent.

    2.55.0release notes

  • A capability operation runs inline when called from inside a durable unit.

    2.55.0release notes

  • No longer ignores handler functions in fallback_on tuples.

    2.55.0release notes

  • Budgets are charged for responses rejected by a fallback model.

    2.55.0release notes

  • Serializes as null for extensionless URLs instead of raising.

    2.55.0release notes

  • Transport errors that escaped these providers are now raised as ModelAPIError.

    2.55.0release notes

  • Malformed events are reported as recoverable errors instead of being dropped.

    2.55.0release notes

  • Cancels the streamed model request when a parallel input guardrail blocks.

    2.55.0release notes

  • Ignores media-type parameters.

    2.55.0release notes

  • Handles JSON-pointer $refs and draft-07 definitions.

    2.55.0release notes

  • Hides MCP Apps tools from the model when _meta.ui.visibility omits "model".

    2.55.0release notes

  • Dynamic system-prompt re-evaluation no longer mutates caller-owned message history.

    2.55.0release notes

  • No longer lengthens connect and pool timeouts of Pydantic AI-created HTTP clients.

    2.55.0release notes

  • No longer widens the cache-health window on GPT-5.6+.

    2.55.0release notes

  • Keeps streamed arguments when the done snapshot disagrees instead of starting the part again.

    2.55.0release notes

  • Keeps completed tool returns when a sibling raises or the run is cancelled.

    2.55.0release notes

  • The default remains stable when a durable run is re-executed.

    2.55.0release notes

  • Run state remains recoverable when Ctrl-C interrupts streaming mid-output.

    2.55.0release notes

  • Ending GPT-Live sessions with session.close records final usage.

    2.55.0release notes

  • Keeps the current request when a receipt would take the only kept slot.

    2.55.0release notes

  • Keeps the live workspace on a settled result.

    2.55.0release notes

  • Rejects whitespace-only summaries instead of replacing history with an empty summary.

    2.55.0release notes

  • Preserves the current request when retained user turns exhaust the tail budget.

    2.55.0release notes

  • Sends a generic question when a question would otherwise have no instructions.

    2.55.0release notes

  • Its JSON schema now infers the wrapped function's return annotation.

    2.55.0release notes

  • Reconnects by replaying local history because xAI conversation resumption drops typed user turns and tool calls.

    2.55.0release notes

  • Commits a turn up to its usage limit instead of rolling it back.

    2.54.0release notes

  • Finds the tool search tool by tool_kind so prefixed search tools still receive their notes.

    2.54.0release notes

  • Propagates a native cancel that arrives during the timeout's stop operation.

    2.54.0release notes

  • Streamed and complete responses build the same ModelResponse; Gemini 3 web search sources are also added.

    2.54.0release notes

  • Works under FallbackModel and with dataclasses.replace.

    2.54.0release notes

  • Falls back to the local tool on Gemini text models and preserves tool output when a native tool falls back locally on Gemini 2.5.

    2.54.0release notes

  • Handles draft-7 list-form items in JSON schemas.

    2.54.0release notes

  • Generation failures are logged instead of silently falling back to GoalReanchor text.

    2.54.0release notes

  • Loads a capability only once when called twice for it in one response.

    2.54.0release notes

  • Adds replay_safe to support replay-safe custom setup_logfire callbacks.

    2.54.0release notes

  • Handles draft-7 list-form items in streamed output.

    2.54.0release notes

  • Undecodable 200 response bodies from the listed providers' models now raise ModelAPIError.

    2.54.0release notes

  • Clamps truncation at the profile's audio_output_sample_rate.

    2.54.0release notes

  • Preserves text and reasoning part boundaries in streams.

    2.54.0release notes

  • Warns when read_only=True removes every hosted MCP tool.

    2.54.0release notes

  • The shell fallback fails closed when readlink cannot read a symlink.

    2.54.0release notes

  • Usage now includes function tools run after the final result.

    2.54.0release notes

  • Run state remains recoverable when Ctrl-C interrupts execution.

    2.54.0release notes

  • Recovers run state when a DBOS workflow is cancelled.

    2.54.0release notes

  • Identifies the tool by its tool_kind instead of its name.

    2.54.0release notes

  • Treats a null finish_reason like an empty one.

    2.54.0release notes

  • Accepts boolean subschemas, caps prefixItems at maxItems, and handles draft-7 list-form items.

    2.54.0release notes

  • A first-position announcement is kept out of the standing system prompt.

    2.54.0release notes

  • Pins the request that started the current run, rather than the conversation's first prompt, in the window.

    2.54.0release notes

  • The derived Temporal schema now allows unschemable types.

    2.53.0release notes

  • Avoids invalid-escape warning floods during analysis.

    2.53.0release notes

  • Calling commit_audio() alone no longer triggers an xAI push-to-talk reply.

    2.53.0release notes

  • An xAI push-to-talk create_response() call is always answered.

    2.53.0release notes

  • Restores reveal announcements after compaction or history loss.

    2.53.0release notes

  • Non-finite metrics are rendered as inf, -inf, or nan.

    2.53.0release notes

  • Thinking efforts are snapped to minimal and high on the Gemini API.

    2.53.0release notes

  • Can declare tools whose dict values are recursive models.

    2.53.0release notes

  • A timeout during process startup now kills the process group.

    2.53.0release notes

  • Makes spans replay-safe.

    2.53.0release notes

  • Keeps the registered toolset across runs so durable execution accepts it.

    2.53.0release notes

  • Tolerates status, status_details, and session values that the SDK does not yet know.

    2.53.0release notes

  • Streamed and complete responses now build the same ModelResponse.

    2.53.0release notes

  • Streaming now builds the same ModelResponse as a complete response.

    2.53.0release notes

  • When openai_store=False, image generation calls are left out of replay.

    2.53.0release notes

  • Keeps the registered toolset across runs so durable execution accepts it.

    2.53.0release notes

  • No longer forces thinking on disk agents.

    2.53.0release notes

  • Raises UnexpectedModelBehavior instead of running the wrong tool when function tool calls share an ID.

    2.53.0release notes

  • Streaming now builds one thinking part per output, matching the non-streamed response.

    2.53.0release notes

  • Treats this MIME type as text-like for inline model inputs.

    2.52.0release notes

  • Allows azure_voice_live=True for gpt-realtime-2 models.

    2.52.0release notes

  • Keeps the prompt as the judged text after a retry.

    2.52.0release notes

  • Emits this event in realtime sessions before the deferred tool-call handler runs.

    2.52.0release notes

  • Allows text output on Vertex.

    2.52.0release notes

  • Records the value as the realtime response's finish_reason.

    2.52.0release notes

  • Maps provider errors from token counting.

    2.52.0release notes

  • Bounds the Gemini Live handshake.

    2.52.0release notes

  • Maps every Mistral SDK error to ModelHTTPError or ModelAPIError.

    2.52.0release notes

  • Tool-forcing and thinking-default profile flags now live on ModelProfile and apply on every provider route.

    2.52.0release notes

  • Raises ModelAPIError when the API reports a failed response or an error stream event.

    2.52.0release notes

  • Maps in-stream error objects to ModelAPIError.

    2.52.0release notes

  • Truncates the provider's copy of a reply the user cut off after it finished generating.

    2.52.0release notes

  • Records realtime user turns in speaking order under push-to-talk, barge-in, and with input transcription off.

    2.52.0release notes

  • Roots union output member data validation errors under result.data so retry feedback retains the failing input.

    2.52.0release notes

  • Reads a job log deleted mid-read as empty instead of failing the call.

    2.52.0release notes

  • Counts separately budgeted SubAgent usage toward parent budgets.

    2.52.0release notes

  • Keeps the original request in its window when the transcript is clamped.

    2.52.0release notes

  • No longer hangs on merged or failed replies; parallel realtime tool results request one answer per batch.

    2.52.0release notes

  • Maps provider errors from file uploads.

    2.52.0release notes

  • Buffer text deltas during replay.

    2.51.0release notes

  • Match dated Gemini 3.8 Live ids.

    2.51.0release notes

  • Keep provider_details on OpenAI Realtime tool-call responses.

    2.51.0release notes

  • Updates together with the usage it reports.

    2.51.0release notesrelease notes

  • Preserve the response id on replies cut off by a drop or close().

    2.51.0release notes

  • Resend a recent image with a typed Gemini Live turn, which doesn't see video frames.

    2.51.0release notes

  • Prices one-hour cache writes at the one-hour rate instead of the five-minute rate.

    2.50.0release notes

  • Keeps user speech out of history when input transcription is off.

    2.50.0release notes

  • Stops Google Search from crashing Gemini 2.5 native-audio realtime sessions.

    2.50.0release notes

  • Takes Jev's context_window from genai-prices.

    2.50.0release notes

  • Preserves the type variable of a generic OutputSpec[T] passed to Agent.run under mypy.

    2.50.0release notes

  • Prices realtime image input at the image rate.

    2.50.0release notes

  • Keeps user turns whole when the microphone streams continuously on providers without input item IDs.

    2.50.0release notes

  • Surfaces a failed OpenAI realtime response's error as a RealtimeSessionErrorEvent.

    2.50.0release notes

  • Buffers five minutes of audio per view so speaker-paced playback gets whole replies.

    2.50.0release notes

  • On OpenAI Realtime, thinking=False turns reasoning off by sending reasoning.effort: 'none'.

    2.50.0release notes

  • ThinkingParts are now sent in the history that decision models judge.

    2.50.0release notes

  • A send refused by the provider is rolled back so wait_for_reply() no longer hangs.

    2.50.0release notes

  • Keeps an uninstrumented delegate's usage off its caller's agent run span.

    2.49.0release notes

  • Preserves output tool names and descriptions for Annotated model types.

    2.49.0release notes

  • Allows gpt-6-sol, gpt-6-luna, and gpt-6-astra models.

    2.49.0release notes

  • Drops temperature and top_p for OpenAI GPT-5.6 and GPT-6 instead of failing with a 400.

    2.49.0release notes

  • Fixes google_proactive_audio so Gemini Live sessions can connect.

    2.49.0release notes

  • Forwards Cloud Storage gs:// references as fileData on Vertex AI.

    2.49.0release notes

  • Preserves fanned producer contributions in graph joins.

    2.49.0release notes

  • Surfaces streamed node errors in context during graph.iter().

    2.49.0release notes

  • Makes RunContext.tracer, trace_include_content, and instrumentation_version follow an explicit Instrumentation capability.

    2.49.0release notes

  • Sends deferred tools with native tool search instead of failing with a 400.

    2.49.0release notes

  • Types None in a list of output types as | None so output_type=[Foo, Bar, None] passes pyright.

    2.49.0release notes

  • Keeps Annotated metadata on members of an X | Y output_type.

    2.49.0release notes

  • Accepts Annotated, Literal, and union output_type values as PEP 747 TypeForms.

    2.49.0release notes

  • Preserves all streamed OpenAIChatModel logprobs in provider_details['logprobs'].

    2.49.0release notes

  • Surfaces receive-side failures to every consumer shape and ends send_audio(iterable) cleanly on close.

    2.49.0release notes

  • Applies a field's default when TypeSafeModel answers “None of these” for an optional field.

    2.49.0release notes

  • Applies a nested model's default when TypeSafeModel answers “None of these” for every field under it.

    2.49.0release notes

  • Preserves AG-UI Message.id across AGUIAdapter.load_messages and dump_messages.

    2.48.0release notes

  • Preserves UIMessage.id across Vercel AI load_messages and dump_messages.

    2.48.0release notes

  • A Choices set can describe itself as a TypeSafeModel route.

    2.47.0release notes

  • A None output route is named None rather than NoneType.

    2.47.0release notes

  • Refuses rubrics with more levels than Jev scores against.

    2.47.0release notes

  • Refuses a tuple output field and a self-contained model instead of crashing.

    2.47.0release notes

  • Can pick None as a route.

    2.47.0release notes

  • Recognizes None routes and None options that carry a description.

    2.47.0release notes

  • Names the picked route in the request that fills it.

    2.47.0release notes

  • Allows adaptive thinking with tool output and forced tool choice.

    2.46.0release notes

  • Dispatches tool calls with the live ToolDefinition.

    2.46.0release notes

  • Gateway IDs are no longer misclassified as OpenAI o-series models.

    2.46.0release notes

  • Late transcripts remain attached to the user turn they belong to.

    2.46.0release notes

  • A realtime tool exception records a failed ToolReturnPart, while a tool call and its speech stay in one ModelResponse.

    2.46.0release notes

  • Refuses more options than Jev can pick from.

    2.46.0release notes

  • Realtime responses are priced so usage.cost and UsageLimits.cost_limit work in a session.

    2.46.0release notes

  • Raises ModelRetry when httpx2 rejects a URL as invalid.

    2.46.0release notes

  • Resolves a DynamicToolset once per durable run instead of inside every durable unit.

    2.45.0release notes

  • Passes xhigh effort through on Bedrock when the model profile supports it.

    2.45.0release notes

  • Allows this model on Bedrock Converse.

    2.45.0release notes

  • Uses one MCP server session per durable run instead of one per durable unit.

    2.45.0release notes

  • Preserves tool history in MCPSamplingModel.

    2.45.0release notes

  • Stops importing legacy httpx, which a FastMCP 4 install does not ship.

    2.45.0release notes

  • Reports each agent run's own usage on its span.

    2.44.0release notesrelease notes

  • Allows construction without a model and defers the model requirement until runtime.

    2.44.0release notes

  • Forwards blocked domains to OpenAI web search.

    2.44.0release notes

  • Runs a capability's prepare_tools over every tool admitted by the availability gate.

    2.44.0release notes

  • Bounds the event queue while nothing is iterating it.

    2.44.0release notes

  • Finishes teardown even when the closing task is cancelled.

    2.44.0release notes

  • Makes enqueueing safe when called from worker threads.

    2.44.0release notes

  • Fixes OpenAI-hosted tool_search pairing in AG-UI.

    2.44.0release notes

  • Preserves text part boundaries after tool calls.

    2.43.0release notes

  • Keys temporal tool opt-out checks on operation kind rather than an MCP import.

    2.43.0release notes

  • Anthropic recovery is preserved across normalized history.

    2.42.0release notes

  • Honors anthropic_disallows_sampling_settings in BedrockConverseModel.

    2.42.0release notes

  • Non-object $ref definitions in code-mode function signatures are now resolved inline.

    2.42.0release notes

  • Botocore transport errors are now wrapped in ModelAPIError.

    2.41.0release notes

  • Anthropic native web searches are now priced in cost.

    2.41.0release notes

  • Gemini thinking levels are snapped to the nearest supported level.

    2.41.0release notes

  • Anthropic native web searches are now reported in RequestUsage.details.

    2.41.0release notes

  • Allows a capability to cache derived state again and refuses a collection the merge cannot rebuild.

    2.40.0release notes

  • Makes a capability's auto-assigned registry key look like the run-local handle it is.

    2.40.0release notes

  • Lets a realtime tool hang up with ctx.realtime_session.close() instead of wedging itself.

    2.40.0release notes

  • Fixes reveal synthesis splitting a parallel batch's tool_result from its tool_use.

    2.40.0release notes

  • Maps finish_reason on OpenAI Responses stream terminal events.

    2.40.0release notes

  • Fixes the interrupt(played_ms=) cancel race.

    2.40.0release notes

  • Ends the views when a tool fails and nobody is iterating.

    2.40.0release notes

  • Rolls back user-turn state when an audio chunk is not bytes-like.

    2.40.0release notes

  • Stops sending reasoning to the dated gpt-realtime-2025-08-28 snapshot.

    2.40.0release notes

  • Subscribes the view when stream_audio() is called, not on first iteration.

    2.40.0release notes

  • Subscribes the view when stream_transcripts() is called, not on first iteration.

    2.40.0release notes

  • Detects Azure content-filter errors for AsyncAzureOpenAI clients on OpenAIProvider.

    2.39.0release notes

  • Detects Azure content-filter errors for AzureProvider.

    2.39.0release notes

  • Restores capability composition invariants.

    2.39.0release notes

  • Fixes the context_subtree() exporter cache and its span-processor leaks.

    2.39.0release notes

  • Restores the Instrumentation spec option for including model request parameters.

    2.39.0release notes

  • Emits speech finalized by a tool call on stream_transcripts().

    2.39.0release notes

  • Attributes tool-returned media to its originating tool call when it cannot ride the tool result.

    2.39.0release notes

  • Sharpens the undeclared-attribute merge error.

    2.39.0release notes

  • Stale thinking-block recovery now persists across turns.

    2.38.0release notes

  • Restores raw tool-call IDs when replaying Responses history.

    2.38.0release notes

  • Fixes uploads failing to reach a fresh Anthropic container on multi-turn history.

    2.38.0release notes

  • Accepts the environment-key call pattern in the provider overload.

    2.38.0release notes

  • A run cancelled during its first tool call remains resumable.

    2.38.0release notes

  • Fixes forced tool_choice handling for DeepSeek and Together.

    2.38.0release notes

  • Fixes streamed text after a native tool call being merged into the ended pre-call part.

    2.38.0release notes

  • Preserves dynamic native factory config in fallback subagents.

    2.38.0release notes

  • Skips inactive capability hooks in agent tracebacks.

    2.37.0release notes

  • Accepts and maps Z.AI's non-standard finish_reason values.

    2.37.0release notes

  • Routes Vertex-versus-Gemini API branches by client transport instead of provider name.

    2.37.0release notes

  • Journals Prefect tool discovery in tasks.

    2.37.0release notes

  • Emits an AG-UI TEXT_MESSAGE_START for the assistant message that owns a response's tool calls.

    2.37.0release notes

  • Bare ToolDefinition instances are now projected into Prefect cache keys.

    2.36.0release notes

  • Fixes generation for narrow exclusive numeric bounds.

    2.36.0release notes

  • remaining now resolves result IDs across categories.

    2.35.3release notes

  • Errors now identify rejected runtime toolsets.

    2.35.3release notes

  • Heroku GLM models are now routed through zai_model_profile.

    2.35.3release notes

  • dbos is capped below 2.31.0 to avoid a missing opentelemetry-instrumentation-logging import.

    2.35.1release notes

  • Bedrock guardrail trace is now carried in ModelResponse.provider_details.

    2.35.1release notes

  • Temporal responses now honor provider_factory when they are cancelled.

    2.35.1release notes

  • Makes the inclusive integer maximum reachable in TestModel.

    2.35.0release notes

  • Preserves an explicitly empty Tool description instead of falling back to the function docstring.

    2.35.0release notes

  • Only strips logit_bias from Cerebras model settings.

    2.34.0release notes

  • Preserves zero-argument tool calls.

    2.34.0release notes

  • Recognizes Bedrock’s r1 alias.

    2.34.0release notes

  • Renders enum $refs as Literal.

    2.34.0release notes

  • Honors the agent tool retry budget.

    2.34.0release notes

  • Honors zero-valued maximums.

    2.34.0release notes

  • Fixes generation for equal inclusive bounds.

    2.34.0release notes

  • Fixes generation for falsy JSON Schema const values.

    2.34.0release notes

  • Fixes stale part state when a stream is cancelled.

    2.34.0release notes

  • Accepts reasoning part id in run input.

    2.34.0release notes

  • Preserves the Groq profile for groq/-prefixed models.

    2.34.0release notes

  • Handles asctime-form Retry-After dates.

    2.34.0release notes

  • Normalizes DeepSeek Responses function-call replay.

    2.32.2release notes

  • Async callable instances are now awaited in pydantic_evals tasks and by the evaluate decorator.

    2.32.2release notes

  • Fixes RunContext.cancel() in realtime sessions.

    2.32.2release notes

  • VideoUrl now recognizes m.youtube.com URLs.

    2.32.2release notes

  • The function parameter accepts any callable.

    2.32.1release notes

  • The stream_function parameter accepts any callable.

    2.32.1release notes

  • Empty-signature Anthropic thinking blocks are no longer sent.

    2.32.1release notes

  • Native tool calls are dropped when the replayed payload has no result block for them.

    2.32.0release notes

  • Cancellation from setup-phase for_run hooks is recorded instead of raising UserError.

    2.32.0release notes

  • Sync hooks run in a thread pool, and timeout= is enforced for blocking sync tools and hooks.

    2.32.0release notes

  • A response containing only empty text parts is treated as having no text output.

    2.32.0release notes

  • Tool results are sorted ahead of tool availability announcements so Bedrock accepts turns revealing multiple tools.

    2.32.0release notes

  • The retry message lists only available tools.

    2.32.0release notes

  • Gemini models that reject MINIMAL now fall back to thinking_level='LOW'.

    2.31.1release notes

  • Failed FallbackModel spans are attributed to the failing model rather than the fallback wrapper.

    2.31.0release notes

  • The openai package is passed through Temporal workflow sandboxes.

    2.31.0release notes

  • Falls back to ASCII output on non-UTF-8 consoles.

    2.30.0release notes

  • Resolves deferred openai resource imports and genai-prices data loading at Model construction time.

    2.30.0release notes

  • Lowercases model names before profile lookup in SambaNova, Heroku, and Fireworks providers.

    2.30.0release notes

  • Anchors the tool-callability evidence window to the response's serving provider.

    2.30.0release notes

  • Fixes concurrent provider stream shutdown.

    2.29.0release notes

  • Fixes inherited realtime WebRTC and Azure bugs involving for_realtime.

    2.29.0release notes

  • Fixes silent truncation of gzip response bodies.

    2.29.0release notes

  • Rendered tool signatures now include parameter descriptions.

    2.29.0release notes

  • AG-UI dict tool-call deltas are serialized with Pydantic Core.

    2.28.0release notes

  • A leading CachePoint is attached to the preceding user message instead of raising an error.

    2.28.0release notes

  • Realtime reconnects now settle in-flight state and report state_restored honestly.

    2.28.0release notes

  • Adaptive thinking is now allowed with Tool Output and forced tool choice on Anthropic.

    2.27.1release notes

  • Offline web UI hosting now points at the self-contained chat UI build.

    2.27.1release notes

  • Tool spans are restored for failed argument validation, making those failures visible in tracing.

    2.27.1release notes

  • Corrects finish_reason mapping for streaming responses.

    2.27.1release notes

  • Anthropic compaction encrypted_content is now round-tripped verbatim.

    2.27.0release notes

  • The include_binary_content=False setting is now honored in every OTel serialization sink.

    2.27.0release notes

  • sanitize_messages now strips the compaction provenance stamp.

    2.27.0release notes

  • Fixes has_attributes matching for JSON-serialized dict and list values.

    2.27.0release notes

  • The standing prompt is no longer re-sent when the OpenAI Responses compaction item retains it.

    2.27.0release notes

  • Errors for oversized tool returns or model responses now point at the cause.

    2.27.0release notes

  • ToolReturn.tools now retains the redacted OTel shape.

    2.27.0release notes

  • Only the compacted window is sent: history before the latest same-provider CompactionPart is dropped.

    2.26.0release notes

  • Deferred tools remain searchable after discovery, and reveal state resets at CompactionPart boundaries.

    2.26.0release notes

  • Fixes a reveal-state edge involving is_tool_available.

    2.26.0release notes

  • Restores the released legacy profile-key shim for compatibility.

    2.26.0release notes

  • WrapperModel now forwards model_id, and TemporalModel resolves it against the active model.

    2.26.0release notes

  • Streamed OpenRouter reasoning details are mapped by their index.

    2.26.0release notes

  • OpenRouter is gated off from native mid-conversation system messages using supports_inline_system_prompts=False.

    2.26.0release notes

  • Fixes a reveal-state edge involving native additions in TestModel.

    2.26.0release notes

  • Forwards events from callbacks that return an async iterator, even when the callback is not an async generator function.

    2.26.0release notes

  • Omits server attributes when the base_url port is malformed.

    2.25.0release notes

  • Azure sends max_tokens for Mistral models instead of max_completion_tokens.

    2.25.0release notes

  • Fixes thinking="minimal" for GPT-5.6 models.

    2.25.0release notes

  • Degrades malformed tool-call arguments in ToolCallPart.args_as_json_str().

    2.25.0release notes

  • Forwards base_url through WrapperModel.

    2.25.0release notes

  • The Google provider filters unavailable names from allowed_function_names.

    2.24.0release notes

  • Stream part indexes are now preserved during event replay.

    2.24.0release notes

  • Groq groq/compound model names are now recognized.

    2.24.0release notes

  • Bedrock streams now honor ignore_streamed_leading_whitespace.

    2.24.0release notes

  • Content newer than the installed ag-ui-protocol is skipped instead of causing a 422 response.

    2.24.0release notes

  • Heroku's model is now recognized as a Kimi reasoning model.

    2.24.0release notes

  • The model is now recognized as a Kimi reasoning model.

    2.24.0release notes

  • Caller-owned OpenAI model settings are now preserved.

    2.24.0release notes

  • The Google provider now preserves an explicit timeout=0 instead of dropping it.

    2.24.0release notes

  • Bedrock now sends top_p=0.0 rather than omitting the value.

    2.24.0release notes

  • The function now guards against negative integer Retry-After values.

    2.24.0release notes

  • Capability event-stream and node hooks now fire under agent.iter().

    2.23.0release notes

  • Async streams are closed on teardown rather than left for the garbage collector.

    2.23.0release notes

  • bedrock_max_concurrency is validated instead of allowing a value of 0 to deadlock.

    2.23.0release notes

  • Binding now preserves capability container subclasses.

    2.23.0release notes

  • The stable Gemini Gateway alias is restored.

    2.23.0release notes

  • The provider created timestamp is read from any chunk in streaming responses.

    2.23.0release notes

  • The Temporal LogfirePlugin now preserves the host's Pydantic AI instrumentation.

    2.23.0release notes

  • The bound on the Temporal payload TypeAdapter cache is removed.

    2.23.0release notes

  • Runs when an args_validator defers the call.

    2.22.0release notes

  • A tool's args_validator can request approval or defer a call.

    2.22.0release notes

  • MCP tools inherit agent retries.

    2.22.0release notes

  • InstrumentedModel passes the unprepared request to the wrapped model.

    2.22.0release notes

  • OpenRouter responses with null choices and no error envelope now raise ModelAPIError.

    2.22.0release notes

  • Avoids forcing tool_choice so thinking remains active.

    2.22.0release notes

  • Fixes tool-call cache keys so flow retries replay tool results and keys account for readable RunContext fields.

    2.22.0release notes

  • Raises UserError instead of hanging when called on an event loop it cannot drive.

    2.22.0release notes

  • Synchronous APIs handle closed event loops rather than failing unexpectedly.

    2.22.0release notes

  • Per-tool TaskConfig is honored on Prefect MCP tools.

    2.22.0release notes

  • Tool, MCP, dynamic-toolset, and event-stream activities now heartbeat.

    2.22.0release notes

  • Avoids retrying forever when a Temporal activity argument cannot be serialized.

    2.22.0release notes

  • Post-validation hooks can raise ApprovalRequired or CallDeferred, while pre-validation hooks can raise UserError.

    2.22.0release notes

  • Refreshes KnownModelName from Gateway probes and stable Google image IDs.

    2.21.0release notes

  • Captures Anthropic thinking tokens in usage details.

    2.20.0release notes

  • A bare McpError from an MCP server is recoverable instead of fatal.

    2.20.0release notes

  • Preserves zero-valued OpenTelemetry usage details.

    2.20.0release notes

  • Exposes the OpenAI Responses phase on the streamed PartStartEvent.

    2.20.0release notes

  • Preserves arbitrary RequestUsage fields across serialization.

    2.20.0release notes

  • Replays tool-search history across provider boundaries instead of dropping it.

    2.20.0release notes

  • Skips include_server_side_tool_invocations for Vertex on Gemini 3+.

    2.20.0release notes

  • Re-asserts absorbed external cancellation at run step boundaries so cancellation is not lost during a run.

    2.19.0release notes

  • Deferred google-genai stream errors are mapped in GoogleModel.

    2.18.0release notes

  • Response-scoped tool-call IDs are normalized.

    2.18.0release notes

  • Fixes ContentFilterError handling for real Model Armor response blocks with finishReason: MODEL_ARMOR.

    2.17.0release notes

  • Preserves failed tool outcomes across AG-UI message round trips.

    2.16.0release notes

  • Raises a consistent error from ctx.enqueue() inside durable units across Temporal, DBOS, and Prefect.

    2.16.0release notes

  • Guards against calling ctx.enqueue() from an event_stream_handler inside DBOS steps or Prefect tasks.

    2.16.0release notes

  • Preserves sibling keywords on $ref when inlining $defs.

    2.16.0release notes

  • Fixes tool retry counts across skipped steps.

    2.16.0release notes

  • Fixes durability capability compatibility regressions.

    2.15.0release notes

  • Fixes OpenAI background retrieve 400 errors involving reasoning.encrypted_content on persisted responses.

    2.15.0release notes

  • Tool control-flow exceptions round-trip on DBOS and Prefect, and Prefect replay edges are fixed.

    2.15.0release notes

  • Fixes hosted tool_search replay when call IDs are null.

    2.15.0release notes

  • Untyped arrays are marked as not strict-compatible for OpenAI.

    2.15.0release notes

  • MCP instructions are now always fetched via a durable step under DBOSDurability.

    2.14.1release notes

  • Deprecations for durable wrapper agents have been temporarily withdrawn.

    2.14.1release notes

  • Fixes streaming settings for MistralModel.

    2.13.0release notes

  • Passes pydantic_monty through in the Temporal workflow sandbox.

    2.13.0release notes

  • Fixes a spurious OTel Failed to detach context error when a streamed run is interrupted mid-segment.

    2.13.0release notes

  • Open text, thinking, and tool-call message parts are closed when a UI stream errors.

    2.13.0release notes

  • Fixes forwarding per-Part media_resolution in vendor_metadata.

    2.12.0release notes

  • Defers streamed output emission when text ends mid-integer-token.

    2.12.0release notes

  • Fixes tool binding for POSITIONAL_OR_KEYWORD parameters when *args are present.

    2.12.0release notes

  • Serialization now uses field aliases so wire output matches return_schema.

    2.12.0release notes

  • Capability-contributed toolset IDs are derived from the capability for durable execution.

    2.12.0release notes

  • Streamed number and integer validation accepts int-valued numbers and rejects bools.

    2.11.0release notes

  • Anthropic transforms the native output schema when native structured output is selected through the profile.

    2.11.0release notes

  • Bedrock sends the transformed schema when native structured output is selected through the profile.

    2.11.0release notes

  • Onboarding suggests Agent('test') when provider credentials are missing.

    2.11.0release notes

  • Filters native tool calls that are not configured.

    2.10.0release notes

  • Handles Anthropic stop_reason=pause_turn.

    2.10.0release notes

  • Fixes resume when an output tool call is settled in the same batch as deferred calls.

    2.10.0release notes

  • Fixes has_values() returning True when usage details are all zero.

    2.10.0release notes

  • Preserves invalid UTF-8 bytes during instrumentation serialization.

    2.10.0release notes

  • message_history is made provider-valid out of the box by repairing tool-call/result pairing.

    2.10.0release notes

  • Prevents RenamedToolset from silently dropping a tool when names collide.

    2.10.0release notes

  • Fixes event-loop affinity in run_stream_sync.

    2.10.0release notes

  • Attaches xAI ToolCallPart to the preceding reasoning message.

    2.10.0release notes

  • Fixes recursion with typed composition members in JsonSchemaTransformer.

    2.9.1release notes

  • Handles integer timeout values when computing Mistral timeout milliseconds.

    2.9.1release notes

  • The beta is enabled automatically when messages contain an UploadedFile.

    2.9.0release notes

  • A deadlock is fixed when a wrapped model request or agent run survives cancellation.

    2.9.0release notes

  • Nested capture_run_messages calls now capture correctly.

    2.9.0release notes

  • The DBOSAgent wrapper path now guards against an id-less MCPToolset.

    2.9.0release notes

  • The early end strategy is now honored for NativeOutput, PromptedOutput, and image output.

    2.9.0release notes

  • Calling repr() on message parts no longer crashes when a field's != operation returns a non-bool.

    2.9.0release notes

  • Agent tool_timeout is validated.

    2.8.0release notes

  • max_queued is validated for ConcurrencyLimit and ConcurrencyLimiter.

    2.8.0release notes

  • JsonSchemaTransformer now recurses into allOf composition.

    2.8.0release notes

  • Empty and thinking-only responses no longer reuse earlier text as the run output.

    2.8.0release notes

  • Tool max_retries parameters are validated.

    2.8.0release notes

  • Tool timeout parameters are validated.

    2.8.0release notes

  • ToolOutput max_retries is validated.

    2.8.0release notes

  • Handles boolean JSON Schema nodes in the function signature walker.

    2.7.0release notes

  • Preserves HTTPX event hooks in the gateway.

    2.7.0release notes

  • Allows override(model=...) on an agent that has no model set.

    2.7.0release notes

  • Capability for_run is resolved once per run, and resolved native tools are preserved under override(native_tools=...).

    2.6.0release notes

  • Recovers File Search grounding that was dropped with native tool parts.

    2.6.0release notes

  • Constrains the eval judge output reason to be concise and retry-safe.

    2.6.0release notes

  • Non-positive concurrency values now produce a clear error.

    2.6.0release notes

  • Conflicting native tool IDs within a capability layer are now rejected.

    2.6.0release notes

  • Fixes cache-key drift for PrefectAgent.

    2.6.0release notes

  • Callable thinking delta provider details are now serialized.

    2.6.0release notes

  • Domain filters are now forwarded to Groq search_settings.

    2.6.0release notes

  • AgentSpec files now write relative schema references.

    2.5.1release notes

  • Bedrock tool-result attachment co-location is handled per model.

    2.5.1release notes

  • Empty model responses now prompt a retry instead of being silently resubmitted.

    2.5.1release notes

  • Empty ModelResponse objects are omitted from Mistral and Cohere request payloads.

    2.5.1release notes

  • UI round-trips preserve FileUrl.force_download.

    2.5.1release notes

  • Union NativeOutput descriptions preserve the union description instead of using the last member's docstring.

    2.5.1release notes

  • Thinking-only responses are accepted when output_type allows None.

    2.5.1release notes

  • The unified thinking setting is mapped to Groq's reasoning_effort setting.

    2.5.1release notes

  • Unsupported tool-return media is delivered to Bedrock models that isolate toolResult turns.

    2.5.1release notes

  • Corrects supported media kinds in Bedrock tool returns for Meta, Mistral, and Qwen.

    2.5.0release notes

  • Duplicate deferred tool call IDs are now rejected.

    2.5.0release notes

  • DBOS and Prefect durable runs now preserve runtime event stream handlers.

    2.5.0release notes

  • First-class token counts are excluded from these OTel attributes to prevent double-counting.

    2.5.0release notes

  • Adds MoonshotAI Kimi models to the known model names.

    2.5.0release notes

  • Bedrock now synthesizes a leading user message only for models that require one.

    2.5.0release notes

  • Sync streaming wrappers now run on an anyio portal thread; async stream_text early-break teardown is fixed.

    2.5.0release notes

  • Fixes MoonshotAI Kimi support for thinking.

    2.5.0release notes

  • DBOS and Prefect durable runs now preserve runtime toolsets.

    2.5.0release notes

  • Preserves extended usage fields from Mistral API responses.

    2.4.0release notes

  • Evaluation rejects non-positive max_concurrency values.

    2.4.0release notes

  • Starts its background task lazily, on the first event iteration.

    2.4.0release notes

  • Synchronous run_until_complete wrappers clean up pending tasks and streams on KeyboardInterrupt.

    2.4.0release notes

  • Forwards WebSearchTool.user_location to xAI web search.

    2.4.0release notes

  • Updates handling of the XSearchTool limit.

    2.4.0release notes

  • ToolReturnPart is no longer reordered after UserPromptPart when dumping messages.

    2.3.0release notes

  • Tool results remain non-empty when the result is an empty list.

    2.3.0release notes

  • The setting is no longer sent without tool_search on models that lack native tool search.

    2.3.0release notes

  • Temporal now resolves dynamic toolset instructions in an activity.

    2.3.0release notes

  • AG-UI and Vercel AI adapter round-trips now preserve vendor_metadata.

    2.3.0release notes

  • File content is no longer silently dropped from tool returns.

    2.3.0release notes

  • Durable-exec MCP get_tools caching is now replay-deterministic.

    2.3.0release notes

  • The message boundary is tracked by position so a rebuilt resumed request is not leaked.

    2.3.0release notes

  • Thinking-only messages are skipped when constructing chat history.

    2.3.0release notes

  • Non-streaming responses now set provider_name.

    2.3.0release notes

  • Vercel AI and AG-UI message round-trips now preserve tool_kind.

    2.3.0release notes

  • Multimodal content is reconstructed using a ToolReturnContent discriminator.

    2.3.0release notes

  • Fixes handling of absolute schema_path values.

    2.2.0release notes

  • Fixes deps deserialization in non-streaming Temporal model-request activity.

    2.2.0release notes

  • Fixes the map firing the join twice on a non-empty iterable.

    2.2.0release notes

  • Suppresses ClosedResourceError when cancelling a graph run mid-send.

    2.2.0release notes

  • Fixes emitting the first item alone when it is delayed past soft_max_interval.

    2.2.0release notes

  • Avoids duplicating /v1 in the Heroku base_url.

    2.2.0release notes

  • Heroku model names are routed through family profiles so thinking is not dropped.

    2.2.0release notes

  • The GoogleModel check now includes CodeExecutionTool.

    2.2.0release notes

  • Usage accumulation now includes output_audio_tokens and avoids duplicate accumulation.

    2.2.0release notes

  • Groq usage details now surface reasoning_tokens.

    2.2.0release notes

  • Handles CRLF markdown JSON fences.

    2.2.0release notes

  • Handles model names that do not contain a slash.

    2.2.0release notes

  • File vendor_metadata now round-trips through the Vercel AI and AG-UI adapters.

    2.2.0release notes

  • For GroqModel and MistralModel, image detail is now forwarded from vendor_metadata.

    2.2.0release notes

  • Adds support for Bedrock token counting in Anthropic.

    2.1.0release notes

  • Calling cancel() on a finished stream no longer flips its complete state.

    2.1.0release notes

  • Instrumentation message attributes are serialized with to_json instead of json.dumps.

    2.1.0release notes

  • Converts ExceptionGroup-wrapped tool errors to ModelRetry.

    2.1.0release notes

  • Adds a return type annotation to PydanticAIPlugin.__init__.

    2.1.0release notes

  • Prevents stalls during multi-server MCP discovery.

    2.0.0release notes

  • Fixes token-count divergence on ToolSearchTool replay history.

    2.0.0release notes

  • Forwards the top_k model setting to Bedrock additionalModelRequestFields.

    2.0.0release notes

  • Forwards additionalModelRequestFields when counting tokens.

    2.0.0release notes

  • Emits reasoning_effort='none' for Cerebras.

    2.0.0release notes

  • Replays zai-glm reasoning in <think> tags and updates the model used to zai-glm-4.7.

    2.0.0release notes

  • Forwards usage.cached_tokens as cache_read_tokens.

    2.0.0release notes

  • Synthesized tool-call turns now send reasoning_content.

    2.0.0release notes

  • Evaluator outputs that are non-finite are disallowed.

    2.0.0release notes

  • Gemini requests no longer send function_calling_config when there are no function declarations.

    2.0.0release notes

  • Retains dropped usage fields across streaming chunks.

    2.0.0release notes

  • Fixes a crash when MCPToolset uses an http_client with FastMCP's follow_redirects keyword argument.

    2.0.0release notes

  • Forwards penalties in completions.

    2.0.0release notes

  • Forwards tool_choice from ModelSettings to the Cohere v2 chat API.

    2.0.0release notes

  • Routes max_tokens to max_completion_tokens or max_tokens according to an OpenAIModelProfile flag.

    2.0.0release notes

  • Accumulates output_audio_tokens in RunUsage.

    2.0.0release notes

  • Fixes unified thinking handling for Groq qwen3 and Cerebras gpt-oss.

    2.0.0release notes

  • Validates the union kind discriminator in text output.

    2.0.0release notes

  • OpenAI requests map image UploadedFile parts to input_image.

    2.0.0release notes

  • Validates UploadedFile.provider_name in tool returns.

    2.0.0release notes

pydantic-ai-slim 1629 changes

Breaking changes 25

  • Native structured output is disabled for Opus 4.7 on Bedrock.

    1.102.0release notes

  • Bedrock no longer promotes tools with strict=None to strict mode, and omits the strict field when botocore is too old.

    1.102.0release notes

  • Region-less Gateway API keys now raise an error.

    1.100.0release notes

  • Adds GoogleCloudProvider as the separate provider for Google Cloud Vertex AI.

    1.97.0release notes

  • Drops mistralai as a dependency from pydantic-ai.

    1.94.0release notes

  • Hooks always receive dict-shaped validated arguments for tools with a single BaseModel.

    1.84.1release notes

  • Resumed requests are excluded from new_messages even when they have the current run_id.

    1.84.0release notes

  • The xAI provider_fallback value changed to x-ai to match genai-prices.

    1.73.0release notes

  • Disallows downloading FileUrls pointing at the local network by default.

    1.56.0release notessecurity advisory

  • OpenRouter now sends DocumentUrls as URLs instead of downloading them and sending their contents as bytes.

    1.45.0release notes

  • OpenTelemetry events were replaced with logs.

    1.32.0release notes

  • Support for OpenAI prompt caching options is temporarily reverted and will return in v1.31.0.

    1.30.1release notes

  • The tool_choice=required setting is disabled for deepseek-reasoner.

    1.27.0release notes

  • An error is raised immediately when a response is empty because of a token limit.

    1.22.0release notes

  • Message history is now required to start with a user message.

    1.21.0release notes

  • Markdown fences are always stripped from structured output.

    1.21.0release notes

  • Raises a clear error when a Google content filter is hit and results in an empty response.

    1.4.0release notes

  • The PAIG base URL changes.

    1.2.0release notes

  • With ag-ui-protocol >= 1.0, binary input parts are converted to image, audio, video, or document content; missing MIME type or payload still raises.

    1.0.0docs

  • Many more dataclasses are now keyword-only, affecting how they can be instantiated.

    1.0.0release notes

  • event_stream_handler now always runs inside a Temporal activity.

    1.0.0release notes

  • Using Google built-in tools with user or output tools now raises an error.

    1.0.0release notes

  • Raises an error if __aexit__ is called when _running_count is already 0.

    1.0.0release notes

  • ModelResponse.price() was renamed to .cost().

    1.0.0release notes

  • Support for Python 3.9 was dropped.

    1.0.0release notes

Security 9

  • Tool schemas submitted through the AG-UI adapter no longer cause exponential expansion when inlined for models that require schemas without $defs and $ref.

    1.107.10release notes

  • The cloud-metadata blocklist now includes Tencent Cloud's instance metadata address, preventing URL downloads from fetching temporary role credentials.

    1.107.10release notes

  • The local fallback now avoids expanding deeply nested JSON on the event loop before applying the returned-content limit, preventing excessive memory use and delays.

    1.107.10release notes

  • Drops credentials on a redirect whenever the full origin changes, not only when the hostname changes.

    1.107.6release notes

  • Fixes tail handling when sanitization drops a trailing client message, preventing a preceding unresolved tool call from being re-exposed and executed with client-chosen arguments on the AG-UI serving path.

    1.107.1release notes

  • UI adapters handle UploadedFile consistently with FileUrl, addressing a confused-deputy file-read vulnerability when processing untrusted client-submitted message history.

    1.106.0release notessecurity advisory

  • URL validation now handles additional IPv6 transition forms to prevent SSRF cloud-metadata blocklist bypasses for affected allow-local downloads.

    1.102.0release notessecurity advisory

  • URL validation now normalizes IPv6 transition forms, preventing an SSRF cloud-metadata blocklist bypass for applications that allow local downloads from potentially untrusted URLs.

    1.99.0release notessecurity advisory

  • Pydantic AI has Stored XSS via Path Traversal in Web UI CDN URL

    1.51.0security advisory

Deprecations 28

  • The evaluation_name attribute pattern is deprecated in favor of explicit accessor methods.

    1.100.0release notes

  • The evaluator_version attribute pattern is deprecated in favor of explicit accessor methods.

    1.100.0release notes

  • The gateway/gemini: prefix is deprecated in favor of gateway/google-cloud:.

    1.100.0release notes

  • Positional construction of evals classes is deprecated ahead of the v2 keyword-only flip.

    1.100.0release notes

  • The method-style StreamedResponse.usage() is deprecated.

    1.100.0release notes

  • Deprecates pydantic_ai.ext.aci, including tool_from_aci and ACIToolset.

    1.98.0release notes

  • FastMCPToolset is deprecated in favor of MCPToolset.

    1.97.0release notes

  • The provider ID is renamed to google:; the old name is deprecated.

    1.97.0release notes

  • The vertexai switch is replaced by separate GoogleProvider and GoogleCloudProvider classes; old names are deprecated.

    1.97.0release notes

  • stream_responses() is deprecated in favor of stream_response().

    1.97.0release notes

  • Deprecates the Agent constructor’s event_stream_handler= argument in favor of the ProcessEventStream capability.

    1.96.1release notes

  • Deprecates the Agent constructor’s prepare_output_tools= argument in favor of the PrepareOutputTools capability.

    1.96.1release notes

  • Deprecates the Agent constructor’s prepare_tools= argument in favor of the PrepareTools capability.

    1.96.1release notes

  • Deprecates Agent(history_processors=) in favor of capabilities=[ProcessHistory(...)].

    1.96.0release notes

  • Deprecates Agent.to_ag_ui() in favor of AGUIAdapter.

    1.96.0release notes

  • Deprecates AGUIApp in favor of AGUIAdapter.

    1.96.0release notes

  • Warns on bare openai: because it will switch to use the Responses API in v2.

    1.96.0release notes

  • Deprecates OutlinesModel.

    1.96.0release notes

  • Deprecates OutlinesProvider.

    1.96.0release notes

  • Deprecates the pydantic_ai.ag_ui shim in favor of AGUIAdapter.

    1.96.0release notes

  • The instrument argument is deprecated in favor of the Instrumentation capability.

    1.95.0release notes

  • Built-in tools are renamed native tools and can be registered via capabilities=[NativeTool(...)]; old fields are deprecated.

    1.95.0release notes

  • Function-tool events are deprecated for failing output tool calls.

    1.93.0release notes

  • Deprecates retries.

    1.92.0release notes

  • Warn about dict fields when using Anthropic strict mode.

    1.86.1release notes

  • Using Dataset without a name parameter is deprecated.

    1.74.0release notes

  • Deprecates GrokProvider, which used the OpenAI-compatible API.

    1.46.0release notes

  • The openai_supports_sampling_settings field is deprecated.

    1.0.0release notes

New APIs and options 259

  • Adds CachePoint and prompt caching support for OpenRouter.

    1.107.0release notes

  • Adds support for the Claude Fable 5 model.

    1.107.0release notes

  • Adds support for the Claude Mythos 5 model.

    1.107.0release notes

  • Adds known_model_names() to enumerate KnownModelName members.

    1.107.0release notes

  • Adds api_host to XaiProvider so developers can configure the provider's API host.

    1.106.0release notes

  • Adds timeout to XaiProvider so developers can configure the provider's timeout.

    1.106.0release notes

  • Current xAI model names are supported.

    1.105.0release notes

  • Capabilities can be loaded on demand, including instructions, tools, model settings, and hooks.

    1.105.0release notes

  • Grok 4.3 supports the reasoning_effort setting.

    1.105.0release notes

  • Adds support for Claude Opus 4.8.

    1.104.0release notes

  • Adds list_prompts and get_prompt functionality to McpServer.

    1.103.0release notes

  • OpenRouterModel supports anthropic_eager_input_streaming.

    1.103.0release notes

  • Dynamic-tool message parts can now include providerExecuted and title.

    1.102.0release notes

  • Adds a pending message queue API for enqueuing messages through an agent run.

    1.101.0release notes

  • Adds a pending message queue API for enqueuing messages through the context.

    1.101.0release notes

  • Adds support for MCP background tasks (SEP-1686).

    1.101.0release notes

  • Adds support for the top_k model setting in GoogleModel, AnthropicModel, and CohereModel.

    1.101.0release notes

  • Bedrock supports native JSON output and strict tool calls.

    1.100.0release notes

  • The gemini-3.5-flash model is now supported.

    1.99.0release notes

  • Adds OpenAI Responses input token counting through OpenAIResponsesModel.count_tokens.

    1.98.0release notes

  • Adds MCPToolset, which uses fastmcp-slim[client].

    1.97.0release notes

  • Adds run_on_errors to opt into evaluating failed calls.

    1.97.0release notes

  • Adds the singular stream_response() API, which yields ModelResponse rather than a (ModelResponse, is_last) tuple.

    1.97.0release notes

  • Adds the openai-chat: prefix; use it to select the OpenAI Chat API.

    1.96.0release notes

  • Adds the Instrumentation capability; Agent(instrument=...) is deprecated.

    1.95.0release notes

  • Adds local= as an opt-in for provider-adaptive capability fallback; automatic fallback is deprecated.

    1.95.0release notes

  • Gemini 3 supports combining structured output and tools.

    1.95.0release notes

  • Native tool search is supported on Anthropic and OpenAI, and custom search strategies can be used with any provider.

    1.95.0release notes

  • Adds the openai_chat_supports_multiple_system_messages profile flag.

    1.94.0release notes

  • Output tool calls now yield OutputToolCallEvent.

    1.93.0release notes

  • Output tool calls now yield OutputToolResultEvent.

    1.93.0release notes

  • Adds a tool_choice setting.

    1.93.0release notes

  • Adds support for Anthropic task budgets.

    1.92.0release notes

  • Adds a runtime override for output retries.

    1.92.0release notes

  • Add support for the deepseek-v4-flash model.

    1.91.0release notes

  • Add support for the deepseek-v4-pro model.

    1.91.0release notes

  • Support options for gpt-image-2.

    1.91.0release notes

  • Adds typed OTel metadata for code tool call syntax highlighting.

    1.90.0release notes

  • Adds OpenAI Conversations API state support through OpenAIResponsesModelSettings.openai_conversation_id.

    1.90.0release notes

  • Bundled Library Skills provide improved coding-agent support.

    1.89.1release notes

  • Adds builtin_tools to agent.override.

    1.89.0release notes

  • Supports dynamic capabilities by allowing callables in the capabilities list.

    1.89.0release notes

  • Adds conversation_id for cross-run correlation.

    1.89.0release notes

  • Supports the OpenAI Responses phase on assistant messages.

    1.88.0release notes

  • Adds a hook for preparing output tools.

    1.88.0release notes

  • Adds a cross-provider model setting, with Anthropic, Gemini API, and Vertex Priority PayGo support.

    1.88.0release notes

  • Adds Anthropic speed support, including fast mode for Opus 4.6.

    1.88.0release notes

  • Adds UIAdapter.sanitize_messages for sanitizing messages.

    1.88.0release notes

  • Handles the thinking setting for GPT-5.5.

    1.87.0release notes

  • Adds the handle_deferred_tool_calls hook for handling deferred tool calls.

    1.87.0release notes

  • Adds the HandleDeferredToolCalls capability for handling deferred tool calls.

    1.87.0release notes

  • Adds the ProcessEventStream capability.

    1.87.0release notes

  • Adds the ReinjectSystemPrompt capability.

    1.86.0release notes

  • Adds UIAdapter.manage_system_prompt for managing the system prompt.

    1.86.0release notes

  • Adds online evaluation via OpenTelemetry events.

    1.85.0release notes

  • Claude Opus 4.7 is now supported.

    1.84.0release notes

  • An OllamaModel subclass is now available.

    1.84.0release notes

  • A stateful compaction mode is now available for OpenAICompaction.

    1.84.0release notes

  • Supports Agent(output_type=str | None) for optional output.

    1.83.0release notes

  • Adds automatic prompt caching support for Anthropic.

    1.83.0release notes

  • Adds prompt cache TTL support for Bedrock.

    1.83.0release notes

  • Adds a graceful end strategy for parallel tool calls.

    1.83.0release notes

  • Allows metadata to be injected per tool call when using FastMCPToolset.

    1.83.0release notes

  • Adds support for xAI FileSearch.

    1.83.0release notes

  • Adds support for the xAI XSearchTool.

    1.83.0release notes

  • Adds the AnthropicCompaction capability for server-side compaction.

    1.80.0release notes

  • Adds CapabilityOrdering with innermost, outermost, wraps, wrapped_by, and requires ordering options for capabilities.

    1.80.0release notes

  • Adds an ordering parameter to Hooks and supports instance references in wraps and wrapped_by.

    1.80.0release notes

  • Adds the OpenAICompaction capability for server-side compaction.

    1.80.0release notes

  • Adds full support for AG-UI 0.1.13 and 0.1.15, including reasoning, multimodal support, and dump_messages.

    1.79.0release notes

  • Adds apply() to AbstractCapability, CombinedCapability, and WrapperCapability.

    1.79.0release notes

  • Adds cached token span attributes per the OTel spec.

    1.78.0release notes

  • Adds function_signature to ToolDefinition.

    1.78.0release notes

  • Adds return_schema to ToolDefinition.

    1.78.0release notes

  • Adds the SetToolMetadata capability.

    1.78.0release notes

  • Agents can use the new ThreadExecutor capability through Agent.using_thread_executor().

    1.77.0release notes

  • Tools and toolsets can use defer_loading to enable tool search.

    1.77.0release notes

  • VercelAIEventStream supports server_message_id.

    1.77.0release notes

  • A local WebFetch tool is available, and the WebFetch capability uses it when the provider lacks builtin support.

    1.77.0release notes

  • Adds agent to RunContext, making it available to developers using the run context.

    1.76.0release notes

  • Adds support for Flex PayGo with VertexAI.

    1.75.0release notes

  • Adds types and limits for gemini-embedding-2-preview embeddings.

    1.75.0release notes

  • Adds a method for retrieving toolset instructions.

    1.74.0release notes

  • Online evaluation infrastructure is added for pydantic-evals.

    1.74.0release notes

  • Adds TextContent for user prompts, with metadata that is not sent to the model.

    1.74.0release notes

  • Dataset.evaluate now supports CaseLifecycle hooks.

    1.73.0release notes

  • Hooks can raise ModelRetry to control retry flow.

    1.73.0release notes

  • Adds anthropic_eager_input_streaming to AnthropicModelSettings.

    1.72.0release notes

  • Adds the openai:gpt-5.4-mini model.

    1.71.0release notes

  • Adds the openai:gpt-5.4-nano model.

    1.71.0release notes

  • Adds bedrock_inference_profile to BedrockEmbeddingSettings.

    1.70.0release notes

  • Adds bedrock_inference_profile to BedrockModelSettings.

    1.70.0release notes

  • Adds a description parameter to Agent and sets gen_ai.agent.description on the span.

    1.69.0release notes

  • Adds support for GPT-5.4 models.

    1.67.0release notes

  • Enables native structured output support for the Ollama provider.

    1.67.0release notes

  • Supports WebSearchTool with OpenRouterModel through OpenRouter plugins.

    1.67.0release notes

  • Adds Nano Banana 2 using the gemini-3.1-flash-image-preview model.

    1.66.0release notes

  • Qwen 3.5 models support native structured output.

    1.66.0release notes

  • Adds support for the gemini-3.1-flash-lite-preview model.

    1.65.0release notes

  • A new UploadedFile object supports files uploaded to providers.

    1.65.0release notes

  • Supports template=False to disable the schema prompt.

    1.64.0release notes

  • Adds an args_validator parameter to tools for pre-execution validation.

    1.63.0release notes

  • Adds support for Gemini 3.1 Pro Preview models.

    1.63.0release notes

  • Adds logprob support for Gemini.

    1.63.0release notes

  • Adds LinePlot as an analysis type.

    1.62.0release notes

  • Adds tool approval integration for the Vercel AI adapter.

    1.62.0release notes

  • Claude Sonnet 4.6 was added, making it available to developers using the Anthropic integration.

    1.61.0release notes

  • OpenRouterModel supports video_url.

    1.60.0release notes

  • Adds an opt-in flag for aggregated usage attribute names.

    1.59.0release notes

  • Adds a property that returns the model identifier in provider:model format.

    1.59.0release notes

  • The Vercel AI adapter now allows BaseChunks to be injected through ToolReturnPart.metadata.

    1.59.0release notes

  • Adds experiment-wide analyses to pydantic-evals.

    1.58.0release notes

  • Adds extra_headers support for the Google model provider.

    1.58.0release notes

  • Adds the repeat parameter to pydantic-evals for multi-run aggregation.

    1.58.0release notes

  • Adds report-level evaluators to pydantic-evals.

    1.58.0release notes

  • Adds the anthropic_effort setting.

    1.56.0release notes

  • Adds adaptive as an anthropic_thinking.type value.

    1.56.0release notes

  • Adds anthropic_betas to AnthropicModelSettings.

    1.56.0release notes

  • Adds support for Claude Opus 4.6.

    1.56.0release notes

  • Concurrency limiting is added for Agents and Models, allowing developers to limit their concurrency.

    1.54.0release notes

  • Adds a setting to control data retention.

    1.52.0release notes

  • Adds the number of output validation retries to the agent's run context.

    1.52.0release notes

  • Adds an SDK version parameter to fix compatibility with Vercel AI SDK v5.

    1.52.0release notes

  • Adds the html_source parameter to customize the Chat UI source.

    1.51.0release notes

  • Users running with to_cli() can now supply model_settings.

    1.50.0release notes

  • A setting can include OpenAI raw text annotations in TextPart.provider_details.

    1.50.0release notes

  • Users running with to_cli() can now supply usage_limits.

    1.50.0release notes

  • Adds BedrockEmbeddingModel for Nova, Cohere and Titan endpoints.

    1.49.0release notes

  • OpenAI now supports the continuous_usage_stats model setting.

    1.48.0release notes

  • Sampling parameters are now allowed for GPT-5.1+ when reasoning is off.

    1.48.0release notes

  • OpenAI WebSearchTool now supports allowed_domains to restrict the domains used for web searches.

    1.48.0release notes

  • Adds XaiModel, which uses the xAI SDK.

    1.46.0release notes

  • Adds VoyageAI embeddings support.

    1.45.0release notes

  • Adds support for the Bedrock Nova 2.0 built-in Code Interpreter tool.

    1.44.0release notes

  • Adds an integration for Exa search tools.

    1.44.0release notes

  • Google embedding models are supported.

    1.43.0release notes

  • Adds OTel GenAI semantic convention attributes.

    1.42.0release notes

  • Adds support for the SambaNova provider.

    1.42.0release notes

  • Adds support for metadata in deferred tool results.

    1.41.0release notes

  • Set human-readable summaries for Temporal activities.

    1.40.0release notes

  • Agent and agent run metadata is exposed on result objects and span attributes.

    1.39.0release notes

  • Adds the bedrock_service_tier setting to BedrockModelSettings.

    1.39.0release notes

  • Support for embedding models was added.

    1.39.0release notes

  • Request and response models now include local timestamps, and provider timestamps are included in provider_details.

    1.38.0release notes

  • TextOutput signatures now allow typed RunContext[Deps].

    1.38.0release notes

  • DynamicToolset is now supported in Temporal.

    1.37.0release notes

  • Vertex AI Gemini image models now support output_compression.

    1.37.0release notes

  • Vertex AI Gemini image models now support output_format.

    1.37.0release notes

  • A model profile flag supports APIs with native output that still require JSON schema in instructions.

    1.37.0release notes

  • TemporalAgent can switch models at agent.run time.

    1.37.0release notes

  • Adds types for AI SDK data chunk IDs and tool approvals.

    1.36.0release notes

  • Adds support for AG-UI Multi-modal Messages.

    1.35.0release notes

  • Adds an Alibaba Cloud DashScope provider.

    1.35.0release notes

  • Adds FileSearchTool support for OpenAI and Google.

    1.35.0release notes

  • Adds Gemini 3 flash support.

    1.35.0release notes

  • Gemini image models now support ImageGenerationTool.size.

    1.35.0release notes

  • The OpenAI reasoning summary option now accepts 'auto'.

    1.35.0release notes

  • Adds audio input support for Qwen Omni.

    1.35.0release notes

  • Adds a method to launch a Web Chat UI for any agent.

    1.34.0release notes

  • Adds a Web Chat UI that can be launched for any agent with this command.

    1.34.0release notes

  • AnthropicModel and OpenAIResponsesModel now support FileUrl.force_download.

    1.34.0release notes

  • TemporalAgents can be registered to a Temporal workflow using the __pydantic_ai_agents__ field.

    1.32.0release notes

  • Tool timeout support was added, allowing developers to configure timeouts for tools.

    1.32.0release notes

  • Adds a method for obtaining an agent's output JSON schema.

    1.31.0release notes

  • Allows specifying custom clientInfo when connecting to MCP servers.

    1.31.0release notes

  • Adds support for GPT-5.2.

    1.31.0release notes

  • Allows model to be specified as a string.

    1.31.0release notes

  • Adds prompt caching support for AWS Bedrock.

    1.31.0release notes

  • Adds provider_url to ModelResponse and uses it in cost().

    1.31.0release notes

  • Adds CerebrasModel.

    1.30.0release notes

  • Adds prompt caching options to OpenAI chat model settings.

    1.30.0release notes

  • Gemini image generation now supports specifying an aspect ratio.

    1.29.0release notes

  • Adds native structured output support for claude-haiku-4-5.

    1.28.0release notes

  • Tool and resource caching is supported for MCP servers that support change notifications.

    1.27.0release notes

  • Raw CoT reasoning is supported from LM Studio and other OpenAI Responses-compatible APIs.

    1.27.0release notes

  • Built-in tools can now be configured dynamically via RunContext.

    1.27.0release notes

  • Adds a method to convert Pydantic AI messages to Vercel AI messages.

    1.27.0release notes

  • OpenAI model profiles support a custom reasoning field.

    1.26.0release notes

  • The gateway/...:... pattern is added to Known Model Names.

    1.26.0release notes

  • The Deepseek provider supports JSON object output.

    1.26.0release notes

  • Latest Grok (xAI) models are added.

    1.26.0release notes

  • Adds support for the gemini-3-pro-image-preview model with Nano Banana Pro.

    1.25.0release notes

  • The Responses API supports logprobs output.

    1.24.0release notes

  • Anthropic supports native JSON output.

    1.24.0release notes

  • Pydantic validation context is supported.

    1.24.0release notes

  • Anthropic supports strict tool calls.

    1.24.0release notes

  • Adds the anthropic_cache_messages model setting.

    1.23.0release notes

  • Adds Gemini 3 Pro support to OpenRouterModel.

    1.23.0release notes

  • Allows user_prompt in HITL.

    1.23.0release notes

  • Adds support for Anthropic's built-in WebFetchTool.

    1.23.0release notes

  • Anthropic now allows document in cacheable_types.

    1.22.0release notes

  • Adds OpenRouterModel as an OpenAIChatModel subclass with additional feature support.

    1.22.0release notes

  • Adds a convenience method to create BinaryContent from a path.

    1.21.0release notes

  • MCP clients now support Resources.

    1.21.0release notes

  • The MCP server instructions are exposed through the MCPServer.instructions property.

    1.21.0release notes

  • Adds ttl to CachePoint and Anthropic caching model settings.

    1.20.0release notes

  • Adds support for Gemini 3 Pro.

    1.20.0release notes

  • Adds support for Gemini enhanced JSON Schema features.

    1.20.0release notes

  • Extracts Google model usage using genai-prices.

    1.20.0release notes

  • Adds a metadata field to ModelRequest.

    1.20.0release notes

  • Adds a metadata field to ModelResponse.

    1.20.0release notes

  • AnthropicModel adds count_tokens.

    1.19.0release notes

  • Metadata can be passed to CallDeferred and ApprovalRequired exceptions and is included in DeferredToolRequests.

    1.19.0release notes

  • UsageLimits supports count_tokens_before_request.

    1.19.0release notes

  • Adds support for Anthropic prompt caching.

    1.18.0release notes

  • Adds GPT-5.1 to the known model names.

    1.18.0release notes

  • Adds token counting support for UsageLimits.count_tokens_before_request.

    1.15.0release notes

  • Run, run result, and message (request, response) classes now have a unique run_id.

    1.15.0release notes

  • A custom provider factory can now be passed into infer_model.

    1.14.0release notes

  • Adds a method to access all messages in an agent run.

    1.13.0release notes

  • Adds a JSON method to access all messages in an agent run.

    1.13.0release notes

  • Adds a method to access new messages in an agent run.

    1.13.0release notes

  • Adds a JSON method to access new messages in an agent run.

    1.13.0release notes

  • Adds gateway support for api_type.

    1.13.0release notes

  • Adds gateway support for profile.

    1.13.0release notes

  • Adds gateway support for routing_group.

    1.13.0release notes

  • Allows additional instructions to be provided at run time.

    1.11.0release notes

  • Adds partial_output to the RunContext provided to output validators.

    1.11.0release notes

  • Adds a synchronous streaming run method.

    1.10.0release notes

  • Adds support for detecting and handling Microsoft Word files.

    1.10.0release notes

  • Implements the base_url property.

    1.10.0release notes

  • Adds synchronous convenience methods.

    1.10.0release notes

  • Supports AsyncAnthropicVertex as the Anthropic client for AnthropicProvider.

    1.9.1release notes

  • Support was added for the Vercel AI Data Stream Protocol.

    1.9.0release notes

  • Experiment metadata was added.

    1.8.0release notes

  • Adds OutlinesModel to run local models using Transformers, Llama.cpp, MLXLM, SGLang and vLLM via Outlines.

    1.7.0release notes

  • Adds FastMCPToolset for developers to use.

    1.6.0release notes

  • Adds a flag to satisfy the vLLM Responses API.

    1.6.0release notes

  • A new graph API is available in beta.

    1.5.0release notes

  • Adds native MCP support for OpenAI and Anthropic via the MCPServerTool builtin tool.

    1.4.0release notes

  • Adds AWS Bedrock support to Gateway.

    1.3.0release notes

  • Adds an http_client option to GoogleProvider.

    1.3.0release notes

  • Adds OVHcloud AI Endpoints as a provider.

    1.3.0release notes

  • Adds api_key support for Vertex AI.

    1.3.0release notes

  • A Claude Haiku 4.5 model is available.

    1.2.0release notes

  • Tools can return AG-UI events separately from the result sent to the model.

    1.1.0release notes

  • Agent instructions can now be overridden contextually.

    1.1.0release notes

  • Agent names can now be overridden contextually.

    1.1.0release notes

  • Adds a convenience method wrapping run(event_stream_handler=...).

    1.1.0release notes

  • Adds a convenience method to get the latest model response.

    1.1.0release notes

  • Adds support for the Anthropic built-in memory tool.

    1.1.0release notes

  • Adds built-in tool call streaming from OpenAI, Google, and Anthropic.

    1.1.0release notes

  • Adds a description argument to tool function decorators.

    1.1.0release notes

  • Adds support for durable execution with DBOS.

    1.1.0release notes

  • Adds support for durable execution with Prefect.

    1.1.0release notes

  • Adds support for image generation and output with Google and OpenAI.

    1.1.0release notes

  • Adds convenience methods for accessing text, thinking, files, images, tool calls, and built-in tool calls.

    1.1.0release notes

  • Adds support for previous_response_id from the OpenAI Responses API.

    1.1.0release notes

  • Adds the Pydantic AI Gateway provider.

    1.1.0release notes

  • Adds MCP metadata and annotations to tool metadata for use in filtering.

    1.1.0release notes

  • Adds an identifier field to FileUrl and its subclasses.

    1.0.0release notes

  • Adds docstring_format to FunctionToolset.

    1.0.0release notes

  • Adds require_parameter_descriptions to FunctionToolset.

    1.0.0release notes

  • Adds schema_generator to FunctionToolset.

    1.0.0release notes

  • Tool calls can now be approved by a human in the loop.

    1.0.0release notes

  • Adds a LiteLLM provider for OpenAI API compatible models.

    1.0.0release notes

  • logfire is included with the pydantic-ai package.

    1.0.0release notes

  • Model request spans now include an operation.cost span attribute.

    1.0.0release notes

  • Adds a tool_calls_limit to limit tool calls.

    1.0.0release notes

Performance 2

  • Loading submitted messages through the Vercel AI and AG-UI adapters no longer takes time that grows with the square of the number of parts.

    1.107.10release notes

  • Computes ToolDefinition.function_signature lazily.

    1.82.0release notes

Behavior and default changes 67

  • The base seed setting is mapped to xAI, allowing developers to use it with xAI.

    1.106.0release notes

  • VercelAIAdapter now round-trips message timestamps through UIMessage.metadata.

    1.103.0release notes

  • Makes the XSearch capability model-agnostic by using a subagent fallback.

    1.101.0release notes

  • The beta API has moved out of beta, and the old API is deprecated.

    1.97.0release notes

  • Populates for_run RunContext with run_id, conversation_id, and metadata.

    1.92.0release notes

  • Propagates Agent retries to user-provided toolsets.

    1.88.0release notes

  • Tool-execution spans now set gen_ai.operation.name to execute_tool.

    1.86.1release notes

  • Vercel AI regenerate requests are now allowed without messageId.

    1.86.0release notes

  • Excludes run_id from cache key computation.

    1.81.0release notes

  • Warns when Azure OpenAI completions are incompatible with files.

    1.80.0release notes

  • Reverses capability iteration in get_wrapper_toolset for consistency with wrap_ hooks.

    1.80.0release notes

  • Output validators on the tool output path now see the global retry counter.

    1.80.0release notes

  • Anthropic/Bedrock cache boundaries are automatically inserted at the static/dynamic instruction split.

    1.77.0release notes

  • Agent run spans now include the gen_ai.operation.name attribute.

    1.76.0release notes

  • ImageGeneration automatically falls back to a subagent with an imagegen model when the main model lacks imagegen capability.

    1.76.0release notes

  • All agent run child spans now include agent name and run ID span attributes.

    1.74.0release notes

  • Run IDs are now time-sortable.

    1.74.0release notes

  • Before and wrap model request hooks can use ModelRequestContext to swap the model.

    1.73.0release notes

  • The MCP capability no longer requires an explicit url= in Python or AgentSpec.

    1.72.0release notes

  • Tool preparation functions can now be synchronous.

    1.72.0release notes

  • Adds response-based fallback support for FallbackModel.

    1.69.0release notes

  • Sends multimodal tool results directly to APIs instead of splitting them into user parts.

    1.69.0release notes

  • The redundant parent span was removed, changing the tracing spans emitted while running tools.

    1.68.0release notes

  • Rehauls the Tavily search tool.

    1.67.0release notes

  • Anthropic requests with high max_tokens now automatically fall back to streaming.

    1.64.0release notes

  • Instrumentation version 4 was added to match OTel GenAI semantic conventions for multimodal input.

    1.60.0release notes

  • The evaluator now supports pydantic.BaseModel.

    1.59.0release notes

  • The gateway base URL is inferred from the token region.

    1.53.0release notes

  • DBOSAgent supports parallel tool calls.

    1.49.0release notes

  • Adds YAML and TOML media type support when creating binary content from a path.

    1.41.0release notes

  • An agent can call a nonexistent tool as often as the Agent retries limit specifies.

    1.40.0release notes

  • System prompt functions can now return None.

    1.39.0release notes

  • AG-UI ActivityMessage is now silently ignored instead of raising an error.

    1.38.0release notes

  • The known Groq model names were updated to add production and preview models and remove deprecated models.

    1.37.0release notes

  • AG-UI events now have timestamps.

    1.35.0release notes

  • For models that don't natively support instructions, agent instructions are inserted after system prompts.

    1.33.0release notes

  • end_strategy now also works for output tools, not just tools.

    1.32.0release notes

  • Supports multi-modal output in LLMJudge.

    1.30.0release notes

  • The anthropic dependency is no longer required when using an Anthropic model with another provider.

    1.29.0release notes

  • OpenRouter uses a custom reasoning field.

    1.27.0release notes

  • An agent run with OpenAIResponsesModel can use instructions only.

    1.24.0release notes

  • Automatically strips cache points over the limit.

    1.23.0release notes

  • Missing state deps with AG-UI now produce a warning instead of a UserError.

    1.22.0release notes

  • Falls back on all model API errors, rather than only HTTP status 400 and above.

    1.22.0release notes

  • Reverts enforcement that message history must start with a user message.

    1.22.0release notes

  • FastMCPToolset now works with Temporal.

    1.17.0release notes

  • load_mcp_servers() supports environment variable expansion in mcp.json.

    1.17.0release notes

  • FallbackModel supports Native output mode and ModelProfile.default_structured_output_mode.

    1.11.1release notes

  • Installing on Intel Macs now skips the outlines dependencies mlx, vllm, and torch.

    1.11.0release notes

  • The validation error retry message was improved, changing the message developers see when validation errors trigger a retry.

    1.11.0release notes

  • Run graph/node span names are preformatted for compatibility with other OTel backends.

    1.5.0release notes

  • Makes AbstractBuiltinTool serializable and compatible with durable execution.

    1.3.0release notes

  • Fixes the default api_flavor value.

    1.3.0release notes

  • Includes evals report averages in span attributes, making them available in span data.

    1.3.0release notes

  • Uses gateway/<upstream_provider>: as the provider name prefix for Gateway.

    1.3.0release notes

  • Uses Pydantic AI's cached httpx client by default.

    1.3.0release notes

  • Raises IncompleteToolCall when generation of a tool call reaches the token limit.

    1.3.0release notes

  • Includes all usage fields in OpenTelemetry attributes.

    1.3.0release notes

  • OpenAI usage is extracted using genai-prices.

    1.2.0release notes

  • OpenAI support now includes text, JSON, XML, and YAML DocumentUrl and BinaryContent.

    1.1.0release notes

  • Explicitly requests image response modality from the Google API when the model supports it.

    1.1.0release notes

  • Agent.__aenter__ now returns Self.

    1.0.0release notes

  • Protocol-version-newer message roles, input content types, or media source types that installed models cannot dispatch are skipped with a warning; other invalid request bodies still raise.

    1.0.0docs

  • The default version for InstrumentationSettings is now 2.

    1.0.0release notes

  • The MCP sampling model now uses default instrumentation.

    1.0.0release notes

  • url no longer needs to be passed as a keyword argument.

    1.0.0release notes

  • NativeOutput is now supported with Groq.

    1.0.0release notes

Fixes and other changes 239

  • Guards against message=None Bedrock start events in the streaming path.

    1.107.0release notes

  • Fixes count_tokens when using native tools.

    1.107.0release notes

  • Fixes incomplete streamed responses when event_stream_handler does not consume the stream.

    1.106.0release notes

  • Fixes a crash when from_data_uri receives a valid non-base64 data URI.

    1.106.0release notes

  • Fixes constructing gateway models inside Temporal workflows by passing provider SDKs through the sandbox.

    1.105.0release notes

  • When google_cached_content is set, the request omits system_instruction, tools, and tool_config.

    1.105.0release notes

  • Forwards thinking=False on hybrid OpenRouter, xAI, and Bedrock routes, aligning silent-drop behavior with direct routes.

    1.104.0release notes

  • Preserves the cache for single-tool Bedrock tool_choice.

    1.104.0release notes

  • Bedrock now recognizes type='adaptive' when checking whether thinking is enabled.

    1.103.0release notes

  • UIAdapter.sanitize_messages strips the force_download flag from client-submitted FileUrl parts.

    1.103.0release notes

  • Bedrock now maps malformed_model_output to FinishReason.error.

    1.103.0release notes

  • Bedrock now maps malformed_tool_use to FinishReason.error.

    1.103.0release notes

  • A warning is emitted when toolset prepare callbacks return None.

    1.103.0release notes

  • Instrumentation no longer emits a false-positive variable_instructions span attribute.

    1.102.0release notes

  • Domain matching normalizes trailing dots and case.

    1.102.0release notes

  • Fixes thinking being silently dropped for Claude Sonnet 4.6 and Opus 4.6 on Bedrock, and adds support for adaptive thinking efforts.

    1.101.0release notes

  • Fixes code execution tool results being dropped when continuing a conversation.

    1.101.0release notes

  • Preserves single BaseModel tool arguments sent in wrapped form when the model uses the default extra='ignore'.

    1.101.0release notes

  • Preserves Xai tool result IDs.

    1.101.0release notes

  • Signatures on incomplete incoming thinking parts are ignored when using Vercel AI.

    1.100.0release notes

  • OpenAI strict schemas with regex lookarounds are avoided.

    1.99.0release notes

  • The MCP integration no longer requires fastmcp.server at runtime.

    1.98.0release notes

  • ModelResponse.state is set to incomplete while the response is still streaming.

    1.97.0release notes

  • The OpenAI image generation tool now omits input_fidelity when its value is None.

    1.96.1release notes

  • OpenAIResponsesModel now respects openai_system_prompt_role.

    1.96.1release notes

  • The setter is no longer deprecated.

    1.95.1release notes

  • Imports are now eager, unbreaking agent runs in Temporal workflows.

    1.95.1release notes

  • Restores the ability to swap the Bedrock client at runtime.

    1.95.0release notes

  • Bedrock model IDs are normalized for capability profile lookup.

    1.95.0release notes

  • The Vercel AI integration emits tool-input-available and tool-input-error for FunctionToolCallEvent.

    1.95.0release notes

  • Spawned tasks are drained during agent cancellation.

    1.93.0release notes

  • Guarantees that CaseLifecycle.teardown() runs.

    1.92.0release notes

  • Runs the MCP session in a dedicated task to fix attempted exit cancel scope in different task.

    1.92.0release notes

  • Cleans up streaming responses when cancellation occurs.

    1.92.0release notes

  • Fix history replay when tool arguments are empty.

    1.91.0release notes

  • Empty ModelResponse objects are skipped when mapping OpenAI Chat assistant messages.

    1.91.0release notes

  • Preserve Unicode in YAML datasets.

    1.91.0release notes

  • Defers anyio.Lock creation via cached_property so the lock binds to the running loop.

    1.89.1release notes

  • Restores wrap_validation_errors on ToolManager function-tool methods.

    1.89.1release notes

  • Uses a non-daemon thread for background evaluators.

    1.89.0release notes

  • Restores per-block cache_control behavior for anthropic_cache_messages.

    1.88.0release notes

  • Propagates the original error when a CallToolsNode stream fails.

    1.88.0release notes

  • Scopes prepare_tools to function tools rather than output tools.

    1.88.0release notes

  • Guard against choices being None in streamed OpenAI chunks.

    1.86.1release notes

  • Send container_id as a string on reuse and unwrap the broken {id: x} shape.

    1.86.1release notes

  • Prevent MCPServer.__aexit__ from being called more times than __aenter__.

    1.86.1release notes

  • Avoid stale client references in model and embedding classes.

    1.86.1release notes

  • Preserve validation error input when retrying tool calls.

    1.86.1release notes

  • Handles dict reasoning_content from Gemini 2.5 models.

    1.86.0release notes

  • dump_messages() now auto-detects deferred tool approval state for vercel-ai.

    1.85.1release notes

  • Validation error input is excluded from retry messages.

    1.85.1release notes

  • Tool hooks are skipped for internal output tools.

    1.84.1release notes

  • Keyword matching for deferred tool search is fixed.

    1.84.0release notes

  • Ollama capability flags are corrected to fix structured output on Ollama Cloud.

    1.84.0release notes

  • Parsing openai_logprobs for streamed responses is fixed.

    1.84.0release notes

  • OpenAI Responses retries are chained through concrete openai_previous_response_id seeds.

    1.84.0release notes

  • Null text in Responses API output is now handled.

    1.84.0release notes

  • Fixes an orphan-task leak in CombinedCapability.

    1.82.0release notes

  • Fixes an orphan-task leak in CombinedToolset.

    1.82.0release notes

  • Fixes the OpenAI compaction chain when openai_previous_response_id is set to 'auto'.

    1.82.0release notes

  • Fixes usage totals for Anthropic compaction.

    1.81.0release notes

  • Skips the api-version query parameter for Azure AI Foundry serverless endpoints.

    1.81.0release notes

  • Handles boolean JSON Schema nodes.

    1.81.0release notes

  • Closes pending tool calls when a stream errors.

    1.81.0release notes

  • Unknown tool calls no longer exhaust the global retry counter.

    1.80.0release notes

  • Makes mcp optional when importing the DBOS module.

    1.80.0release notes

  • Fixes hook recovery for on_node_run_error and after_node_run.

    1.79.0release notes

  • Forces streaming in run() when a capability or hook overrides wrap_run_event_stream.

    1.79.0release notes

  • Fixes renamed schema defs by updating internal $refs, handling missing keywords, and detecting semantically different defs.

    1.79.0release notes

  • Output validators now run for image outputs.

    1.77.0release notes

  • Streaming SDK errors are wrapped in ModelHTTPError or ModelAPIError.

    1.77.0release notes

  • Vercel AI adapter user message processing now handles DataUIPart.

    1.75.0release notes

  • Instruction insertion counts only leading system messages.

    1.75.0release notes

  • Handles null top-level fields when the response is nested in the provider field.

    1.75.0release notes

  • Invalid output tool calls now have consistent error handling between run_sync and run_stream.

    1.75.0release notes

  • Bedrock clients no longer have TTL stripped from cache control.

    1.75.0release notes

  • These outcomes no longer mark tool spans as errors.

    1.74.0release notes

  • Fixes batch embeddings generation with this model.

    1.74.0release notes

  • Fixes service_tier validation failures for OpenAI-compatible providers.

    1.74.0release notes

  • ToolOutput now respects the max_retries parameter.

    1.74.0release notes

  • Capability schema generation now includes full parameter types.

    1.73.0release notes

  • Inserts an empty user message for Bedrock when only instructions are present.

    1.72.0release notes

  • Adds missing effort values to OpenRouterReasoning.

    1.72.0release notes

  • Fixes type inference for the Thinking capability.

    1.72.0release notes

  • Preserves ToolReturn metadata through Temporal serialization.

    1.72.0release notes

  • Handles malformed tool call arguments in the Anthropic retry path.

    1.70.0release notes

  • Sanitizes tool names before sending them to the Bedrock API.

    1.70.0release notes

  • Always passes embedding_types to Cohere embed() to prevent an SDK TypeError.

    1.70.0release notes

  • Adds 512 as a supported Google image generation size.

    1.70.0release notes

  • Fixes model profile matching for Anthropic models with dotted model numbers.

    1.70.0release notes

  • Recovers prior text for thinking-only responses instead of retrying.

    1.70.0release notes

  • Copies the details dict to prevent mutation of the original when adding Usage values.

    1.69.0release notes

  • Follow-up messages no longer fail after built-in tool use.

    1.68.0release notes

  • Thinking detection was fixed for this OpenAI model.

    1.68.0release notes

  • Adds missing tool approval part types for Vercel AI SDK v6.

    1.67.0release notes

  • Fixes YAML export/import round-tripping for SpanQuery arguments.

    1.66.0release notes

  • Fixes builtin tool availability checking when TemporalAgent uses multiple models.

    1.66.0release notes

  • Exception classes gain __reduce__ support so they can be pickled.

    1.65.0release notes

  • has_content() no longer incorrectly returns False when tool arguments contain falsy values.

    1.64.0release notes

  • Vercel dump_messages output now aligns with the Vercel spec.

    1.64.0release notes

  • Google streaming errors are wrapped as ModelHTTPError or ModelAPIError.

    1.64.0release notes

  • Sibling tasks are canceled when any exception occurs during parallel tool execution.

    1.64.0release notes

  • UI adapter runs now include the missing run_id on ModelRequest.

    1.64.0release notes

  • Sets BuiltinToolCallPart.id for OpenAI Responses WebSearch and FileSearch.

    1.63.0release notes

  • Temporal and DBOS MCP now use cached tools instead of fetching them each time.

    1.63.0release notes

  • Updates Cohere content item typing to fix an incompatibility.

    1.63.0release notes

  • Fixes Anthropic models on Bedrock being incorrectly treated as supporting JSON schema output.

    1.63.0release notes

  • Optional fields in OpenRouter streaming models now have defaults.

    1.63.0release notes

  • New messages are identified by run_id instead of index.

    1.63.0release notes

  • Pydantic Evals now gracefully handles custom TracerProviders without add_span_processor.

    1.63.0release notes

  • Handles OpenAI content filter refusals.

    1.62.0release notes

  • Handles content filter refusals reported through Google prompt_feedback.

    1.62.0release notes

  • Groq tool_use_failed errors without a tool name or arguments are handled by retrying.

    1.62.0release notes

  • Python 3.14 is supported.

    1.61.0release notes

  • Fixed AG-UI parent_message_id handling for back-to-back builtin tool calls.

    1.60.0release notes

  • Retry suggestions only recommend calling a tool when tools are available.

    1.60.0release notes

  • XAI now lazily creates an AsyncClient per event loop to avoid gRPC loop mismatch.

    1.59.0release notes

  • Fixes base64 decoding for A2A FilePart image and file uploads.

    1.57.0release notes

  • Fixes Bedrock CachePoint placement when there are multiple trailing documents.

    1.56.0release notes

  • Adds the missing union discriminator to prevent incorrect deserialization.

    1.55.0release notes

  • Fixes an error when a compatible provider returns reasoning_tokens as None.

    1.55.0release notes

  • Handles non-primitive types in BaseModel values.

    1.52.0release notes

  • Sends reasoning content back via the field it was received in.

    1.52.0release notes

  • Fixes caching when a user message ends on non-text content.

    1.51.0release notes

  • Fixes an error when Gemini calls tools in an agent run with instructions but no user prompt.

    1.51.0release notes

  • Fixes serialization of BinaryContent returned by a tool in Temporal.

    1.50.0release notes

  • Fixes Temporal serialization of DocumentUrl when it has a custom media_type.

    1.50.0release notes

  • Retries instead of raising an error when Google returns 0 candidates.

    1.50.0release notes

  • Corrects the OpenAI literal from 'in-memory' to 'in_memory'.

    1.50.0release notes

  • Types now match Vercel AI SDK v6.

    1.49.0release notes

  • Mistral streaming JSON mode now applies model_settings.

    1.48.0release notes

  • Embeddings APIs that omit usage are now supported.

    1.48.0release notes

  • Thought signatures and other provider metadata now survive a round trip through a Vercel AI frontend.

    1.47.0release notes

  • function_schema() now uses get_type_hints() when building function schemas.

    1.45.0release notes

  • Gemini now includes the user prompt when continuing a conversation that ended on structured output.

    1.45.0release notes

  • Sets a timeout in Google HttpOptions to prevent requests from hanging indefinitely.

    1.45.0release notes

  • Makes count_tokens() work on WrapperModel.

    1.44.0release notes

  • Fixes OpenAI not populating dict[str, ...] tool arguments.

    1.43.0release notes

  • Cancels tool calls when Agent.run or Agent.run_stream_events is cancelled.

    1.42.0release notes

  • Raises ContentFilterError consistently when a model response is empty because of a content filter.

    1.42.0release notes

  • Prevents an error when Mistral returns a ReferenceChunk.

    1.41.0release notes

  • Preserves a custom payload_codec.

    1.40.0release notes

  • PydanticAIPlugin respects PydanticPayloadConverter subclasses.

    1.40.0release notes

  • At the end of streaming, stream_output() calls the output function or validator with partial_output=False.

    1.40.0release notes

  • Fixes input_tokens calculation for Bedrock models.

    1.39.1release notes

  • Fixes duplicated tool calls when partial_output=False and caches the result.

    1.39.1release notes

  • Fixes the partial_output flag during streaming.

    1.39.1release notes

  • Updates thoughtSignature for Vertex Gemini 3 compatibility.

    1.39.1release notes

  • ThinkingPart is now handled in MCP Sampling.

    1.39.0release notes

  • Media type inference now works for URLs with query parameters.

    1.38.0release notes

  • GCS URIs on google-vertex now respect VideoUrl.vendor_metadata.

    1.38.0release notes

  • get_output() no longer creates duplicate messages when stream_output() has already been called.

    1.37.0release notes

  • ToolRetryError now sets its message.

    1.37.0release notes

  • Preserves the type field when converting const to enum in Google JSON schema transformation.

    1.36.0release notes

  • Operates on a deep copy of $defs instead of the original schema, avoiding modification of the original schema.

    1.35.0release notes

  • Fixes a typing issue when dispatching requests with an agent that has output_type.

    1.35.0release notes

  • Makes the __init__ overloads less restrictive.

    1.34.0release notes

  • Fixes using synchronous history processors, instructions functions, and output functions with TemporalAgent.

    1.34.0release notes

  • Passes s3:// file URLs directly to the API.

    1.33.0release notes

  • The typing for UIAdapter.dispatch_request was fixed.

    1.32.0release notes

  • Fixes handling of the web search find_in_page action.

    1.31.0release notes

  • Compatibility with openai v1 is restored.

    1.30.1release notes

  • Fixes GraphBuildingError when using g.stream multiple times.

    1.30.0release notes

  • Fixes a BedrockConverseModel error when ModelResponse.parts is empty.

    1.30.0release notes

  • Broken resource errors are suppressed when cancelling.

    1.29.0release notes

  • The container_id is now passed back to the Anthropic API.

    1.29.0release notes

  • Fixes streaming tool calls so the GoogleModel thinking signature is stored.

    1.29.0release notes

  • Fixes errors when an OpenRouter response includes file annotations.

    1.29.0release notes

  • Streamed OpenRouter reasoning details can now omit content.

    1.28.0release notes

  • Bedrock geo prefixes now support us-gov. and other multi-character prefixes.

    1.28.0release notes

  • Copies extra_headers so model_settings can be reused.

    1.27.0release notes

  • Fixes structured output with nested definitions when using Gemini via OpenRouter.

    1.27.0release notes

  • TTL is automatically omitted from cache_control when AnthropicModel is used with a Bedrock client.

    1.26.0release notes

  • The behavior of FallbackModel on ValidationErrors is clarified.

    1.26.0release notes

  • FastMCPToolset now works with DBOS.

    1.25.1release notes

  • Fixes an error when the OpenRouter API returns None for tool call arguments.

    1.25.1release notes

  • Fixes an error when native_finish_reason is None.

    1.25.1release notes

  • Returns tool errors to Google in the error key.

    1.25.0release notes

  • Fixes GeneratorExit handling in pydantic_graph.beta.GraphRun.

    1.23.0release notes

  • A custom httpx client provided to MCPServerHTTP is no longer closed by the server.

    1.23.0release notes

  • Uses the model_name property in the chat completion create request.

    1.23.0release notes

  • Ensures the openrouter_reasoning model setting is sent to the API.

    1.23.0release notes

  • Google messages with zero parts are no longer sent.

    1.22.0release notes

  • An empty ThinkingPart is no longer inserted when a Google response ends in text with a thought_signature.

    1.22.0release notes

  • Fixes structured output and tool call thought signatures for the deprecated GeminiModel.

    1.22.0release notes

  • A model request is no longer skipped when history ends on a response but new instructions are present.

    1.22.0release notes

  • Fixes nested tool argument schemas by removing title from $defs.

    1.21.0release notes

  • Changes handling of empty state objects for AG-UI.

    1.20.0release notes

  • Wraps google.genai.errors.APIError in ModelHTTPError so it works with FallbackModel.

    1.20.0release notes

  • Updates has_content to check content data.

    1.20.0release notes

  • Makes RunContext.usage available with Temporal.

    1.20.0release notes

  • Fixes Gateway with Temporal by adding sniffio to sandbox passthrough modules.

    1.19.0release notes

  • Fixes a bug with running graphs in temporal workflows.

    1.19.0release notes

  • Restores upstream_provider for developers using the gateway.

    1.16.0release notes

  • Errors are wrapped in ModelHTTPError so BedrockConverseModel works well with FallbackModel.

    1.15.0release notes

  • ModelRetry is now hashable.

    1.14.1release notes

  • Vercel AI tool input and output now appear as objects rather than JSON strings.

    1.14.1release notes

  • Fixes an error when Google returns only empty text parts.

    1.14.0release notes

  • GoogleModel ignores empty text parts.

    1.13.0release notes

  • Updates the known models on Cerebras and Heroku.

    1.13.0release notes

  • Fixes resumed agent runs incorrectly treating a tool call as approved when history ends with an unapproved tool call.

    1.12.0release notes

  • Fixes a task cancellation bug in the graph beta API triggered by using MCPServerStreamableHTTP with agent.run_stream.

    1.11.1release notes

  • Fixes the type annotation for DuckDuckGoTool with the latest version of ddgs.

    1.11.1release notes

  • Corrects handling for OpenAI gpt-5-chat, which does not support encrypted reasoning.

    1.11.0release notes

  • Fixes graph execution when multiple joins are downstream of the same fork.

    1.11.0release notes

  • Fixes type variable variance for agent dependencies.

    1.10.0release notes

  • Fixes error handling with Temporal.

    1.10.0release notes

  • Fixes types so OpenRouterProvider can be created with only http_client.

    1.10.0release notes

  • Prevents AG-UI events from using a parent_message_id from a previous request or response.

    1.10.0release notes

  • An empty Google response with MALFORMED_FUNCTION_CALL or another recoverable finish reason now triggers a retry instead of an error.

    1.9.1release notes

  • AG-UI frontend state is set directly on the provided deps, making it readable from the on_complete handler.

    1.9.1release notes

  • OpenAIResponsesModel now respects the openai_supports_tool_choice_required model profile setting.

    1.8.0release notes

  • Agent name inference was fixed when using run_stream_events.

    1.8.0release notes

  • Fixes pydantic-graph importing pydantic-ai.

    1.7.0release notes

  • Sanitizes the auto-generated output tool name to support generic types.

    1.6.0release notes

  • Ensures ToolCallPart.args resulting from TestModel(custom_output_args=...) is always a dict.

    1.6.0release notes

  • google-genai no longer closes an httpx client provided by Pydantic AI or the user.

    1.5.0release notes

  • Uses the correct agent's instructions when telling the model to retry output.

    1.4.0release notes

  • Fixes usage extraction for Anthropic.

    1.3.0release notes

  • Ignores empty text deltas when streaming gpt-oss on Bedrock.

    1.3.0release notes

  • Ignores empty text deltas when streaming gpt-oss via Ollama.

    1.3.0release notes

  • Nests toolset spans, including MCP sampling spans, under the agent run span.

    1.3.0release notes

  • Markdown fences are stripped when generating evals datasets.

    1.2.0release notes

  • The agent span includes the final_result attribute after streaming.

    1.2.0release notes

  • Instructions are recorded on the agent run span even when they are dynamic.

    1.1.0release notes

  • Updates the Gateway provider base URL.

    1.1.0release notes

  • AG-UI text message content events with empty text part deltas are no longer emitted.

    1.0.0release notes

  • Empty AG-UI thinking message events are no longer emitted.

    1.0.0release notes

  • Fixes usage counting for Anthropic streaming.

    1.0.0release notes

  • Fixes streaming when the async content filter is enabled.

    1.0.0release notes

  • Streaming thinking signature deltas are now handled.

    1.0.0release notes

  • Errors in evals are now handled gracefully.

    1.0.0release notes

  • Fixes streaming errors when Gemini responses include only executable_code or code_execution_result.

    1.0.0release notes

  • Groq tool_use_failed errors are handled by asking the model to retry.

    1.0.0release notes

  • The original response is now closed when retrying an HTTP request.

    1.0.0release notes

  • ModelRequest.parts is now typed as Sequence.

    1.0.0release notes

  • Old ModelResponses stored in a database can still be deserialized.

    1.0.0release notes

  • ModelResponse.parts is now typed as Sequence.

    1.0.0release notes

  • Separate OpenAI Responses reasoning summary parts now produce separate ThinkingParts.

    1.0.0release notes