Google has released a public preview of mid-conversation instructions in the Gemini API through the Interactions API (v1beta). Developers can now send a system_input step at any turn to update system rules or add and remove function tools (added_tools and removed_tools) without invalidating the prompt cache of prior turns, according to the Google Blog and Google AI Studio release notes.
Built for long-running Gemini 4 agents
Supported across Gemini 4 models (gemini-4-carbon, gemini-4-neon, and gemini-4-hydrogen), system_input carries top-level system authority at standard input token rates, though Google notes backends must still authorize every function call.
By Spark