Vibeleaderboard
← All Intel
Intel / repo

pydantic-ai v2.76.0 — v2.76.0 (2026-11-26)

Source
github.com
Publisher
Pydantic
Author
dsfaccini
Date

Context

Pydantic AI v2.76.0, the agent framework from the Pydantic team, contains several changes that alter what existing code does without necessarily raising an error, and its release notes list them under compatibility notes. The one most likely to slip through is in the FileSystem toolset: the offset argument to read_file now counts lines from 1 instead of 0. Code that passes an explicit offset from Python, or builds the read-file arguments with one, now starts reading one line earlier, and an offset of 0 raises an error. The fix is to add one to each explicit offset.

The second change affects apps that carry a conversation from one run into the next. When a capability trims history during a run, such as SummarizingCompaction or RelevanceCompaction, result.conversation now keeps every message the run added instead of only the trimmed version. An app that feeds result.conversation into the next run will therefore have the full history summarized on each run rather than carrying forward the last summary. The notes say to pass result.all_messages() as the message history to keep the compacted version.

The rest are narrower. Requests to gemini-2.5-pro and gemini-2.5-flash through the Google model classes now emit a DeprecatedModelWarning, so test suites that turn warnings into errors will fail on them until the code moves to the named replacement or filters the warning. Code that exhaustively matches every realtime input type will stop type-checking because a new UpdateTools input was added, and the text-selection helpers in the Pax 's prompt now take different arguments. The release's other additions, including stateless Google Interactions support and desktop computer-use sandboxes for the Pax coding agent, do not require changes to existing code.

Key takeaways · AI-distilled
  • FileSystemToolset.read_file's offset is now 1-indexed in pydantic-ai v2.76.0: a call passing offset=N starts one line earlier than before and offset=0 raises, so existing callers need to pass N + 1 to read the same lines.
  • result.conversation now keeps every message a run adds even when a capability such as SummarizingCompaction trims history mid-run. Apps that want the compacted history carried into the next run pass result.all_messages() as message_history instead.
  • Nested agent runs now record pydantic_ai.root_conversation_id on their spans, so the cost of runs rolls up to the outer conversation in traces.
  • When the token limit cuts off an Anthropic output tool call, pydantic-ai now raises IncompleteToolCall instead of retrying, and Anthropic's " is too complex" 400 now raises ModelSchemaTooComplexError.
Terms in this piece · Glossary
  • Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
  • Compaction — Replacing older content in the model's context with a summary of it, usually keeping recent messages, so that a session can go on.
  • subagent — A separate agent spawned by another to do one scoped piece of work in its own context, returning only the result.
  • Schema — A written description of a data format: which fields exist, what kind of value each holds and which are required.

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