Skip to content

chore(deps): bump pydantic-ai-slim from 2.71.0 to 2.74.0 in /pydantic-ai - #118

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/pydantic-ai/pydantic-ai-slim-2.74.0
Dec 2, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/pip/pydantic-ai/pydantic-ai-slim-2.74.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 2, 2026

Copy link
Copy Markdown
Contributor

Bumps pydantic-ai-slim from 2.71.0 to 2.74.0.

Release notes

Sourced from pydantic-ai-slim's releases.

v2.74.0 (2026-11-24)

What's Changed

🛡️ Security

  • GHSA-wm3r-gc4c-q7qg (medium, CVE-2026-136639): Pydantic AI Harness's PlaywrightBrowser private-address block did not refuse IPv6 site-local addresses (fec0::/10), so on a network that still routes that range, a page or URL an attacker influences could make the browser open an internal address and return its content to the model. You are affected if you use PlaywrightBrowser with block_private_addresses=True, the default, to open pages an attacker can influence. Fixed in pydantic-ai-harness 0.74.0.
  • GHSA-p2q8-3252-77c3 (medium, CVE-2026-136640): PlaywrightBrowser's private-address block let through IPv6 addresses that embed a cloud metadata address under a network's own NAT64 prefix, and ISATAP forms of private addresses, so on such networks the browser could reach the metadata service. You are affected if you use PlaywrightBrowser with its default address block on an IPv6 network with a NAT64 or SIIT translator that uses its own prefix. The block now refuses every IP address that Pydantic AI's URL download guard refuses. Fixed in pydantic-ai-harness 0.74.0.
  • GHSA-g87v-g79r-whvj (medium, CVE-2026-136638): PlaywrightBrowser treated a URL with a backslash in its query as having no host and allowed script and asset requests with no host, so a page script could send requests to private addresses, to hosts outside allowed_domains and to hosts in blocked_domains. You are affected if you use PlaywrightBrowser to open pages an attacker can influence. Fixed in pydantic-ai-harness 0.74.0.
  • GHSA-mj96-6529-3cpf (medium): PlaywrightBrowser's egress policy did not cover WebRTC, WebTransport, WebSocketStream or FedCM traffic, so a page could reach hosts and ports the policy refuses, and read replies over WebSocketStream, including from private addresses. You are affected if you use PlaywrightBrowser to open pages an attacker can influence. Under an enforced policy, which is the default, the patched version removes those APIs from pages and frames and launches Chromium with FedCM and WebSocketStream off; workers' WebTransport, WebSocketStream in workers over cdp_url, isolated sandboxed iframes and documents loaded before attachment stay open, as the advisory lists. Fixed in pydantic-ai-harness 0.74.0.
  • GHSA-gm2p-369w-rcgv (medium, CVE-2026-136642): With OpenTelemetry instrumentation enabled, realtime sessions on ElevenLabs Agents recorded elevenlabs_agents_custom_llm_extra_body and elevenlabs_agents_dynamic_variables in full in their trace spans, including secret__ dynamic variables, which ElevenLabs intends for auth tokens and API keys. You are affected if you instrument realtime sessions with ElevenLabsAgentsRealtimeModel and pass credentials through either setting; on 2.58.0 to 2.62.0, include_content=False does not remove them. Fixed in pydantic-ai and pydantic-ai-slim 2.74.0.
  • GHSA-7xcv-6766-v6v5 (medium, CVE-2026-136643): Online evaluation let OpenTelemetry baggage in the current context set attributes on its gen_ai.evaluation.result events that the evaluation left unset, such as error.type and gen_ai.evaluation.score.value, so a client sending a baggage header could have a passing evaluation recorded with an error type, or a failed one recorded with a score. You are affected if you run online evaluation in an application whose OpenTelemetry setup extracts inbound baggage, as the default propagators do. Fixed in pydantic-evals 2.74.0 and 1.107.11.

