rotative
the decoder · 2026年6月22日

Google 废弃 generateContent 推出 Interactions API — 什么会因此损坏

google deepmind 将 interactions api 设为 gemini 默认接口,取代了旧的 generatecontent 接口,并引入了类型化步骤和托管代理。开发者必须立即迁移以访问 linux 沙箱和工具链等新功能。

read in English · 繁體中文 · 日本語 · 한국어

谷歌DeepMind已将Interactions API从测试版(beta)转为正式版(general availability),并将其确立为谷歌AI Studio和文档中Gemini模型的标准接口。新系统使用带有类型步骤的模式来处理用户输入和函数调用,同时提供Flex和Priority模式以优化成本或速度。现在,开发者可以使用带有Linux沙盒的托管代理(managed agents)、后台执行长任务以及与搜索和地图的集成。虽然旧版GenerateContent API仍可使用,但谷歌将仅通过Interactions API提供新的代理功能。

read at source ↗

← rotative