AIThis post was created with the assistance of artificial intelligence (AI).

🔍 Read the full analysis: What Are Mid-Conversation Instructions In The Gemini API? on ThorstenMeyerAI.com

Before you orderOffer from Amazon

Get the latest gadgets delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

TL;DR

Google has added preview support for mid-conversation system-instruction and function-tool updates in the Gemini API’s Interactions API. The approach is designed to retain cached earlier turns, but Google has not published independent performance measurements; MCP server tools are not supported for these updates.

Google announced on December 3, 2026, that developers can update system instructions and supported function tools between turns in the Gemini API’s Interactions API. The preview feature is designed to let agents respond to changing rules or permissions without changing the original prompt setup and invalidating the cache for earlier conversation turns, according to Google.

To add an instruction, a developer links the new turn to the previous interaction using its previous_interaction_id, then places a system_input step immediately before the next user input. Google says this step has the authority of a top-level system instruction and takes precedence over user messages. The added instruction remains active for the rest of the session.

Google recommends keeping the original top-level system instruction unchanged across turns. For tool changes, it similarly advises leaving the top-level tools list in place and using added_tools and removed_tools in a system_input step to adjust which function tools the model can call. The preview supports these function-tool updates, but not updates to MCP server tools.

Interaction records include system_input steps alongside user inputs and model outputs. Google says this can help developers audit and debug agent traces. The company’s examples show an infrastructure assistant receiving a new instruction to recommend read-only diagnostics during a deployment freeze, and a tool list changing to remove a refund function and add an escalation-ticket function.

At a glance
announcementWhen: Announced December 3, 2026; available i…
The developmentGoogle announced preview support for adding system instructions and updating supported function tools between turns in the Gemini API Interactions API.
Gemini API · Briefing

Changing agent rules mid-conversation

Google’s preview lets developers update instructions and supported function tools during an ongoing conversation while keeping earlier prompt tokens cached.

Dec 3, 2026
Google announced the preview
Dozens or hundreds
Turns long-running agents may span

What changes for developers

The Interactions API can add higher-authority instructions at a turn boundary while preserving earlier conversation tokens.

Previously
  • New rules sent as user messages had less authority.
  • Changing top-level instructions or tools invalidated the cache.
With the preview
  • Add a system_input step before the next user_input.
  • Keep earlier turns cached as new instructions take effect.

How to apply an update

Link the next interaction to the previous one and keep top-level settings consistent.

1
Pass the prior interaction ID

Continue the conversation using previous_interaction_id.

2
Add system_input

Place it immediately before user_input; it remains active for the rest of the session.

3
Update function tools

Use added_tools and removed_tools while keeping the top-level tools list unchanged.

Preview limits

The announcement describes intended behavior, not independent performance results.

Supported

Function tools

Developers can add or remove function tools during a conversation.

Not supported

MCP server tools

The preview does not support updates to MCP server tools.

Unspecified

Savings and rollout

Google gives no specific cost or latency savings, or schedule for leaving preview.

EvaluateTest the preview against real workloads; the announcement offers examples but no independent measurements of cache savings, latency, or reliability.
The takeaway
Mid-session instruction updates give developers a way to adapt agent rules while retaining cached history, with practical impact still to be measured.

Changing Agent Rules Without Resetting Context

The feature addresses a problem for agents that run through long conversations: applications may need to change what an agent is allowed or expected to do after a session has started. For example, a deployment freeze might require an assistant to stop recommending deployment commands and offer read-only checks instead. A billing review might call for pausing refunds and directing a customer to an escalation process.

Before this preview, Google says developers could send a new instruction as a user message, but that did not carry the authority of a top-level system instruction. Alternatively, they could change the top-level instruction or tools list, which Google says invalidated the cache and required the model to reprocess conversation history. Retaining cached turns may reduce the added processing cost and latency, though the company has not quantified those potential savings.

Recording instruction updates in the interaction history may also make it easier for teams to determine what rules were active at a particular point. The practical benefit will depend on performance in real deployments and whether the preview’s function-tool support fits the agent being built.

Products Worth Considering

