Google AI Blog 发布于 07/29 00:00

Gemini API Managed Agents: 3.6 Flash, hooks, and more

(翻译)Gemini API 托管智能体:3.6 Flash、钩子及更多

查看原文

资讯摘要

We’re announcing even more new capabilities in Managed Agents in Gemini API so developers can build reliable, production-ready agents.

AI 摘要

Google DeepMind 宣布 Gemini API 托管智能体更新:默认改用 Gemini 3.6 Flash,新增环境钩子,可在沙箱内拦截、检查或审计工具调用;同时推出预算控制、定时触发和免费层访问,帮助开发者构建可靠的生产级智能体。

AI 问答

Managed Agents 现在默认使用哪个模型?

默认使用 Gemini 3.6 Flash,也可通过 agent_config.model 选择其他模型。

环境钩子(environment hooks)有什么作用?

可在智能体每次工具调用前后运行自定义脚本,用于拦截、检查或审计工具调用,例如执行安全策略或代码格式化。

如何防止托管智能体任务消耗过多 token?

可通过 agent_config 中的 max_total_tokens 设置总 token 上限,达到上限后任务会暂停并保留环境状态。

打开原文