Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Build AI agents with Google ADK Python. Multi-agent systems, A2A protocol, MCP tools, workflow agents, state/memory, callbacks/plugins, Vertex AI deployment, evaluation.
.claude/skills/majiayu000-ck-google-adk-python/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 145% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 67% | 0% |
Expert guide for Google's Agent Development Kit (ADK) Python — open-source, code-first toolkit for building, evaluating, and deploying AI agents. Optimized for Gemini, model-agnostic by design.
adk eval frameworkmy_agent/
├── __init__.py # MUST: from . import agent
└── agent.py # MUST: root_agent = Agent(...) OR app = App(...)bashpip install google-adk # stable (weekly releases) uv sync --all-extras # dev setup (uv required, Python 3.10+, 3.11+ recommended)
pythonfrom google.adk import Agent root_agent = Agent( name="assistant", model="gemini-2.5-flash", instruction="You are a helpful assistant.", description="General assistant agent.", tools=[get_weather], )
pythonfrom google.adk import Agent from google.adk.apps import App from google.adk.apps.app import EventsCompactionConfig from google.adk.plugins.save_files_as_artifacts_plugin import SaveFilesAsArtifactsPlugin app = App( name="my_app", root_agent=Agent(name="my_agent", model="gemini-2.5-flash", ...), plugins=[SaveFilesAsArtifactsPlugin()], events_compaction_config=EventsCompactionConfig(compaction_interval=2), )
Use App when needing plugins, event compaction, or custom lifecycle management.
| Command | Purpose | |---------|---------| | adk web <agents_dir> | Dev UI (recommended for development) | | adk run <agent_dir> | Interactive CLI testing | | adk api_server <agents_dir> | FastAPI production server | | adk eval <agent> <evalset.json> | Run evaluation suite |
| Type | Use Case | |------|----------| | Agent / LlmAgent | Dynamic routing, tool use, reasoning | | SequentialAgent | Fixed-order pipeline | | ParallelAgent | Concurrent execution | | LoopAgent | Iterative processing | | RemoteA2aAgent | Remote agent via A2A protocol |
| Feature | API | |---------|-----| | State | tool_context.state[key] = value | | Artifacts | tool_context.save_artifact(name, part) | | Callbacks | before_agent_callback, after_model_callback, etc. | | MCP Tools | MCPToolset(connection_params=StdioConnectionParams(...)) | | Sub-agents | Agent(..., sub_agents=[agent1, agent2]) | | Human-in-loop | LongRunningFunctionTool(func=my_func) | | Plugins | App(..., plugins=[MyPlugin()]) |
Latest: gemini-2.5-flash (default), gemini-2.5-pro, gemini-2.0-flash (sunsets Mar 2026) Preview: gemini-3-flash-preview, gemini-3-pro-preview Also: Anthropic Claude, Ollama, LiteLLM, vLLM, Model Garden
root_agent or app variable in agent.pysub_agentsToolContext.state for ephemeral, MemoryService for long-termadk eval + evalset JSON before deploymentDetailed guides (load as needed):
references/agent-types-and-architecture.md — Agent types, workflows, custom agentsreferences/tools-and-mcp-integration.md — Custom tools, MCP, tool filteringreferences/multi-agent-and-a2a-protocol.md — Sub-agents, A2A, coordinator patternsreferences/sessions-state-memory-artifacts.md — State, artifacts, sessions, memoryreferences/callbacks-plugins-observability.md — Lifecycle hooks, plugins, tracingreferences/evaluation-testing-cli.md — adk eval, CLI, evalset formatreferences/deployment-cloud-run-vertex-gke.md — Cloud Run, Vertex AI, GKE| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 24,879 | 15,288 | -39% | 1 | 1 | 0% | 5,242 | 3,470 | -34% | 0 | 0 | — |
case-02 | fail→pass | 46,267 | 14,143 | -69% | 1 | 1 | 0% | 4,318 | 3,523 | -18% | 0 | 0 | — |
case-03 | fail→pass | 17,874 | 9,767 | -45% | 1 | 1 | 0% | 1,763 | 2,113 | +20% | 0 | 0 | — |
case-04 | fail→pass | 39,619 | 17,142 | -57% | 1 | 1 | 0% | 1,291 | 3,166 | +145% | 0 | 0 | — |
case-05 | fail→pass | 11,746 | 3,560 | -70% | 1 | 1 | 0% | 1,103 | 1,838 | +67% | 0 | 0 | — |
case-06 | pass→pass | 12,042 | 9,732 | -19% | 1 | 1 | 0% | 1,203 | 1,956 | +63% | 0 | 0 | — |
case-07 | fail→pass | 6,855 | 13,472 | +97% | 1 | 1 | 0% | 1,166 | 2,510 | +115% | 0 | 0 | — |
case-08 | fail→pass | 18,919 | 10,531 | -44% | 1 | 1 | 0% | 1,918 | 2,824 | +47% | 0 | 0 | — |
case-09 | pass→pass | 13,901 | 11,989 | -14% | 1 | 1 | 0% | 1,557 | 2,305 | +48% | 0 | 0 | — |
case-10 | fail→pass | 19,006 | 15,099 | -21% | 1 | 1 | 0% | 2,008 | 2,794 | +39% | 0 | 0 | — |
case-11 | fail→pass | 17,311 | 5,878 | -66% | 1 | 1 | 0% | 2,441 | 2,308 | -5% | 0 | 0 | — |
case-12 | fail→pass | 9,665 | 2,564 | -73% | 1 | 1 | 0% | 1,350 | 1,683 | +25% | 0 | 0 | — |
case-13 | pass→pass | 12,195 | 7,135 | -41% | 1 | 1 | 0% | 1,270 | 1,694 | +33% | 0 | 0 | — |
case-14 | pass→pass | 19,344 | 16,518 | -15% | 1 | 1 | 0% | 2,456 | 2,978 | +21% | 0 | 0 | — |
case-15 | pass→pass | 15,146 | 7,062 | -53% | 1 | 1 | 0% | 1,989 | 2,525 | +27% | 0 | 0 | — |
case-16 | pass→pass | 14,083 | 6,882 | -51% | 1 | 1 | 0% | 1,256 | 1,624 | +29% | 0 | 0 | — |
case-17 | fail→pass | 11,463 | 4,413 | -62% | 1 | 1 | 0% | 1,854 | 1,947 | +5% | 0 | 0 | — |
case-18 | fail→pass | 9,127 | 2,402 | -74% | 1 | 1 | 0% | 1,518 | 1,663 | +10% | 0 | 0 | — |
case-19 | fail→fail | 24,858 | 7,087 | -71% | 1 | 1 | 0% | 2,821 | 1,637 | -42% | 0 | 0 | — |
case-20 | pass→pass | 16,893 | 15,834 | -6% | 1 | 1 | 0% | 2,595 | 3,911 | +51% | 0 | 0 | — |
case-21 | pass→pass | 10,329 | 11,127 | +8% | 1 | 1 | 0% | 1,938 | 3,491 | +80% | 0 | 0 | — |
case-22 | pass→pass | 12,174 | 12,327 | +1% | 1 | 1 | 0% | 2,291 | 3,686 | +61% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +55 percentage points is the difference between those two pass rates over the 21 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.