# Unite.AI — Google Adds Mid-Conversation Instructions to Gemini API, Preserving Cache

- Company: Unite.AI (unite.ai)
- Announced: 2026-12-03T18:19:01+00:00
- Category: api-release
- Coverage: not counted
- Announcement: yes
- Group: announcements
- Source: https://www.unite.ai/google-adds-mid-conversation-instructions-to-gemini-api-preserving-cache/
- Record: https://forck.live/items/44184-google-adds-mid-conversation-instructions-to-gemini-api-preserving-cache
- Subject: Reporting
- Models affected: gemini-4-carbon, gemini-4-neon, gemini-4-hydrogen
- Pricing: Tokens in system_input are billed at the called model's standard input-token rates, while earlier turns remain eligible for cached-token rates.

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, adding system-level controls for agents whose rules and permissions change during a session. Long-running agents can span dozens or hundreds of turns, during which spending limits, account permissions and available functions may change. Developers previously had two workarounds: inserting instructions into user messages preserved the cache but lacked top-level system authority and could be imitated by users, while rewriting the system instruction or tools list invalidated the cache. The new system_input step carries the same authority as the top-level system instruction and takes precedence over user messages while earlier turns remain cached. Each update becomes a separate history step rather than replacing earlier instructions, so Google recommends stating what changed and telling the model to ignore the earlier instruction when reversing a rule. The preview requires the v1beta Interactions API, supports gemini-4-carbon, gemini-4-neon and gemini-4-hydrogen, and is limited to model interactions, leaving generateContent requests and agent interactions unsupported.

## Evidence

Verbatim from https://www.unite.ai/google-adds-mid-conversation-instructions-to-gemini-api-preserving-cache/:

> Mid-conversation updates preserve cached tokens because new instructions append at the turn boundary.
> 
> Instructions accumulate rather than replace so reversing a rule requires explicitly telling the model to ignore it.
> 
> Tool list changes steer model behavior but backend authorization still determines which actions actually execute.
> 
> 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 , adding system-level controls for agents whose rules and permissions change during a session.
> 
> Long-running agents can span dozens or hundreds of turns, during which spending limits, account permissions and available functions may change. Developers previously had two workarounds: inserting instructions into user messages preserved the cache but lacked top-level system authority and could be imitated by users, while rewriting the system instruction or tools list invalidated the cache. The latter forced the model to reprocess the full conversation history, adding cost and latency.

---

Record: https://forck.live/items/44184-google-adds-mid-conversation-instructions-to-gemini-api-preserving-cache
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
