Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

google-adk-pythonGoogle ADK Python 搜索

Agent Skill

用于辅助 Python 项目开发、测试、依赖管理和常见框架工作流。它适合让 Agent 阅读 Python 代码、定位测试问题、整理运行命令、生成脚本或分析数据处理逻辑。使用时需要确认项目虚拟环境、依赖版本和测试入口;涉及执行脚本、读写文件、访问数据库或调用外部 API 时,应先明确运行目录和输入输出范围,避免误改生产数据。

总安装

710

周安装

29

GitHub Stars

公开资料未说明

下载量

227
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:google-adk-python(Google ADK Python 搜索)
来源仓库:https://github.com/samhvw8/dotfiles
仓库路径:skills/google-adk-python
安装命令:
npx skills add samhvw8/dotfiles --skill "google-adk-python"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add samhvw8/dotfiles --skill "google-adk-python"

简介

用于辅助 Python 项目开发、测试和依赖管理。

  • 适合阅读代码、定位测试问题或生成运行脚本。
  • 使用时需确认虚拟环境和依赖版本。google-adk-python 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 涉及执行脚本或访问数据库时应明确运行目录。
  • 避免误改生产数据,注意输入输出范围。

SKILL.md

Google ADK Python Skill

You are an expert guide for Google's Agent Development Kit (ADK) Python - an open-source, code-first toolkit for building, evaluating, and deploying AI agents.

When to Use This Skill

Use this skill when users need to:

  • Build AI agents with tool integration and orchestration capabilities
  • Create multi-agent systems with hierarchical coordination
  • Implement workflow agents (sequential, parallel, loop) for predictable pipelines
  • Integrate LLM-powered agents with Google Search, Code Execution, or custom tools
  • Deploy agents to Vertex AI Agent Engine, Cloud Run, or custom infrastructure
  • Evaluate and test agent performance systematically
  • Implement human-in-the-loop approval flows for tool execution

Core Concepts

Agent Types

LlmAgent: LLM-powered agents capable of dynamic routing and adaptive behavior

  • Define with name, model, instruction, description, and tools
  • Supports sub-agents for delegation and coordination
  • Intelligent decision-making based on context

Workflow Agents: Structured, predictable orchestration patterns

  • SequentialAgent: Execute agents in defined order
  • ParallelAgent: Run multiple agents concurrently
  • LoopAgent: Repeat execution with iteration logic

BaseAgent: Foundation for custom agent implementations

Key Components

Tools Ecosystem:

  • Pre-built tools (google_search, code_execution)
  • Custom Python functions as tools
  • OpenAPI specification integration
  • Tool confirmation flows for human approval

Multi-Agent Architecture:

  • Hierarchical agent composition
  • Specialized agents for specific domains
  • Coordinator agents for delegation

Installation

# Stable release (recommended)
pip install google-adk

# Development version (latest features)
pip install git+https://github.com/google/adk-python.git@main

Implementation Patterns

Single Agent with Tools

from google.adk.agents import LlmAgent
from google.adk.tools import google_search

agent = LlmAgent(
    name="search_assistant",
    model="gemini-2.5-flash",
    instruction="You are a helpful assistant that searches the web for information.",
    description="Search assistant for web queries",
    tools=[google_search]
)

Multi-Agent System

from google.adk.agents import LlmAgent

# Specialized agents
researcher = LlmAgent(
    name="Researcher",
    model="gemini-2.5-flash",
    instruction="Research topics thoroughly using web search.",
    tools=[google_search]
)

writer = LlmAgent(
    name="Writer",
    model="gemini-2.5-flash",
    instruction="Write clear, engaging content based on research.",
)

# Coordinator agent
coordinator = LlmAgent(
    name="Coordinator",
    model="gemini-2.5-flash",
    instruction="Delegate tasks to researcher and writer agents.",
    sub_agents=[researcher, writer]
)

Custom Tool Creation

from google.adk.tools import Tool

def calculate_sum(a: int, b: int) -> int:
    """Calculate the sum of two numbers."""
    return a + b

# Convert function to tool
sum_tool = Tool.from_function(calculate_sum)

agent = LlmAgent(
    name="calculator",
    model="gemini-2.5-flash",
    tools=[sum_tool]
)

Sequential Workflow

from google.adk.agents import SequentialAgent

workflow = SequentialAgent(
    name="research_workflow",
    agents=[researcher, summarizer, writer]
)

Parallel Workflow

from google.adk.agents import ParallelAgent

parallel_research = ParallelAgent(
    name="parallel_research",
    agents=[web_researcher, paper_researcher, expert_researcher]
)

Human-in-the-Loop

from google.adk.tools import google_search

# Tool with confirmation required
agent = LlmAgent(
    name="careful_searcher",
    model="gemini-2.5-flash",
    tools=[google_search],
    tool_confirmation=True  # Requires approval before execution
)

Deployment Options

Cloud Run Deployment

# Containerize agent
docker build -t my-agent .

# Deploy to Cloud Run
gcloud run deploy my-agent --image my-agent

Vertex AI Agent Engine

# Deploy to Vertex AI for scalable agent hosting
# Integrates with Google Cloud's managed infrastructure

Custom Infrastructure

# Run agents locally or on custom servers
# Full control over deployment environment

Model Support

Optimized for Gemini:

  • gemini-2.5-flash
  • gemini-2.5-pro
  • gemini-1.5-flash
  • gemini-1.5-pro

Model Agnostic: While optimized for Gemini, ADK supports other LLM providers through standard APIs.

Best Practices

  1. Code-First Philosophy: Define agents in Python for version control, testing, and flexibility
  2. Modular Design: Create specialized agents for specific domains, compose into systems
  3. Tool Integration: Leverage pre-built tools, extend with custom functions
  4. Evaluation: Test agents systematically against test cases
  5. Safety: Implement confirmation flows for sensitive operations
  6. Hierarchical Structure: Use coordinator agents for complex multi-agent workflows
  7. Workflow Selection: Choose workflow agents for predictable pipelines, LLM agents for dynamic routing

Common Use Cases

  • Research Assistants: Web search + summarization + report generation
  • Code Assistants: Code execution + documentation + debugging
  • Customer Support: Query routing + knowledge base + escalation
  • Content Creation: Research + writing + editing pipelines
  • Data Analysis: Data fetching + processing + visualization
  • Task Automation: Multi-step workflows with conditional logic

Development UI

ADK includes built-in interface for:

  • Testing agent behavior interactively
  • Debugging tool calls and responses
  • Evaluating agent performance
  • Iterating on agent design

Resources

Implementation Workflow

When implementing ADK-based agents:

  1. Define Requirements: Identify agent capabilities and tools needed
  2. Choose Architecture: Single agent, multi-agent, or workflow-based
  3. Select Tools: Pre-built, custom functions, or OpenAPI integrations
  4. Implement Agents: Create agent definitions with instructions and tools
  5. Test Locally: Use development UI for iteration
  6. Add Evaluation: Create test cases for systematic validation
  7. Deploy: Choose Cloud Run, Vertex AI, or custom infrastructure
  8. Monitor: Track agent performance and iterate

Remember: ADK treats agent development like traditional software engineering - use version control, write tests, and follow engineering best practices.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Antigravity

30.74%
按下载量换算70

Gemini CLI

24.06%
按下载量换算55

OpenCode

18.56%
按下载量换算42

Claude Code

12.85%
按下载量换算29

Codex

8.15%
按下载量换算19

windsurf

3.75%
按下载量换算9

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills