A Guide To Mid-Conversation Instructions In The Gemini API
AIThis post was created with the assistance of artificial intelligence (AI).

🔍 Read the full analysis: A Guide To Mid-Conversation Instructions In The Gemini API on ThorstenMeyerAI.com

Buying for a business?Offer from Amazon

Get business pricing on tech for your team

  • Business-only prices and quantity discounts
  • Tax-exempt purchasing
  • Multiple users, one account, clear invoices
As an affiliate, we earn on qualifying purchases.

TL;DR

Google announced a preview feature for the Gemini API’s Interactions API that lets developers add system instructions and update supported function tools during an ongoing conversation. Google says the approach keeps earlier conversation tokens cached, but the announcement provides no independent performance data and excludes MCP server tools.

Google announced on December 3, 2026, that developers can use the Gemini API’s Interactions API to add system instructions and update supported function tools during an ongoing conversation. The preview is intended for agents whose rules or available actions change mid-session, while keeping earlier conversation tokens cached, according to Google.

To add an instruction, a developer links a new turn to the previous one with its previous_interaction_id and places a system_input step immediately before the next user input. Google says this step carries the authority of a top-level system instruction and takes precedence over user messages. The original top-level instruction should remain unchanged; new system inputs append to the conversation and stay active for the rest of the session.

For tool changes, Google recommends keeping the top-level tools list the same and using added_tools and removed_tools in a system_input step. The preview supports updates to function tools, but not MCP server tools. Google also says system_input steps appear in retrieved interaction records alongside user inputs and model outputs, giving developers a record they can use to inspect and debug agent behavior.

Google’s examples show an infrastructure assistant receiving a new instruction to recommend read-only diagnostics during a production freeze. When asked for a deployment command, the example assistant declines and suggests checks instead. A separate tool example removes a refund function and adds an escalation-ticket function. These examples illustrate intended use; they are not reported customer deployment results.

At a glance
announcementWhen: Announced December 3, 2026; available i…
The developmentGoogle has added preview support for mid-conversation system instruction and function-tool updates in the Gemini API’s 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 Mid-Session

The feature addresses a practical challenge for agents that run across many turns: an application may need to change what an assistant is allowed or expected to do after a conversation has begun. A deployment freeze might require read-only guidance, for example, while a billing review could suspend refunds and direct a case to escalation.

Previously, Google says developers could send the change as a user message, but that would not have the authority of a top-level system instruction. Alternatively, changing the top-level instruction or tool list could invalidate the prompt cache and require the model to reprocess conversation history, adding cost and latency. Google says the preview is designed to avoid that cache invalidation for earlier turns. The announcement does not quantify any resulting savings, so the practical effect will depend on testing in actual workloads.

Keeping updates visible in interaction records may also help teams audit when agent rules changed and understand the instructions in effect for a response. That could matter in applications where permissions shift during a session. The value depends on how reliably the feature behaves in production and whether function-tool updates fit a developer’s system design.

Products Worth Considering

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

Bose QuietComfort Headphones (2nd Gen), Wireless Over-Ear Noise-Cancelling Headphones, Black

Bose QuietComfort Headphones (2nd Gen), Wireless Over-Ear Noise-Cancelling Headphones, Black

As an affiliate, we earn on qualifying purchases.

How Interactions Link Turns

The Interactions API links conversation turns through a previous_interaction_id. In the workflow Google describes, developers preserve the original top-level system instruction and tools list, then add a system_input step to the next interaction when rules need to change. That step remains in the conversation alongside the earlier instruction.

Google says instructions on different topics can apply together, while a newer system_input takes precedence when it conflicts with an earlier one. This is the mechanism the company presents for changing an agent’s operating rules without replacing the original top-level setup. The announcement does not provide independent testing of how it performs across complex or long-running conversations.

“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 Open Questions

Google has not announced when the feature will leave preview, whether its behavior or supported tool types will change, or how much cost or latency it may save in particular workloads. The announcement includes no independent performance measurements or reported customer deployment results.

The stated tool-update support covers function tools, not MCP server tools. Google has not said whether or when MCP support might be added. The available material also does not explain how developers should handle every edge case involving multiple changing or conflicting instructions, or provide detailed reliability findings from production use.

Testing the Interactions 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 across turns, and use system_input for the updates. Teams evaluating it can check how the recorded interaction steps reflect changes to instructions and function tools in their own workflows.

Further information from Google about preview changes, broader tool support, or general availability is the next visible milestone. The announcement gives no schedule for those updates, so the timing and scope of any changes remain unknown.

Key Questions

What changed in the Gemini API?

Google added preview support in the Interactions API for adding system instructions and changing supported function tools during an ongoing conversation.

How does a developer add a mid-conversation instruction?

The developer links the new turn to the prior interaction using previous_interaction_id and places a system_input step immediately before user_input. Google says the step has top-level system-instruction authority and remains active for the rest of the session.

Does the preview support MCP server tools?

No. Google says the preview supports updates to function tools, but not MCP server tools.

Does Google say how much time or money the feature saves?

No. Google says the design can preserve the cache for earlier conversation tokens and avoid reprocessing history after certain changes, but the announcement gives no performance measurements or quantified savings.

When will the feature leave preview?

Google has not provided a general-availability date or a schedule for changes to the preview.

Primary source: Google AI · via ThorstenMeyerAI.com

You May Also Like

The Future Of AI Memory Sharing: Anthropic’s Claude And Cowork Will Save Your Memories Unless You Opt Out

Anthropic now defaults to sharing user memories across Claude and Cowork, raising convenience and privacy considerations for users of both tools.

Sonnet 5.5

Search and coverage interest around “Sonnet 5.5” is spiking, but the available source does not confirm an announcement or explain the trigger.

Is AI The Key To SenseTime’s Rapid Profit Expansion And Business Model Evolution?

SenseTime reports accelerating gross profit growth and a shift in its business model, signaling a focus on profitability and earnings quality, but full details are pending.

Can AI Turn Productivity Gains Into More Time Off?

A November 18 report compares Keynes’s leisure forecast with today’s 40-hour norm and early evidence on AI’s effects on work time.