SDKs and developer tools
pydantic-ai v2.76.0: Gemini 2.5 deprecation warnings, 1-indexed read_file offset, and model-gated realtime tool updates
pydantic-ai v2.76.0 upgrade notes: Gemini 2.5 Pro/Flash requests raise a deprecation warning, read_file offset becomes 1-indexed, realtime tool updates require model profile support, and compaction changes conversation retention semantics.
Official announcement
According to Pydantic's release notes for pydantic-ai v2.76.0, dated 2026-11-26, this is a version release rather than a new base-model launch. Everything below comes from that announcement, which is the publisher's claim; this commentary includes no independent testing.
The notes add a RealtimeModelProfile.supports_tool_updates flag and an UpdateTools input, letting realtime sessions reveal tools mid-session. Pydantic says this applies only to models whose profile declares support, and the default realtime profile sets the flag to False.
Per the notes, requests to gemini-2.5-pro and gemini-2.5-flash through GoogleModel or GoogleInteractionsModel now emit DeprecatedModelWarning (a UserWarning). Test suites configured with filterwarnings = error will fail unless the warning is suppressed or the model switched.
The notes change FileSystemToolset.read_file offset semantics to 1-indexed. offset=0 now raises, and callers passing offset=N must pass N+1; the announcement suggests a grep to find call sites.
Pydantic also states that when a capability trims history mid-run (for example SummarizingCompaction or RelevanceCompaction), every message the run adds is kept in result.conversation. Apps carrying result.conversation forward will therefore re-summarize full history instead of the prior summary, while passing result.all_messages() preserves compacted history. In addition, the pydantic-ai-pax default install and the /update self-update package list now include the Google SDK, resolving to pydantic-ai-slim[anthropic,google,mcp,openai]; the notes say no migration is needed. This article is commentary.
Analysis
For teams running realtime voice or streaming agents, tool discovery is now model-gated: the SDK will not push UpdateTools to a connection whose model profile lacks supports_tool_updates. Capability therefore depends on each provider profile, not the SDK alone.
Because the Gemini 2.5 warnings appear on plain requests, CI pipelines treating warnings as errors may break with no code change; the profile deprecation flag the maintainers document offers a stopgap. The read_file reindex is a silent off-by-one risk for Python callers and should be audited first before upgrading. The retention change can quietly raise token spend and latency in memory-carried summarization loops, since each run re-summarizes full history; teams with cost controls should explicitly choose between result.conversation and result.all_messages(). Bundling the Google SDK into Pax simplifies onboarding but enlarges default installs.
What remains unverified
The announcement provides no measurements: the real provider coverage of realtime tool updates, any eventual removal timeline for Gemini 2.5, the effect of the read_file change on model retry paths, and the concrete token and latency increase from re-summarizing after compaction all lack data. The notes say no migration is needed, but how existing pinned Pax environments behave after /update still needs external checking.