Google Gemini API Enables Mid-Conversation Updates to Instructions and Tools

Image: Google · Source
Google has introduced a preview feature in its Gemini API allowing developers to update system instructions and tools during an active conversation while maintaining prompt cache, reducing costs and latency.
On December 3, 2026, Google announced a significant enhancement to its Gemini API with the introduction of mid-conversation system instruction and tool updates via the Interactions API. This new capability allows developers to modify the rules, permissions, or accessible tools during an ongoing multi-turn conversation without invalidating the prompt cache. Previously, such changes required either embedding new instructions as user messages—less authoritative and prone to user interference—or rewriting system instructions, which forced reprocessing of the entire conversation history, increasing latency and cost.
The Interactions API enables sending a dedicated system_input step containing new instructions or tool modifications just before the user_input in the conversation sequence. This input holds equal authority to top-level system instructions and takes precedence over user messages, while earlier conversation turns remain cached. The system_input steps persist alongside the unchanged top-level instructions, applying together to the session. If conflicts arise between instructions, the model prioritizes the latest system_input.
Crucially, tool updates are handled by maintaining a consistent top-level tool list and applying incremental changes through added_tools and removed_tools fields within the system_input. This approach preserves prompt cache integrity and allows dynamic modification of callable functions, such as replacing or suspending specific tools during the conversation. For example, a support agent might start with tools to get store hours and issue refunds, then switch mid-session by removing refund functions and adding escalation ticket creation. These modifications remain effective until superseded by new updates.
Google highlights several use cases for this feature, including applying session-dependent constraints discovered during conversation, reinforcing critical instructions during long interactions, dynamically changing permissions post-authentication, reacting to operational issues by disabling or restoring tools, and managing large tool catalogs dynamically without upfront declaration. Developers are advised to continue enforcing backend authorization for all function calls and to avoid including untrusted content in system instructions.
Charges for mid-conversation instructions follow standard input token billing; however, cached tokens from earlier turns remain eligible for reduced rates. This capability is currently in public preview for all Gemini 4 models via the v1beta Interactions API endpoint, with support for the Gemini Enterprise Agent Platform forthcoming.
Developers interested in leveraging mid-conversation updates can consult the official Google documentation and join discussions on the AI Developer Forum to explore optimal Gemini 4 model choices and implementation guidance.


Sources and original reporting
Read the original source ↗

Comments (0)
No comments yet. Start the discussion.
Write a comment
Comments are published after moderation. Your name and comment will be visible publicly. Account