Mid-conversation system instructions in the Gemini API

(blog.google)

28 points | by gmays 1 hour ago

4 comments

  • pavelrub 5 minutes ago
    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.
  • s_u_d_o 26 minutes ago
    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…)
    • nr378 3 minutes ago
      "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.
  • aidos 37 minutes ago
    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?
    • orbital-decay 32 minutes ago
      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.

  • holysoles 39 minutes ago
    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!

    • pavelrub 1 minute ago
      The other two major providers already allow doing this.