# Pydantic AI v2.75.0 changes workspace instructions, model fallback and Gemini token counts

published: 2026-11-25T19:05:35.945Z
topic: frameworks
source: https://github.com/pydantic/pydantic-ai/releases/tag/v2.75.0
url: https://aiagentnews.io/stories/pydantic-ai-v2-75-0-changes-workspace-instructions-model-fallback-and-gemini

Pydantic AI 2.75.0 is out, with compatibility changes to how workspace file instructions, model fallback and Gemini token counting behave. Several of the changes alter default behavior, so developers upgrading should review them first.

The release keeps workspace files below 'operator' authority out of the instructions in RepoContext, Skills and Memory. RepoContext now names the working directory's file for the model to read with its file tools, and Skills offers such skills through list_skills and load_skill tools. Files at 'operator', the default, are unchanged, and durable runs now record extra realpath workspace calls at run start.

FallbackModel and ModelFallback now fall back on empty model responses and on unreadable ones, through the new ModelEmptyResponseError and ModelInvalidResponseError. Previously these cases raised UnexpectedModelBehavior. Gemini thinking tokens are now counted as output in OpenAIChatModel usage, so output counts rise and UsageLimits token limits can trip sooner.

Other additions include RunContext.submit_output(), which lets a tool submit the run's final output, and a Temporal ExternalEventWaiter for deferred tool call handlers and AskUser. For gemini-2.5-flash with thinking=False through the Gemini API, the release sends a thinking_budget of 128 instead of 0 until a reroute scheduled for 2026-12-01.

## Why it matters if you build agents

Agents that depend on workspace file instructions or on FallbackModel error handling may behave differently after this upgrade. Exception handlers that catch UnexpectedModelBehavior may need reordering, and token limits tuned to earlier usage counts may need revisiting.

Per the release notes, durable runs in flight should finish or use Temporal worker versioning or a new DBOS app version before upgrading.
