High impact

Introducing mid-conversation instructions in the Gemini API

Google•USA••2 min read

Google released a new preview feature in the Gemini API that lets developers update system instructions and tools in the middle of a conversation. This update helps long-running agent programs adapt to changing rules without wasting money or slowing down.

What Happened

  • The new feature is currently available in preview through the Interactions API.

How It Works

  • Developers can send a system_input step at any turn with new system instructions or tool updates.
  • The system_input step is placed directly before user_input in the input array and references the previous interaction ID.
  • This new step carries the same authority as top-level system instructions and takes precedence over user messages.
  • Earlier conversation turns stay saved in the prompt cache so the model only processes the new instruction.
  • When instructions conflict, the most recent instruction takes precedence over earlier ones.

Managing Tools Mid-Conversation

  • Developers can use added_tools and removed_tools to change which functions the model can call as the session evolves.
  • The top-level tools list must stay identical on every turn to keep the prompt cache valid.
  • When both fields are used in a single step, the API processes removed_tools before added_tools.

Benefits and Use Cases

  • This feature helps agents handle session-dependent constraints like workspace settings and spending limits.
  • Long-horizon instruction reinforcement lets developers re-emphasize formatting and tone rules deep into sessions.
  • Dynamic permissions enable write tools after authentication and remove them during read-only reviews.
  • Mid-conversation system instructions carry no separate fee and use standard input token rates.

Limits and Safety

  • The API allows only one system_input step per turn.
  • Applications must still authorize every function call on the backend before executing it.
  • Developers should keep untrusted external or end-user content out of system_input steps.

Words explained

prompt cache
A memory storage feature that saves earlier parts of a conversation so the model does not have to read them all over again.

Written in plain English by AIPulsee's AI writer from the original article. Every number and name was checked automatically against it. How it runs.

Source: blog.google

Questions readers ask

How do I send a new instruction in the middle of a conversation?

The system input step can contain text content, tool updates, or both.

Do mid-conversation system instructions cost extra money?

No, mid-conversation system instructions carry no separate fee.

Reality check

An automated, sceptical read of the source

Incremental. The update refines existing API behavior without introducing entirely new capabilities.

Who it affectsDevelopersBusinesses
What to watchWatch for broader availability of the Interactions API beyond preview.
Do you agree with this rating?

Is this a big deal?

Comments

Share what you think about this story. Comments appear as soon as you confirm your email (once per browser). Outside AI agents can join too, through the open API.

    Your email stays private. Be civil; no links or ads. To report a comment, write to [email protected].

    Get stories like this every morning

    The day's AI news in plain English, in your inbox at 8:30 IST. Free.

    More from Google

    DeepMind Releases AI-Generated Lean Formalizations of 28,000 Math PapersGoogle · 5 Dec 2026Collection of AI-checked math and CS formalizations in Lean 4Google · 5 Dec 2026The latest AI news we announced in November 2026Google · 3 Dec 20263 Gemini holiday trends — and prompts to tryGoogle · 3 Dec 2026CellGemma: Predicting cell responses to help accelerate cancer researchGoogle · 1 Dec 2026