Gemini API adds mid-conversation system instructions in preview, keeping earlier turns cached

patloeber · x · 2026-12-04

Google introduced mid-conversation system instructions and tool changes in preview for the Gemini API via the Interactions API, letting agents adapt to new rules and tools mid-session without restarting.

Developer patloeber highlighted the practical usage: sending a systeminput step appends new rules or tool updates while keeping earlier turns cached, preserving both flexibility and prompt-caching savings.

Original post →

More from coding & agent

coding & agent channel →