Repository navigation
What's Changed
⚠️ Compatibility Notes
- Reveal tools mid-session in realtime sessions on models that take tool updates, via
RealtimeModelProfile.supports_tool_updatesandUpdateToolsby @DouweM in #12440RealtimeInput, the unionRealtimeConnection.sendaccepts, gainsUpdateTools, andDEFAULT_REALTIME_PROFILEgainssupports_tool_updates: False. A session sendsUpdateToolsonly to a connection whose model's profile setssupports_tool_updates, so an existing connection never receives it, but an exhaustive match overRealtimeInput(assert_never) stops type-checking. HandleUpdateToolsthere, or raise for it.
- Warn with
DeprecatedModelWarningon requests togemini-2.5-proandgemini-2.5-flashby @dsfaccini in #14679- A request to
gemini-2.5-proorgemini-2.5-flashthroughGoogleModelorGoogleInteractionsModelnow emitsDeprecatedModelWarning, aUserWarning, so code that turns warnings into errors, such asfilterwarnings = error, fails on those requests. Move to the replacement the warning names, or keep the model meanwhile by filtering the warning or settingprofile={'deprecation': None}.
- A request to
- Select a word on double-click and a line on triple-click in
paxby @dsfaccini in #14558Selection.feed,span,highlightandtextinpydantic_ai_pax.ui.prompt.prompt_selectiontake new arguments:feedtakes the press time asnow,spantakes the paintedframeand the soft-wrap flagsjoinsin place ofwidth, andhighlightandtexttakejoins. A drag across a row the panel wrapped no longer copies a newline at the wrap.
- Add
/computer-usedesktop sandboxes to Pax by @adtyavrdhn in #14564- A Pax plugin status segment may now return a
StatusLink, which the status row shows as a clickable link, as well as astr. A segment that returnsstrworks as before.
- A Pax plugin status segment may now return a
- Add a
pydantic-ai-paxextra for every model provider, plusall, and install the Google SDK by default by @DouweM in #14614pydantic_ai_pax.cli.self_update.PACKAGES, the packages/updatereinstalls, now asks forpydantic-ai-slim[anthropic,google,mcp,openai], following Pax's default install, which now includes the Google SDK. No migration is needed.
- Keep every message a run adds in
result.conversationwhen a capability trims the history mid-run by @DouweM in #13211- An app that carries
result.conversationinto the next run in memory, with a capability that summarizes the history (SummarizingCompaction,RelevanceCompaction), now has the full history summarized on each run instead of carrying the last summary. To carry the compacted history instead, passresult.all_messages()asmessage_history=, savingresult.conversationto a store first if you want to keep the dropped messages. In UI adapters in server mode with a trimming capability,ReinjectSystemPromptnow stores the run's own request with the system prompt at its head instead of a copied turn.
- An app that carries
- Make
FileSystemread_fileoffset1-indexed by @adtyavrdhn in #13250FileSystemToolset.read_file(..., offset=N)called from Python, andReadFileArgsorReadFileCallPartbuilt with an explicitoffset, now start one line earlier, andoffset=0raises (a retry for models). Where you passoffset=N, passN + 1; find those calls withgrep -rn "read_file(.*offset" ..
🚀 Features
- Reveal tools mid-session in realtime sessions on models that take tool updates, via
RealtimeModelProfile.supports_tool_updatesandUpdateToolsby @DouweM in #12440 - Forward
volumesthroughOpenSandboxBackendtoSandbox.createby @pydanty in #14282 - Add stateless Google Interactions support with
GoogleInteractionsModelby @dsfaccini in #12636 - Add
CodeMode(allow_final_output=True)to submit the run's output from sandboxed code by @DouweM in #11349 - Record
pydantic_ai.root_conversation_idon spans of nested agent runs so sub-agent cost rolls up to the outer conversation by @adtyavrdhn in #14664 - Derive delegated task IDs from the run and tool call outside durable execution too by @DouweM in #13419
- Add per-tool
ui_visibilityso UI adapters can keep tool results from the client by @dsfaccini in #14645 - Warn with
DeprecatedModelWarningon requests togemini-2.5-proandgemini-2.5-flashby @dsfaccini in #14679 - Raise
ModelSchemaTooComplexErrorfor Anthropic's "Schema is too complex" 400, and attempt an inferred Native Output schema again in Tool Output by @DouweM in #11781 - Select a word on double-click and a line on triple-click in
paxby @dsfaccini in #14558 - Add
/computer-usedesktop sandboxes to Pax by @adtyavrdhn in #14564 - Add a
pydantic-ai-paxextra for every model provider, plusall, and install the Google SDK by default by @DouweM in #14614 - Keep Pax config and state in
pydantic-ai-paxfolders by @DouweM in #14615
🐛 Bug Fixes
- Drop Anthropic sampling settings when the client sends API version
2026-10-21, theanthropic>=2default by @DouweM in #14420 - Keep every message a run adds in
result.conversationwhen a capability trims the history mid-run by @DouweM in #13211 - Make
FileSystemread_fileoffset1-indexed by @adtyavrdhn in #13250 - List the modules Monty 1.7 added in the
CodeModerun_codedescription by @dsfaccini in #14575 - Stop Temporal and Prefect from retrying
UsageLimitExceededby @dsfaccini in #14205 - Publish the agent spec parameters of
AskUser,IPythonCodeMode,PromptInjectionDefenderandToolBridge, and check every spec schema against the classes it loads by @dsfaccini in #13982 - Raise
IncompleteToolCallwhen the token limit cuts off an Anthropic output tool call, instead of retrying by @DouweM in #14409 - Raise
UserErrorfor immediate capability events in a Render child task by @DouweM in #14524 - Keep the Pax web UI's Changes count current when a turn starts right after one that changed files by @dsfaccini in #14589
- Read Coder's project skills like the session's
LocalWorkspacewhen a plugin adds a capability function by @dsfaccini in #14680 - Show a claimed speculative call before later calls in Pax's sandbox call display by @dsfaccini in #14692
Full Changelog: v2.75.0...v2.76.0