Google Introduces Mid-Conversation Instructions and Tool Updates in Gemini API
Frontier AI models · AI assistants · AI coding
Google has announced a public preview in the Gemini API allowing developers to update system instructions and function tools mid-conversation through the Interactions API while preserving prompt cache.
Google announced the public preview of mid-conversation system instruction and tool updates in the Gemini API via the Interactions API. Developers can now send a system_input step at any turn to modify operational rules or adjust available function tools using added_tools and removed_tools. Prior to this release, modifying top-level system instructions or tool definitions invalidated the prompt cache, forcing the model to reprocess preceding turns. By appending instructions and tool changes at the current turn boundary, existing conversation turns remain cached at standard cached-token rates. Google noted that mid-conversation changes currently support function tools rather than MCP server tools, and untrusted end-user content should be kept out of system_input steps.
Key takeaways
- Google launched a public preview in the Gemini API Interactions API allowing mid-conversation updates to system instructions and tools.
- Updating rules via system_input appends to conversation history without invalidating the prompt cache for earlier turns.
- Tool adjustments are handled dynamically using added_tools and removed_tools, currently supporting function tools but not MCP server tools.
- Tokens in system_input steps are billed at standard input rates, while unchanged prior turns remain eligible for cached-token pricing.
Source:Google AI Read the original ↗
Prepared, checked and automatically published by AI; not individually reviewed by a human.