█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

A2A

अलग-अलग frameworks के बीच agent discovery और collaboration के लिए खुला Agent2Agent protocol

Multi-Agent Systemsओपन सोर्स
भाषा
TypeScript
लाइसेंस
Apache-2.0
कवरेज
3 stories
$pip install a2a-sdk
संक्षेप में

A2A क्या है?

A2A अलग-अलग frameworks के बीच agent discovery और collaboration के लिए खुला Agent2Agent protocol. यह Agents & Automation टूल्स की Multi-Agent Systems श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: a2A SDK इंस्टॉल करें.

सारांश

A2A — Agent2Agent — एक ओपन प्रोटोकॉल है, जो अलग-अलग frameworks और platforms पर बने AI agents को एक-दूसरे को खोजने और tasks पर मिलकर काम करने देता है, बिना अपनी आंतरिक memory, prompts या tools उजागर किए। यह उभरते agent-interop stack का एक हिस्सा है, जिसमें tool/data access के लिए MCP है; A2A वह layer है जहाँ agents आपस में बात करते हैं।

संचार HTTP(S) पर JSON-RPC 2.0 के ज़रिये चलता है। हर agent एक Agent Card प्रकाशित करता है, जिसमें लिखा होता है कि वह क्या कर सकता है और उससे कैसे संपर्क किया जाए। Peers synchronous requests भेज सकते हैं, Server-Sent Events के ज़रिये streaming updates पा सकते हैं, या asynchronous push notifications ले सकते हैं। Messages में plain text, files और structured JSON हो सकते हैं, ताकि agents सिर्फ़ chat नहीं, बल्कि असली artefacts का आदान-प्रदान कर सकें।

Google ने इस प्रोटोकॉल को एक vendor-neutral ओपन standard के रूप में Linux Foundation को सौंपा। मुख्य repository में specification और samples हैं; आधिकारिक SDKs Python, JavaScript, Java, .NET, Go और Rust में उपलब्ध हैं, ताकि टीमें messaging layer खुद दोबारा बनाए बिना A2A को अपने मौजूदा stack में लागू कर सकें।

यह क्या करता है

  • JSON-RPC 2.0 over HTTP(S) — एक छोटा, अच्छी तरह समझा जाने वाला wire format
  • Agent Cards में capabilities, endpoints, auth और supported modalities का विवरण होता है
  • Sync requests, SSE के ज़रिये streaming, और async push notifications
  • Agents के बीच text, files और structured JSON ले जाता है
  • Opacity-preserving: agents बिना आंतरिक prompts या tools उजागर किए मिलकर काम करते हैं
  • Python, JavaScript, Java, .NET, Go और Rust के लिए आधिकारिक SDKs

शुरू करें

A2A एक प्रोटोकॉल है, इसलिए शुरू करने का मतलब है एक SDK चुनना और उसे इंस्टॉल करना। Python और JavaScript SDKs सबसे आम शुरुआती विकल्प हैं; spec a2a-protocol.org पर है।

A2A SDK इंस्टॉल करें

अपने stack के लिए SDK चुनें। यहाँ Python और JavaScript दिखाए गए हैं; Java, .NET, Go और Rust SDKs भी उपलब्ध हैं।

bashbash
pip install a2a-sdk
# or
npm install @a2a-js/sdk

Agent Card प्रकाशित करें

हर A2A agent एक Agent Card दिखाता है, जिसमें लिखा होता है कि वह क्या कर सकता है, उसे कैसे call किया जाए, और कौन-से auth व modalities समर्थित हैं। सटीक fields spec में परिभाषित हैं।

Specification पढ़ें

Wire format, message types और capability negotiation के लिए मूल spec देखें: a2a-protocol.org/latest/specification ।

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • अलग-अलग frameworks (LangChain, AutoGen, Semantic Kernel, …) के agents को जोड़ें, ताकि वे tasks एक-दूसरे को सौंप सकें
  • Hierarchical या sequential multi-agent workflows बनाएँ, जहाँ हर agent अपनी अलग service हो
  • आंतरिक agents को संगठनों के पार partner agents खोजने और call करने दें, बिना prompts या tools साझा किए
  • कस्टम RPC layer बनाए बिना मौजूदा application में agent-to-agent interop जोड़ें

How A2A compares

A2A alongside other open-source multi-agent systems tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Paperclip★ 119kएक सेल्फ-होस्टेड कंट्रोल प्लेन, जो AI एजेंट्स की टीम को कंपनी की तरह चलाता है, जिसमें ऑर्गनाइज़ेशन चार्ट, टास्क, बजट और अप्रूवल शामिल हैं
Ruflo★ 82.8kClaude Code और Codex के लिए एक एजेंट मेटा-हार्नेस
MetaGPT★ 71.6kएक multi-agent framework जो एक ही prompt से पूरी LLM-आधारित software company का काम करता है
AutoGen★ 62kऐसे multi-agent AI apps बनाएं जिनमें agents एक-दूसरे, tools और इंसानों के साथ बातचीत करें
CrewAI★ 61.4kRole-playing AI agents की टीमें बनाएं जो काम बांटें और एक लक्ष्य के लिए मिलकर काम करें
AgentScope★ 37.1kप्रोडक्शन में चलने वाले मल्टी-एजेंट ऐप्स बनाने के लिए एक Python फ़्रेमवर्क
OpenAI Agents SDK★ 31kMulti-agent workflows बनाने के लिए tools, handoffs और guardrails वाला हल्का Python SDK
A2A★ 26.8kअलग-अलग frameworks के बीच agent discovery और collaboration के लिए खुला Agent2Agent protocol