Gemini API Adds Mid-Conversation System Instructions (Preview, 2026)

Abstract illustration of a cached conversation path staying intact while a new instruction gate is added mid-session.

Written by

in

Takeaway: On December 3, 2026, Google introduced mid-conversation system instructions in the Gemini API. In a public preview on the Interactions API, developers can append a system_input step to update rules or function tools in the middle of a session without invalidating the prompt cache. This article does not invent a general-availability date, list prices, or rate limits.

The details below come from that official Google blog post, published December 3, 2026, and from the current Gemini API documentation for mid-conversation system instructions. Where the blog is broader than the docs, this article follows the more precise documentation, including the supported model IDs and request rules.

How this differs from earlier coverage

This is a developer-facing change to the Interactions API, not a new voice model. Web Observer’s Gemini 4 Live and Live Translate article covers the December 2 audio rollout. An earlier post, Gemini API Tool Retrieval, described a preview for loading tool schemas on demand through the same Interactions API surface. Those stories are complementary: Tool Retrieval is about when tool definitions are loaded, while mid-conversation instructions are about changing rules and the active function set mid-session without rebuilding the cache. Separate articles on Gemini 4 Hydrogen, Gemini 4 Neon, and Gemini 4 Carbon introduced the models the docs now list as supported for this feature.

What Google announced

Google says long-running agents often work across dozens or hundreds of turns, and that rules, permissions, and available tools can change along the way. Until this preview, updating the top-level system instruction or tools list invalidated the prompt cache, so the model had to reprocess the entire conversation and added cost and latency. Another workaround was to put new instructions in a user message, which Google says does not carry the same weight as a top-level system instruction and can be imitated by users.

The Interactions API now lets you send a system_input step at a later turn. Google says that step has the same authority as the top-level system instruction, takes precedence over user messages, and leaves earlier turns cached. The feature is in preview and requires the v1beta API version. The docs note that the API surface may change before general availability.

How mid-conversation system instructions work

To add a mid-conversation instruction, you pass the previous turn’s ID in previous_interaction_id and place one system_input step directly before user_input in the input array. Google recommends leaving the top-level system_instruction unchanged across turns so the prompt prefix stays valid in the cache.

Each system_input is appended to the conversation history as its own step. It stays active for the rest of the session alongside the original system instruction and any earlier mid-conversation rules. Instructions that do not conflict all remain in effect. When a newer instruction conflicts with an earlier one, the model favors the most recent instruction. Because earlier steps stay in context and cannot be removed, the docs advise stating what changed, for example by telling the model to ignore a previous pause on refunds.

When you retrieve an interaction, each system_input appears in order with user_input and model_output, which Google says makes multi-turn agent traces easier to audit.

Updating tools without breaking the cache

Tool declarations sit at the start of the prompt, so changing the top-level tools list between turns breaks the cache. Google’s recommended pattern is to send the same top-level tools list on every turn and use added_tools and removed_tools on a system_input step to change which functions the model can call. You can send one system_input per turn, and that step can include text, tool updates, or both.

The docs add several important constraints. added_tools and removed_tools currently support custom function tools only. MCP servers and built-in tools, such as Google Search or code execution, are not supported. If a step includes both fields, the API processes removals before additions, which lets you replace a tool definition in place. Tool updates stay in effect until a later system_input changes them. When you remove a tool, Google recommends including a short text note so the model can explain why an action is unavailable.

Cache preservation also depends on how you declare tools on later turns. You must keep passing the original top-level tools list, including functions you already removed; dropping a removed tool from that list returns HTTP 400. Tools added through added_tools should stay out of the top-level list. Re-declaring an active added tool there also returns HTTP 400.

Request rules, limits, and supported models

The documentation says a request returns HTTP 400 if it breaks these rules: system_input must come directly before a user_input step; you can send at most one system_input per turn; you cannot send it on its own or during a function-calling loop when returning a function_result; and content is text only. Text is required in content unless the step is only adding or removing tools.

The preview is limited to the Interactions API on v1beta. The generateContent method does not support system_input. The docs also say the feature is supported on model interactions only, not agent interactions. Function calling modes such as tool_choice apply only to tools in the initial tools list, though the model can still call tools added mid-conversation with added_tools.

Google’s blog describes availability as a public preview across all Gemini 4 models in the Interactions API. The current docs are more specific and list three supported model IDs: gemini-4-carbon, gemini-4-neon, and gemini-4-hydrogen. Other models return HTTP 400. The blog says support for Gemini Enterprise Agent Platform is coming soon. This article does not invent additional model IDs or an enterprise general-availability date.

Pricing and suggested uses

According to Google, mid-conversation system instructions carry no separate fee. Tokens in system_input steps are billed at the standard input token rates for the model you call, and earlier turns remain eligible for cached-token rates when rules or tools change. This article does not invent a price list or quota figures.

Google’s examples include applying rules discovered mid-session, such as workspace settings, entitlements, or spending limits; reinforcing formatting, tone, or policy late in a long session; enabling write or account-action tools after authentication and removing them when returning to read-only review; disabling a tool when a downstream dependency goes offline; and starting with a small tool set, then adding more as the task needs them.

Google also treats system_input and the tool-update fields as orchestration controls, not as a substitute for application security. Your backend should still authorize every function call before executing it, and untrusted external or end-user content should be kept out of system_input.

Frequently asked questions

What are mid-conversation system instructions in the Gemini API?

They are a December 3, 2026 preview that lets developers append a system_input step in the Interactions API to update system rules or function tools mid-session while earlier turns stay in the prompt cache.

Is this feature generally available?

No. It is a public preview on the Interactions API through the v1beta endpoint. The docs say the API surface may change before general availability. This article does not invent a GA date.

Which models support mid-conversation system instructions?

The current Gemini API docs list gemini-4-carbon, gemini-4-neon, and gemini-4-hydrogen. Other models return HTTP 400. Google’s blog refers to all Gemini 4 models in the Interactions API; this article follows the explicit docs list.

Does this work with generateContent?

No. The docs say system_input is supported on the Interactions API only. The generateContent method does not support it, and agent interactions are also unsupported.

Can I change MCP or built-in tools mid-conversation?

Not in this preview. added_tools and removed_tools currently support custom function tools only. MCP servers and built-in tools such as Google Search or code execution are not supported.

What happens if a new instruction conflicts with an earlier one?

The model favors the most recent instruction. Earlier system_input steps stay in context and cannot be removed, so Google recommends spelling out what changed when you reverse a previous rule.

Is there a separate fee for mid-conversation system instructions?

Google says there is no separate fee. Tokens in system_input steps are billed at the model’s standard input token rates, and earlier turns can still use cached-token rates. No list prices are invented here.

Does a mid-conversation instruction replace application-level authorization?

No. Google says these controls steer model behavior. Applications should still authorize every function call on the backend and keep untrusted user or external content out of system_input.

Comments

Leave a Reply