Google AI Blog·· 12 小时前精选AI 评分67
Gemini API 在对话中支持更新系统指令和工具
Introducing mid-conversation instructions in the Gemini API
AI 导读
Google 为 Gemini API 的 Interactions API 推出对话中更新系统指令和工具的公开预览功能,同时保留此前对话的 prompt cache。开发者可通过 system_input、added_tools 和 removed_tools 在会话中调整规则与函数工具;该功能目前支持 Gemini 4 系列模型,不支持 MCP server tools。
推荐理由
Gemini API 通过 Interactions API 将会话中的指令和工具变更与缓存复用结合,给出了多轮智能体编排的具体实现方式。
来源:Google AI Blog · blog.google