blog.google (via Future Tools / Matt Wolfe) · Dec 3, 2026
Gemini API Adds Mid-Conversation System Instructions Without Breaking Prompt Cache
Update system instructions and tools mid-conversation while preserving your prompt cache. On Dec. 3, Google opened a public preview in the Gemini Interactions API that lets long-running agents change instructions or tools while reusing
Read moreShow less about Gemini API Adds Mid-Conversation System Instructions Without Breaking Prompt Cache
Update system instructions and tools mid-conversation while preserving your prompt cache.
On Dec. 3, Google opened a public preview in the Gemini Interactions API that lets long-running agents change instructions or tools while reusing cached turns. Previously, rewriting either forced reprocessing, while putting rules in user messages gave them less authority.
Developers can link the previous interaction and insert one system_input before the user message while keeping top-level instructions and tools stable. The step outranks user messages, persists in the session, and appears in the interaction trace. Newer instructions prevail when rules conflict.
Tool changes persist until updated. The API processes removals before additions and supports updates only for function tools. Google advises authorizing every call on the backend and keeping untrusted content out of system instructions.
The v1beta preview covers all Gemini 4 models, with Gemini Enterprise Agent Platform support planned. New instruction tokens cost standard input rates, and earlier turns remain eligible for cached-token pricing.
Read at blog.google (via Future Tools / Matt Wolfe) (opens in a new tab)