Franklin AI News Brief

Gemini API: instructions can change mid-conversation

Key Takeaways

  • The Gemini API previews system-instruction and function-tool updates without invalidating earlier cached turns, while backend authorization is essential.
  • Google now previews mid-conversation system instructions across Gemini 4 models in the Interactions API.
  • Earlier turns can stay cached when instructions or function tools change.

Google announced a public preview of mid-conversation system instructions and tool updates in the Gemini API on December 3, 2026. The change lets developers revise an agent's rules or available functions while retaining the cached prefix of a long-running conversation.

In its announcement, Google says developers previously had to choose between instructions in a lower-priority user message and changing top-level instructions or tools in a way that invalidated the prompt cache.

How do mid-conversation instructions work?

The Interactions API accepts a system_input step directly before user_input at a turn boundary. Developers keep the top-level system_instruction unchanged and refer to the preceding interaction. Earlier conversation tokens remain identical and eligible for cache reuse.

Google says the appended instructions carry system-level authority and remain active for the rest of the session. Rules about different topics apply together, while a newer conflicting instruction takes precedence. Retrieved agent traces show those instruction steps alongside user input and model output.

Which tool updates are supported?

Developers can use added_tools and removed_tools to change available functions while leaving the top-level tool list intact. Removals are processed before additions, allowing a function definition to be replaced.

The preview currently supports function-tool updates. It does not support updates to MCP server tools through these fields. Google suggests giving the model a short explanation when removing a function so it can explain the changed capability to the user.

What are the availability and security limits?

The preview is available across Gemini 4 models through the Interactions API's v1beta endpoint. Google says support for Gemini Enterprise Agent Platform is forthcoming. Mid-conversation instructions have no separate feature fee, but their tokens are billed at the called model's standard input rates.

These controls steer the model's behavior. Google still tells developers to authorize each function call on the backend and keep untrusted user or external text out of system_input. A useful initial test is a session in which permissions change after work has begun, checking both the model's response and the backend's refusal of an unauthorized call.

Our read

Franklin AI Take

Google currently supports function-tool updates, rather than MCP server tools. Teams running long sessions can use the preview to test changing permissions without rebuilding the cached conversation. Model-facing controls do not enforce the application access policy. Start with a narrowly scoped function, revoke it mid-session, and check that the backend rejects the call as well as checking the model response and cache usage.