Google's Gemini API now supports mid-conversation system instruction changes
developers can update system instructions or tools in the middle of a conversation with the gemini api without invalidating the prompt cache. this lets agents adapt to new rules and tools mid-session.
the gemini api's interactions api now supports mid-conversation system instruction and tool changes in preview. developers can update system instructions or tools without invalidating the prompt cache by sending a system input step at any turn. this feature is useful for long-running agents that work across dozens or hundreds of turns and need to adapt to changing rules, permissions, and available tools. the system input step carries the same authority as top-level system instructions and takes precedence over user messages.