Latest in AI
Gemini Interactions API: Change Instructions and Tools Mid-Conversation
The new system_input step can keep an existing prompt cache intact. Test the handoff before you use it in a real workflow.
Google added mid-conversation system instructions to the Gemini Interactions API in public preview on December 3. A system_input step lets the application send new instructions or add and remove function tools without invalidating the prompt cache. The useful application is a workflow that changes phase while the customer stays in the same conversation.
Which API and models support it?
Google's release notes list v1beta Interactions API support for Gemini 4 Carbon, Neon and Hydrogen. The step is named system_input, with added_tools and removed_tools for function-tool changes. Google's Python SDK implementation adds SystemInputStep, also listed in the v3.7.0 release.
This is separate from the Gemini Live API's session context updates. It is also separate from the Python SDK fix that keeps function-call IDs attached to automatic tool replies. A streaming voice app and a request-based Interactions app should not share a migration checklist just because both can change context.
Use one workflow with a clear handoff
Imagine a read-only product catalog assistant. In the first phase it can look up model numbers and stock. When the user switches to warranty questions, the application keeps the conversation and the selected item, removes stock lookup from the available tool set, and adds a read-only warranty lookup. The new instruction tells the model to cite the applicable warranty record.
Keep that phase change in application logic. A user message or retrieved page should not be able to select the next tool policy. Changing what the model sees also does not grant or revoke real access to a backend. The server still needs to enforce which tool calls it can perform at that point in the workflow.
Check behavior and caching separately
On a fixture with fake catalog and warranty records, confirm the original lookup works, then send the update. Ask for the warranty without repeating the item ID. A good result uses the correct earlier item, calls the newly available function, and produces a matching policy reference. Also ask for stock after the transition; confirm the application does not execute a stock lookup. If old stock was already in chat, removing the tool doesn't erase previously seen text.
Use a separate comparison for cache behavior. Hold the model, starting prefix and timing as constant as possible. Compare the provider's usage fields, if available, and end-to-end latency with an equivalent baseline. Keeping a prefix eligible for reuse is not a promise of a cache hit, lower latency or a particular bill.
When a new conversation is the better choice
Keep the conversation when the next phase still needs the same history. Start fresh when the task needs a different trust boundary or when earlier information should no longer be available. The preview is helpful for one user moving between known steps. It doesn't make the API a permissions system.
I'm Paras. I work across AI, engineering and distribution.
I help teams building agent products turn API changes into examples and release checks developers can use.