Gemini API rolls out mid‑conversation instructions
gemini
| Source: Google AI | Original article
Google's Gemini API now lets developers modify system instructions and tools during a conversation without losing the prompt cache.
Google has added a new capability to the Gemini API that lets developers modify system instructions and attached tools while a conversation is in progress, without discarding the existing prompt cache. The change means that a running chat can be re‑directed, re‑configured or equipped with additional functionality on the fly, preserving the context that has already been built up.
The update builds on the performance boost announced in the Gemini 4 Live launch on 2 December, when Google highlighted faster inference and lower latency for live translation. By allowing mid‑conversation tweaks, the API reduces the need to restart a session or resend the full prompt history when a use‑case evolves—saving tokens, cutting costs and simplifying the development of adaptive assistants. It also opens the door for more sophisticated tool‑use patterns, such as dynamically adding a search or code‑execution module only when a user’s request warrants it.
For developers, the practical impact will be felt in tighter integration cycles and more responsive user experiences. Applications that rely on step‑by‑step guidance, real‑time data retrieval, or context‑dependent policy enforcement can now adjust their behavior without interrupting the flow. The preservation of the prompt cache also means that latency gains from Gemini 4 Live are retained even as the system’s instructions change.
What to watch next includes the rollout schedule for the new API endpoints, updates to client libraries, and any guidance Google may issue on best practices for dynamic instruction handling. Observers will also be keen to see how competitors respond, and whether the feature spurs a wave of more fluid, tool‑rich conversational agents across the AI ecosystem. As we reported on 2 December, Gemini’s speed improvements are already reshaping real‑time use cases; this latest tweak could accelerate that shift even further.
Sources
Back to AIPULSEN