Innovation & Tech

Google Opens Gemini API Preview for Mid-Session Rule Changes

Google’s December 3 preview adds append-only system instructions and tool changes to the Gemini Interactions API, preserving cached tokens while leaving backend authorization essential.

By Nathan Brooks

4 min read

Google Opens Gemini API Preview for Mid-Session Rule Changes
Pexels / pixabay

What's News

  • Google introduced the public preview on December 3, 2026.
  • Mid-conversation system_input and tool updates preserve cached prompt prefixes.
  • Supported models are gemini-4-carbon, gemini-4-neon and gemini-4-hydrogen; other models return HTTP 400.
  • system_input tokens use standard input-token rates, with no separate feature fee.
  • Only custom function tools are supported; backend authorization still governs execution.

Google introduced a public preview on December 3, 2026 that lets Gemini API developers update system instructions and function tools mid-conversation without invalidating cached prompt tokens.

Google says long-running agents can span dozens or hundreds of turns, while spending limits, account permissions and available functions may change. Google’s preview gives those agents system-level controls through the Interactions API as conditions shift.

What does this change for teams running long-running agents?

Google’s preview removes the earlier choice between cache efficiency and system-level control. Instructions inserted into user messages previously preserved the cache, but they lacked top-level system authority and users could imitate them. Rewriting the system instruction or tools list invalidated the cache and forced Gemini to reprocess the full history, adding cost and latency.

The new system_input step carries the same authority as the top-level system instruction and takes precedence over user messages. To use it, developers chain the new turn with previous_interaction_id, place one system_input immediately before user_input and leave the top-level system_instruction unchanged. The server retrieves stored history instead of requiring the application to resend it.

Google says the step appends at the current turn boundary, leaving preceding tokens identical and the cached prompt prefix intact. Under Google’s design, earlier turns remain available, so teams can alter policy without restarting the session.

Why updated rules accumulate

Each update becomes a separate history step. Google says the original system instruction and all previous system_input steps remain in context; nonconflicting rules continue together, while Gemini favors the newest instruction when they conflict.

To reverse a rule, developers must state what changed and explicitly “ignore the earlier instruction,” because Google says previous steps cannot be removed. Cached history survives, but obsolete policy also stays in the model’s context.

Retrieved interactions list the system steps chronologically alongside user input, model output and tool changes. Google presents that record as an inspectable way to debug how an agent’s controls evolved.

How a deployment freeze works

Google’s infrastructure example starts with an assistant troubleshooting a latency spike. A new production deployment freeze tells the model to recommend read-only diagnostics and prevent further rollouts.

When a user asks for the command to deploy a release, the model declines and offers diagnostic checks. According to Google, it applies the new rule without resetting the earlier session.

The tool update’s real limits

Under Google’s design, applications continue sending the original top-level tools list, including functions they have disabled. They use removed_tools and added_tools on system_input to change the active set, and Google says those changes persist until a later update.

When both fields appear, Google processes removals before additions, allowing a function definition to be replaced. Only custom function tools are supported; MCP servers and built-in Google Search and code execution are not.

Google says the fields steer model behavior, not application permissions. It advises teams to authorize every function call on the backend before execution and keep untrusted external or end-user content out of system_input.

Google says teams can enable write tools after authentication, disable functions during a downstream outage, or expand a large tool catalog only when a task requires it. Backend authorization—not the revised tool list—ultimately determines which actions execute.

Preview limits and failure cases

The feature requires the v1beta Interactions API, and Google says its API surface may change before general availability. Google’s documentation lists gemini-4-carbon, gemini-4-neon and gemini-4-hydrogen; other models return HTTP 400.

Google limits the preview to model interactions. It says generateContent requests and agent interactions remain unsupported.

Malformed requests can also return HTTP 400. According to Google, developers must avoid:

  • Sending a standalone system_input.
  • Sending system_input during a function-result loop.
  • Dropping a removed function from the original top-level tools list on a later request.

Added tools must similarly remain outside that top-level list rather than being declared again on subsequent turns.

What the update costs

Google says, “There is no separate fee for mid-conversation instructions.” The company bills system_input tokens at the called model’s standard input-token rates, while earlier turns remain eligible for cached-token rates.

Google says Gemini Enterprise Agent Platform support is coming soon. For teams, the practical result is an inspectable mechanism for changing policy without losing cache economics, though the append-only context leaves old instructions in place. Before general availability, developers still face model limits, HTTP 400 edge cases and an API surface Google may revise.

Source: unite.ai

Share this article:

More from Nathan Brooks

Nathan Brooks

Show full bio

News editor covering regulation, policy and their impact on entrepreneurship, startups and venture funding at Business Bearings.

3,221 articles

Related articles

« Previous articleNext article »