Apple MacBook Air 15-inch Laptop with M5 Chip, 24GB Memory, 1TB SSD, Liquid Retina Display, and Wi-Fi 7

Apple MacBook Air 15-inch Laptop with M5 Chip, 24GB Memory, 1TB SSD, Liquid Retina Display, and Wi-Fi 7

Anker SOLIX C1000 Gen 2 Portable Power Station, 1,024Wh LiFePO4 Battery

Anker SOLIX C1000 Gen 2 Portable Power Station, 1,024Wh LiFePO4 Battery

Amazon Kindle Scribe (3rd Generation) 16GB, 11-Inch Display, Graphite, with Premium Pen

Amazon Kindle Scribe (3rd Generation) 16GB, 11-Inch Display, Graphite, with Premium Pen

As an affiliate, we earn on qualifying purchases.

How Interactions Link Turns

The Interactions API connects turns through a previous_interaction_id, allowing a developer to continue a conversation while adding a system_input step at a later turn. Google’s guidance is to keep the initial top-level instruction unchanged, then append new instructions as needed. Those instructions remain active alongside the original one; Google says a newer system_input takes precedence if it conflicts with an earlier instruction.

The distinction matters because a user message and a system instruction do not have the same authority in the API design described by Google. The new method is intended to let an application introduce a higher-authority instruction without replacing the original setup. For tool availability, developers can use the same general approach to add or remove supported function tools while preserving the initial tools declaration.

“The Interactions API now allows you to send a system_input step at any turn with system instruction or tool changes.”

— Google, in its Gemini API announcement

Preview Limits and Missing Measurements

Google has not said when the feature will leave preview or whether its behavior and supported tools will change. The announcement gives no schedule for possible MCP server tool support, and it does not quantify cost or latency changes for particular workloads. It also provides no independent performance measurements or reported results from customer deployments.

The examples illustrate the intended behavior, but the announcement does not explain how developers should handle every edge case involving several changing or conflicting instructions. How consistently the feature preserves cache benefits in production, and how it performs across different conversation patterns, remain open questions.

Developers Can Test the Preview

Developers can try the feature through the Interactions API preview. Google’s guidance is to keep the top-level system instruction and tools list consistent between turns, then use system_input to append instructions or change supported function tools. Teams evaluating it can compare behavior and resource use in their own workloads, while distinguishing those observations from any general performance claim.

The next public milestone would be further information from Google about preview changes, wider availability, or support for additional tool types. The announcement provides no timetable for those updates, so availability and the feature’s eventual scope remain subject to change.

Key Questions

What are mid-conversation instructions in the Gemini API?

They are system_input steps that developers can add between turns through the Interactions API, allowing an agent to receive new system-level instructions while a conversation continues.

How does a developer add an instruction?

The developer links the next interaction to the previous one with previous_interaction_id and places a system_input step before the next user input. Google says the new instruction remains active for the rest of the session.

Can developers change which tools the model can use?

In the preview, developers can add or remove supported function tools using added_tools and removed_tools in system_input. Google says this mechanism does not support MCP server tool updates.

Does the feature guarantee lower costs or latency?

No. Google says the approach is designed to preserve cached earlier turns rather than invalidate the cache, but it has not published independent measurements or quantified savings for specific workloads.

When will the feature be generally available?

Google has described it as a preview and has not announced a date for general availability or a schedule for future changes.

Primary source: Google AI · via ThorstenMeyerAI.com

You May Also Like

How Software Engineering Is Changing: A Tale Of Two Eras

Software engineer Neil Kakkar says he merged 11 times more pull requests at AI-native startup Tano than at PostHog, while describing new workflow costs.

The Hidden Cost of Subscription Software Everywhere

Many underestimate subscription software costs, but uncovering hidden expenses is crucial to avoid budget pitfalls and ensure long-term success.

Data Recovery 101: Tools and Tricks to Get Back Lost Files

Preserve your precious files by mastering essential data recovery tools and tricks—discover how to recover lost files effectively before it’s too late.

Why AI Writing Tools Trigger So Much Debate

AIThis post was created with the assistance of artificial intelligence (AI).AI writing…