Google has launched mid-conversation system instruction and function tool updates in public preview for all Gemini 4 models through the Interactions API on the v1beta endpoint of the Gemini API. Developers can pass a system_input step with added_tools and removed_tools before user_input while leaving top-level system_instruction and tools unchanged, preserving the prompt cache across turns.
Mid-conversation system instructions carry no separate fee, and tokens in system_input steps are billed at the standard input token rates for the model called. Currently, the feature only supports updating function tools via added_tools and removed_tools, while MCP server tools are not yet supported.
AI 根据报道生成 · 1 天前更新