IntraMind LLC logo
IntraMind LLC
IntraBlog
Go back

Gemini API: Change Rules Mid-Chat Fast

Unlock flexible Gemini agent updates without breaking the prompt cache

Dec 4, 2026 (Updated Dec 4, 2026) - Written by Christian Tico

7

Share this article:

Artificial Intelligence
Gemini API mid-conversation updates diagram showing how to add instructions and tools without resetting the cache, with a cached system instruction, a turn 13 system_input about a deployment freeze and the create_release tool swapped for get_logs

Source: Google.

Sponsored

Lose the Friction: Generate Branded QR Codes for Your Bio Page

Struggling to direct live event audiences to your complex digital product URLs? Generate a fully customizable QR code linked straight to your profile.

Get Free QR
Author Thought

The Gemini API's mid-conversation updates solve a practical problem for agent builders: changing instructions and tools during a session without invalidating the prompt cache. This makes it possible to adapt permissions and rules to the different stages of a workflow while reducing processing costs. As this is a preview, it is worth testing on concrete use cases and verifying its behavior before adopting it in production.

Christian Tico
Knowledge Check

Why does changing the top-level tools list between turns break Gemini API prompt caching?