Google Agent Development Kit (ADK) क्या है?
Google Agent Development Kit (ADK) AI एजेंट बनाने, मूल्यांकन करने और डिप्लॉय करने के लिए एक कोड-फ़र्स्ट Python फ़्रेमवर्क. यह Agents & Automation टूल्स की Agent Frameworks & Builders श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: aDK इंस्टॉल करें.
सारांश
Agent Development Kit (ADK) Google की ओर से आने वाला एक ओपन सोर्स, कोड-फ़र्स्ट Python फ़्रेमवर्क है, जो AI एजेंट बनाने, मूल्यांकन करने और डिप्लॉय करने के लिए है। आप एजेंट्स को Python में परिभाषित करते हैं और UI या कॉन्फ़िग फ़ाइलों के ज़रिए सब कुछ जोड़ने के बजाय उनके व्यवहार पर खुद नियंत्रण रखते हैं।
यह उन डेवलपर्स के लिए है जो एक ही एजेंट बनाना चाहते हैं या कई एजेंट्स को एक साथ समन्वित करना चाहते हैं। ADK 2.0 में graph-based Workflow Runtime जोड़ा गया है, जिससे deterministic एक्ज़ीक्यूशन फ़्लो बनाए जा सकते हैं, जैसे routing, fan-out/fan-in, loops, retry, human-in-the-loop और nested workflows। इसके साथ structured agent-to-agent delegation के लिए Task API भी है।
एक सामान्य एजेंट फ़्रेमवर्क के रूप में, यह एजेंट्स परिभाषित करने, उन्हें workflows में जोड़ने, CLI या web UI के ज़रिए लोकल पर चलाने और उन्हें डिप्लॉयमेंट की ओर ले जाने के लिए ज़रूरी बिल्डिंग ब्लॉक्स देता है।
यह क्या करता है
- नाम, model और instruction के साथ एजेंट परिभाषित करने के लिए code-first Python API
- Workflow Runtime: routing, fan-out/fan-in, loops, retry, state management और nested workflows के लिए graph-based इंजन
- structured agent-to-agent delegation के लिए Task API, जिसमें multi-turn task mode और human-in-the-loop शामिल हैं
- बिल्ट-इन लोकल रन टूलिंग: इंटरैक्टिव CLI (adk run) और web UI (adk web)
- Workflow edges के ज़रिए बनाए गए मल्टी-एजेंट सेटअप के लिए नेटिव सपोर्ट
- [extensions] extra के ज़रिए इंस्टॉल किए जा सकने वाले वैकल्पिक integrations
शुरू करें
pip से पैकेज इंस्टॉल करें (Python 3.10+ ज़रूरी है), Python में एक एजेंट परिभाषित करें, फिर ADK CLI या web UI से उसे लोकल पर चलाएं।
ADK इंस्टॉल करें
फ़्रेमवर्क को PyPI से इंस्टॉल करें। वैकल्पिक integrations जोड़ने के लिए इसके बजाय extensions extra इंस्टॉल करें।
pip install google-adkएजेंट परिभाषित करें
एक नाम, model और instruction के साथ एजेंट बनाएं। इसे root_agent के रूप में expose करें, ताकि CLI और web UI उसे ढूंढ सकें।
from google.adk import Agent
root_agent = Agent(
name="greeting_agent",
model="gemini-2.5-flash",
instruction="You are a helpful assistant. Greet the user warmly.",
)Workflow बनाएं (वैकल्पिक)
Workflow Runtime का उपयोग करके कई एजेंट्स को edges से जोड़ें, ताकि वे क्रम में चलें।
from google.adk import Agent, Workflow
generate_fruit_agent = Agent(
name="generate_fruit_agent",
instruction="Return the name of a random fruit. Return only the name.",
)
generate_benefit_agent = Agent(
name="generate_benefit_agent",
instruction="Tell me a health benefit about the specified fruit.",
)
root_agent = Workflow(
name="root_agent",
edges=[("START", generate_fruit_agent, generate_benefit_agent)],
)लोकल पर चलाएं
टर्मिनल सेशन के लिए इंटरैक्टिव CLI का उपयोग करें, या अपनी एजेंट्स डायरेक्टरी की ओर इशारा करते हुए web UI लॉन्च करें।
# Interactive CLI
adk run path/to/my_agent
# Web UI
adk web path/to/agents_dirकमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- Python में एक ही LLM-आधारित एजेंट बनाएं, जिसका model और instruction तय हो
- routing, loops या fan-out/fan-in के साथ एक deterministic workflow में कई एजेंट्स को समन्वित करें
- Task API का उपयोग करके एजेंट्स के बीच subtasks सौंपें, जिनमें human-in-the-loop चरण भी शामिल हों
- डिप्लॉय करने से पहले ADK CLI या web UI के ज़रिए एजेंट्स को लोकल पर प्रोटोटाइप और टेस्ट करें
How Google Agent Development Kit (ADK) compares
Google Agent Development Kit (ADK) alongside other open-source agent frameworks & builders tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| DeepSeek Harness | ★ 290k | DeepSeek का ओपन एजेंट हार्नेस, जहाँ हर क्षमता एक प्लगइन है |
| AutoGPT | ★ 188k | दोबारा इस्तेमाल होने वाले ब्लॉक्स से निरंतर AI एजेंट बनाएं, डिप्लॉय करें और चलाएं |
| DeerFlow | ★ 86.1k | सब कुछ पहले से शामिल सुपर एजेंट हार्नेस, जिसमें स्किल्स, सब-एजेंट्स, सैंडबॉक्स और मेमोरी हैं |
| nanobot | ★ 50.5k | WebUI, मेमोरी, MCP और चैट ऐप्स वाला सेल्फ-होस्टेड पर्सनल एजेंट रनटाइम |
| LangGraph | ★ 45.7k | लंबे समय तक चलने वाले, stateful AI agents बनाने के लिए low-level orchestration framework |
| Agno | ★ 43.4k | AI agent प्लेटफ़ॉर्म बनाने, चलाने और मैनेज करने के लिए Python SDK |
| AgentGPT | ★ 36.3k | ब्राउज़र में ही ऑटोनॉमस AI एजेंट बनाएं, कॉन्फ़िगर करें और डिप्लॉय करें |
| Google Agent Development Kit (ADK) | ★ 22.5k | AI एजेंट बनाने, मूल्यांकन करने और डिप्लॉय करने के लिए एक कोड-फ़र्स्ट Python फ़्रेमवर्क |

