Gemini AI can reshuffle its rules mid‑chat, API preview reveals
Google’s Gemini API preview lets developers add system prompts and toggle tools during a chat without restarting the session.
Talk With Tech Newsroom
The short version
Google’s Gemini API preview lets developers insert new system instructions and switch tools while a chat is ongoing.
New instructions have the same authority as the original prompt, while earlier messages stay cached for cheaper processing.
Apps must still verify actions on their servers, and prompt injection remains a shaded risk developers should monitor.
Quick read · 1 min
Google’s Gemini API preview adds mid‑conversation controls: you can insert new system instructions and swap tools without restarting the chat. The new rules carry the same weight as the original prompt, while older turns stay cached to keep costs lower.
In practice, apps could tighten rules or swap tools on the fly, improving responses during long chats. The flip side is the familiar risk of prompt injection, though Google emphasizes server‑side checks are still needed before any action runs.
In the near term, look for broader access to Gemini 4 Neon and other models, with developers balancing flexibility and safety as this feature expands.
Google is giving developers more leverage over Gemini‑powered chats. In a preview of the Gemini API, engineers can drop new system instructions and flip tools during an active conversation. The added rules hold the same weight as the initial system prompt, and earlier turns remain cached, which keeps costs down for prior messages.
What this means for everyday users is simpler AI behavior in apps without forcing a restart. Picture a shopping assistant that tightens a spending cap mid‑chat or a support bot that switches to a refund tool when it needs to. The change makes lengthy chats smoother while letting developers adjust how the AI behaves on the fly.
The feature works with Gemini 4 models, including the new Gemini 4 Neon. There’s no extra charge beyond the standard token pricing for using the new mid‑conversation rules; it’s part of existing Gemini fees. Still, agent costs are a concern for some companies, even as token prices fall.
Two cautions: old instructions aren’t deleted, and when a new rule clashes with an old one, the latest instruction wins. Google also reiterates that this feature only steers the model; apps should validate each action on their own servers before it runs. That helps guard against attempts to bypass safeguards through prompts.
Security researchers have flagged prompt injection as a risk in this space. Google says the model follows the newest instruction when there’s a conflict, but server‑side checks remain essential for safety and accuracy.
For developers, this preview hints at a future where AI agents adapt mid‑conversation to changing rules or tools without reprocessing the entire chat. For users, it could mean more responsive, on‑the‑fly assistants that still stay within set boundaries. We’ll see how broadly Google rolls this out and what safeguards teams add as the feature moves beyond preview.
What happens next: Google is likely to expand access to more developers and models, and we’ll watch how firms implement mid‑conversation instructions in consumer apps. If you use Gemini powered apps, expect more dynamic behavior controls in the months ahead.
Google’s Dialogues episode with its chief economist explains ATLAS V1.0, a study aiming to measure real AI use and its impact on productivity beyond traditional stats.
Google unveils MedGemma 2, an enhanced open AI model designed to help clinicians access records, cite guidelines, and support real-world medical workflows.