Google lets Gemini API developers change agent instructions and tools mid-conversation
Google has released a preview in the Gemini API that lets developers add system instructions and switch tools on or off during a conversation while earlier turns stay cached. The new instructions carry the same authority as the original system prompt.
Unite.AI: Google Adds Mid-Conversation Instructions to Gemini API, Preserving Cache Read moretake.newsTeam1/2
Key facts
AI- 1The feature is in preview in the Gemini API. The Next Web
- 2Earlier turns stay cached, so they are billed at cheaper cached rates. The Next Web
- 3The model follows the newest instruction when rules conflict; old instructions are not deleted. The Next Web
- 4Only custom function tools are supported; MCP servers, Google Search and code execution are not. Unite.AI
- 5It works with Gemini 4 models and costs nothing beyond normal token prices. The Next Web
Background
Agents can run for hundreds of turns, and their rules often change along the way. Previously, changing the main instructions forced the model to reprocess the whole conversation, adding cost and delay. Placing new rules in user messages carried less weight and users could imitate them.
AI summary of 2 sources; each point shows its source.
take.newsTeam2/2
Who’s covering this
US and Dutch outlets.
United States 1Netherlands 1
How the media cover it
opens at the source- The Next Web·Google lets developers change Gemini agents’ rules mid-conversation (opens at The Next Web)The Next Web reports that Google says apps should still check every action on their own servers, and notes a researcher has hijacked agents with prompt injection.
- Unite.AI·First reportGoogle Adds Mid-Conversation Instructions to Gemini API, Preserving Cache (opens at Unite.AI)Unite.AI describes the technical setup, including a system_input step, previous_interaction_id chaining, and removed_tools and added_tools fields for changing the active tool set.
Related news
Related news
MarkTechPost ·
Google AI Previews Tool Retrieval in the Gemini API for Large Tool Libraries
Neowin ·Google Labs launches Pillowfort, an AI tool for building 2D and 3D games
Bloomberg ·Parents sue Google to curb distribution of AI tools in schools
Android Authority ·Some Gemini users say they can’t attach PDFs through the Android app
Digital Trends ·Gemini 4 Live is learning to describe the world to blind users before they ask
Android Authority ·I replaced Google Assistant with Gemini across my smart home, and here’s how it went
Times of India ·Gemini model cheated in 63% of AI tests, OpenAI’s model was under 1%: Study
Android Authority ·Gemini Tasks is now going global, but Europe has to wait
Android Police ·Gemini could fix a big reason people never use one of its smartest features
CNA ·Parents sue Google over Gemini AI chatbot in school products
9to5Google ·Google rolling out free access to Gemini Tasks around the world
Android Police ·I gave Gemini and a tiny offline model the same 20 phone commands; the offline one surprised me
XDA ·4 things Google Assistant did on every drive that Gemini on Android Auto still gets wrong
Android Authority ·Gemini on Android Auto adds email summaries, starring and calendar rescheduling
Computerworld ·A fast fix for an annoying new Android AI intrusion
Android Authority ·Google is working on offline chat access and queued voice prompts for Gemini
About this story
Section Front page › Tech
Source unite.ai, rights with the source
Comments
Sort comments