SMART WORLDJOURNALSubmit Manuscript
← All technology news

Artificial Intelligence

Google's Gemini API Introduces Mid-Conversation Instruction Updates for Enhanced AI Interaction

Google's Gemini API now supports mid-conversation system instruction and tool updates through the Interactions API preview, enabling AI agents to adapt in real time during sessions without recalculating entire conversation histories or added costs.

NEWS

Google announced on December 3, 2026, the public preview of a new feature in its Gemini API that allows developers to update system instructions or toolsets mid-conversation without invalidating the prompt cache. This enhancement aims to improve efficiency and flexibility for AI agents handling long and complex interactions, which often span dozens or hundreds of conversational turns.

Traditionally, altering system instructions or the set of available tools in an ongoing AI conversation required reprocessing the entire dialogue history. This approach not only increased latency and computational overhead but also raised operational costs. Workarounds involved embedding instructions as user messages, which diminished their authoritative weight, or rewriting instructions that forced cache invalidation.

The newly introduced 'system_input' step in the Interactions API enables developers to insert updated system instructions or tool changes at any point in the conversation, referencing the previous turn’s interaction ID. This preserves the prompt cache for earlier parts of the session, ensuring that the model prioritizes the most recent instructions while maintaining context from prior dialogue.

To accommodate dynamic tool changes, developers maintain a consistent top-level tools list every turn and apply incremental additions or removals through 'added_tools' and 'removed_tools' fields in a 'system_input' step. This method supports flexible tool usage scenarios—such as enabling escalation tickets after initial support interactions or disabling tools temporarily due to service outages—without cache disruption.

These capabilities are particularly useful for enforcing session-dependent constraints like account permissions, reinforcing policy rules during extended interactions, toggling operational modes (e.g., read-only to write access), and managing large tool catalogs progressively. They enhance real-time adaptability and control over AI-powered applications in customer support, workflow automation, and other domains.

The mid-conversation updates carry standard input token costs, but benefit from cached token rates on previous turns, making them cost-effective. Currently, the feature is available in public preview for all Gemini 4 models via the Interactions API’s v1beta endpoint, with enterprise platform support forthcoming.

Google emphasizes that while system instructions and tool updates guide the AI model's behavior, developers should still implement backend authorization and carefully manage untrusted inputs. This maintains security and integrity in orchestrated AI workflows.

This advancement marks a significant improvement in how AI conversational agents can be controlled and adapted on the fly, enhancing developer experience and enabling more sophisticated, responsive AI applications.

Source & further reading

Introducing mid-conversation instructions in the Gemini API ↗

Source published 2026-12-03. Claims and limitations should be checked against the original announcement or research.