Build AI agents with Google's Agent Development Kit (ADK) Python - an open-source toolkit for building, evaluating, and deploying AI agents...
Open-source, code-first toolkit for building, evaluating, and deploying AI agents.
pip install google-adk
LLM-powered agents with dynamic routing and adaptive behavior.
from google.adk.agents import LlmAgent
from google.adk.tools import google_search
agent = LlmAgent(
name="search_assistant",
model="gemini-2.5-flash",
instruction="You are a helpful assistant that searches the web.",
tools=[google_search]
)
Execute agents in defined order.
from google.adk.agents import SequentialAgent
workflow = SequentialAgent(
name="research_workflow",
agents=[researcher, summarizer, writer]
)
Run multiple agents concurrently.
from google.adk.agents import ParallelAgent
parallel = ParallelAgent(
name="parallel_research",
agents=[web_researcher, paper_researcher]
)
# Specialized agents
researcher = LlmAgent(
name="Researcher",
model="gemini-2.5-flash",
tools=[google_search]
)
writer = LlmAgent(
name="Writer",
model="gemini-2.5-flash",
)
# Coordinator
coordinator = LlmAgent(
name="Coordinator",
model="gemini-2.5-flash",
instruction="Delegate tasks to researcher and writer.",
sub_agents=[researcher, writer]
)
from google.adk.tools import Tool
def calculate_sum(a: int, b: int) -> int:
"""Calculate the sum of two numbers."""
return a + b
sum_tool = Tool.from_function(calculate_sum)