adk-skill
Installation
SKILL.md
Google Agent Development Kit (ADK) Guide
Overview
ADK is Google's open-source framework for building AI agents powered by Gemini models. ADK 2.0+ introduces a graph-based Workflow Runtime engine where agents, tools, and functions are nodes in a composable execution graph. Supports single-agent, multi-agent, collaborative, and dynamic workflow architectures with built-in memory, artifacts, tools, callbacks, and deployment options.
Critical Rules
- Entry point is
root_agent— a module-level variable inagent.py, or aWorkflowobject for graph-based agents. - Every agent package MUST have
__init__.pythat imports the agent module:from . import agent - Set
GOOGLE_API_KEYin.envor configure Vertex AI credentials before running. - In ADK 2.0, agents are nodes. Do NOT override
_run_async_impl()— useBeforeAgentCallback/AfterAgentCallbackinstead. - Do NOT append events directly to
context.session.events. Yield events from your node so the framework manages persistence and routing. - Never catch
BaseExceptionin tools — it breaks HITL pause/resume and automatic retries. - One agent = one responsibility. Split agents with 5+ tools into specialists.
- Use
output_key+output_schemafor reliable data flow between agents — not free text.