Skip to content
NewA calmer, faster ZeroHour

Gemini API preview adds mid-conversation instruction updates

Original title: Introducing mid-conversation instructions in the Gemini API

Google · AIby Trey Nguyen ()5 min read
Part of a story covered by 2 sourcesGemini API preview lets mid-chat instructions update rules and toolsMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

A system_input step can change rules or function tools without invalidating the prompt cache; MCP tools are not supported.

Google said mid-conversation system instruction and tool changes are available in preview in the Gemini API through the Interactions API. Developers pass the prior turn id and a system_input step while leaving the top-level system instruction and tools list unchanged so earlier tokens stay cached. Newer conflicting instructions take precedence, and added_tools and removed_tools currently update function tools only, not MCP server tools.

Key facts
  • The feature is in preview on the Interactions API.
  • Examples use the gemini-4-neon model.
  • One system_input step is allowed per turn, directly before user_input.
  • Retrieved interactions list system_input steps with user and model steps.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

5 min read at blog.google

Update system instructions and tools mid-conversation while preserving your prompt cache.

Google · AI

By Trey Nguyen · blog.google

Read the full article at Google · AI

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.