FlashNEWS BRIEFING

Gemini API Preview Adds Mid-Conversation System Instruction and Tool Updates

1 min read

88Z AI, 7 December — Google announces a preview of mid-conversation system instruction updates in the Gemini API's Interactions API. Developers can now dynamically adjust agent rules and available tools while keeping the prompt cache intact, avoiding full conversation reprocessing to reduce latency and costs.

At a glance

  • Developers can update system instructions and tools mid-conversation while keeping the prompt cache intact, avoiding costly reprocessing.
  • Dynamic function tool management via added_tools and removed_tools supports permission switching and live operational adjustments.
  • Feature is in public preview for Gemini 4 models on the v1beta endpoint, billed at standard input token rates.

Core Functionality and Mechanism

Google has introduced mid-conversation system instruction and tool changes to the Gemini API via the Interactions API. Previously, developers faced a trade-off: sending instructions as user messages reduced their authority and risked imitation, while rewriting system instructions invalidated the prompt cache, forcing full history reprocessing and increasing cost and latency. The new feature allows sending a system_input step with instruction or tool changes at any turn. This carries the same authority as top-level system instructions, takes precedence over user messages, and keeps prior turns cached.

Dynamic Tool Management and Use Cases

The feature supports dynamic function tool updates via added_tools and removed_tools fields without altering the top-level tools list, preserving cache validity. For instance, an app can remove a refund tool and add an escalation ticket tool mid-session to handle real-time status changes like account reviews. This is suitable for enforcing session-dependent constraints, reinforcing long-horizon instructions, dynamically switching permission modes, and handling live operational changes. Currently available in public preview for Gemini 4 models via the v1beta endpoint, tokens in system_input are billed at standard input rates with no separate fee.

Sources & editorial note

This article is an AI-assisted synthesis by 88Z AI based on the public sources below. Product claims and availability are attributed to their publishers. It does not represent independent testing or first-hand reporting.

  1. GoogleSource published

Source dates above refer to the original announcements; the date under the headline is this article’s publication on 88Z AI.

Related reading

All stories
88Z.ai