Skip to main content

Google ADK Crash Course

A comprehensive tutorial series for learning Google’s Agent Development Kit (ADK) from zero to hero. Build flexible, model-agnostic AI agents with Google’s powerful framework, from simple text processing to advanced multi-agent orchestration patterns.
Updated for Gemini 3 Flash: All tutorials use the new Gemini 3 Flash model (gemini-3-flash-preview)

What is Google ADK?

Google ADK (Agent Development Kit) is a flexible and modular framework for developing and deploying AI agents. It’s optimized for Gemini but is model-agnostic and deployment-agnostic, making it compatible with other frameworks.

Flexible Orchestration

Define workflows using workflow agents or LLM-driven dynamic routing for sophisticated control.

Multi-Agent Architecture

Build modular applications with multiple specialized agents that collaborate seamlessly.

Rich Tool Ecosystem

Use pre-built tools, create custom functions, or integrate 3rd-party libraries like LangChain.

Model-Agnostic Design

Work with Gemini, OpenAI, Claude, or any other model provider.

Deployment Ready

Containerize and deploy agents anywhere with deployment-agnostic architecture.

Built-in Evaluation

Assess agent performance systematically with integrated evaluation tools.

Plugin System

Handle cross-cutting concerns like logging, monitoring, and error handling.

Safety & Security

Built-in patterns for trustworthy agents with callback monitoring.

Complete Learning Path

This crash course covers 9 comprehensive tutorials:

🌱 Foundation

1

Tutorial 1: Your First ADK Agent

Starter Agent - Create your first Google ADK agentLearn basic agent creation with the LlmAgent class:
What you’ll build: Creative writing assistant with story development capabilitiesRun it: Use adk web to launch interactive interface

🔄 Model Flexibility

1

Tutorial 2: Model-Agnostic Agents

Multi-Model Support - Build agents that work with any modelADK’s model-agnostic design lets you use different AI providers:OpenAI Integration:
Anthropic Claude Integration:
What you’ll build:
  • OpenAI GPT-4o agent
  • Anthropic Claude agent
  • Model comparison workflows

📊 Structured Data

1

Tutorial 3: Structured Output Agents

Type-Safe Responses - Work with Pydantic schemasExtract and validate structured data using Pydantic models:
What you’ll build:
  • Customer support ticket extractor
  • Email parser with structured validation
  • Data extraction agents

🔧 Tool Integration

1

Tutorial 4: Tool-Using Agents

Four Types of Tools - Comprehensive tool integrationADK supports multiple tool types for maximum flexibility:1. Built-in Tools (Gemini models only):
2. Function Tools:
3. Third-party Tools (LangChain, CrewAI):
4. MCP Tools (Model Context Protocol):
What you’ll build:
  • Web search agents with Google Search
  • Code execution agents
  • Custom function integrations
  • LangChain tool wrappers
  • MCP server connections

💾 Memory & State

1

Tutorial 5: Memory Agents

Session Management - Persistent conversation memoryIn-Memory Conversations:
Persistent Storage with SQLite:
What you’ll build:
  • Conversational agents with memory
  • Multi-session managers
  • Persistent conversation storage

🔔 Monitoring & Control

1

Tutorial 6: Callbacks

Lifecycle Monitoring - Track agent behaviorThree types of callbacks for complete visibility:1. Agent Lifecycle Callbacks:
2. LLM Interaction Callbacks:
3. Tool Execution Callbacks:
What you’ll build:
  • Agent performance monitors
  • LLM usage trackers
  • Tool execution loggers
2

Tutorial 7: Plugins

Cross-Cutting Concerns - Global agent behaviorPlugins handle concerns across all agents:
Plugin capabilities:
  • Global callback management
  • Request/response modification
  • Error handling and logging
  • Usage analytics and monitoring
What you’ll build: Logging, monitoring, and analytics plugins

🤝 Multi-Agent Systems

1

Tutorial 8: Simple Multi-Agent

Multi-Agent Researcher - Coordinated specialist agentsBuild a research pipeline with multiple specialized agents:
Workflow: Research → Summarize → Critique → ReportWhat you’ll build: Comprehensive research system with specialist agents
2

Tutorial 9: Multi-Agent Patterns

