WORK / ArchiveKelly Personal Marketing Intelligence OS
阅读READ
每日简报Daily Brief市场情报Market Intelligence品牌案例库Brand Casebook公司研究Company Dossier
收听与学习LISTEN & LEARN
播客Podcasts商务英语Business English
创作CREATE
创意工作室Creative Studio视觉素材库Visual Library作品集Portfolio
职业CAREER
面试题库Interview Bank营销工具箱Marketing Toolkit
资料库LIBRARY
收藏集Collections观察名单Watchlists来源体系Sources
设置Settings
⌘K
更新于 —KKelly
今日情报播客来源我的
WORK / ArchiveKelly Personal Marketing Intelligence OS
阅读READ
每日简报Daily Brief市场情报Market Intelligence品牌案例库Brand Casebook公司研究Company Dossier
收听与学习LISTEN & LEARN
播客Podcasts商务英语Business English
创作CREATE
创意工作室Creative Studio视觉素材库Visual Library作品集Portfolio
职业CAREER
面试题库Interview Bank营销工具箱Marketing Toolkit
资料库LIBRARY
收藏集Collections观察名单Watchlists来源体系Sources
设置Settings
⌘K
更新于 —KKelly
WORK / ArchiveKelly Personal Marketing Intelligence OS
阅读READ
每日简报Daily Brief市场情报Market Intelligence品牌案例库Brand Casebook公司研究Company Dossier
收听与学习LISTEN & LEARN
播客Podcasts商务英语Business English
创作CREATE
创意工作室Creative Studio视觉素材库Visual Library作品集Portfolio
职业CAREER
面试题库Interview Bank营销工具箱Marketing Toolkit
资料库LIBRARY
收藏集Collections观察名单Watchlists来源体系Sources
设置Settings
⌘K
更新于 —KKelly
Market Intelligence/Google AI Blog

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

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

Philipp SchmidMember of the Technical StaffGoogle DeepMind·2026.07.28·3 min 阅读EN
事件背景基于真实抓取数据整理

本条来自 Google AI Blog(ai),聚焦 人工智能。 Managed Agents in Gemini API now default to Gemini 3.6 Flash. New environment hooks let you block, lint, or audit tool calls inside the sandbox. Also, we’ve added budget controls, scheduled triggers, and free tier access.

Original Intelligence基于真实抓取数据整理

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

  • Gemini API Managed Agents: 3.6 Flash, hooks, and more
  • Gemini 3.6 Flash is now the default
  • Environment hooks: block, lint, and audit tool calls inside the sandbox
  • Cost control and automation features
  • Managed Agents in Gemini API now default to Gemini 3

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

涉及品牌谷歌 Google
  1. Home
  2. Innovation & AI
  3. Technology
  4. Developer tools

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

Managed Agents in Gemini API now default to Gemini 3.6 Flash. New environment hooks let you block, lint, or audit tool calls inside the sandbox. Also, we’ve added budget controls, scheduled triggers, and free tier access.

Member of the Technical Staff, Google DeepMind

Product Manager, Google DeepMind

Managed Agents Gemini 3.6 Flash, Hooks and Triggers
Managed Agents Gemini 3.6 Flash, Hooks and Triggers

Your browser does not support the audio element.

Managed Agents in Gemini API are getting environment hooks, model selection, and free tier access. These capabilities build on our previous release introducing background tasks and remote MCP server integration.

With managed agents in the Gemini Interactions API, a single API call coordinates, reasoning, code execution, package installation, file management, and web retrieval inside an isolated cloud sandbox.

If you're using an AI coding assistant, drop this in your terminal to give it access to the Interactions API skill: npx skills add google-gemini/gemini-skills --skill gemini-interactions-api.

Below are examples using the @google/genai TypeScript/JavaScript SDK. For Python or cURL, check out the Antigravity agent documentation.

npm install @google/genai

Gemini 3.6 Flash is now the default

