Thursday, 3 December 2026

Gemini API mid-conversation tweaks update tools without restart

Google’s Gemini API now supports mid-session instruction and tool updates, so long-running chats stay accurate without reprocessing history.

Google image for: Gemini API mid-conversation tweaks update tools without restart

The short version

  • The Gemini API gains mid-conversation system instructions and tool updates in preview via the Interactions API.
  • Updates can be inserted at a specific turn without invalidating the chat history cache.
  • This avoids restart costs and keeps long-running AI assistants aligned with new rules and capabilities.
  • Developers use system_input steps to apply changes before the next user message, preserving prior context.
Quick read · 1 min

Google is adding mid-conversation system instructions and tool updates to the Gemini API, in preview. This lets AI agents change their rules and available tools during a session without restarting the chat or reprocessing everything. It helps long-running conversations stay accurate and cheaper to run.

How it works: you start with a top-level system_instruction, then insert a system_input step before a user_input to update instructions or tools. The new instruction takes precedence and sticks for the rest of the chat. Practically, this means fewer reboots of a chat and lower costs as contexts evolve.

What’s next: developers can try added_tools and removed_tools to swap capabilities mid-session, all while keeping the core instruction stable. The feature is in preview via the Gemini Interactions API and should broaden the kinds of multi-turn AI applications you’ll see in the near future.

Google is giving developers a new way to keep multi-turn AI chats accurate without starting over. The Gemini API now supports mid-conversation updates to rules and tools, and this feature is available in preview as part of the Interactions API.

Before this, changing how the AI behaved in the middle of a long chat was clumsy. Developers either injected new rules inside user messages, which didn’t carry the same authority, or rewrote the top-level instruction, which forced the system to reprocess the entire conversation and added cost. The new approach treats mid-chat changes as first-class inputs you can place at a precise turn, so they take precedence over user text and don’t break the cached conversation history.

In practice, you start with a stable top-level instruction like, “You are an infrastructure troubleshooting assistant.” Later, you can insert a system_input step right before the next user message to update the directive or the tools the model can call. The mid-conversation instruction carries the same authority as the original system instruction and remains active for the rest of the session. If a newer instruction conflicts with an earlier one, the latest rule wins.

Google’s example walks through a simple scenario. The first turn sets the base role for the AI. In the second turn, a system_input update tells the model to run only read-only diagnostics during a deployment freeze. The model then provides guidance that reflects the new constraint without losing the chat’s prior history.

Tool changes are handled similarly. Instead of reloading all capabilities, developers can add or remove specific tools in the same mid-conversation step. This keeps the core list of tools stable across turns while letting the AI access new abilities or drop ones that no longer apply.

The change is aimed at teams running complex, long-running AI tasks, where business rules or available features can shift quickly. Mid-conversation updates reduce latency and prevent unnecessary reprocessing, which can save money and keep the AI’s behavior aligned with current policies.

For developers, the practical takeaway is simple: keep one top-level system_instruction and use mid-conversation system_input steps to adjust behavior or tooling as needed. This approach helps maintain consistency, keeps audits straightforward, and minimizes chat churn as conditions evolve.

What comes next depends on how developers experiment with the Interactions API. Google says mid-conversation updates will be available through that API, with examples and code to guide usage. As more teams test the feature, we could see broader applications, from real-time customer support to dynamic software diagnostics, where an AI agent adapts on the fly without starting from scratch.

Close-up of tool update concept and rule flow
Everyday impact: long-running chats stay accurate without restart

You're reading the quick version.