logoalt Hacker News

Mid-conversation system instructions in the Gemini API

53 points • by gmays • today at 5:08 PM • 13 comments • view on HN

Comments

s_u_d_o • today at 6:22 PM

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…)

➕ show 3 replies
aidos • today at 6:11 PM

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?

➕ show 1 reply
holysoles • today at 6:10 PM

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!

➕ show 2 replies
irthomasthomas • today at 6:59 PM

How can they do this?

gpm • today at 7:52 PM

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.

artiomleo • today at 7:55 PM

[dead]

pavelrub • today at 6:44 PM

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.

➕ show 1 reply
AyishikD • today at 7:26 PM

[flagged]