Advanced Orchestration - Three workflow patterns1. Sequential Agent - Deterministic pipeline:
Use case: Business implementation plans with market research, SWOT analysis, strategy development, and implementation planning2. Loop Agent - Iterative refinement:
Use case: Iterative content refinement until quality threshold met3. Parallel Agent - Concurrent execution:
Use case: Simultaneous competitor analysis across multiple dimensionsWhat you’ll build:
  • Sequential business planning pipeline
  • Iterative content crafting loop
  • Parallel competitive analysis

Quick Start

1

Prerequisites

Install Python 3.11+ and get your Google AI API key:
2

Install Google ADK

3

Create Your First Agent

4

Run with ADK Web

Open the local URL and select your agent to start chatting!

Tutorial Structure

Each tutorial follows a consistent structure:
Concept explanations, learning objectives, and detailed documentation
Agent implementation with clear, commented code
Streamlit web interface for interactive testing (when applicable)
Python dependencies for the tutorial

Key Features & Capabilities

Model Providers Supported

Tool Integration Examples

Workflow Agent Patterns

Sequential

Deterministic PipelineExecute sub-agents in order, each building on previous results.Best for: Step-by-step processes, analysis pipelines

Loop

Iterative RefinementRepeat sub-agent execution until condition met or max iterations reached.Best for: Quality improvement, content refinement

Parallel

Concurrent ExecutionRun multiple sub-agents simultaneously and merge results.Best for: Independent analyses, multi-dimensional evaluation

Real-World Applications

Research Systems

Multi-agent research pipelines with web search, summarization, and critique

Business Planning

Sequential analysis from market research through implementation planning

Content Creation

Iterative refinement loops for high-quality content generation

Data Extraction

Structured data extraction with Pydantic validation

Competitive Analysis

Parallel evaluation across multiple dimensions and competitors

Model Comparison

Test and compare different AI models for your use case

ADK Advantages

Use any model provider (Gemini, OpenAI, Claude) without changing code. Switch models based on cost, performance, or capabilities.
Deploy anywhere - containers, serverless, on-premise. No vendor lock-in.
Built-in tools, custom functions, LangChain integration, CrewAI tools, and MCP support.
Sequential, loop, and parallel workflow patterns out of the box.
Callbacks, plugins, error handling, and monitoring built-in.

Prerequisites

Required: Python 3.11+, Google AI API key, basic Python knowledge
Optional: Understanding of async patterns, Pydantic basics, API concepts

Environment Setup

Create a .env file in your project:
.env
Get your API key from Google AI Studio

Learning Tips

1

Follow In Order

Tutorials build on each other - start with Tutorial 1
2

Use ADK Web

The adk web command provides an excellent testing interface
3

Try Streamlit Apps

Many tutorials include Streamlit interfaces for hands-on learning
4

Experiment with Models

ADK’s model-agnostic design makes it easy to compare providers
5

Explore Patterns

Try different workflow patterns to understand their use cases

Common Issues & Solutions

  • Ensure GOOGLE_API_KEY is set in .env file
  • Verify key is valid from Google AI Studio
  • Check key has necessary permissions
  • Install ADK: pip install google-adk
  • Verify Python 3.11+
  • Check requirements.txt dependencies installed
  • Built-in tools (GoogleSearchTool) only work with Gemini models
  • Use function tools for model-agnostic implementations
  • Check model name spelling and availability

Progress Tracker

  • Tutorial 1: First ADK agent
  • Tutorial 2: Model-agnostic agents
  • Tutorial 3: Structured outputs
  • Tutorial 4: Tool integration (all 4 types)
  • Tutorial 5: Memory and sessions
  • Tutorial 6: Callbacks for monitoring
  • Tutorial 7: Plugins for cross-cutting concerns
  • Tutorial 8: Simple multi-agent researcher
  • Tutorial 9: Advanced workflow patterns 🎯

Additional Resources

ADK Documentation

Official Google ADK documentation and guides

Google AI Studio

Get API keys and test models

Gemini API Reference

Detailed Gemini API documentation

Pydantic Documentation

Learn about data validation

Next Steps

Start Learning

Set up your environment and begin with Tutorial 1: Your First ADK Agent
Happy learning! 🚀