Gemini 4 can change the rules without restarting the chat
Gemini 4’s Interactions API can change instructions or custom tools mid-chat without invalidating the prompt cache. Here’s what the v1beta preview supports.
Google added mid-conversation system instructions to the Gemini Interactions API in public preview on December 3. Developers can change the instructions Gemini 4 follows or swap eligible function tools on a later turn without invalidating the existing prompt cache, according to Google’s release notes. The preview uses v1beta and supports Carbon, Neon and Hydrogen.
This solves a more practical problem than another bigger context window. A planning assistant can spend twenty turns comparing options before a team tells it the budget changed. The team should be able to change the rule without making the app start the work over or asking the model to treat the new limit as just another user preference.
What changes on the next user turn
Google’s developer guide shows the new system_input step immediately before user_input. The request references the previous turn through previous_interaction_id. Add one update at most, and send it with a user turn instead of trying to interrupt a tool call already in progress.
| What you need to change | Where it goes | What to keep in mind |
|---|---|---|
| Default behavior at the start | system_instruction | Keep durable rules here, not in repeated turns. |
| A new constraint during the session | system_input | Earlier instructions remain in context. Be explicit about what changed. |
| Which custom functions are available | added_tools or removed_tools | Keep sending the original top-level tool list on the chained requests. |
For example, a trip planner could finish a first pass under a $1,000 cap, then receive a trusted system update lowering it to $700. Keep the same trip research in context, but make the rule explicit: the $700 cap replaces the earlier one. In a real app, the backend should still reject an over-budget booking even if the model proposes it.
Changing tool availability is not changing permissions
The preview can add and remove custom functions, but not built-in tools or MCP servers. Use it to adjust what the model is offered, not as your only access control. Permission checks belong in the service that executes the action. Likewise, preserving eligibility for prompt caching does not guarantee a particular cache hit or dollar saving.
Who should try it
If you already use the Interactions API for long, stateful model conversations, test a session where a rule changes halfway through and look at both the model’s decisions and cached-token usage. This does not work with generateContent or managed agent interactions. For another example of Google changing what the API can carry between steps, see our guide to Gemini’s multimodal tool responses.



