Googleapi
December 3, 2026·Source

Mid-Conversation Instructions in the Gemini API (Preview)

Developers can change a Gemini model's instructions or tools partway through a long conversation.

  • Earlier turns stay cached, so the model does not reprocess the whole history
  • You can switch your own custom tools on or off; built-in tools and outside tool servers are not supported
  • The newest instruction wins when two conflict
  • Works only on the Interactions API with Gemini 4 Carbon, Neon, and Hydrogen

Best for

Long agent sessions where the rules change as new information comes in.

When to use it

A budget cap or new constraint appears mid-session and you do not want to restart.

Who benefits

Developers building assistants on the Gemini API.

Join the newsletter to get ahead with AI.

I share strategies, new modules, free guides, and tools to get you better at using AI in your work.

Leading a team? See team programs →