News
December 4, 2026 · Google

Gemini API agents can now take new rules and tools mid-conversation

Google's Interactions API now lets developers add system instructions and switch function tools during a session without breaking the prompt cache, in preview for all Gemini 4 models.

Google said on December 3 that developers using the Gemini API can now change an agent's system instructions and its available tools partway through a session. The feature is a public preview in the Interactions API, and Google's announcement says the main benefit is that earlier turns stay in the prompt cache instead of being processed again.

What's new

  • A new step type: According to Google, an app can send a system_input step on any turn, placed just before the user's message. It counts with the same authority as the top-level system instruction and outranks user messages.
  • Rules stack up: Each mid-session instruction stays active for the rest of the conversation. Google says that when a newer one contradicts an older one, the model follows the most recent.
  • Tools on and off: The same step can carry added_tools and removed_tools, so an agent can gain or lose functions without the app editing the tool list at the top of the prompt. Google notes that only function tools are supported this way for now, not MCP server tools.
  • Audit trail: When an interaction is retrieved later, the system steps appear in order next to user and model turns, which Google says makes agent traces easier to debug.
  • Guardrail reminder: Google advises that apps still check every function call on their own backend and keep untrusted user or web content out of system_input.

Availability and pricing

Google says the preview covers all Gemini 4 models in the Interactions API through the v1beta endpoint. There is no extra fee: tokens in these steps are billed at the model's normal input rate, and earlier turns can still get cached-token pricing. Support in Gemini Enterprise Agent Platform is listed as coming soon. Docs are on Google AI Studio.

Why it matters

Analysis: Agent builders have had to choose between updating rules properly, which resets the cache and raises cost, or slipping them in as user text, which carries less weight. A cache-friendly way to tighten permissions mid-session, for example removing a refund tool once an account is flagged, makes long-running agents cheaper to run and easier to control. Developers on other model APIs will likely watch whether similar controls appear there.

Source: Google

More news