All news

Google adds public preview to Gemini API for changing agent instructions mid-conversation

Prepared by Sintelligent with the help of SI. Published in SI: . Updated: .

Developers can reconfigure an agent's behaviour mid-conversation without losing the cache or paying to reprocess earlier turns.

Google has opened a public preview in the Interactions API (v1beta): a system_input step has appeared. It allows system instructions to be added and function tools to be enabled or disabled between turns of a conversation without invalidating the prompt cache. The new instruction carries the same weight as a top-level system_instruction; in a conflict the most recent one wins, while earlier instructions remain in context. The feature works on all Gemini 4 models (gemini-4-carbon, gemini-4-neon, gemini-4-hydrogen); there is no separate charge, and system_input tokens are billed at the standard input price. Google warns that system_input steers model behaviour but is not a security boundary: authorising each function call remains the application's job.