Gemini API预览支持对话中更新指令与工具
AI 总结
Google表示,开发者可通过Gemini API的Interactions API在对话回合之间添加系统指令或更新函数工具,同时让此前回合继续使用提示缓存。该预览通过v1beta端点支持所有Gemini 4模型;新增指令拥有顶级系统指令的权限,其令牌按标准输入费率计费。Google提醒,应用执行每次函数调用前仍须在后端进行授权。
深度见解
该预览让长时间运行的智能体能在不重新处理完整对话的情况下调整规则、权限和可用工具;Google称此前回合还可按缓存令牌费率计费。
Introducing mid-conversation instructions in the Gemini API
Dec 03, 2026
|
Developers can now update system instructions or tools in the middle of a conversation while keeping the prompt cache intact.
Trey Nguyen