What changed

Google has introduced mid-conversation system instruction and tool updates in the Gemini API through the Interactions API. This allows developers to send system_input steps at any turn with instruction or tool changes, which carry the same authority as top-level system instructions and take precedence over user messages. Earlier turns remain cached, preserving the prompt cache integrity.

What this means in practice

Developers can now dynamically adjust rules, permissions, and available tools during a conversation without invalidating the prompt cache. This is particularly useful for long-running agents that operate across dozens or hundreds of turns. By using the system_input step, developers can append new instructions or tool updates directly before user_input, ensuring that the model remains aware of the latest constraints or capabilities.

The system_input step can include text content, tool updates, or both. When a newer system_input conflicts with an earlier instruction, the model favors the most recent instruction. Developers are encouraged to keep the top-level system_instruction unchanged across turns to maintain the validity of the prompt prefix in the cache.

Limitations and availability

Mid-conversation system instructions carry no separate fee, but tokens in system_input steps are billed at the standard input token rates for the model called. The feature is available in public preview across all Gemini 4 models in the Interactions API through the v1beta endpoint. Tool updates must be handled via added_tools and removed_tools fields, and only function tools can be updated this way. The supplied announcement does not specify the exact conditions under which the feature will be made generally available.

Source facts for Gemini API Now Allows Mid-Conversation Instruction Updates: Trey Nguyen Product Manager, Gemini API Daniel Kyme Product Manager, Google Cloud Share Your browser does not support the audio element. Listen to article [[duration]] minutes This content is generated by Google AI. Along the way, rules, permissions and available tools change.
Original AINewsTrend explainer based on the cited source. This graphic summarizes source statements; it is not an independent benchmark.

Sources and further reading

  1. googleai: Introducing mid-conversation instructions in the Gemini API