dotsagent.io
ภาษา:ไทย
เฟรมเวิร์ก · 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

ข้อมูลสำคัญ

ผู้ดูแล
Google
ภาษา
Python, TypeScript, Go, Java, Kotlin
ไลเซนส์
Apache-2.0
เวอร์ชันล่าสุด
Python 2.10.0 · 25 กันยายน 2569
Repository
google/adk-python · 21,687 ดาว
ตัวเลือกแบบโฮสต์
Agent Runtime on Gemini Enterprise Agent Platform (formerly Vertex AI Agent Engine); also Cloud Run, GKE
Agent Runtime เดิมชื่อ Vertex AI Agent Engine; คำสั่ง deploy ยังคงเป็น client.agent_engines.create(...)

Quickstart

ติดตั้งแพ็กเกจ ตั้งค่าข้อมูลรับรอง แล้วเรียกใช้ agent ตัวอย่างที่เล็กที่สุดจากเอกสารทางการ Model 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],
)

แหล่งข้อมูล Quickstart

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

แหล่งข้อมูล Quickstart

ฟีเจอร์

ใช้ได้กับทุกโมเดลใช่เน้น 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

ทางเลือกในภาษาเดียวกัน

แหล่งข้อมูล

  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