Gemini Interactions API lets apps change system instructions and tools mid-conversation
Gemini 4 apps can now send new system instructions or add and remove function tools mid-conversation without invalidating the prompt cache.
- Preview: system_input steps are in public preview on the v1beta Interactions API.
- Models: works with gemini-4-carbon, gemini-4-neon and gemini-4-hydrogen.
- Build: agents can swap tools between steps with added_tools and removed_tools and keep their cached prompt.