Google Lets Gemini Developers Update Agent Instructions and Tools Mid-Conversation
Google Lets Gemini Developers Update Agent Instructions and Tools Mid-Conversation
AI Agents & Automation

Google Lets Gemini Developers Update Agent Instructions and Tools Mid-Conversation

Google The Keyword AIDec 4, 2026

Google introduced a Gemini API preview that lets developers change agent instructions and function tools mid-conversation while preserving cached history.

Google announced on December 3, 2026, that developers can change system instructions and function tools during an ongoing Gemini API conversation without invalidating the prompt cache. The capability is in public preview through the Interactions API, which uses the v1beta endpoint.

Developers add a `system_input` step at a turn boundary, before the next user input. The new instruction remains active alongside the original system instruction, and takes precedence over user messages. If a later instruction conflicts with an earlier one, the newer instruction is followed. Earlier conversation turns remain eligible for cached-token rates, while the new input is billed at the model’s standard input-token rate; Google says the feature has no separate fee.

Function access can also be adjusted as a session progresses. Developers keep the top-level tools list unchanged and use `added_tools` and `removed_tools` to change which functions are available. Google says this currently supports function tools, but not MCP server tools. Changes persist until another system input updates them, and when a tool is both removed and replaced, the API processes the removal first.

The update is aimed at agent workflows where permissions, account status or available actions can change after a conversation begins. For example, an application could remove a refund function and add an escalation function when an account enters review. Google also cautions that these controls guide model behavior; applications still need to authorize function calls on their own backends and keep untrusted user content out of system inputs.

The preview is available across Gemini 4 models in the Interactions API. Google says support for Gemini Enterprise Agent Platform is planned for a later date, without specifying when.

Industry Impact

More adaptable Gemini agent workflows

AI software development and enterprise applications

Overview

Google’s public preview lets developers adjust instructions and function access during an ongoing Gemini API conversation while keeping earlier turns eligible for cached-token rates. This can help product teams build agents that respond to changing account status or permissions without restarting sessions. Developers gain more control over workflow behavior, while security teams should note that API controls guide the model but do not replace backend authorization. The feature is limited to function tools; MCP server tools are not supported, and Gemini Enterprise Agent Platform support is planned but undated.

Key Impact Points

Applications can change available actions as user permissions or account status change, without invalidating cached conversation history.

New system instructions take precedence over user messages, and newer conflicting instructions override earlier ones.

Backend services must still authorize function calls; the API’s behavior controls are not a substitute for application security.

Opportunities

Context-aware agent workflows

Enterprise applications and AI agent development

Organizations building Gemini-powered agents can use mid-session updates to adapt instructions and function access when a user’s status or permissions change. For example, a workflow could remove a refund function and add an escalation function when an account enters review. This may reduce the need to restart conversations to reflect changing conditions, while earlier turns remain eligible for cached-token rates. Developers can test the public preview through the Interactions API, but should enforce permissions in their own backends and keep untrusted user content out of system inputs. The capability currently supports function tools, not MCP server tools.

  • Dynamic function access for agent workflows

    Problem: An agent’s available actions may need to change as a conversation progresses and account status or permissions change.

    Solution: Use the Interactions API to add or remove function tools at turn boundaries and update system instructions without invalidating cached history.

    Target Users: Developers and product teams building Gemini API agent workflows.

    Business Value: Enables workflows to adapt available actions without restarting the conversation, while preserving cached-token eligibility for earlier turns.

    Revenue Potential: The article identifies no separate fee for the feature; it may support application and workflow development, but does not specify a revenue model.

Reference link

https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-mid-conversation-updates

Image Source Link

https://techcrunch.com/wp-content/uploads/2024/10/GettyImages-2166742531.jpg

Community Discussion (0)

No discussions yet. Be the first to start the conversation!