Skip to content

jkmaina/google-adk-blueprint

Repository files navigation

The Complete Google Agent ADK Blueprint

Build 150+ Multimodal AI Agents with Google's Agent Development Kit, Gemini and Google Cloud

By James Karanja Maina

This repository contains the source materials for "The Complete Google Agent SDK Blueprint" - a comprehensive guide to building advanced multimodal AI agents using Google's Agent Development Kit (ADK), Gemini models, and Google Cloud services.

Book Overview

This book provides a comprehensive guide to building enterprise-grade AI agents using Google's Agent Development Kit (ADK) and related technologies. It covers the complete framework from basic concepts to advanced production deployments, with a focus on practical implementation and best practices.

The book is structured in three main parts:

  • Foundations: Core concepts, architecture, and basic implementation
  • Intermediate Development: Advanced features, optimization, and testing
  • Advanced & Production: Enterprise deployment, integration, and specialized use cases

Repository Structure

google-adk-blueprint/
β”œβ”€β”€ chapter1/           # Hello World Agent - Basic ADK setup
β”œβ”€β”€ chapter2/           # Stock Agents - Tools and state management
β”œβ”€β”€ chapter3/           # Test Agent - Testing frameworks
β”œβ”€β”€ chapter4/           # Agent Patterns - Sequential, Parallel, Loop agents
β”œβ”€β”€ chapter5/           # Multimodal Examples - Image, text, structured data
β”œβ”€β”€ chapter6/           # Runner Examples - Session management and execution
β”œβ”€β”€ chapter7/           # Advanced Agents - Search, code execution, documents
β”œβ”€β”€ chapter8/           # Production Deployment - Docker, Kubernetes, MCP
β”œβ”€β”€ chapter9/           # Agent-to-Agent Communication - A2A patterns
β”œβ”€β”€ chapter10/          # E-commerce Integration - Shopping agents
β”œβ”€β”€ requirements.txt    # Core dependencies
β”œβ”€β”€ .env.example       # Configuration template
└── CHAPTER_TEST_RESULTS.md  # Comprehensive testing documentation

Quick Start

1. Clone and Setup

git clone https://github.com/jkmaina/google-adk-blueprint.git
cd google-adk-blueprint
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt

2. Configure Environment

cp .env.example .env
# Edit .env and add your Google API key

3. Run Your First Agent

cd chapter1/hello_world_agent
python -c "from agent import root_agent; print(f'Agent {root_agent.name} ready!')"

Target Audience

This book is designed for:

  • Software developers looking to build AI agents with Google technologies
  • Enterprise architects designing AI systems
  • Technical leaders evaluating agent frameworks
  • AI/ML practitioners expanding into agent-based systems

Prerequisites

Readers should have:

  • Basic Python programming knowledge
  • Familiarity with API concepts
  • Understanding of fundamental AI/ML concepts
  • Interest in building practical AI agent applications

How to Use This Repository

Chapter-by-Chapter Learning

Each chapter builds upon previous concepts:

  1. Chapter 1-3: Start here for ADK fundamentals
  2. Chapter 4: Learn agent orchestration patterns
  3. Chapter 5: Explore multimodal capabilities
  4. Chapter 6-7: Advanced features and integrations
  5. Chapter 8-10: Production deployment and specialized use cases

Testing Status

βœ… 95%+ Examples Working - See CHAPTER_TEST_RESULTS.md for detailed testing results.

Key Features Demonstrated

  • Basic Agents: Simple conversational agents with Gemini models
  • Tool Integration: Stock price fetching, web search, code execution
  • Agent Patterns: Sequential pipelines, parallel processing, loop controls
  • Multimodal Processing: Image analysis, document parsing, structured data extraction
  • Production Deployment: Docker containers, Kubernetes orchestration
  • Enterprise Features: Agent-to-agent communication, monitoring, security
  • E-commerce Integration: Shopping agents with external API integration

Dependencies

Core Requirements

  • Python 3.10+
  • Google ADK 1.19.0+
  • Google GenAI 1.52.0+

Optional Dependencies

  • Docker (for containerization examples)
  • Kubernetes (for orchestration examples)
  • Google Cloud SDK (for Vertex AI integration)

Configuration

Required Environment Variables

GOOGLE_API_KEY=your_google_api_key_here
GOOGLE_GENAI_USE_VERTEXAI=0  # Set to 1 for Vertex AI

Optional Configuration

GOOGLE_CLOUD_PROJECT=your-project-id
GOOGLE_CLOUD_LOCATION=us-central1

Examples by Category

πŸ€– Basic Agents

  • Hello World Agent (Chapter 1)
  • Stock Price Agent (Chapter 2)
  • Test Framework Agent (Chapter 3)

πŸ”„ Orchestration Patterns

  • Sequential Processing (Chapter 4)
  • Parallel Execution (Chapter 4)
  • Manager-Worker Pattern (Chapter 4)
  • Loop Control (Chapter 4)

🎯 Multimodal Processing

  • Job Posting Parser (Chapter 5)
  • Email Analyzer (Chapter 5)
  • Image Analysis (Chapter 5)

πŸš€ Production Ready

  • Docker Deployment (Chapter 8)
  • Kubernetes Orchestration (Chapter 8)
  • MCP Server Integration (Chapter 8)

🌐 Advanced Integration

  • Google Search Agent (Chapter 7)
  • Code Execution Agent (Chapter 7)
  • Document Processing Agent (Chapter 7)
  • Agent-to-Agent Communication (Chapter 9)
  • E-commerce Shopping Agent (Chapter 10)

Contributing

This repository contains the source code for the book examples. For issues or improvements:

  1. Check existing issues
  2. Create detailed bug reports
  3. Submit pull requests with clear descriptions

Support

For questions about the book or examples:

  • Review the testing documentation
  • Check individual chapter README files
  • Ensure proper environment configuration

License

This project is licensed under the MIT License - see the LICENSE file for details.

About the Author

James Karanja Maina is a software engineer and AI practitioner specializing in agent-based systems and Google Cloud technologies. He has extensive experience building production AI applications and contributing to open-source projects.


⭐ Star this repository if you find it helpful for your AI agent development journey!

About

Official repo for The Complete Google Agent ADK Blueprint Build 150+ Multimodal AI Agents with Google's Agent Development Kit, Gemini and Google Cloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors