The cost for inference for that seems much more expensive to compute than just using a deterministic process like they might already do with regular ads and keeping the ads to the side.
Any useful workflows on where this feature would be beneficial?
Let’s say an agent is exposed to two tools, one of them requires user authentication. If user not authenticated, tool will always fail.
What added value would i get, if i only introduce this tool to the agent whenever the user is authenticated. By added value I’m interested in knowing what would i gain (token-wise, security-wise…)
"Native" deferred tool loading is the main thing - you ideally don't want to load all possible tools upfront as it bloats the context window, instead you add a tool_search tool that can then append tool schemas into the toolset on-demand. OpenAI and Anthropic have had this feature for a few months but Gemini had been missing it.
As a pi user that defers loading of tools and skills, I find this very exciting. When deep into a session with a frontier model and I know it will need another tool, I usually am weighing the cache invalidation cost hit vs handing off to a new session.
I’m surprised that a system prompt carries that much more weight (snort). What makes a system prompt special? I’m assuming it’s still just a blob of stuff for the llm and they’ve finetuned the llm to place more importance on the system prompt? Are there ways in which this bites us in terms of not being able to force the model to do what we’re trying to do through user messages?
It's just training, just like everything related to role separation. Fundamental biases make the model resist it if anything, roles always leak and mix up to a degree.
>Are there ways in which this bites us in terms of not being able to force the model to do what we’re trying to do through user messages?
Google can and will inject their own instructions dynamically.
That's the LLM part, the other part is that inference engines may use structured generation to constrain the model into only generating syntactically valid tool calls. To do so, the engine needs to actually know the tool call schema exhaustively. If the engine's template is always dumping that schema into the context in the same area (e.g. tool calls -> system prompt -> user prompt -> turn messages), then the prefix necessarily changes if you change the tools.
LLMs may care where prompt parts are located though, in addition to them being framed with the correct tokens. If your RL only ever starts with <|system|>...<|system_end|><|tools|>...<|user|>... you can't be surprised that the model puts less weight on a <|tools|> chunk appearing at position 123456.
I don't know, but it seems the approach (a hierarchy of instruction precedence) is a good way to avoid prompt injections. Ideally, instructions wrapped as "untrusted text" should be ignored completely, while instructions from "user messages" should be ignored when they conflict with instructions from the "system message". And instructions in the system message should be ignored only if they conflict with safety training.
Kind of pointless as you need to build the agentic system for multi-session work (compaction) for most advanced tasks, at which point you can update the system prompt for the subsequent sessions.
Basically, over ~300k tokens -> new session -> new system prompt.
google isn't doing any catching up this is new, it keeps your cache valid even though your system prompt changes which is quite useful for complicated harnesses that have a dynamic tool injection functionality
This is incorrect and I advise you to read the explanation in the actual linked post.
The top-level system prompt is never changed: they are appending special `system_input` messages to the conversation. The prefix remains the same hence the cache is preserved. This is identical to what Claude API allows since May, and since September for inline tool definitions [1].
So this is basically saying they've changed from a 2-person chat (user, model) model with a special first message to a 3-person chat model (system, user, model). Architecturally this makes a lot of sense.
Seems useful if you're building apps where gemini sits between you and a third party - i.e. are a spam calling robot or something. Seems pretty useless for developer tools... I don't want to be too negative, I'm sure there are useful cases, but to be honest cases where you're involuntarily imposing the LLM on someone else are all that comes to mind right now.
I wonder if this will be used for ad purposes.
User is asking a question about picking X or Y. Inject instructions to recommend Y because Y is paying for ads to be served.
The cost for inference for that seems much more expensive to compute than just using a deterministic process like they might already do with regular ads and keeping the ads to the side.
But it's a field I know little about (ads)
Any useful workflows on where this feature would be beneficial? Let’s say an agent is exposed to two tools, one of them requires user authentication. If user not authenticated, tool will always fail. What added value would i get, if i only introduce this tool to the agent whenever the user is authenticated. By added value I’m interested in knowing what would i gain (token-wise, security-wise…)
"Native" deferred tool loading is the main thing - you ideally don't want to load all possible tools upfront as it bloats the context window, instead you add a tool_search tool that can then append tool schemas into the toolset on-demand. OpenAI and Anthropic have had this feature for a few months but Gemini had been missing it.
the system prompt expansion is nice too, since they give more weight to it, and apparently trained how to handle conflicts between original and newer
Tools are context. Dont add context unless ypu intend to use it
Call it "Chekov's Context"
Kolomologrov-Smirnov Context would be hilarious.
customer support bots need to put relevant data in the system prompt as the conversation flows
As a pi user that defers loading of tools and skills, I find this very exciting. When deep into a session with a frontier model and I know it will need another tool, I usually am weighing the cache invalidation cost hit vs handing off to a new session.
Hoping other providers will follow suit!
The other two major providers already allow doing this.
Without invalidating cache? Do you have references? First I'm hearing of this capability and have been interested in seeing it
This is all more or less API surface for progressive reveal and models that are trained to expect and prioritize those effectively.
For Anthropic see https://platform.claude.com/docs/en/build-with-claude/mid-co... -- essentially the same mechanism as described in the Gemini post, supported in models since Opus 4.8.
Btw have been using Argon for a bit now and am Very impressed.
I’m surprised that a system prompt carries that much more weight (snort). What makes a system prompt special? I’m assuming it’s still just a blob of stuff for the llm and they’ve finetuned the llm to place more importance on the system prompt? Are there ways in which this bites us in terms of not being able to force the model to do what we’re trying to do through user messages?
It's just training, just like everything related to role separation. Fundamental biases make the model resist it if anything, roles always leak and mix up to a degree.
>Are there ways in which this bites us in terms of not being able to force the model to do what we’re trying to do through user messages?
Google can and will inject their own instructions dynamically.
That's the LLM part, the other part is that inference engines may use structured generation to constrain the model into only generating syntactically valid tool calls. To do so, the engine needs to actually know the tool call schema exhaustively. If the engine's template is always dumping that schema into the context in the same area (e.g. tool calls -> system prompt -> user prompt -> turn messages), then the prefix necessarily changes if you change the tools.
LLMs may care where prompt parts are located though, in addition to them being framed with the correct tokens. If your RL only ever starts with <|system|>...<|system_end|><|tools|>...<|user|>... you can't be surprised that the model puts less weight on a <|tools|> chunk appearing at position 123456.
> Are there ways in which this bites us
I don't know, but it seems the approach (a hierarchy of instruction precedence) is a good way to avoid prompt injections. Ideally, instructions wrapped as "untrusted text" should be ignored completely, while instructions from "user messages" should be ignored when they conflict with instructions from the "system message". And instructions in the system message should be ignored only if they conflict with safety training.
Kind of pointless as you need to build the agentic system for multi-session work (compaction) for most advanced tasks, at which point you can update the system prompt for the subsequent sessions.
Basically, over ~300k tokens -> new session -> new system prompt.
Note that this was already possible in Claude API for quite some time, so this is more of a case of Google catching up, not a new innovation.
google isn't doing any catching up this is new, it keeps your cache valid even though your system prompt changes which is quite useful for complicated harnesses that have a dynamic tool injection functionality
This is incorrect and I advise you to read the explanation in the actual linked post.
The top-level system prompt is never changed: they are appending special `system_input` messages to the conversation. The prefix remains the same hence the cache is preserved. This is identical to what Claude API allows since May, and since September for inline tool definitions [1].
[1] https://platform.claude.com/docs/en/build-with-claude/mid-co...
So this is basically saying they've changed from a 2-person chat (user, model) model with a special first message to a 3-person chat model (system, user, model). Architecturally this makes a lot of sense.
Seems useful if you're building apps where gemini sits between you and a third party - i.e. are a spam calling robot or something. Seems pretty useless for developer tools... I don't want to be too negative, I'm sure there are useful cases, but to be honest cases where you're involuntarily imposing the LLM on someone else are all that comes to mind right now.
How can they do this?
Do they not have a conscience? How dare they!!