YOU ARE VIEWING ONE ITEM FROM THE AICRIER FEED

Gemini API adds cache-safe mid-session instructions, tools

AICrier tracks AI developer news across Product Hunt, GitHub, Hacker News, YouTube, X, arXiv, and more. This page keeps the article you opened front and center while giving you a path into the live feed.

// WHAT AICRIER DOES

7+

TRACKED FEEDS

24/7

SCRAPED FEED

Short summaries, external links, screenshots, relevance scoring, tags, and featured picks for AI builders.

Gemini API adds cache-safe mid-session instructions, tools
OPEN LINK ↗
// 4m agoPRODUCT UPDATE

Gemini API adds cache-safe mid-session instructions, tools

Google launches mid-conversation system instructions and tool updates in public preview across all Gemini 4 models via the Interactions API (v1beta). Developers can inject a system_input step with added_tools and removed_tools at any turn, preserving prompt-cache hits while retaining full system-level authority over user messages.

// ANALYSIS

Long-running agents have been stuck choosing between blowing up their prompt cache and smuggling weak policy reminders into user turns — Google's `system_input` step closes that gap cleanly and brings Gemini 4 into parity with Anthropic's inline mid-session controls.

  • –Keeping the top-level `system_instruction` and `tools` prefix frozen while appending `system_input` at the turn boundary keeps earlier turns eligible for cached-token rates, with no separate fee beyond standard input token pricing.
  • –Rules accumulate across turns with newest-wins conflict resolution, and every `system_input` appears in sequence inside `interactions.get()` traces, simplifying audits for permission changes, mode switches, or live operational freezes.
  • –Tool changes support atomic in-place swaps (`removed_tools` executes before `added_tools` in the same step), letting agents start with a minimal toolset and unlock write or escalation actions only after authentication or approval.
  • –Two preview limits matter today: mid-session tool updates only support function tools (not MCP server tools yet), and the capability is tied to the stateful Interactions API (`v1beta`) on Gemini 4 models, with Gemini Enterprise Agent Platform support still pending.
  • –Google emphasizes that `system_input` is an orchestration layer rather than a security boundary — apps still need backend authorization on every function call and must keep untrusted user input out of system steps.
// TAGS
gemini-apigemini-4apiagenttool-usecontext-engineeringllm

DISCOVERED

4m ago

2026-12-03

PUBLISHED

13m ago

2026-12-03

RELEVANCE

9/ 10

AUTHOR

JackWoth98