AI & Tech

Gemini API system instructions can now change mid-conversation, and what developers can do with it

Gemini API system instructions can now change in the middle of a conversation, so developers no longer have to restart a session when the rules shift. The feature is in public preview across all Gemini 4 models in the Interactions API, through the v1beta endpoint.

The update carries no separate fee. Tokens in system_input steps are billed at the standard input rate for the model a developer calls. Earlier turns also remain eligible for cached-token rates when rules or tools change.

How Gemini API system instructions and tools update

Tool updates stay in effect until a later system_input changes them. So a developer can add a tool once and keep it for the rest of the session.

A single step can include both removed_tools and added_tools. In that case, the API processes the removals first and the additions second. As a result, a developer can replace a tool definition in place.

A short text note helps when a tool is pulled. It gives the model context, so it can explain why an action is unavailable.

Ways developers can use the update

Google describes five main uses for changing instructions partway through a chat.

  • Session-dependent constraints: Rules discovered mid-conversation, such as workspace settings, account entitlements or spending limits, can apply right away.
  • Long-horizon reinforcement: Apps can restate formatting, tone or policy rules deep into a long session, since the context keeps growing.
  • Dynamic permissions: Write or account-action tools can switch on after authentication or plan approval. Then they can switch off when the session returns to read-only review.
  • Live operational changes: A tool can go offline, with updated guidance, when a downstream dependency fails. It comes back once service recovers.
  • Large tool catalogs: A session can start with a small set of tools and add more as the task needs them. Developers don’t have to declare every tool up front, and the cache stays intact.

Security guidance and availability

The new fields steer model behavior and serve as orchestration controls. Developers should still authorize every function call on the backend before executing it. They should also keep untrusted external or end-user content out of system_input.

Support for Gemini Enterprise Agent Platform is coming soon. Meanwhile, Google points developers to its documentation, a comparison of Gemini models and the AI Developer Forum to get started.


Get America’s top stories before everyone else.

Subscribe for breaking news, AI updates, stock market insights, technology, sports, and more - delivered daily.

Related Articles

Back to top button