The Google Agent Development Kit (ADK) is an open-source, code-first framework for building, testing, evaluating and deploying AI agents and multi-agent systems. Released by Google in 2025 under the Apache 2.0 license, it treats an agent as ordinary software: developers define agents, tools and orchestration in code, run them locally, and ship them to managed or self-hosted infrastructure. Within AI frameworks & tools, Google ADK sits next to LangGraph, CrewAI, AutoGen and the OpenAI Agents SDK as a library for agent orchestration rather than model training.
ADK is optimized for Gemini models and Google Cloud, yet it is model-agnostic and deployment-agnostic by design. The same agent definition can call Gemini, other hosted models through connectors such as LiteLLM, or local models, and it can run on a laptop, in a container, or on Vertex AI Agent Engine. Official SDKs exist for Python, Java, Go and TypeScript, with Python being the most complete.
How the Agent Development Kit structures an agent
An ADK application is built from a small set of core abstractions that separate reasoning, action, memory and execution. The central object is the agent, which receives a user message, decides what to do, and emits a stream of events. A component called the Runner drives this loop: it passes input to the agent, executes requested tool calls, records each event, and persists results through a session service.
The following table summarizes the building blocks that appear in almost every ADK project and the responsibility each one carries.
| Component | Responsibility | Typical implementation |
|---|---|---|
| Agent | Reasons about the task and chooses actions | LlmAgent with model, instruction and tools |
| Tool | Performs a concrete action or lookup | Python function, OpenAPI spec, MCP server |
| Runner | Executes the event loop and tool calls | Runner or InMemoryRunner |
| Session | Holds one conversation and its event history | In-memory, database or Vertex AI service |
| State | Key-value scratchpad shared within a session | Dictionary with session, user and app scopes |
| Memory | Long-term recall across sessions | Memory service with search over past sessions |
| Artifact | Stores files and binary outputs | Artifact service backed by local or cloud storage |
Session state is the main channel for passing data between steps. An agent can write its final answer to a named key through the output_key parameter, and a later agent can read that value by placing a placeholder in its instruction, such as {summary}. This explicit data flow makes multi-step pipelines easier to inspect than designs that rely only on conversation history.
Agent types and orchestration patterns in ADK
ADK distinguishes between agents that use a language model to decide what happens next and agents that follow a deterministic control flow. Combining both kinds lets a team keep predictable structure where it matters and model-driven flexibility where it helps. Every agent derives from a common BaseAgent class, so custom logic can be added when the built-in types are not enough.
The table below lists the main agent types and the situations in which each one is the appropriate choice.
| Agent type | Control flow | Best suited for |
|---|---|---|
| LlmAgent | Model decides tools and hand-offs | Open-ended reasoning and conversation |
| SequentialAgent | Runs sub-agents in fixed order | Pipelines such as draft, review, publish |
| ParallelAgent | Runs sub-agents concurrently | Independent research or data gathering |
| LoopAgent | Repeats sub-agents until a condition or limit | Iterative refinement and critique cycles |
| Custom agent | Arbitrary code in a BaseAgent subclass | Conditional branching and special logic |
Multi-agent systems in ADK form a hierarchy of parent and sub-agents. An LLM agent can transfer control to a sub-agent whose description matches the request, which is the usual way to build a coordinator and specialist pattern. Alternatively, a whole agent can be wrapped as a tool with AgentTool, so the parent calls it like a function and keeps control of the conversation.
Tools, callbacks and interoperability
Tools give an ADK agent the ability to act. A plain Python function with type hints and a docstring becomes a function tool automatically, because ADK generates the schema the model needs from the signature. ADK also ships built-in tools such as Google Search grounding and code execution, and it can import tools from OpenAPI specifications and from servers that implement the Model Context Protocol (MCP).
Callbacks let developers intercept execution at defined points, for example before and after a model call or before and after a tool call. They are the standard place for guardrails, input validation, logging, caching and policy enforcement. A callback can inspect the request and return a replacement response, which skips the model or tool call entirely when a rule is violated.
For communication between independent agent services, ADK supports the Agent2Agent (A2A) protocol. A2A lets an ADK agent expose itself to, or call, agents built with other frameworks over a network, which matters in organizations where different teams choose different stacks.
How Google ADK compares with other agent frameworks
Google ADK competes with several agent orchestration libraries, and the differences lie mainly in abstraction style, ecosystem focus and deployment options. The comparison below reflects typical design emphasis, not a ranking, because all of these frameworks evolve quickly.
| Framework | Primary design emphasis | Notable strength |
|---|---|---|
| Google ADK | Hierarchical agents plus workflow agents | Integrated evaluation and Google Cloud deployment |
| LangGraph | Explicit state graphs with nodes and edges | Fine-grained control and checkpointing |
| CrewAI | Role-based crews with tasks | Fast setup for collaborative role patterns |
| AutoGen | Conversational multi-agent messaging | Research-oriented agent conversations |
| OpenAI Agents SDK | Lightweight agents with hand-offs | Minimal API surface for OpenAI models |
In practice, ADK is a strong fit when a team already uses Gemini or Vertex AI, wants built-in evaluation, or needs a managed runtime for production agents. Teams that need very explicit graph semantics may prefer LangGraph, while teams committed to another model vendor may find that vendor’s SDK simpler.
Developing, evaluating and deploying ADK agents
ADK includes a command-line interface that covers the full development cycle. The command adk web starts a browser-based developer UI that shows each event, tool call, state change and model response, which makes tracing agent behavior far easier than reading logs. The command adk run provides a terminal chat, and adk api_server exposes the agent as a local HTTP service.
Evaluation is a first-class feature. Developers record test cases with expected tool trajectories and reference answers, then run adk eval or a test framework to score the tool-use trajectory and the final response quality. Because agents are nondeterministic, evaluation thresholds replace exact assertions.
The deployment targets below are the most common and differ in how much infrastructure the team manages.
| Target | Operational model | When to choose it |
|---|---|---|
| Vertex AI Agent Engine | Fully managed agent runtime | Minimal operations and built-in session storage |
| Cloud Run | Serverless containers | Custom APIs with automatic scaling |
| Google Kubernetes Engine | Managed Kubernetes cluster | Complex networking or existing cluster standards |
| Self-hosted container | Any infrastructure the team controls | Other clouds or on-premises requirements |
Limitations and common mistakes
ADK reduces boilerplate, but it does not remove the inherent risks of model-driven control flow. The most frequent problems come from vague agent descriptions, unbounded loops and state that is never persisted.
- Vague sub-agent descriptions cause wrong transfers, because the coordinator routes requests by reading those descriptions.
- LoopAgent without a limit can run up cost; always set
max_iterationsor an explicit exit condition. - In-memory sessions in production lose all history on restart; use a database or Vertex AI session service.
- Feature parity varies by language, so a capability documented for Python may arrive later in Java, Go or TypeScript.
- Overusing LLM agents for steps that are deterministic adds latency and unpredictability; prefer workflow agents there.
The framework also changes rapidly, so pinning versions and reviewing release notes before upgrades is a practical necessity for production systems.
Explained without jargon
Google ADK is a toolbox for building AI helpers that do more than chat. A helper built with it can look things up, call other programs, and pass work to other helpers. Think of a small office. One person greets the visitor. Then that person sends the request to the right specialist.
The kit gives developers the parts for that office. It provides the workers, the tools they use, and the notebook where they record progress. It also includes a test bench to check their work before real customers arrive. The key idea is simple. ADK makes AI helpers organized, testable and ready to run on real servers.
A typical use case
A mid-sized online retailer wants to answer order questions automatically. Its engineering team builds a coordinator agent in ADK with three specialists: an order-status agent that calls the internal order API as a function tool, a returns agent that reads the returns policy, and an escalation agent that opens a support ticket. A before-tool callback blocks any refund request above 200 dollars and hands it to a human.
During development, the team uses adk web to trace each routing decision and fixes two vague agent descriptions that sent return questions to the order agent. They record 150 evaluation cases and require a trajectory score of at least 0.9 before release. The system is deployed to Vertex AI Agent Engine with persistent sessions. After launch, the agent resolves most routine order questions without human help, while every high-value refund still reaches a staff member.