Set Instructions During A Conversation With The Gemini API
AIThis post was created with the assistance of artificial intelligence (AI).

🔍 Read the full analysis: Set Instructions During A Conversation With 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 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 preserves cached earlier turns, but the feature’s real-world savings have not been independently measured, and MCP server tools are not supported for updates.

Google announced on December 3, 2026, that developers can now update system instructions and supported function tools mid-conversation through a preview of the Gemini API’s Interactions API. The company says developers can make those changes while keeping earlier conversation tokens cached, a design intended to avoid reprocessing the full history when an agent’s rules or available actions change.

The feature uses a system_input step placed immediately before a user_input step in a new interaction. Developers link the new turn to the previous one using its previous_interaction_id. Google says system_input has the authority of a top-level system instruction and takes precedence over user messages. New instructions remain active for the rest of the session, alongside the original system instruction.

Google advises developers to keep the top-level system instruction unchanged across turns. For tool changes, it recommends leaving the top-level tools list as it was and using added_tools and removed_tools inside system_input. The preview supports updates to function tools; Google says it does not support updates to MCP server tools.

Google’s examples show an infrastructure assistant receiving a new instruction to recommend read-only diagnostics during a production deployment freeze. When asked for a deployment command, the example assistant declines and offers diagnostic checks instead. A separate tool example removes a refund function and adds an escalation-ticket function. Google says retrieved interaction records include system_input steps, which can help developers inspect and debug agent traces.

At a glance
announcementWhen: Announced December 3, 2026; available i…
The developmentGoogle has made mid-conversation system instruction and function-tool updates available in preview through 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 Without Resetting History

Agents may run across many turns while the application’s requirements change. A team could restrict an infrastructure agent to read-only checks during a deployment freeze, or stop refund actions while a billing case is escalated. The update gives developers a way to add those directions as system-level instructions, rather than sending them as ordinary user messages, which Google says do not have the same authority.

The caching design could also matter for cost and latency. Google says that previously changing top-level instructions or the tools list invalidated the cache, requiring the model to reprocess conversation history. The preview is intended to avoid that outcome for these updates. However, Google has not published independent measurements or specific estimates of savings, so the size of any benefit in actual workloads remains unknown.

Keeping changes visible in the interaction record may aid auditing and debugging, especially when developers need to understand why an agent’s behavior changed. The practical value will depend on how the preview performs in production and whether its function-tool support fits a developer’s setup.

Products Worth Considering

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 Connect Conversation Turns

The Interactions API links conversation turns through a previous_interaction_id, allowing an application to continue from an earlier interaction. In Google’s described method, the developer keeps the original top-level instruction in place and adds a system_input at a later turn. Google says that new instruction remains active with the earlier one; when instructions conflict, the newer system_input takes precedence.

Before this feature, Google says developers faced a choice: add a changed rule as a user message, with less authority than a top-level system instruction, or change the top-level instruction or tool list and invalidate the cache. The new preview is designed to provide a third option for mid-session updates without changing those top-level settings. The announcement provides examples of intended behavior, not reported results from customer deployments.

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

Google has not said when the feature will leave preview, whether its behavior or supported tools will change, or when support for MCP server tool updates might be added. The announcement also gives no schedule for further availability updates.

There are no independent performance measurements or workload-specific estimates for cache retention, cost, or latency. Google’s examples illustrate the intended behavior, but the announcement does not report deployment results or explain how the feature handles complex cases involving multiple changing instructions. Those questions remain open based on the available information.

Developers Can Test the Preview

Developers can try the capability 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 add instructions or adjust supported function tools. Developers evaluating it will need to test how those updates behave in their own agent workflows and whether cached history is retained as intended.

The next public milestone would be further guidance from Google on preview changes, broader availability, or tool support. The company has not announced a timeline for any of those developments.

Key Questions

What did Google announce for the Gemini API?

Google added a preview feature to the Interactions API that lets developers add system instructions and update supported function tools during an ongoing conversation.

How does a developer add an instruction mid-conversation?

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

Which tool updates are supported?

The preview supports changes to function tools, using added_tools and removed_tools within system_input. Google says updates to MCP server tools are not supported.

Does the update reduce cost or latency?

Google says the method is designed to preserve cached earlier conversation tokens rather than reprocess the full history after a change to instructions or tools. The announcement does not provide independent measurements or estimates of cost or latency savings.

When will the feature leave preview?

Google has not announced a date for the feature to leave preview or a schedule for further updates.

Primary source: Google AI · via ThorstenMeyerAI.com

You May Also Like

Explore AI Performance With The Llama.cpp Benchmark Dashboard

A public dashboard tracks llama.cpp inference results on two AMD devices, with comparisons across models, quantizations and recorded builds.

Discover SenseTime’s Open-Source 8B Multimodal AI With Native 4K Image Output

SenseTime has open-sourced an 8-billion-parameter multimodal AI model capable of native 4K image output, sparking interest but lacking detailed technical info.

The Pulse: Time To Rethink Software Security Because Of AI?

The Pragmatic Engineer’s Pulse reports a cluster of security incidents and vulnerabilities, some involving AI, and asks how defenders should respond.

ChatGPT Ads Moves Into Southeast Asia And Taiwan: Key Details

OpenAI has extended its in-chat advertising product, ChatGPT Ads, to Southeast Asia and Taiwan, widening ad monetization of the chatbot.