Back to News
ProductAI Understanding briefing

Google adds mid-conversation system instructions and tool updates to Gemini API

Google’s Gemini API now lets developers change system instructions and add or remove function tools during a multi-turn session without breaking the prompt cache, reducing latency and cost.

4 min readRead the primary source
Source-provided image accompanying Google adds mid-conversation system instructions and tool updates to Gemini API
Primary-source documentSource recorded
Publisher
blog.google
Source type
Primary document — an official announcement, paper, filing, or first-party page we read directly.
ContextUnderstand this in 60 seconds

Key terms

API (Application Programming Interface)
A structured way for one software system to send requests to and receive responses from another system.
Latency
The time between sending a request and receiving the model's output.

What happened

Google announced that the Gemini ’s Interactions endpoint now supports mid-conversation system_input steps. Developers can send a system instruction or modify the set of callable tools at any turn by including a system_input step before the user_input. The new step inherits the authority of the top-level system instruction, stays cached with prior turns, and can add or remove tools via added_tools and removed_tools fields. The feature is in public preview for all Gemini 4 models and will later roll out to the Gemini Enterprise Agent Platform.

Google’s blog post explains that the Interactions now accepts a system_input step at any turn. This step can contain plain-text instructions, added_tools, and removed_tools fields. The system_input is placed directly before the user_input in the request payload and references the previous turn via previous_interaction_id.

When a system_input is processed, it appends to the conversation history without altering the cached prompt tokens from earlier turns. This means the model can reuse the cached representation, avoiding the cost of re-encoding the entire conversation each time a rule or tool changes.

Tool updates are handled by specifying added_tools and removed_tools arrays. The processes removals before additions, allowing a tool definition to be replaced in place. The top-level tools list must remain constant across turns; only the incremental changes are permitted.

The blog notes that system_input steps are billed at the standard input token rate for the chosen Gemini 4 model, with no extra fee for the mid-conversation capability itself. The feature is currently in public preview for all Gemini 4 models via the v1beta endpoint, with broader enterprise support slated for later.

Source details: blog.google

Why it matters

The update addresses a long-standing limitation for agents that need to adapt rules, permissions, or toolsets over long conversations. Previously, changing system instructions or tools required rebuilding the prompt cache, which increased token usage and . By allowing incremental updates that preserve cached tokens, developers can build more responsive, cost-effective agents that react to dynamic contexts such as authentication state changes, service outages, or evolving policy constraints. This capability also simplifies debugging and audit trails because each system_input appears as a distinct step in the interaction history. While the feature is preview-only and limited to function-tool modifications (not arbitrary server tools), it paves the way for richer, more flexible agentic applications on Gemini.

Preserving the prompt cache reduces token consumption, which directly lowers operational costs for developers running high-volume, multi-turn agents.

Dynamic rule and tool updates enable agents to enforce context-specific policies, such as compliance constraints that emerge mid-session, without requiring a full conversation restart.

The clear audit trail—each system_input appears as a separate step—helps developers debug complex agent behavior and satisfy governance requirements.

By supporting incremental tool changes, the encourages more modular agent designs, where a small initial toolset can be expanded as needed, simplifying initial integration and reducing upfront complexity.

Interactive Mechanism

Interactive Mechanism: How It Actually Works

Explore the underlying technology behind this development interactively.

Agent Lifecycle Stage:
1
User Intent & Planning: "Audit customer refund request #4092 and settle payment."
2
Tool Calling: Emits structured JSON call crm_get_transaction(id='4092').
3
Guardrail & Verification:Paused: High-value action requires human operator sign-off.
4
Final Settlement: Refund recorded, email receipt dispatched, and audit log stored.
Core takeaway: An AI agent is not just a language model—it is a closed loop of planning, tool invocation, and environment feedback. Production systems require self-healing retries and strict human approval guardrails.
Interactive Concept Check+10 Points
Gemini in Google Classroom Quiz

What conditions does Google’s current help list for student access to Gemini in Classroom?

What to watch next

Future releases may expand mid-conversation updates to include non-function tool types and integrate with the Gemini Enterprise Agent Platform. Developers should monitor pricing documentation for any changes to token billing for system_input steps and watch for best-practice guidance on securing tool calls, especially as dynamic permissions become more common in production agents.

Expansion of mid-conversation capabilities beyond function tools, potentially covering other tool categories or custom server-side extensions.

Integration timeline for the Gemini Enterprise Agent Platform, which could bring these features to larger, enterprise-grade deployments.

Any updates to pricing structures, especially if Google introduces separate charges for system_input processing or higher-tier caching benefits.

Community feedback on security best practices, as dynamic tool activation may increase the surface area for unauthorized function calls if not properly guarded.

Related guides & quizzes

Found this useful?