Gemini API system_input: change agent rules mid-conversation without breaking the cache
A new system_input step in the Interactions API lets developers update system instructions and function tools mid-conversation while earlier turns stay eligible for prompt-cache reuse.
Why it matters
Long-running agents can gain or lose tools and rules at a turn boundary instead of restarting the session or invalidating the cached prefix.
What you could build with it
A support-product team could start a chat agent with read-only tools, then add an escalation tool and stricter refund rules mid-session only after identity checks pass, keeping the earlier conversation cached.
Does it hold up?
Usable in public preview for Gemini 4 models through the Interactions API; tool updates cover function tools only, and backend authorization remains the application's job.
Built with Gemini API system_input
- Gemini API Adds Mid-Conversation System Instructionsarticle · Walkthrough of system_input, added_tools, and removed_tools with the support-agent example.
- Google's Gemini 4 Lets Developers Change AI Rules Mid-Conversation Without Flushing Cachearticle · Explains cache behavior, preview limits, and five turn-level control patterns.
- Google lets Gemini API developers change agent rules mid-conversationarticle · Coverage of pricing, supported models, and the audit trail in retrieved interactions.
Learn more
First spotted on article: source.
More AI agents
TradingAgents: multi-agent LLM framework for finance researchA multi-agent LLM framework where specialist agents research companies, markets and risk, with every figure sourced…agents · JEV 0.79CLI-Anything: make any app agent-native with a generated CLIFrom HKU's Data Intelligence Lab: a seven-phase pipeline that generates a real CLI harness for any GUI application…agents · JEV 0.78Vercel Agent Desktop: a computer-use CLI for AI agentsVercel Labs' open-source CLI lets AI agents operate a real desktop computer, and it is one of November's…agents · JEV 0.77OpenWorker: local-first AI coworker with approval gatesAndrew Ng's open-source desktop agent researches, writes briefs, reviews code and works across GitHub, Slack, email…agents · JEV 0.77DeepSeek Harness: 1.54M daily users and 35,000 plugins into its everything-is-a-plugin runtimeDeepSeek's open-source agent harness where models, tools, sandboxes, sessions and even the UI are all plugins — now…agents · JEV 0.76Dify 1.20.0: OpenTelemetry trace export and malware scanning for LLM appsThe open-source LLM app platform's 1.20.0 release adds trace export to any OpenTelemetry collector, keeps Langfuse…agents · JEV 0.76
Get the week's best AI launches, plus 3 ideas worth building
One email every Saturday. Ranked by traction, not hype. Free.