google-agents-cli-adk-code

Provides Google ADK Python API patterns and code references for building agents.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/Aki2022/skills --skill google-agents-cli-adk-code-aki2022
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-agents-cli-adk-code
Source: https://github.com/Aki2022/skills/tree/main/google-agents-cli-adk-code
Command: npx skills add https://github.com/Aki2022/skills --skill google-agents-cli-adk-code-aki2022

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing agents with Google's Agent Development Kit (ADK) requires knowing the correct Python API patterns for agents, tools, callbacks, state, and orchestration, and guessing at signatures leads to broken code. ## Core Features & Use Cases - ADK Python Cheatsheet: Covers Agent definitions, tools, callbacks, plugins, state, artifacts, memory, multi-agent systems, A2A, and ambient agents. - Workflow API Reference: Documents the graph-based Workflow API (ADK 2.0) with nodes, edges, fan-out/fan-in, HITL, and retry configuration. - Recipe Index: Maps capabilities like RAG, sandboxes, cross-session memory, and approval gates to curated reference implementations in google/adk-samples. - Use Case: When asked to add a tool with confirmation or build a sequential multi-agent pipeline, consult the cheatsheets for exact imports, signatures, and working code patterns. ## Quick Start Use the ADK code reference to write a Python agent with a weather tool and a sequential orchestration pipeline.

Frequently Asked Questions about google-agents-cli-adk-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define an agent with tools in Google ADK Python?

Create an Agent with a name, model, instruction, and a tools list of typed Python functions. Functions need docstrings, type hints, no default values, and must return a JSON-serializable dict.

How do I orchestrate multiple agents in ADK?

Use SequentialAgent, ParallelAgent, or LoopAgent for deterministic pipelines, or the graph-based Workflow API in ADK 2.0 for explicit node and edge topology. LLM delegation and AgentTool support dynamic routing between agents.

Does Google ADK support models other than Gemini?

Yes, ADK supports other providers through LiteLlm, including OpenAI, Anthropic, and Ollama models. Wrap the model string in LiteLlm and pass it as the agent's model parameter.

Can I use google_search together with custom function tools in ADK?

No, google_search is model-internal grounding, and mixing it with FunctionTools disables Automatic Function Calling for all tools. Use a sub-agent architecture or a custom search function instead.

Why does my ADK evaluation fail with Session not found errors?

The App name parameter must match the agent directory name, which defaults to app. A mismatch causes the runner to infer the wrong app name from the directory path during evaluation.

When should I use the ADK Workflow API instead of workflow agents?

Use the graph-based Workflow API when you need explicit graph topology with nodes, edges, conditional routes, fan-out/fan-in, and per-node retry. It requires google-adk 2.0 or later and Python 3.11 or later.