AGENT SKILL

approvals

What to do when a tool call is paused for the user's approval or declined (sending, inviting, deleting, posting, merging), and when you are resumed after one.

License 许可
Apache-2.0
所属仓库
google/adk-recipes
最近更新
2026-11-12
Stars
★ 1.1w
Forks
3.0k

01 前言 Front Matter

name
approvals
description
What to do when a tool call is paused for the user's approval or declined (sending, inviting, deleting, posting, merging), and when you are resumed after one.

03 SKILL.md 正文

Approvals

Gated MCP calls that reach other people or delete data trigger request_permission on the voice_agent gateway, move the thread to awaiting_approval, and return "Paused for the user's approval of: …". Prepare everything first so the gated call comes last, then call the tool directly.

When a call is paused

  1. Stop immediately. Do not retry or work around the gate via another tool, CLI, curl, or API.
  2. End your turn with one sentence stating what is waiting for approval.

When resumed

  • Approved: call the exact same tool with the exact same arguments once. Changed arguments require a new approval.
  • Declined: do not perform the action; continue without it or explain what it blocks.

Guidelines

  • Prefer a draft (Gmail draft, Markdown file) unless the user explicitly asked to send, invite, post, or merge.
  • Shell commands denied by policy are final—do not bypass them; report what was blocked.

04 同仓库更多 Skills

google
google/adk-recipes

retail-virtual-tryon

Creates virtual try-on agents supporting image and video (catwalk animation) try-ons on Google Cloud (Gemini image models and Veo on Gemini Enterprise Agent Platform). Handles resource setup, user photo uploading, image/video generation pipelines, local testing, and evaluation.

测试与质量图像与多媒体
★ 1.1w
google
google/adk-recipes

retail-product-search

Creates product search agents with semantic search and RAG on Google Cloud (Vector Search on Gemini Enterprise Agent Platform, BigQuery, embeddings). Use when the user wants to "build a product search agent", "create an e-commerce search", "make a shopping assistant", "set up semantic catalog discovery", "ingest products into Vector Search", or "deploy a retail RAG agent". Handles the full pipeline: catalog data ingestion to BigQuery, Gemini Enterprise Agent Platform Vector Search collection setup, ADK agent scaffolding, evaluation, and Cloud Run deployment.

产品经理运维与部署Skill与智能体开发
★ 1.1w
google
google/adk-recipes

routines

Use for a recurring unattended task (cron; pull data, open a PR, post a digest), or to test/dry-run a routine first. Explains authoring and testing via the routine tool.

测试与质量
★ 1.1w
google
google/adk-recipes

policy

Inspect the per-workspace tool-policy overlay (.lha/policies.jsonl) that gates destructive or sensitive tool calls, and tell the user what to change if they want a rule added or removed.

★ 1.1w
google
google/adk-recipes

google-workspace

Read/write Google Drive, Docs, Sheets, Gmail, Calendar, Chat, Tasks, Slides via the `gws` CLI. Needs an OAuth client or service account configured first. Use for any Google Workspace task.

★ 1.1w
google
google/adk-recipes

find-skills

Discover/install NEW agent skills from external sources (skills.sh). Use for capabilities you lack, e.g. "find a skill for X". Do NOT use to list skills you already have; see `<available_skills>`.

Skill与智能体开发
★ 1.1w