Fetching from the wire…
Public story · 2026-08-04 · high
The release also patches a Google Cloud credential scoping bug and an ADC environment variable leak.
Why now: There's no larger news event behind this: it's a routine point release, not a response to any incident.
Pydantic AI shipped version 2.23.0 with a cost field on RunUsage and a cost_limit on UsageLimits, per the release notes on GitHub. A small API change, with a real consequence.
Teams running long agent loops have been capping spend by counting tokens. But token counts stop mapping to dollars once a run switches between model tiers mid-flight. A cost_limit lets you stop a run when the bill hits a number, not when a token counter does.
The same release fixes credential scoping in GoogleCloudProvider and closes a leak where Application Default Credentials environment variables were exposed, per GitHub's changelog. Neither fix comes with more detail than that. The release notes don't say how long the leak existed or who it affected.
Framework-level cost limits are an admission that token budgets never worked once you mix model tiers in one run. If you've been setting a max_tokens ceiling and calling it a budget, this update calls that assumption out. Watch whether other agent frameworks add the same field. If they don't, the gap between tokens spent and dollars spent stays every team's problem to solve by hand.
Each link below shares sources, entities, or timing with this story.
Pydantic AI uses Temporal / Shared entity: Pydantic AI / Same source domain / Earlier coverage
Linked by a graph relationship (Pydantic AI uses Temporal); both cover Pydantic AI; reported by the same outlet (github.com).
Pydantic AI supports MCP / Shared entity: GitHub / Same source domain / Shared topic / Earlier coverage / Tension
Linked by a graph relationship (Pydantic AI supports MCP); both cover GitHub; reported by the same outlet (github.com).
Pydantic AI supports MCP / Shared entity: GitHub / Same source domain / Earlier coverage / Tension
Linked by a graph relationship (Pydantic AI supports MCP); both cover GitHub; reported by the same outlet (github.com).
Linked by a graph relationship (Pydantic AI supports MCP); both cover GitHub; reported by the same outlet (github.com).
Linked by a graph relationship (Pydantic AI supports MCP); both cover GitHub; reported by the same outlet (github.com).
Shared entity: GitHub / Same source domain / Shared topic / Earlier coverage / Tension
Both cover GitHub; reported by the same outlet (github.com); overlapping topics (anyone, cost, dollar).
Pydantic AI supports MCP / Shared entity: GitHub / Same source domain / Tension
Linked by a graph relationship (Pydantic AI supports MCP); both cover GitHub; reported by the same outlet (github.com).
Shared entities / Same source domain / Earlier coverage / Tension
Both cover GitHub, Pydantic AI; reported by the same outlet (github.com); earlier GitHub coverage from 2026-03-11.