Google Previews Mid-Conversation Instruction and Tool Updates in Gemini API

Hacker NewsHacker News·Original
Operator Bae ChangHyun

Key point

Google made mid-conversation system-instruction and function-tool updates available in preview for the Gemini API, while keeping earlier turns cacheable.

1 / 5

Details

  • Google introduced public-preview support for changing system instructions and function tools mid-session through the Interactions API, while earlier turns remain eligible for prompt caching.
  • Developers add a system_input step before user_input; it has the authority of a top-level system instruction and remains active for the session, with newer conflicting instructions taking precedence.
  • Developers can use added_tools and removed_tools to update function tools without changing the top-level tools list; MCP server tools are not supported.
  • The feature is available across all Gemini 4 models through the v1beta API, with no separate fee for system_input tokens; Google says applications should still authorize function calls on the backend.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.