Urgent.News

What's breaking now, across hundreds of outlets.

AI

Introducing mid-conversation instructions in the Gemini API

Update system instructions and tools mid-conversation while preserving your prompt cache.

Introducing mid-conversation instructions in the Gemini API

Google has introduced mid-conversation instructions in the Gemini API, allowing developers to send system instructions or update tools during a conversation without invalidating the cache. This feature, available in preview through the Interactions API, enables agents to adapt to new rules and tools mid-session without re-reading the entire conversation.

By sending a system_input step at any turn, developers can update the conversation's system instruction or tool list, which takes precedence over user messages while earlier turns remain cached. This capability is particularly useful for long-running agents that work across dozens or hundreds of turns, as it allows for seamless adaptation to changing rules, permissions, and available tools.

Brief written by urgent.news; may contain errors — check the original.

Source: blog.google

Read the original at blog.google →

More from Google Blog on urgent.news

Report a problem with this story

Get the day's news by email. Daily, weekly or monthly. Sign up

More in AI

More from Thursday, 3 December 2026 →