Google previews Gemini API update for changing agent rules during chats
Developers can revise instructions and tool access without reprocessing earlier exchanges, but Google says applications must still validate actions.

Google has introduced a Gemini API preview allowing developers to change an AI agent’s instructions or available tools during an ongoing conversation. The company said previous exchanges remain cached, avoiding the need to process the entire conversation again when requirements change.
The feature gives newly added instructions authority equal to that of the initial system prompt. Previous instructions remain in place, but the latest takes precedence if requirements conflict. Developers can also disable or enable individual tools, including withdrawing access to a refund tool during an account review.
Previously, revising the main instructions required reprocessing the conversation, increasing expense and delay. Adding rules through user messages offered an alternative, but those messages had lower priority and could be imitated by users. With the preview, cached exchanges are charged at lower cached rates.
Google cautioned that the feature guides model behavior rather than enforcing controls. It said applications should independently validate each action on their servers before execution. The preview supports Gemini 4 models, including Gemini 4 Neon, with no additional fee beyond standard token charges.




