AI Development
#Google
#Gemini API
#AI agents
#developer tools

Gemini API Adds Mid-Conversation Instruction and Tool Updates

Makzit AI News·Source: Google AI Blog··3 min read
A conceptual editorial scene illustrating "Gemini API Adds Mid-Conversation Instruction and Tool Updates" (AI Development) — Google says developers can change instructions and supported function tools during an Interacti

Google says developers can change instructions and supported function tools during an Interactions API session while retaining earlier cached turns; the feature is in public preview.

What happened

Google announced that developers using the Gemini API’s Interactions API can now introduce system instructions or change supported tools during an ongoing conversation, while keeping earlier turns eligible for prompt-cache reuse. The feature is in public preview through the v1beta endpoint, and Google says it is available across Gemini 4 models in the Interactions API. These are company-reported product details; this report relies on a single Google source and cannot independently corroborate them. Google AI Blog

The mechanism is a system_input step placed immediately before the user’s input for a turn. Developers continue passing the same top-level system instruction, while the new step adds instructions that remain active for the rest of the session. Google says these instructions have the same authority as the top-level instruction and take precedence over user messages. When newer instructions conflict with earlier ones, the latest instruction is favored, according to the company. Google AI Blog

For tools, the API lets developers add or remove function tools through added_tools and removed_tools in a system-input step. Google advises keeping the top-level tool list unchanged to preserve the prompt prefix. The company says removals are processed before additions when both happen in one step. Google AI Blog

Why it matters

Long-running agents may encounter changed permissions, account conditions, or operational rules after a session has started. Previously, Google says developers had to put new rules in user messages, which do not have the same instruction priority, or alter top-level instructions and tools, which invalidated the cache. The new approach is intended to let an application adapt session behavior without reprocessing the entire conversation history. Google presents reduced cost and latency as benefits, but the post provides no measured savings or independent benchmark. Google AI Blog

Practical impact

Developers could use the feature to reflect a newly detected spending limit, switch an agent to read-only operation during an incident, or make an escalation function available after a support case changes state. These examples describe potential application patterns, not demonstrated outcomes. The practical change is that developers can represent a mid-session update as a distinct step in the interaction, rather than revising the conversation’s top-level setup.

Google says those steps appear in retrieved interaction records alongside user input and model output, which may help teams inspect how a session’s instructions changed. It also says tokens in new system-input steps are billed at standard input rates, while earlier turns remain eligible for cached-token rates. The announcement does not quantify the cost of a given workload. Google AI Blog

Limitations

The feature remains a preview, so the post does not establish production availability or describe service-level guarantees. Tool changes currently cover function tools, not MCP server tools. Google also cautions that these controls steer model behavior; they do not replace application security. Developers must authorize every function call on their own backend and keep untrusted external or end-user content out of system instructions. The announcement supplies code examples but no comparative tests, reliability figures, or independent evaluation. Google AI Blog

Sources

Automated Report: This article was drafted with AI assistance based on the sources below. There is no human review step.

Sources & Citations

Comments

Sign in to join the conversation.

Loading comments…