Industry

Google added instruction updates to the Gemini API

Google launched a public preview of mid-conversation system instructions and tool updates in the Gemini API through the Interactions API. The feature makes it possible to change rules and tools mid-session without resetting the prompt cache. It is available for all Gemini 4 models on the v1beta endpoint.

Google added instruction updates to the Gemini API
Why this matters for business

Companies will be able to change the rules and tool set of long-running agents without the extra cost of reprocessing history. This reduces latency and cost for sessions of tens or hundreds of turns.

Instruction update mechanism

On December 3, 2026, Google released a public preview of the ability to send new system instructions mid-conversation through the Interactions API. To do this, the application passes the previous turn ID in the previous_interaction_id field and places a system_input step immediately before user_input. The top-level system_instruction stays unchanged, which preserves the prompt cache.

Each system_input is added to the history as a separate step and remains in effect until the end of the session, together with the original instruction. If rules conflict, the model gives priority to the latest version. Retrieving the interaction record shows every system_input step in chronological order, along with user messages and model responses.

Changing the tool set

Tool updates go through the added_tools and removed_tools fields inside system_input. Developers keep the original tools list in every request, and changes apply only to active functions. The API processes removals before additions, so a tool definition can be replaced in a single step.

Only function tools are supported; MCP server tools are not updated this way. Google recommends including a short text note when removing a tool so the model can explain to the user why the action is unavailable. All changes remain in effect until the next update.

Availability and pricing

The feature works with all Gemini 4 models on the v1beta Interactions API endpoint. Support for Gemini Enterprise Agent Platform is expected later. There is no separate charge for mid-conversation instructions: system_input tokens are billed at standard input token rates, and previous turns keep access to cached rates.

The application must authorize each function call itself on the backend. system_input content must not include data from end users. Restrictions include a ban on sending system_input without a link to the previous turn, and a requirement to keep the original tools list on subsequent requests.

Test the hypothesis before talking to the team

In a couple of minutes, the Asphera AI consultant will break down your task, show where AI will have an impact, and put together a pilot hypothesis.

Discuss it directly