⚠️ Compatibility Notes

  • Add the computer tool contract to core: pydantic_ai.computer_use and ComputerTool by @​adtyavrdhn in pydantic/pydantic-ai#11006
    • Adds ComputerTool to NATIVE_TOOLS_REQUIRING_CONFIG: it needs a computer tool to run its calls.
  • [cache] Send static instructions as leading input messages on GPT-6.2, which never caches top-level instructions by @​dsfaccini in pydantic/pydantic-ai#14095
    • Continuing a GPT-6.2 response through an explicit openai_previous_response_id='resp_…' without its message_history now inherits that response's static instructions. Pass the message_history, or profile=OpenAIModelProfile(openai_responses_stable_instructions_as_input=False).
  • Stop summing Gemini's running usage totals when streaming through OpenAIChatModel by @​dsfaccini in pydantic/pydantic-ai#14285
    • Streaming a gemini* model through OpenAIProvider now reports the endpoint's final usage totals instead of their sum, so cost figures drop and UsageLimits token limits trip later.
  • Under an enforced egress policy (the default), PlaywrightBrowser pages no longer have RTCPeerConnection, WebTransport, WebSocketStream or FedCM, and browsers it launches start with those Blink features off. If your agent needs one of them, open an issue: a parameter that keeps them can be added. (by @​dsfaccini in pydantic/pydantic-ai#14363)

🚀 Features

🐛 Bug Fixes

Full Changelog: pydantic/pydantic-ai@v2.73.0...v2.74.0

... (truncated)

Changelog

Sourced from pydantic-ai-slim's changelog.

v2.74.0

  • Add the computer tool contract to core: pydantic_ai.computer_use and [ComputerTool][pydantic_ai.native_tools.ComputerTool]. Adds ComputerTool to NATIVE_TOOLS_REQUIRING_CONFIG: it needs a computer tool to run its calls (#11006)
  • Send static instructions as leading input messages on GPT-6.2, which never caches top-level instructions. Continuing a GPT-6.2 response through an explicit [openai_previous_response_id='resp_…'][pydantic_ai.models.openai.OpenAIResponsesModelSettings.openai_previous_response_id] without its message_history now inherits that response's static instructions. Pass the message_history, or [profile=OpenAIModelProfile(openai_responses_stable_instructions_as_input=False)][pydantic_ai.profiles.openai.OpenAIModelProfile] (#14095)
  • Stop summing Gemini's running usage totals when streaming through [OpenAIChatModel][pydantic_ai.models.openai.OpenAIChatModel]. Streaming a gemini* model through [OpenAIProvider][pydantic_ai.providers.openai.OpenAIProvider] now reports the endpoint's final usage totals instead of their sum, so cost figures drop and [UsageLimits][pydantic_ai.usage.UsageLimits] token limits trip later (#14285)
  • Under an enforced egress policy (the default), [PlaywrightBrowser][pydantic_ai_harness.playwright.PlaywrightBrowser] pages no longer have RTCPeerConnection, WebTransport, WebSocketStream or FedCM, and browsers it launches start with those Blink features off. If your agent needs one of them, open an issue: a parameter that keeps them can be added (#14363)

v2.73.0

  • Warn with [DeprecatedModelWarning][pydantic_ai.exceptions.DeprecatedModelWarning] when a request targets a model Anthropic or OpenAI has deprecated (#14038)
  • Surface OpenAI Responses input_transformations in [provider_details][pydantic_ai.messages.ModelResponse.provider_details] and on the model request span. Raises the openai floor from 3.31.0 to 3.50.0 on every extra that installs openai (#14056)
  • Add capabilities to [Agent.override][pydantic_ai.agent.Agent.override] and export [AgentInstructions][pydantic_ai.capabilities.AgentInstructions] and [SourcedInstruction][pydantic_ai.capabilities.SourcedInstruction]. The private Agent._override_root_capability context variable now holds a (capability, injected) tuple. Code that reads it directly needs updating (#12551)
  • Add [RealtimeSession.append_voice_instructions][pydantic_ai.realtime.RealtimeSession.append_voice_instructions] for GPT-Live's voice model, and a Twilio Media Streams bridge example (#14191)
  • Leave init=False evaluator fields out of [Dataset][pydantic_evals.dataset.Dataset] files and schemas, and stop ClassVar annotations breaking [to_file()][pydantic_evals.dataset.Dataset.to_file] (#13355)
  • Ship nested tool-argument models to Render and Azure Durable Task workers by alias, so aliased fields survive revalidation (#13929)
  • Rename $refs under every JSON schema keyword in merge_json_schema_defs, and keep [TestModel][pydantic_ai.models.test.TestModel] arguments valid for their schemas (#13993)
  • Downscale images [Coder][pydantic_ai_harness.coder.Coder] reads to at most 1024 pixels on the longest side, with opt-in [FileSystem(max_image_side=...)][pydantic_ai_harness.FileSystem]. The coder extra now installs pillow>=12.3.0 (#14196)
  • Drop the unified settings Claude, Gemini and Grok models reject instead of sending them. A [FallbackModel][pydantic_ai.models.fallback.FallbackModel] that relied on the 400 to reach a later model now stays on the first model without the setting. To keep the setting, list a model that supports it first (#12426)
  • Raise the boxd extra to 0.3 and swap the /sandbox boxd GitHub token into request headers only. pydantic-ai-harness[boxd] now requires boxd>=0.3.3,<0.4. Code that calls 0.2-only boxd APIs directly needs updating (#14225)
Commits
  • b3d1b57 Return a failed reason from ArgumentCorrectness when non-object tool argume...
  • 845d3fb Preserve nonempty PAX drafts when editing recalled prompts (#14368)
  • c504f52 Limit page APIs under an enforced PlaywrightBrowser policy (#14363)
  • e7ae18c Send a tool's text output to Qwen3 Next as a JSON string field with `needs_js...
  • 84a4ca7 [cache] Send static instructions as leading input messages on GPT-6.2, whic...
  • ceedf99 Keep the stored id on the user message in AGUIAdapter.dump_messages when an...
  • 0a42459 Google: send the computer tool as Google's computer use tool on Gemini (#14...
  • d998daa Add the desktop backends to the computer use docs (#14348)
  • 7223f0a Download PR Review Checks results again when the artifact list lags (#14355)
  • fa40310 Add a CDPBrowser Harness capability that drives Chrome with raw DevTools Pr...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pydantic-ai-slim](https://github.com/pydantic/pydantic-ai) from 2.71.0 to 2.74.0.
- [Release notes](https://github.com/pydantic/pydantic-ai/releases)
- [Changelog](https://github.com/pydantic/pydantic-ai/blob/main/docs/changelog.md)
- [Commits](pydantic/pydantic-ai@v2.71.0...v2.74.0)

---
updated-dependencies:
- dependency-name: pydantic-ai-slim
  dependency-version: 2.74.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from a team as a code owner December 2, 2026 06:45
@github-actions
github-actions Bot enabled auto-merge (squash) December 2, 2026 06:45
@github-actions
github-actions Bot merged commit af82f8c into main Dec 2, 2026
8 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/pydantic-ai/pydantic-ai-slim-2.74.0 branch December 2, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants