إطار عمل · Google
نظرة عامة على Google ADK
حزمة تطوير الوكلاء من Google، مع SDKs لـ Python وTypeScript وGo وJava وKotlin، وتقييمات مدمجة في المكوّن الأساسي. تعطي الأولوية لـ Gemini، لكنها تدعم نماذج أخرى عبر المحوّلات، ويمكن نشرها على Agent Runtime في Google Cloud.
الأنسب لـ: الفرق التي تعمل بلغات متعددة وتحتاج إلى وكلاء يركزون على Gemini، وتقييمات مدمجة، ومسار مباشر إلى Google Cloud.
معلومات أساسية
- الجهة المسؤولة عن الصيانة
- اللغات
- Python, TypeScript, Go, Java, Kotlin
- الترخيص
- Apache-2.0
- أحدث إصدار
Python 2.10.0· 25 سبتمبر 2026- المستودع
- google/adk-python
- خيار الاستضافة
- Agent Runtime on Gemini Enterprise Agent Platform (formerly Vertex AI Agent Engine); also Cloud Run, GKE
البدء السريع
ثبّت الحزمة، واضبط بيانات الاعتماد، ثم شغّل أبسط وكيل وفقًا للوثائق الرسمية. معرّفات النماذج هي المعتمدة في الوثائق، وقد لا تكون مفعّلة في حسابك.
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؛ ونماذج أخرى عبر LiteLLM ومحوّلات محلية |
|---|---|---|
| عميل MCP | نعم | McpToolset، مع إمكانية طلب التأكيد لكل أداة |
| خادم MCP | نعم | إتاحة وكيل عبر to_mcp_server() |
| متعدد الوكلاء | نعم | أشجار الوكلاء الفرعيين، إضافةً إلى سير عمل الرسوم البيانية منذ ADK 2.0 |
| عمليات تنفيذ مستدامة | نعم | استئناف الوكلاء المتوقفة؛ يحتفظ Agent Runtime بالحالة طويلة الأمد |
| موافقة بشرية | نعم | تأكيد استخدام الأدوات عبر require_confirmation=True |
| التتبّع | نعم | يعتمد على OpenTelemetry، مع Cloud Trace على Google Cloud |
| التقييمات | نعم | التقييم ميزة أساسية في ADK |
التغييرات الأخيرة
- أضاف ADK 2.0 سير عمل قائمًا على الرسوم البيانية.
- انضم Kotlin SDK إلى Python وTypeScript وGo وJava.
- انتقلت الوثائق إلى adk.dev.
- أُعيدت تسمية Vertex AI Agent Engine إلى Agent Runtime على Gemini Enterprise Agent Platform.