---
title: "Google ADK：功能、版本和快速入门 · DotsAgent"
description: "Google 维护的 Google ADK：许可证、最新版本、MCP 支持、持久化运行、人工审批、追踪和评测，并附有可复制的快速入门。"
url: https://dotsagent.io/zh/frameworks/google-adk
---

框架 · Google

# 快速了解 Google ADK

Google 的 Agent Development Kit 提供 Python、TypeScript、Go、Java 和 Kotlin SDK，并将评估功能集成在核心中。它优先支持 Gemini，也可通过适配器接入其他模型，并可部署到 Google Cloud 上的 Agent Runtime。

**适用于：**  使用多种语言、希望构建优先支持 Gemini 的 agent、内置评估功能并直接部署到 Google Cloud 的团队。

## 关键信息

- **维护者**: Google
- **语言**: Python, TypeScript, Go, Java, Kotlin
- **许可证**: Apache-2.0
- **最新版本**: `Python 2.10.0` · 2026年9月25日
- **代码仓库**: [google/adk-python](https://github.com/google/adk-python) · 21,687 个 stars
- **托管选项**: [Agent Runtime on Gemini Enterprise Agent Platform (formerly Vertex AI Agent Engine); also Cloud Run, GKE](https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/runtime/quickstart-adk)Agent Runtime 原名 Vertex AI Agent Engine；部署调用仍为 client.agent_engines.create(...).

## 快速入门

安装软件包、设置凭据，然后运行官方文档中的最简 agent。这里使用的模型 ID 与文档一致，但你的账户可能尚未启用这些模型。

### Python

`安装`

```
pip install google-adk && adk create my_agent  (run with: adk run my_agent  or  adk web --port 8000)
```

需要 GOOGLE_API_KEY in my_agent/.env

`Python`

```
from google.adk.agents.llm_agent import Agent

# Mock tool implementation
def get_current_time(city: str) -> dict:
    """Returns the current time in a specified city."""
    return {"status": "success", "city": city, "time": "10:30 AM"}

root_agent = Agent(
    model='gemini-flash-latest',
    name='root_agent',
    description="Tells the current time in a specified city.",
    instruction="You are a helpful assistant that tells the current time in cities. Use the 'get_current_time' tool for this purpose.",
    tools=[get_current_time],
)
```

[快速入门来源](https://google.github.io/adk-docs/get-started/python/)

### TypeScript

`安装`

```
npm install @google/adk (inferred from package name; not copied from docs)
```

需要 GOOGLE_API_KEY

`TypeScript`

```
import { LlmAgent, GOOGLE_SEARCH } from '@google/adk';

const agent = new LlmAgent({
  name: 'researcher',
  model: 'gemini-flash-latest',
  instruction: 'You help users research topics thoroughly.',
  tools: [GOOGLE_SEARCH],
});
```

[快速入门来源](https://google.github.io/adk-docs/)

## 功能

| 支持任意模型 | — | 优先支持 Gemini；其他模型可通过 LiteLLM 和本地适配器接入 |
| --- | --- | --- |
| MCP 客户端 | — | McpToolset；可选择对每个工具单独要求确认 |
| MCP 服务器 | — | 通过 to_mcp_server() 将 agent 暴露为 MCP server |
| 多 agent | — | 支持子 agent 树；ADK 2.0 起还支持图工作流 |
| 持久化运行 | — | 恢复已停止的 agent；Agent Runtime 可保留长时间运行状态 |
| 人工审批 | — | 通过 require_confirmation=True 要求确认工具调用 |
| 追踪 | — | 基于 OpenTelemetry；在 Google Cloud 上使用 Cloud Trace |
| 评测 | — | 评估是 ADK 的核心功能 |

## 近期更新

- ADK 2.0 新增了基于图的工作流。
- 新增 Kotlin SDK，与 Python、TypeScript、Go 和 Java SDK 并列。
- 文档迁移至 adk.dev。
- Vertex AI Agent Engine 更名为 Gemini Enterprise Agent Platform 上的 Agent Runtime。

## 同一语言的替代方案

- [OpenAI Agents SDK](https://dotsagent.io/zh/frameworks/openai-agents-python)

- [OpenAI Agents SDK (JS)](https://dotsagent.io/zh/frameworks/openai-agents-js)

- [Claude Agent SDK](https://dotsagent.io/zh/frameworks/claude-agent-sdk)

- [Microsoft Agent Framework](https://dotsagent.io/zh/frameworks/microsoft-agent-framework)

- [LangGraph](https://dotsagent.io/zh/frameworks/langgraph)

- [CrewAI](https://dotsagent.io/zh/frameworks/crewai)

## 来源

1. [google.github.io](https://google.github.io/adk-docs/)/adk-docs/
2. [google.github.io](https://google.github.io/adk-docs/get-started/python/)/adk-docs/get-started/python/
3. [adk.dev](https://adk.dev/tools-custom/confirmation/)/tools-custom/confirmation/
4. [adk.dev](https://adk.dev/tools-custom/mcp-tools/advanced/)/tools-custom/mcp-tools/advanced/
5. [adk.dev](https://adk.dev/tools-custom/mcp-tools/agent-as-server/)/tools-custom/mcp-tools/agent-as-server/
6. [docs.cloud.google.com](https://docs.cloud.google.com/gemini-enterprise-agent-platform/vertex-ai-name-changes)/gemini-enterprise-agent-platform/vertex-ai-name-changes
7. [cloud.google.com](https://cloud.google.com/blog/products/ai-machine-learning/introducing-gemini-enterprise-agent-platform)/blog/products/ai-machine-learning/introducing-gemini-enterprise-agent
8. [docs.cloud.google.com](https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/runtime/quickstart-adk)/gemini-enterprise-agent-platform/build/runtime/quickstart-adk
9. [pypi.org](https://pypi.org/pypi/google-adk/json)/pypi/google-adk/json
10. [registry.npmjs.org](https://registry.npmjs.org/@google%2fadk)/@google%2fadk
11. [api.github.com](https://api.github.com/repos/google/adk-python)/repos/google/adk-python

为 AI agent 开发者提供的独立参考资料。与此处提及的任何厂商均无关联。

© 2026 DotsAgent · 事实核查日期：2026年10月1日
