dotsagent.io
Ngôn ngữ:Tiếng Việt
Framework · Google

Tổng quan về Google ADK

Agent Development Kit của Google, cung cấp SDK cho Python, TypeScript, Go, Java và Kotlin, cùng tính năng đánh giá được tích hợp trong lõi. Bộ công cụ ưu tiên Gemini nhưng hỗ trợ các model khác thông qua adapter, đồng thời cho phép triển khai lên Agent Runtime trên Google Cloud.

Phù hợp nhất với: Các nhóm làm việc với nhiều ngôn ngữ, cần agent ưu tiên Gemini, tính năng đánh giá tích hợp và lộ trình trực tiếp lên Google Cloud.

Thông tin chính

Đơn vị duy trì
Google
Ngôn ngữ
Python, TypeScript, Go, Java, Kotlin
Giấy phép
Apache-2.0
Phiên bản mới nhất
Python 2.10.0 · 25 tháng 9, 2026
Repository
google/adk-python · 21.687 sao
Tùy chọn chạy trên nền tảng lưu trữ
Agent Runtime on Gemini Enterprise Agent Platform (formerly Vertex AI Agent Engine); also Cloud Run, GKE
Agent Runtime trước đây có tên là Vertex AI Agent Engine; lệnh deploy vẫn là client.agent_engines.create(...).

Bắt đầu nhanh

Cài package, thiết lập thông tin xác thực, rồi chạy agent đơn giản nhất theo tài liệu chính thức. ID model sử dụng trong tài liệu có thể chưa được bật cho tài khoản của bạn.

Python

Cài đặt
pip install google-adk && adk create my_agent  (run with: adk run my_agent  or  adk web --port 8000)

Cần 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],
)

Nguồn hướng dẫn bắt đầu nhanh

TypeScript

Cài đặt
npm install @google/adk (inferred from package name; not copied from docs)

Cần 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],
});

Nguồn hướng dẫn bắt đầu nhanh

Tính năng

Mọi modelCóƯu tiên Gemini; hỗ trợ model khác qua LiteLLM và adapter cục bộ
MCP clientCóMcpToolset, có thể yêu cầu xác nhận riêng cho từng công cụ
MCP serverCóCung cấp agent qua to_mcp_server()
Đa agentCóCây agent con, cùng quy trình làm việc dạng đồ thị kể từ ADK 2.0
Lượt chạy bền vữngCóTiếp tục agent đã dừng; Agent Runtime duy trì trạng thái chạy dài hạn
Phê duyệt của con ngườiCóXác nhận công cụ qua require_confirmation=True
TracingCóDựa trên OpenTelemetry, tích hợp Cloud Trace trên Google Cloud
EvalsCóĐánh giá là tính năng cốt lõi của ADK

Các thay đổi gần đây

  • ADK 2.0 bổ sung quy trình làm việc dựa trên đồ thị.
  • SDK Kotlin được bổ sung bên cạnh Python, TypeScript, Go và Java.
  • Tài liệu được chuyển sang adk.dev.
  • Vertex AI Agent Engine được đổi tên thành Agent Runtime trên Gemini Enterprise Agent Platform.

Các lựa chọn thay thế cùng ngôn ngữ

Nguồn

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