पाठ 21 / 31

Agent-to-Agent संवाद क्यों

समझें कि tools जो नहीं कर सकते वह peer agents क्या कर सकते हैं।

Agents सिर्फ़ tools नहीं हैं

Tool एक function है: निश्चित इनपुट, तुरंत उत्तर। Remote agent तर्क करता है, अनुवर्ती सवाल पूछ सकता है, मिनटों या दिनों काम करता है, और अपने tools व मॉडल उपयोग करता है। पूरे agent को tool call के रूप में लपेटना यह सब छिपा देता है: आप status अद्यतन, स्पष्टीकरण, रद्द करना और आंशिक परिणाम खो देते हैं। A2A (Agent2Agent) खुला protocol है, खुले रूप में विकसित (Google से शुरू होकर अब Linux Foundation द्वारा होस्ट), जो अलग टीमों, vendors और frameworks के बनाए agents को एक-दूसरे को खोजने, tasks सौंपने, प्रगति stream करने और परिणाम बदलने देता है, आंतरिक memory, prompts या tools साझा किए बिना (remote agent "अपारदर्शी" है)। विनिर्देश के ब्योरे विकसित होते हैं, इसलिए मौजूदा आधिकारिक दस्तावेज़ से जाँचें।

खोजें, सौंपें, ट्रैक करें

A2A स्वतंत्र agents को Agent Card में कौशल विज्ञापित करने, tasks सौंपने और परिणाम बदलने देता है।

पाँच विचार: card, task, message, artifact, auth।
चित्र 6.1 — Card, task, message, artifact और auth।

Tool call बनाम agent task

लंबे, संवादात्मक काम को function call से अधिक क्यों चाहिए।

Tool call (MCP)                         Agent task (A2A)
fixed input -> immediate output          goal -> may take minutes/days
no memory of its own                     has its own reasoning, model, tools
errors are final                         can ask for input ("which invoice?")
no progress updates                      status updates, streaming, artifacts
you see the tool's inputs/outputs        you see only what the agent chooses to share (opaque)

त्वरित जाँच: A2A remote agents के लिए "अपारदर्शी" उपयोगी गुण क्यों है?

  • यह agents को users के लिए अदृश्य करता है
  • Agents अपनी आंतरिक संरचना खोले बिना सहयोग कर सकते हैं
  • यह authentication हटाता है
  • यह GPUs तेज़ करता है
Answer

Agents अपनी आंतरिक संरचना खोले बिना सहयोग कर सकते हैं — टीमें और vendors prompts, tools और मॉडल निजी रखते हैं।