APIRON // Intel
Back to the feed
Google AIModels

Introducing mid-conversation instructions in the Gemini API

The brief

Google has added mid-conversation system instruction and tool updates to the Gemini API, available in preview through the Interactions API. Developers can send a system_input step at any turn to change rules or tools without re-reading the full conversation or invalidating the prompt cache for earlier turns. Each instruction carries the same authority as the top-level system instruction, takes precedence over user messages, and remains active for the rest of the session.

To keep caching intact, developers should leave the top-level system instruction and tools list unchanged, and use added_tools and removed_tools to adjust function tools instead. MCP server tools are not yet supported this way. Mid-conversation instructions carry no separate fee, since system_input tokens are billed at standard input rates. The feature is in public preview across Gemini 4 models via the v1beta endpoint, with Gemini Enterprise Agent Platform support coming soon.

  • System_input steps let developers update rules or function tools at any turn, with the same authority as the top-level system instruction.
  • Earlier turns stay cached when the top-level system instruction and tools list stay unchanged, and function tools are adjusted with added_tools and removed_tools.
  • The feature is in public preview for Gemini 4 models through the Interactions API, with no separate fee beyond standard input token rates.

Why it mattersIt lets long-running AI agents adapt to changing rules and tools mid-session while keeping costs down and their behavior easier to audit.

Summary written by AI from the original article. It may miss nuance, so check the source before relying on it.

Continue at Google AIRead the full story