0

๐ŸŽฏ Tutorial 1: Your First ADK Agent

awesome-llm-apps1_starter_agent

Welcome to your first step in the Google ADK journey! This tutorial introduces you to the fundamental concept of creating a simple AI agent using Google's Agent Development Kit.

Sign in to save downloads to your library and vote.

Preview

๐ŸŽฏ Tutorial 1: Your First ADK Agent

Welcome to your first step in the Google ADK journey! This tutorial introduces you to the fundamental concept of creating a simple AI agent using Google's Agent Development Kit.

๐ŸŽฏ What You'll Learn

  • Basic Agent Creation: How to create your first ADK agent
  • ADK Workflow: Understanding the agent lifecycle
  • Simple Text Processing: Basic input/output handling
  • Agent Configuration: Essential parameters and settings

๐Ÿง  Core Concept: What is an ADK Agent?

An ADK agent is a programmable AI assistant that can:

  • Process user inputs (text, images, etc.)
  • Use AI models (like Gemini) to understand and respond
  • Perform specific tasks based on your instructions
  • Return structured or unstructured responses

Think of it as creating a smart function that uses AI to handle complex tasks.

๐Ÿ”ง Key Components

1. LlmAgent Class

The main building block for creating AI agents in ADK:

from google.adk.agents import LlmAgent

2. Essential Parameters

  • name: Unique identifier for your agent
  • model: The AI model to use (e.g., "gemini-3-flash-preview")
  • description: What your agent does
  • instruction: How your agent should behave

3. Basic Workflow

  1. Input: User sends a message
  2. Processing: Agent uses AI model to understand and respond
  3. Output: Agent returns a response

๐Ÿš€ Tutorial Overview

In this tutorial, we'll create a Creative Writing Agent that:

  • Helps users develop story ideas and characters
  • Provides writing prompts and inspiration
  • Assists with plot structure and pacing
  • Demonstrates basic ADK functionality

๐Ÿ“ Project Structure

1_starter_agent/
โ”œโ”€โ”€ README.md              # This file - concept explanation
โ”œโ”€โ”€ requirements.txt       # Dependencies
โ””โ”€โ”€ creative_writing_agent/ # Agent implementation
    โ”œโ”€โ”€ __init__.py       # Makes it a Python package
    โ””โ”€โ”€ agent.py          # Main agent code

๐ŸŽฏ Learning Objectives

By the end of this tutorial, you'll understand:

  • โœ… How to create a basic ADK agent
  • โœ… Essential agent parameters and their purpose
  • โœ… How to run and test your agent
  • โœ… Basic ADK workflow and lifecycle

๐Ÿš€ Getting Started

  1. Set up your environment:

    # Make sure you have your Google AI API key
    # Get your API key from: https://aistudio.google.com/
    
  2. Install dependencies:

    # Install required packages
    pip install -r requirements.txt
    
  3. Run the creative writing agent:

    # Start the ADK web interface
    adk web
    
    # In the web interface, select: creative_writing_agent
    
  4. Test your agent:

    • Try asking for story ideas: "I want to write a story about a magical forest"
    • Get character help: "Help me create a protagonist for my sci-fi story"
    • Request writing prompts: "Give me a creative writing prompt"
    • Ask for plot advice: "How can I structure my story's climax?"

๐Ÿ”— Next Steps

After completing this tutorial, you'll be ready for:

๐Ÿ’ก Pro Tips

  • Start Simple: Begin with basic functionality and add complexity gradually
  • Test Often: Use the ADK web interface to test your agents
  • Read Instructions: Clear instructions lead to better agent behavior
  • Experiment: Try different models and parameters to see the differences

Ingestion metadata

Source catalog
awesome-llm-apps
Repository
Shubhamsaboo/awesome-llm-apps ยท main
File path
ai_agent_framework_crash_course/google_adk_crash_course/1_starter_agent/README.md
Last refreshed
7/24/2026, 3:00:13 AM (53m ago)
Refresh schedule
Daily ยท 03:00 UTC
Dedupe status
Unique ยท deduped by (source, url)