Skip to content
google-agents-cli-adk-code logo

ADK Code Reference

google-agents-cli-adk-code

Quick reference for ADK Python patterns: agents, tools, callbacks, and state management.

google/agents-cli473.4Kinstalls6KstarsCLI & Terminal

SKILL.md

Full skill instructions

ADK Code Reference

Before using this skill, activate /​google-agents-cli-workflow first — it contains the required development phases and scaffolding steps.

Prerequisites

  1. Run agents-cli info — if it shows project config, skip to the reference below
  2. If no project exists: run agents-cli scaffold create <name>
  3. If user has existing code: run agents-cli scaffold enhance .

Do NOT write agent code until a project is scaffolded.

Python only for now. This reference currently covers the Python ADK SDK. Support for other languages is coming soon.

Quick Reference — Most Common Patterns

from google.adk.agents import Agent

def get_weather(city: str) -> dict:
    """Get current weather for a city."""
    return {"city": city, "temp": "22°C", "condition": "sunny"}

root_agent = Agent(
    name="my_agent",
    model="gemini-flash-latest",
    instruction="You are a helpful assistant that ...",
    tools=[get_weather],
)

References

The first two are cheatsheets for common patterns; for broad or deep knowledge, go to the source (docs index or installed package).

ReferenceWhen to read
references/​adk-python.mdCore ADK API: Agent, tools, callbacks, plugins, state, artifacts, multi-agent systems, SequentialAgent / ParallelAgent / LoopAgent, custom BaseAgent, A2A protocol, A2UI. Default for most agents.
references/​adk-workflows.mdGraph-based Workflow API (ADK 2.0): nodes, edges, fan-out/​fan-in, HITL, parallel processing. Use when you need explicit graph topology.
curl https://adk.dev/​llms.txtDocs index (every page title + URL). Fetch it, then WebFetch the specific page for anything beyond the cheatsheets.
Installed ADK packageExact signatures and symbols — inspect the source (see "Inspecting ADK Source Code" in references/​adk-python.md).

Related Skills

  • /​google-agents-cli-workflow — Development workflow, coding guidelines, and operational rules
  • /​google-agents-cli-scaffold — Project creation and enhancement with agents-cli scaffold create / scaffold enhance
  • /​google-agents-cli-eval — Evaluation methodology, dataset schema, and the eval-fix loop
  • /​google-agents-cli-deploy — Deployment targets, CI/​CD pipelines, and production workflows

More CLI & Terminal skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View
lark-doc logo
CLI & Terminal

lark-doc

Create, read, edit, and manage Lark documents with content extraction, summarization, and formatting support.

17.5K 463.9K
View
lark-base logo
CLI & Terminal

lark-base

Comprehensive Lark Base operations via CLI with table, field, record, view, formula, lookup, workflow, dashboard, and form management.

17.5K 461.7K
View
lark-shared logo
CLI & Terminal

lark-shared

Lark CLI configuration, authentication, and operational guidelines for agent workflows.

17.5K 460.6K
View
lark-im logo
CLI & Terminal

lark-im

Send and receive messages, manage group chats, and handle files in Lark IM.

17.5K 458.8K
View
lark-drive logo
CLI & Terminal

lark-drive

Manage files, folders, and documents in Lark Drive with upload, download, import, comments, and permissions.

17.5K 458.6K
View
lark-sheets logo
CLI & Terminal

lark-sheets

Create, manage, and manipulate Lark spreadsheets with full cell and sheet control.

17.5K 458.1K
View
lark-wiki logo
CLI & Terminal

lark-wiki

Manage Lark Wiki spaces, members, nodes, and document organization hierarchies.

17.5K 457.5K
View
lark-whiteboard logo
CLI & Terminal

lark-whiteboard

Query, edit, and export Lark whiteboards with support for multiple formats and diagram types.

17.5K 456.1K
View
lark-task logo
CLI & Terminal

lark-task

Complete task lifecycle management for Feishu, including creation, assignment, tracking, and agent integration.

17.5K 455.9K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View