← All AI News
Agents & tools

Gemini lets long-running agents change rules without breaking the cache

Google’s preview adds auditable system and function-tool updates inside a Gemini 4 conversation, but dynamic instructions need the same authorization discipline as dynamic tools.

What changed

Google introduced mid-conversation system instructions in public preview on 3 December for Gemini 4 models through the Interactions API. An application can append a system_input step immediately before the next user turn while continuing the session with previous_interaction_id. The new instruction remains in the history, earlier instructions stay in context, and Google says the model favours the newest instruction when rules conflict.

The same step can add or remove custom function tools while the application keeps the original top-level tool list unchanged. That preserves the prompt prefix for caching instead of forcing the model to reprocess the full conversation after every permission or workflow change. Retrieved interaction traces include each system_input and its tool changes in order.

The preview has strict boundaries. It runs only on the v1beta Interactions API, supports at most one system_input before a user turn, and cannot be inserted while returning a function result. Dynamic tool updates currently cover custom function tools, not MCP servers or built-in tools such as Google Search and code execution. Google warns that the API surface may change before general availability.

Our perspective

This is more than a cache optimisation. Long-running agents encounter changing budgets, account states, regional rules and human approvals. Making those changes explicit in the conversation can reduce repeated context cost and produce a clearer audit trail.

But “the latest instruction wins” is model behaviour, not an authorization boundary. User messages, retrieved documents and tool output must never be promoted into system_input without trusted application logic. Removing a tool from model context should also revoke access at the executor, because a prompt-level restriction cannot secure an API key or backend endpoint.

Teams should version each policy change with its actor, reason and effective tool set, then test conflicting instructions, retries, cache behaviour and HTTP 400 failure cases. Treat the feature as a canary-only preview until Google stabilises the interface and extends tool coverage.

Go to the source

Primary reporting behind this brief. Our perspective is editorial analysis.

  1. Google — Mid-conversation instructions in the Gemini API 3 Dec 2026
  2. Google AI for Developers — Mid-conversation system instructions 3 Dec 2026