The antigravity-preview-05-2026 agent now runs Gemini 3.6 Flash by default. No code changes are required. Your next interaction picks it up automatically.

You can also explicitly select models by passing agent_config.model when creating an interaction or managed agent. Use Gemini 3.5 Flash-Lite for lower cost, or pin to your model of preference.

import { GoogleGenAI } from "@google/genai";

const client = new GoogleGenAI({});

const interaction = await client.interactions.create({
agent: "antigravity-preview-05-2026",
input: "Audit all dependencies in package.json, upgrade outdated packages, and verify the build by running npm test.",
environment: "remote",
agent_config: {
type: "antigravity",
model: "gemini-3.5-flash-lite",
},
});

console.log(interaction.output_text);

Supported models include:

  • Gemini 3.6 Flash (gemini-3.6-flash, default): Balanced model for reasoning, coding, and tool use.
  • Gemini 3.5 Flash (gemini-3.5-flash): Previous generation for general agentic workflows.
  • Gemini 3.5 Flash-Lite (gemini-3.5-flash-lite): Lowest latency and cost on the Gemini 3.5 family.

Environment hooks: block, lint, and audit tool calls inside the sandbox

Environment hooks let you run your custom scripts before or after every tool call the agent makes inside its sandbox. Add a .agents/hooks.json into your environment and the runtime executes your handlers on pre_tool_execution or post_tool_execution events.

The matcher field supports regular expressions, allowing you to target multiple tools with | or catch everything with *:

{
"security-gate": {
"pre_tool_execution": [
{
"matcher": "code_execution|write_file",
"hooks": [
{
"type": "command",
"command": "python3 /.agents/hooks-scripts/gate.py",
"timeout": 10
}
]
}
]
},
"auto-format": {
"post_tool_execution": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "python3 /.agents/hooks-scripts/auto_lint.py",
"timeout": 15
}
]
}
]
}
}

In this configuration:

  • The security-gate group runs gate.py before every code_execution or write_file call. If the script returns {"decision": "deny", "reason": "..."}, the tool call is skipped and the rejection reason is passed into the model’s context.
  • The auto-format group runs auto_lint.py after every tool finishes to enforce code styling.
  • Hooks also support http type handlers that POST directly to an external endpoint.

For complete HTTP hook definitions and failure handling semantics, refer to the hooks documentation.

Teams are already using hooks to build production-grade validation pipelines. For example, AI-native investment bank Offdeal uses post_tool_execution hooks to run automated image verification inside the remote sandbox.

"OffDeal is an AI-native investment bank, and Archie is the AI analyst our bankers use every day. A requirement for banker-ready decks is company logos: buyer tables, sponsor columns, tombstone grids, often 30+ logos in a single deck, every one of which must be the right company, the appropriate size and aspect ratio, contain the name, have a transparent background, and have a high contrast when placed on a white slide.

Before agent hooks, we couldn’t do this on Gemini’s managed agents: the sandbox is remote, so our validation code had nowhere to run. With hooks, a post_tool_execution hook triggers our pipeline inside the sandbox the moment Archie writes its company list, fetching candidates, enforcing pixel-level quality checks, verifying each logo with Gemini vision, and publishing a manifest of approved files that are the only images allowed into the deck."

- Alston Lin, Founder & CTO of OffDeal

Cost control and automation features

Free tier availability

Managed agents are now available on free tier projects. Developers can experiment with agentic workflows using an API key from a project without active billing.

Budget controls

Because managed agents execute multi-turn autonomous loops, complex tasks can consume significant token budgets. To prevent runaway tasks, you can pass max_total_tokens inside agent_config to cap total consumption (input + output + thinking).

When the agent reaches the limit, execution safely pauses and the interaction returns status: "incomplete". The environment state is preserved, enabling you to continue where it stopped by passing previous_interaction_id with a fresh budget.

const interaction = await client.interactions.create({
agent: "antigravity-preview-05-2026",
input: "Audit all modules in this repo and generate a migration report.",
agent_config: {
type: "antigravity",
max_total_tokens: 10000,
},
environment: "remote",
});

