Introducing mid-conversation instructions in the Gemini API
Google has launched mid-conversation system instructions and tool updates in the Gemini API through the Interactions API. This preview feature allows developers to adapt agents to new rules and modify available tools mid-session without invalidating the prompt cache or increasing costs. The new system_input steps take precedence over user messages while preserving previous turn tokens for caching. Open article →