THE APEX TIMES
In a preview feature for the Interactions API, developers can inject new instructions and adjust which functions an agent can call at any turn, while earlier conversation tokens remain cacheable.
Google is giving developers a new way to steer Gemini-based agents during long conversations, reducing the need to restart sessions when requirements change. In a product update posted Monday, the company said the Gemini API now supports “mid-conversation” updates to system instructions and tool availability through the Interactions API, available in public preview.
The core problem Google is addressing is that many real-world agents run for dozens, and sometimes hundreds, of back-and-forth turns. Over that span, the right rules and permissions can change, and the set of tools an agent should use can evolve. Until now, updating system instructions or changing the tool list in a way that affected the prompt prefix typically invalidated the prompt cache, forcing developers to pay the cost of reprocessing earlier tokens.
With the new approach, developers can insert a system_input step at any turn boundary, alongside the user_input and model_output for that turn. Google said the system_input carries the same authority as the top-level system instruction and takes precedence over user messages, while earlier turns remain cached. The company also said that if multiple instructions conflict, the model follows the most recent instruction.
Google described how to implement the feature using the Interactions API: pass the previous turn’s ID as previous_interaction_id and place the system_input step directly before user_input in the input array. The top-level system_instruction should remain unchanged across turns so the prompt prefix stays valid for caching, while the new system_input steps append additional instructions only when needed.
Tool updates are handled differently from changing the top-level tool declarations. Google noted that tool declarations sit at the start of the prompt, so changing the top-level tools list between turns can break the prompt cache. Instead, the company recommends keeping the top-level tools list the same and using added_tools and removed_tools within system_input to adjust which functions the model can call as the session evolves. It also said that, in the current preview, only function tool updates via added_tools and removed_tools are supported, and that MCP server tools are not included in this capability.
In one example Google used, a support agent starts a session with tools such as get_store_hours and issue_refund. On the next turn, the developer removes issue_refund and adds create_escalation_ticket, while leaving the top-level tools list unchanged. Google said tool changes remain active until a later system_input step updates them again, and that when a tool is removed, adding a short text note can help the model explain why an action is unavailable.
Beyond operational convenience, Google framed the update as an orchestration control for agent behavior. The company said system_input, added_tools, and removed_tools help steer model behavior but do not eliminate the need for applications to authorize every function call on the backend before executing it. It also warned developers to keep untrusted external or end-user content out of system_input.
Google also outlined several scenarios where mid-session control can matter, including applying rules discovered partway through a conversation (such as workspace settings or spending limits), reinforcing key formatting or policy guidance deep into long sessions, switching permissions after authentication or approvals, disabling a tool when a dependency goes offline, and gradually expanding large tool catalogs without declaring everything up front.
On pricing and scope, Google said mid-conversation system instructions carry no separate fee. Tokens in system_input steps are billed at standard input token rates for the model called, and earlier turns can remain eligible for cached-token rates when rules or tools change. Google added that the preview is available across all Gemini 4 models in the Interactions API (via a v1beta endpoint) and in the Gemini API, with support for the Gemini Enterprise Agent Platform expected later.
A market roundup tied a congressional cybersecurity hearing and encryption focus to trading interest in chip, network security, quantum computing, and enterprise AI names, with Salesforce among the technology stocks in investors’ crosshairs.
In a video appearance reported by Yahoo Finance, NVIDIA CEO Jensen Huang responded to questions from Sen. Jim Banks about the breadth of his interactions with senior officials in China.
A recent market comparison sets Adobe’s $7.3 billion in GAAP net income against Axon Enterprise’s 33.6% revenue growth, arguing that what investors pay for each outcome may dominate the debate heading into 2027.
A voluntary exit program with a Dec. 9 deadline is aimed at reshaping Microsoft’s workforce to better align with its AI investment priorities, according to a report. The company has not publicly detailed in the post how many roles are expected to be affected or which functions would change first.
Shares of AI cloud infrastructure provider CoreWeave rose about 7% after reporting a large financing tied to a Meta contract, indicating strong demand for the computing capacity that the financing is intended to support.
In testimony focused on the company’s role in US technology and economic priorities, Jensen Huang said Nvidia would work to build stronger ties with the country’s policy makers, promising to take a more responsive approach as lawmakers scrutinize AI’s industrial and national-security implications.
The new Pillowfort “canvas” from Google Labs is designed to pair hands-on game creation with AI code and asset generation powered by Gemini models, rolling out first to select countries for users 18 and older.
MedGemma 2, built on Gemma 4 and trained on expanded clinical knowledge, is positioned as a next step for developers building healthcare assistants that can query patient histories and ground outputs in hospital guidelines, including in settings with limited connectivity.
Analyst note points to a potential product-and-services role for HomeView as wearables sales slid 8% to $8.3 billion in the most recent quarter.
In a reported exchange with Sen. Ruben Gallego, NVIDIA CEO Jensen Huang said he learned about a New York Times report involving an allegation tied to “Alice Huang,” raising new questions about oversight and transparency.
Comments
Community guidelines. Comments may be removed for violations.
Loading comments...