เฟรมเวิร์ก · Google
ภาพรวม Google ADK
Agent Development Kit ของ Google มี SDK สำหรับ Python, TypeScript, Go, Java และ Kotlin พร้อมระบบประเมินผลที่ผสานอยู่ใน core เน้น Gemini เป็นหลัก แต่รองรับ models อื่นผ่าน adapters และ deploy ไปยัง Agent Runtime บน Google Cloud ได้
เหมาะสำหรับ: ทีมที่ทำงานกับหลายภาษาและต้องการ agents ที่เน้น Gemini, ระบบประเมินผลในตัว และช่องทางตรงไปยัง Google Cloud
ข้อมูลสำคัญ
- ผู้ดูแล
- ภาษา
- Python, TypeScript, Go, Java, Kotlin
- ไลเซนส์
- Apache-2.0
- เวอร์ชันล่าสุด
Python 2.10.0· 25 กันยายน 2569- Repository
- google/adk-python
- ตัวเลือกแบบโฮสต์
- Agent Runtime on Gemini Enterprise Agent Platform (formerly Vertex AI Agent Engine); also Cloud Run, GKE
Quickstart
ติดตั้งแพ็กเกจ ตั้งค่าข้อมูลรับรอง แล้วเรียกใช้ agent ตัวอย่างที่เล็กที่สุดจากเอกสารทางการ Model ID เป็นค่าที่เอกสารใช้ และอาจยังไม่ได้เปิดใช้งานในบัญชีของคุณ
Python
pip install google-adk && adk create my_agent (run with: adk run my_agent or adk web --port 8000)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],
)TypeScript
npm install @google/adk (inferred from package name; not copied from docs)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],
});ฟีเจอร์
| ใช้ได้กับทุกโมเดล | ใช่ | เน้น Gemini; ใช้ models อื่นผ่าน LiteLLM และ local adapters |
|---|---|---|
| MCP client | ใช่ | ใช้ McpToolset พร้อมตั้งให้แต่ละ tool ขอการยืนยันก่อนใช้งานได้ |
| MCP server | ใช่ | เปิดให้เรียกใช้ agent ผ่าน to_mcp_server() |
| หลาย agent | ใช่ | รองรับโครงสร้าง sub-agent และเวิร์กโฟลว์แบบกราฟตั้งแต่ ADK 2.0 |
| การทำงานต่อเนื่องแบบทนทาน | ใช่ | ทำงานต่อจาก agent ที่หยุดไปได้; Agent Runtime เก็บสถานะระยะยาว |
| การอนุมัติโดยมนุษย์ | ใช่ | ยืนยันการใช้เครื่องมือผ่าน require_confirmation=True |
| Tracing | ใช่ | ใช้ OpenTelemetry และ Cloud Trace บน Google Cloud |
| Evals | ใช่ | การประเมินเป็นฟีเจอร์หลักของ ADK |
การเปลี่ยนแปลงล่าสุด
- ADK 2.0 เพิ่มเวิร์กโฟลว์แบบกราฟ
- เพิ่ม Kotlin SDK จากเดิมที่มี Python, TypeScript, Go และ Java
- ย้ายเอกสารไปที่ adk.dev
- Vertex AI Agent Engine เปลี่ยนชื่อเป็น Agent Runtime บน Gemini Enterprise Agent Platform