Google Gemini API Adds Mid-Conversation Instruction and Tool Updates with Prompt Caching

Google has introduced a new capability in the Gemini API that lets developers update system instructions and tools in the middle of a conversation without losing the prompt cache. This feature is designed for dynamic AI applications, such as customer support bots or interactive assistants, where the context or available functions may need to change based on user input or external events.
By preserving the prompt cache, the API reduces latency and cost, as previously computed context is reused rather than recomputed from scratch. The update is particularly useful for long-running sessions where maintaining state is critical. Developers can now modify the system prompt or swap tools on the fly, enabling more flexible and responsive AI behavior.
This move reflects Google's push to make its Gemini models more adaptable for production use cases, competing with other AI platforms that offer similar dynamic control. For businesses building conversational AI, this means faster iteration and more natural user experiences without sacrificing performance.