Phase 06 · AI AgentsLesson 2 of 4
Google ADK: Agent Development Kit
Build, run and debug agents with Google's open-source framework.
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.
The concept
The anatomy of an ADK agent#
Every agent combines three things:
| Ingredient | What it is |
|---|---|
| Model | The LLM that does the reasoning, for example a Gemini model |
| Instruction | The agent's job description: role, goal, rules, tone |
| Tools | Python functions the agent may call to act or fetch information |
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?":
- The model reads the instruction and the question.
- It decides to call
get_exchange_rate("USD"). - ADK runs the function and returns the result to the model.
- 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 flightshotel_agentfinds hotelsbudget_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.
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.
Recap & next
Key takeaways
- ADK is Google's open-source framework for building and orchestrating AI agents in Python.
- An agent combines a model, instructions and tools (Python functions the model can call).
- Multiple agents can be composed: a coordinator delegates to specialist sub-agents.
- ADK ships with a local dev UI for running and inspecting agent conversations step by step.
Quick check
2 questions · instant feedback
Go deeper
The full course on AI agents
Udemy course
Building AI Agents & Agentic AI System via Microsoft AutoGen
View course (opens Udemy in a new tab)
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.


