Skip to main content

Getting Started with Google's Agent Development Kit (ADK)

Google for DevelopersApril 16, 202518 min125,534 views
25 connections·34 entities in this video→

Introduction to ADK

  • πŸ’‘ The Agent Development Kit (ADK) is an open-source framework from Google designed to simplify the creation of AI agents.
  • πŸš€ It offers a code-first flexibility, allowing for more granular control over agent orchestration using Pythonic constructs like classes and functions.
  • πŸ› οΈ ADK aims to make building AI agents as straightforward as traditional software development.

Sample YouTube Shorts Agent Architecture

  • 🎬 A sample YouTube Shorts agent is demonstrated, comprising three sub-agents: a script writer, a visualizer, and a formatter.
  • πŸ” The script writer agent utilizes a built-in Google Search tool to incorporate current trends into script outlines.
  • πŸ”— State and information are passed between agents using an output key mechanism, storing LLM responses in placeholder variables.

Running and Debugging Agents

  • πŸ’» ADK agents can be run and debugged in multiple ways: ADK run (CLI), ADK web (UI with multimodal capabilities), ADK API server (REST endpoint), and programmatically.
  • 🌐 The ADK web UI provides a visual interface to interact with agents and observe the flow of events and agent transfers.
  • ⚠️ Multi-agent complexity arises when the parent agent needs to intelligently select which sub-agents to invoke for a given prompt.

Types of ADK Agents

  • 🧠 ADK supports three main agent types: LLM agents (traditional LLM + stores), workflow agents (deterministic control over sub-agent execution), and custom agents (combining different agent types).
  • βš™οΈ Workflow agents include sequential agents (run sub-agents one by one), parallel agents (run sub-agents simultaneously), and loop agents (iteratively run sub-agents until a condition is met).
  • πŸ”„ The video demonstrates improvising the YouTube Shorts agent using a loop agent to ensure all sub-agents (script writer, visualizer, formatter) are iteratively called.

Programmatic Agent Execution

  • πŸ”Œ For programmatic execution, ADK requires understanding Services (memory, session, artifact storage), the Runner (execution engine), and Events (atomic actions within an agent).
  • πŸ’Ύ Session services manage conversation memory, which can be in-memory or persistent, while artifact storage handles outputs like files or images.
  • πŸš€ The Runner orchestrates the agent's execution by taking input, gathering services, and invoking the parent agent, streaming events asynchronously.
Knowledge graph34 entities Β· 25 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
34 entities
Chapters8 moments

Key Moments

Transcript68 segments

Full Transcript

Topics15 themes

What’s Discussed

Agent Development KitADKAI AgentsOpen Source FrameworkCode-First DevelopmentPythonLLM AgentsWorkflow AgentsLoop AgentsSequential AgentsParallel AgentsRunnerServicesEventsGoogle Search Tool
Smart Objects34 Β· 25 links
ProductsΒ· 9
CompaniesΒ· 12
ConceptsΒ· 13