Introducing mid-conversation instructions in the Gemini API
7.7 relevance
Score Breakdown
technical depth 7
novelty 8
actionability 9
community 6
strategic 7
personal 9
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
New Gemini API feature for mid-conversation instructions, highly actionable for AI agent developers.
Summary
Google's Gemini API now allows mid-conversation system instruction and tool changes via the Interactions API, using a `system_input` step that preserves the prompt cache. This solves a key pain point for long-running agents where rule changes previously invalidated the cache, adding latency and cost. The feature, demonstrated with the `gemini-4-neon` model, lets newer instructions override older ones while maintaining full authority over user messages.
Author
Trey Nguyen