Scheduled execution with triggers

Automate recurring agent tasks with scheduled triggers. A trigger binds an agent, environment, prompt, and cron schedule into a persistent resource that fires without manual intervention. Each run reuses the same sandbox, so files persist across executions.

Environments API

The Environments API lets you list, inspect, and delete sandbox sessions from code. Recover environment IDs after a disconnect, or clean up sandboxes when your pipeline finishes instead of waiting for the 7-day TTL.

Get started with managed agents

These updates turn managed agents into cost-controlled, scheduled workers that operate autonomously inside real development environments without breaking your budget or requiring external orchestration.

Check out the Gemini Interactions API overview and the managed agents quickstart to explore custom agent definitions, environment configurations, network rules, and advanced streaming patterns.

❧
Industry Analysis规则派生 · 可核对

本条目归入「Technology AI」垂直,涉及真实话题:人工智能。

· 市场:关注 人工智能 对相关品类与竞争格局的潜在影响。

· 消费者:谷歌 Google 的受众行为与偏好变化值得追踪。

· 品牌:谷歌 Google 的叙事、产品与增长动作可拆解复用。

· 渠道:内容分发与触点组合(社媒 / 电商 / 线下)的协同值得复盘。

Marketing Insight规则派生 · 可核对

· 涉及品牌:谷歌 Google。

· 核心话题:人工智能。

· 可思考:如何把「人工智能」的洞察,转化为可衡量的内容与增长动作?

Career Usage规则派生 · 可核对

面试中可引用「Gemini API Managed Agents: 3.6 Flash, hooks, and more」:围绕 谷歌 Google,说明你对行业动向的判断与可落地动作。

本条目相关英文术语可在「商务英语」模块按话题检索,用于外企面试表达训练。

关联案例同话题 / 同品牌
数英 · 项目库
6句双关文案,《经济学人》又来调侃AI了
数英 · 项目库
Claude最新广告翻车,被吐槽像末日纪录片
数英 · 项目库
Kimi用K3做宣传片,项目介绍也让AI写了
数英 · 项目库
乐高手工呈现:把一辆超跑拆成 4104 份
关联播客真实 RSS 单集
国产 AI 算力能凭「超节点」弯道超车吗? | WAIC 深度观察 S10E23
科技早知道 · 2026.07.27
假如明天电影院消失
BrandX品牌增长实验室 · 2022.04.13
资讯|财报季:欧莱雅为何还能越跑越快?LVMH香水美妆零增长 / 第31周
美妆内行人 · 2026.08.02
延伸信源A / B 级权威来源 · 供深挖
Marketing BrewACampaignAThe DrumAWARCAAdweekADigidayA
Business English提取正文真实商业词汇
aigenai
ai

If you're using an AI coding assistant, drop this in your terminal to give it access to the Interactions API skill: npx skills add google-gemini/gemini-skills --skill gemini-intera…

genai

Below are examples using the @google/genai TypeScript/JavaScript SDK. For Python or cURL, check out the Antigravity agent documentation.…

系统商务英语 →
关联 English Brief
Brands Briefing: Why apparel IPOs are creeping back up
Modern Retail
Modern Retail+ Research: The 2026 guide to holiday marketing strategies, including A-Frame Brands, Mastercard and Ritual
Modern Retail
来源
阅读原文 · Google AI Blog ↗
发布:2026.07.28
类型:ai
话题:人工智能
相关阅读
Google AI Blog/2026.08.04
The latest AI news we announced in July 2026
Google AI Blog/2026.07.28
5 ways AI Mode in Search helps you enjoy the real world
Google AI Blog/2026.07.28
5 ways to host the ultimate dinner party with Google Search
极客公园/2026.08.04
互联网流量,崩塌了
Digiday/2026.08.04
Ad Tech Briefing: Q2’s Big Tech earnings, small-scale concessions, and frustrated dealmakers
个人笔记
自动同步到云端