From the source
- Google introduced a public preview on December 3, 2026 that lets Gemini API developers update system instructions and function tools mid-conversation without invalidating cached prompt tokens.
- The capability runs through the Interactions API, adding system-level controls for agents whose rules and permissions change during a session.
- Long-running agents can span dozens or hundreds of turns, during which spending limits, account permissions and available functions may change.
- Developers previously had two workarounds: inserting instructions into user messages preserved the cache but lacked top-level system authority and could be imitated by users, while rewriting the system instruction or tools list invalidated the cache.
- The new system_input step carries the same authority as the top-level system instruction and takes precedence over user messages while earlier turns remain cached.
- Each update becomes a separate history step rather than replacing earlier instructions, so Google recommends stating what changed and telling the model to ignore the earlier instruction when reversing a rule.
- The preview requires the v1beta Interactions API, supports gemini-4-carbon, gemini-4-neon and gemini-4-hydrogen, and is limited to model interactions, leaving generateContent requests and agent interactions unsupported.