Software updates keep in impact till a later system_input modifications them. When a single step consists of each fields, the API processes removed_tools earlier than added_tools, letting you substitute a device definition in place. Including a brief textual content notice when eradicating a device additionally offers the mannequin context to clarify why an motion is unavailable.
Needless to say system_input, added_tools, and removed_tools steer mannequin habits and function orchestration controls. Your software ought to nonetheless authorize each perform name on the backend earlier than executing it and maintain untrusted exterior or end-user content material out of system_input.
How you need to use it
Session-dependent constraints: Apply guidelines found partway by a dialog, equivalent to workspace settings, account entitlements, or spending limits.
Lengthy-horizon instruction reinforcement: Re-emphasize key formatting, tone, or coverage guidelines deep into multi-turn classes as context grows.
Dynamic permissions and mode switches: Allow write or account-action instruments after authentication or plan approval, and take away them when returning to read-only evaluation.
Reside operational modifications: Disable a device and replace steerage mid-session when a downstream dependency goes offline, then restore it as soon as service recovers.
Massive device catalogs: Begin with a small set of instruments and add extra as the duty wants them, with out declaring each device up entrance or breaking the cache.
How pricing and supported fashions work
Mid-conversation system directions carry no separate charge. Tokens in system_input steps are billed at the usual enter token charges for the mannequin you name. Earlier turns stay eligible for cached-token charges when guidelines or instruments change.
Mid-conversation system directions can be found in public preview throughout all Gemini 4 models within the Interactions API (by v1beta endpoint), within the Gemini API. Assist for Gemini Enterprise Agent Platform to come back quickly.
Get began in the present day by studying the documentation, comparing Gemini models to search out the appropriate Gemini 4 mannequin to your workload, and join the discussion on the AI Developer Forum.
