Back to website
Mayank Aggarwal Learning Center

Phase 06 · AI AgentsLesson 2 of 4

Google ADK: Agent Development Kit

Build, run and debug agents with Google's open-source framework.

  • 9:22 video
  • 2 min read
  • Intermediate
01

The problem

Google's Agent Development Kit (ADK) is an open-source Python framework for building AI agents: programs where a model reasons about a goal and uses tools to reach it. ADK handles the plumbing (the conversation loop, tool calling, multi-agent coordination and a local debugging UI) so you can focus on what your agent should do.

02

The concept

The anatomy of an ADK agent#

Every agent combines three things:

IngredientWhat it is
ModelThe LLM that does the reasoning, for example a Gemini model
InstructionThe agent's job description: role, goal, rules, tone
ToolsPython functions the agent may call to act or fetch information
Python
from google.adk.agents import Agent

def get_exchange_rate(currency: str) -> dict:
    """Return the current exchange rate from INR to the given currency code."""
    rates = {"USD": 0.012, "EUR": 0.011}   # sample values; call a real rates API in practice
    return {"currency": currency, "rate": rates.get(currency.upper())}

root_agent = Agent(
    name="currency_helper",
    model="gemini-2.0-flash",
    instruction="You help users convert Indian rupees. Always use the tool for rates.",
    tools=[get_exchange_rate],
)

The function's name, type hints and docstring tell the model what the tool does and how to call it. That's the same principle you saw with MCP tools.

The agent loop#

When a user asks "How much is ₹5,000 in dollars?":

  1. The model reads the instruction and the question.
  2. It decides to call get_exchange_rate("USD").
  3. ADK runs the function and returns the result to the model.
  4. The model writes the final answer using that result.

ADK repeats this loop as many times as needed: one question might need several tool calls.

Multi-agent systems#

For larger jobs, compose agents. A coordinator agent delegates to specialist sub-agents:

travel_plannercoordinator
  • flight_agentsearches flights
  • hotel_agentfinds hotels
  • budget_agentchecks the total against the budget

Each specialist has a short, focused instruction and only the tools it needs, which makes the whole system easier to test and improve.

Run and debug locally#

ADK includes a local developer web UI where you can chat with your agent and inspect every step: which tool was called, with what arguments, and what came back. This visibility is invaluable when an agent behaves unexpectedly.

03

Try it

Your task · about 10 minutes

Follow the installation episode, then build a single agent with one tool, such as a calculator or a weather lookup.

04

Recap & next

Key takeaways

  1. ADK is Google's open-source framework for building and orchestrating AI agents in Python.
  2. An agent combines a model, instructions and tools (Python functions the model can call).
  3. Multiple agents can be composed: a coordinator delegates to specialist sub-agents.
  4. ADK ships with a local dev UI for running and inspecting agent conversations step by step.

Quick check

2 questions · instant feedback

1In ADK, a "tool" is typically…
2In a multi-agent setup, a coordinator agent…

Want to train your team on this? Talk about corporate training

Finished this lesson?

Mark it complete to track your progress and keep your streak going.

Next