Gemini API preview adds mid-conversation instruction updates
Original title: Introducing mid-conversation instructions in the Gemini API
A system_input step can change rules or function tools without invalidating the prompt cache; MCP tools are not supported.
Google said mid-conversation system instruction and tool changes are available in preview in the Gemini API through the Interactions API. Developers pass the prior turn id and a system_input step while leaving the top-level system instruction and tools list unchanged so earlier tokens stay cached. Newer conflicting instructions take precedence, and added_tools and removed_tools currently update function tools only, not MCP server tools.
- The feature is in preview on the Interactions API.
- Examples use the gemini-4-neon model.
- One system_input step is allowed per turn, directly before user_input.
- Retrieved interactions list system_input steps with user and model steps.
- Vendors
- Products
- Gemini APIInteractions API
- Organizations
- Google Cloud
- AI models
- gemini-4-neon
From the original article
5 min read at blog.google
Update system instructions and tools mid-conversation while preserving your prompt cache.
By Trey Nguyen · blog.google
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.