Vibeleaderboard
← All Intel
Intel / repo

pydantic-ai v2.74.0 — v2.74.0 (2026-11-24)

Source
github.com
Author
dsfaccini
Date

Context

Pydantic AI 2.74.0 moves computer use from something you wire up per provider into the framework itself. Pydantic AI is the Python agent framework from the team behind Pydantic, and computer use here means a model that acts on a screen, issuing clicks, keystrokes and screenshots, rather than calling an API. The release notes add a `computer` to the core library as `pydantic_ai.computer_use` and `ComputerTool`, then teach each provider integration to send that single declaration as the provider's own native computer tool: OpenAI's on GPT-5.4 and later, each Claude model's computer use tool, and Google's on Gemini. Native provider tools are not new in the framework, since the notes refer to an existing `NATIVE_TOOLS_REQUIRING_CONFIG` list, but one portable declaration covering all three vendors is.

The same release supplies the other half, a machine with a screen. It adds a `ComputerUse()` capability to the harness along with the `Display` protocols that capability drives, and a `desktop` switch across eleven execution backends: `DockerContainer(desktop=True)` plus desktop support in the Daytona, E2B, Sprites, BoxLite, Boxd, Smol, Render, Modal, Kubernetes and Open sandboxes, with the Boxd one driven by that provider's own computer API. Taken together, the agent code that declares the tool and the sandbox that renders the desktop both come from the framework, so moving a computer-use agent between vendors or between a local container and a cluster is a configuration change rather than a rewrite.

One thing to know before adding the tool: the change that adds it also appears under the release's compatibility notes, because `ComputerTool` now joins `NATIVE_TOOLS_REQUIRING_CONFIG` and, as the notes put it, "it needs a `computer` tool to run its calls." Declaring it is not enough on its own. The notes do not spell out what happens if you skip that configuration, so treat the display wiring as part of adopting the feature rather than an optional extra.

Key takeaways · AI-distilled
  • a gemini model through OpenAIChatModel no longer sums Gemini's running usage totals and reports the endpoint's final totals instead, so cost figures drop and UsageLimits token limits trip later than on v2.73.0.
  • ComputerTool is added to NATIVE_TOOLS_REQUIRING_CONFIG, so the new pydantic_ai.computer_use contract will not run without a configured computer tool. Sandboxes from Docker and Modal to E2B, Daytona and Kubernetes gained a desktop=True option to supply one.
  • Static instructions are now sent as leading input messages on GPT-6.2, which never caches top-level instructions. Continuing a response through openai_previous_response_id without message_history now inherits that response's static instructions.
  • Requests to claude-opus-4-5 now raise DeprecatedModelWarning, and OpenRouter -window overflows nested in .raw are classified as ModelContextWindowExceededError rather than surfacing as a generic provider error.
Terms in this piece · Glossary
  • Tool contract — The written specification of one tool: purpose, inputs, output, errors, retry behavior, access and completion evidence.
  • streaming — Sending a model's response token by token as it is generated, so the reader sees text immediately instead of waiting for the whole answer.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • Metadata — Data about a file, such as its name, size and timestamps, as distinct from its contents.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from dsfaccini
Recommended reads
Comments

Checking sign-in…

Loading comments…