Summary
Google said on December 3 that mid-conversation system-instruction and tool changes are available in preview in the Gemini API’s Interactions API. Developers can send a system_input step on any turn. It carries the same authority as the top-level system_instruction, takes precedence over user messages, and leaves earlier turns in the prompt cache, so agents can pick up new rules without reprocessing the full conversation and driving up cost and latency. Google noted that long-running agents often span dozens or hundreds of turns, during which rules, permissions, and tools change. Workarounds had been to stash new instructions in a user message—which lacks the same weight and can be imitated—or to rewrite the system instruction or tool list, which invalidated the cache. To use the feature, pass the previous turn’s previous_interaction_id, place a system_input step immediately before user_input, and keep the top-level system_instruction unchanged so the prompt prefix remains cacheable. A documented example uses gemini-4-neon and, on the second turn, adds a system update that a production deployment freeze is active and only read-only diagnostics are allowed. The preview is for Gemini 4 models on the v1beta endpoint; documentation indicates system_input tokens are billed as regular input and that function tools can be added or removed. The post is by Gemini API product manager Trey Nguyen and Google Cloud product manager Daniel Kyme, on the Google blog.
This summary reflects the cited source. Visit the original for its full context.
← All AI news