█

AI/TLDR

Me pague um café
Me pague um café

Google Agent Development Kit (ADK)

Um framework Python centrado em código para criar, avaliar e implantar agentes de IA

Agent Frameworks & BuildersCódigo aberto
Latest
v2.9.0
Atualizado
10 Sep 2026
Idioma
Python
Licença
Apache-2.0
$pip install google-adk

What's new

v2.9.010 Sep 2026

Adds FallbackModel, which fails an agent over to a backup model when the primary one errors, a LiveKit runner for voice and telephony agents, and loading of ADK 2.0 graph workflows from declarative YAML. MCP servers on SDK 2.x are supported alongside 1.x, which stays the default. Five breaking changes ship with it, including workflow nodes rerunning on resume.

EM RESUMO

What is Google Agent Development Kit (ADK)?

Google Agent Development Kit (ADK) is Um framework Python centrado em código para criar, avaliar e implantar agentes de IA. It sits in the Agent Frameworks & Builders category of the Agents & Automation tools and is open-source, written in Python and licensed Apache-2.0. To get started: instalar o ADK.

Atualizado Versão em Markdown ↗

Visão geral

Agent Development Kit (ADK) é um framework Python de código aberto, centrado em código, criado pelo Google para criar, avaliar e implantar agentes de IA. Você define os agentes em Python e mantém o controle sobre como eles se comportam, em vez de montar tudo por meio de uma interface ou de arquivos de configuração.

Ele é voltado para desenvolvedores que querem criar agentes individuais ou coordenar vários agentes juntos. O ADK 2.0 adiciona um Workflow Runtime baseado em grafos para compor fluxos de execução determinísticos (roteamento, fan-out/fan-in, loops, retry, human-in-the-loop e fluxos aninhados) e uma Task API para delegação estruturada entre agentes.

Como um framework de agentes de uso geral, ele oferece os blocos de construção para definir agentes, conectá-los em fluxos de trabalho, executá-los localmente por meio de uma CLI ou interface web e levá-los até a implantação.

O que faz

  • API Python centrada em código para definir agentes com nome, modelo e instrução
  • Workflow Runtime: um motor baseado em grafos para roteamento, fan-out/fan-in, loops, retry, gerenciamento de estado e fluxos aninhados
  • Task API para delegação estruturada entre agentes, incluindo modo de tarefa com várias interações e human-in-the-loop
  • Ferramentas integradas para execução local: CLI interativa (adk run) e interface web (adk web)
  • Suporte nativo a configurações com múltiplos agentes, compostas por meio de arestas de Workflow
  • Integrações opcionais instaláveis pelo extra [extensions]

Primeiros passos

Instale o pacote com pip (é necessário Python 3.10+), defina um agente em Python e depois execute-o localmente com a CLI ou a interface web do ADK.

Instalar o ADK

Instale o framework a partir do PyPI. Para adicionar integrações opcionais, instale o extra extensions no lugar.

bashbash
pip install google-adk

Definir um agente

Crie um agente com nome, modelo e instrução. Exponha-o como root_agent para que a CLI e a interface web possam encontrá-lo.

pythonpython
from google.adk import Agent

root_agent = Agent(
    name="greeting_agent",
    model="gemini-2.5-flash",
    instruction="You are a helpful assistant. Greet the user warmly.",
)

Compor um fluxo de trabalho (opcional)

Conecte vários agentes com arestas para executá-los em sequência usando o Workflow Runtime.

pythonpython
from google.adk import Agent, Workflow

generate_fruit_agent = Agent(
    name="generate_fruit_agent",
    instruction="Return the name of a random fruit. Return only the name.",
)

generate_benefit_agent = Agent(
    name="generate_benefit_agent",
    instruction="Tell me a health benefit about the specified fruit.",
)

root_agent = Workflow(
    name="root_agent",
    edges=[("START", generate_fruit_agent, generate_benefit_agent)],
)

Executar localmente

Use a CLI interativa para uma sessão no terminal ou inicie a interface web apontando para o diretório dos seus agentes.

bashbash
# Interactive CLI
adk run path/to/my_agent

# Web UI
adk web path/to/agents_dir

Commands and code are distilled from the project's own documentation — always check the repositório oficial para as novidades.

Quando usar

  • Criar um agente único com LLM em Python, com modelo e instrução definidos
  • Coordenar vários agentes em um fluxo determinístico com roteamento, loops ou fan-out/fan-in
  • Delegar subtarefas entre agentes usando a Task API, incluindo etapas de human-in-the-loop
  • Prototipar e testar agentes localmente pela CLI ou interface web do ADK antes de implantar

How Google Agent Development Kit (ADK) compares

Google Agent Development Kit (ADK) alongside other open-source agent frameworks & builders tools AI/TLDR tracks, ranked by GitHub stars.

FerramentaEstrelasO que faz
DeepSeek Harness★ 289kDeepSeek AI's open-source agent harness (dsh), built on Cordis, where models, tools, skills, sessions, sandboxes, storage and the UI are all plugins composed through profiles.
AutoGPT★ 188kOne of the earliest autonomous agent projects, now a platform for building and running agents from reusable blocks and workflows.
DeerFlow★ 86kByteDance's open-source super agent harness built on LangGraph: skills, sub-agents, sandboxes, a filesystem and long-term memory for long-horizon research, coding and content tasks.
nanobot★ 50.5kLightweight self-hosted personal AI agent framework in Python, with a WebUI, terminal and chat-app channels, tools, long-term memory, MCP and scheduled automations.
LangGraph★ 45.6kA library from the LangChain team for building stateful, graph-based agent workflows with explicit control over steps, memory, and human-in-the-loop checkpoints.
Agno★ 43.3kA fast Python framework (formerly Phidata) for building agents with memory, tools, and multimodal inputs, plus a runtime for deploying them in production.
AgentGPT★ 36.3kAgentGPT lets you name a custom AI, give it a goal, and watch it plan tasks, run them, and learn from the results, all from a web browser.
Google Agent Development Kit (ADK)★ 22.5kUm framework Python centrado em código para criar, avaliar e implantar agentes de IA