changelogGoogle

Google Adds Mid-Conversation System Instruction and Tool Updates to Gemini API, Keeping Cached Tokens Valid

TL;DR

Google introduced a public preview on December 3, 2026 that lets Gemini API developers update system instructions and function tools mid-conversation without invalidating cached prompt tokens. The capability runs through the Interactions API and targets agents whose rules and permissions change during a session.

1 min read
0

Google introduced a public preview on December 3, 2026 that lets Gemini API developers update system instructions and function tools mid-conversation without invalidating cached prompt tokens. The capability runs through the Interactions API.

What changed

The feature adds system-level controls for agents whose rules and permissions change during a session. Long-running agents can span dozens or hundreds of turns, and during that time spending limits, account permissions and available functions may change.

The update covers two elements:

  • System instructions: can be updated mid-conversation.
  • Function tools: can be changed mid-conversation.

In both cases, the cached prompt tokens remain valid.

Availability

The capability is in public preview as of December 3, 2026, and is accessed through the Interactions API in the Gemini API. Pricing, supported models and rate limits were not stated in the feed summary available at publication. The original report comes from Unite.AI.

What this means

For agent builders, changing instructions or tools during a session has been in tension with prompt caching, because the cached prefix is tied to the content that precedes new turns. According to the report, this preview removes that conflict: developers can adjust rules, permissions and available functions as a session evolves while the cache stays valid.

The use cases the report names are agents with changing spending limits, account permissions and function availability across dozens or hundreds of turns. These are the sessions where reusing cached tokens matters most, since the conversation history is long.

Because the feature is a public preview, developers should expect behavior to be subject to change before general availability.

Source: unite.ai ↗

Related Articles

Comments

Loading...