Skip to main content

Google previews Gemini API update for changing agent rules during chats

Developers can revise instructions and tool access without reprocessing earlier exchanges, but Google says applications must still validate actions.

By Mei Ling Tan

Illustration of a chat interface alongside software settings and tool controls
Photo: TNW (Financial Times)

Google has introduced a Gemini API preview allowing developers to change an AI agent’s instructions or available tools during an ongoing conversation. The company said previous exchanges remain cached, avoiding the need to process the entire conversation again when requirements change.

The feature gives newly added instructions authority equal to that of the initial system prompt. Previous instructions remain in place, but the latest takes precedence if requirements conflict. Developers can also disable or enable individual tools, including withdrawing access to a refund tool during an account review.

Previously, revising the main instructions required reprocessing the conversation, increasing expense and delay. Adding rules through user messages offered an alternative, but those messages had lower priority and could be imitated by users. With the preview, cached exchanges are charged at lower cached rates.

Google cautioned that the feature guides model behavior rather than enforcing controls. It said applications should independently validate each action on their servers before execution. The preview supports Gemini 4 models, including Gemini 4 Neon, with no additional fee beyond standard token charges.

Keep reading: Tech News

All Tech News stories

Latest in Technology

All latest
  1. Tech News

    Cognition lands over US$3 billion as valuation reaches US$78 billion

  2. Tech News

    EU expected to give Amazon and Microsoft cloud operations gatekeeper status

  3. Tech News

    Roger Healthcare raises US$30 million to expand home-health AI tools

  4. Tech News

    Pangram raises US$50 million to expand AI-content detection

  5. Tech News

    Gaia data reveals 23 dormant black holes and thousands of possible planets

  6. Tech News

    Amazon launches free Ergo AI model with chip-based speed claims