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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<meta name="description" content="A comprehensive guide to understanding AI protocols: Function Calling, MCP, and A2A - the building blocks of modern AI systems that enable tool usage, data access, and agent collaboration.">
|
7 |
+
<meta name="keywords" content="Function Calling, Model Context Protocol, MCP, Agent-to-Agent, A2A, AI protocols, AI integration, AI tools">
|
8 |
+
<title>Understanding AI Protocols: Function Calling, MCP, and A2A | The Future of AI Integration</title>
|
9 |
+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
|
10 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css">
|
11 |
+
<style>
|
12 |
+
body {
|
13 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
14 |
+
line-height: 1.6;
|
15 |
+
}
|
16 |
+
.protocol-card {
|
17 |
+
transition: transform 0.3s, box-shadow 0.3s;
|
18 |
+
}
|
19 |
+
.protocol-card:hover {
|
20 |
+
transform: translateY(-5px);
|
21 |
+
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
|
22 |
+
}
|
23 |
+
.diagram {
|
24 |
+
max-width: 100%;
|
25 |
+
height: auto;
|
26 |
+
border-radius: 8px;
|
27 |
+
margin: 20px 0;
|
28 |
+
border: 1px solid #e2e8f0;
|
29 |
+
}
|
30 |
+
.code-block {
|
31 |
+
font-family: 'Courier New', Courier, monospace;
|
32 |
+
white-space: pre-wrap;
|
33 |
+
word-break: break-all;
|
34 |
+
}
|
35 |
+
.hinglish {
|
36 |
+
color: #4f46e5;
|
37 |
+
font-style: italic;
|
38 |
+
}
|
39 |
+
.section-divider {
|
40 |
+
height: 4px;
|
41 |
+
background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
|
42 |
+
border-radius: 2px;
|
43 |
+
margin: 30px 0;
|
44 |
+
}
|
45 |
+
.highlight-box {
|
46 |
+
border-left: 4px solid #6366f1;
|
47 |
+
padding-left: 1rem;
|
48 |
+
}
|
49 |
+
header {
|
50 |
+
background: linear-gradient(135deg, #4f46e5, #7c3aed);
|
51 |
+
color: white;
|
52 |
+
}
|
53 |
+
.gradient-text {
|
54 |
+
-webkit-background-clip: text;
|
55 |
+
background-clip: text;
|
56 |
+
color: transparent;
|
57 |
+
background-image: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
|
58 |
+
}
|
59 |
+
</style>
|
60 |
+
</head>
|
61 |
+
<body class="bg-gray-50">
|
62 |
+
<!-- Header Section -->
|
63 |
+
<header class="py-16 px-4 mb-8 bg-gradient-to-r from-blue-600 via-indigo-700 to-purple-800 text-white">
|
64 |
+
<div class="container mx-auto">
|
65 |
+
<div class="max-w-4xl mx-auto text-center">
|
66 |
+
<span class="inline-block px-3 py-1 bg-blue-500 bg-opacity-30 rounded-full text-sm font-semibold tracking-wider mb-4">THE FUTURE OF AI INTEGRATION</span>
|
67 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6 leading-tight">Understanding AI Protocols</h1>
|
68 |
+
<h2 class="text-xl md:text-2xl font-medium mb-8 text-blue-100">Function Calling, MCP, and A2A: The Building Blocks of Modern AI Systems</h2>
|
69 |
+
<p class="text-xl text-center max-w-3xl mx-auto text-gray-100">Discover how modern AI systems communicate and interact with the external world through these revolutionary protocols — explained with clarity and technical depth.</p>
|
70 |
+
<div class="mt-10">
|
71 |
+
<a href="#introduction" class="inline-block px-6 py-3 bg-white text-indigo-700 font-semibold rounded-lg shadow-md hover:bg-indigo-50 transition-colors mr-4">Start Reading</a>
|
72 |
+
<a href="#comparison" class="inline-block px-6 py-3 bg-transparent border-2 border-white text-white font-semibold rounded-lg hover:bg-white hover:bg-opacity-10 transition-colors">Compare Protocols</a>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
</header>
|
77 |
+
|
78 |
+
<!-- Navigation Bar -->
|
79 |
+
<nav class="sticky top-0 bg-white shadow-md py-3 px-6 z-50 mb-8">
|
80 |
+
<div class="container mx-auto flex justify-between items-center">
|
81 |
+
<a href="#" class="font-bold text-xl text-indigo-700 hidden md:block">AI Protocol Guide</a>
|
82 |
+
<ul class="flex flex-wrap justify-center space-x-1 md:space-x-6 mx-auto md:mx-0">
|
83 |
+
<li><a href="#introduction" class="px-3 py-2 rounded-lg hover:bg-indigo-100 hover:text-indigo-700 transition-colors font-medium">Introduction</a></li>
|
84 |
+
<li><a href="#function-calling" class="px-3 py-2 rounded-lg hover:bg-indigo-100 hover:text-indigo-700 transition-colors font-medium">Function Calling</a></li>
|
85 |
+
<li><a href="#mcp" class="px-3 py-2 rounded-lg hover:bg-indigo-100 hover:text-indigo-700 transition-colors font-medium">MCP</a></li>
|
86 |
+
<li><a href="#a2a" class="px-3 py-2 rounded-lg hover:bg-indigo-100 hover:text-indigo-700 transition-colors font-medium">A2A</a></li>
|
87 |
+
<li><a href="#comparison" class="px-3 py-2 rounded-lg hover:bg-indigo-100 hover:text-indigo-700 transition-colors font-medium">Comparison</a></li>
|
88 |
+
<li><a href="#examples" class="px-3 py-2 rounded-lg hover:bg-indigo-100 hover:text-indigo-700 transition-colors font-medium">Examples</a></li>
|
89 |
+
</ul>
|
90 |
+
</div>
|
91 |
+
</nav>
|
92 |
+
|
93 |
+
<main class="container mx-auto px-4 mb-16">
|
94 |
+
<!-- Introduction Section -->
|
95 |
+
<section id="introduction" class="mb-16">
|
96 |
+
<h2 class="text-3xl font-bold mb-6 gradient-text">Introduction: How AI Gets Its Superpowers</h2>
|
97 |
+
|
98 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
99 |
+
<p class="mb-4 text-lg">
|
100 |
+
You've likely used AI systems like ChatGPT or Claude, but have you ever wondered why they're limited to just conversation? Why can't they take meaningful actions in the real world? The fundamental limitation of traditional Large Language Models (LLMs) has been their inability to interact with the outside world - they can generate impressive text but can't directly impact their environment.
|
101 |
+
</p>
|
102 |
+
|
103 |
+
<p class="mb-4 text-lg">
|
104 |
+
This is where three revolutionary protocols are changing everything:
|
105 |
+
</p>
|
106 |
+
|
107 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
|
108 |
+
<div class="protocol-card bg-blue-50 p-5 rounded-xl shadow-sm flex flex-col hover:shadow-lg transition-all duration-300">
|
109 |
+
<div class="text-blue-600 text-3xl mb-3"><i class="fas fa-wrench"></i></div>
|
110 |
+
<h3 class="text-xl font-bold mb-2">Function Calling</h3>
|
111 |
+
<p class="text-gray-700 flex-grow">
|
112 |
+
Teaching AI to use tools - Enabling models to recognize when to use external tools and APIs, and how to structure the necessary parameters.
|
113 |
+
</p>
|
114 |
+
</div>
|
115 |
+
|
116 |
+
<div class="protocol-card bg-purple-50 p-5 rounded-xl shadow-sm flex flex-col hover:shadow-lg transition-all duration-300">
|
117 |
+
<div class="text-purple-600 text-3xl mb-3"><i class="fas fa-database"></i></div>
|
118 |
+
<h3 class="text-xl font-bold mb-2">MCP (Model Context Protocol)</h3>
|
119 |
+
<p class="text-gray-700 flex-grow">
|
120 |
+
Connecting AI to data sources - Standardizing how AI systems access and interact with information repositories and external knowledge.
|
121 |
+
</p>
|
122 |
+
</div>
|
123 |
+
|
124 |
+
<div class="protocol-card bg-pink-50 p-5 rounded-xl shadow-sm flex flex-col hover:shadow-lg transition-all duration-300">
|
125 |
+
<div class="text-pink-600 text-3xl mb-3"><i class="fas fa-comments"></i></div>
|
126 |
+
<h3 class="text-xl font-bold mb-2">A2A (Agent-to-Agent)</h3>
|
127 |
+
<p class="text-gray-700 flex-grow">
|
128 |
+
Enabling AI collaboration - Creating a standardized way for different AI systems to communicate and work together regardless of their underlying frameworks.
|
129 |
+
</p>
|
130 |
+
</div>
|
131 |
+
</div>
|
132 |
+
|
133 |
+
<p class="text-lg">
|
134 |
+
Through these three technologies, AI systems are evolving from mere "smart chatbots" into genuine digital assistants capable of taking meaningful action in the world. These protocols represent the critical evolution from isolated models to interconnected, capable assistants that can understand, access information, and collaborate to solve complex problems.
|
135 |
+
</p>
|
136 |
+
|
137 |
+
<div class="mt-6 bg-blue-50 p-5 rounded-lg border-l-4 border-blue-500">
|
138 |
+
<h4 class="font-bold text-lg mb-2">Why This Matters</h4>
|
139 |
+
<p>These protocols aren't just technical specifications—they're the foundation of a new era in AI capability. As they mature and become widely adopted, we'll see AI systems that can seamlessly integrate with our digital infrastructure, access the information they need, and collaborate with specialized systems to accomplish complex tasks that no single AI could handle alone.</p>
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
</section>
|
143 |
+
|
144 |
+
<div class="section-divider"></div>
|
145 |
+
|
146 |
+
<!-- Function Calling Section -->
|
147 |
+
<section id="function-calling" class="mb-16">
|
148 |
+
<h2 class="text-3xl font-bold mb-6 gradient-text">Function Calling: Giving AI Tools to Work With</h2>
|
149 |
+
|
150 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
151 |
+
<h3 class="text-2xl font-semibold mb-4">Basic Concept: What is Function Calling?</h3>
|
152 |
+
|
153 |
+
<p class="mb-4 text-lg">
|
154 |
+
Function calling is the ability for an AI model to recognize when it needs to use an external tool or API, and to generate the proper structured arguments for that function call. It's essentially teaching AI when and how to use tools to accomplish tasks beyond simple text generation.
|
155 |
+
</p>
|
156 |
+
|
157 |
+
<div class="bg-blue-50 p-6 rounded-lg mb-6 border-l-4 border-blue-500">
|
158 |
+
<h4 class="text-xl font-bold mb-3">Analogy: The New Intern</h4>
|
159 |
+
<p class="text-lg">
|
160 |
+
Imagine you've hired a new intern at your office. You've shown them all the available tools - Excel for spreadsheets, Email for communication, the printer for documents, etc. Now, whenever a task comes up, the intern decides which tool is appropriate. If they need to create a report, they use Excel. If they need to send a message, they use Email.
|
161 |
+
</p>
|
162 |
+
<p class="text-lg mt-3">
|
163 |
+
Similarly, with function calling, you tell the AI what functions are available (along with their descriptions and required parameters), and the AI decides when to use them and with what parameters based on the user's request.
|
164 |
+
</p>
|
165 |
+
</div>
|
166 |
+
|
167 |
+
<h3 class="text-2xl font-semibold mb-4">How Function Calling Works</h3>
|
168 |
+
|
169 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
170 |
+
<div>
|
171 |
+
<ol class="list-decimal pl-6 space-y-3">
|
172 |
+
<li class="text-lg">
|
173 |
+
<strong>Define Functions:</strong> Developers define available functions with their names, descriptions, and required parameters.
|
174 |
+
</li>
|
175 |
+
<li class="text-lg">
|
176 |
+
<strong>User Input:</strong> A user asks a question like "What's the weather in London?"
|
177 |
+
</li>
|
178 |
+
<li class="text-lg">
|
179 |
+
<strong>AI Analysis:</strong> The AI recognizes this requires external data and determines the weather function is appropriate.
|
180 |
+
</li>
|
181 |
+
<li class="text-lg">
|
182 |
+
<strong>Parameter Generation:</strong> The AI structures the necessary parameters (location="London").
|
183 |
+
</li>
|
184 |
+
<li class="text-lg">
|
185 |
+
<strong>Function Execution:</strong> Your system executes the function (calls the weather API).
|
186 |
+
</li>
|
187 |
+
<li class="text-lg">
|
188 |
+
<strong>Response Integration:</strong> The AI incorporates the result into a natural, conversational response.
|
189 |
+
</li>
|
190 |
+
</ol>
|
191 |
+
</div>
|
192 |
+
|
193 |
+
<div class="bg-white rounded-lg shadow-md p-4">
|
194 |
+
<h4 class="text-lg font-semibold mb-2">Visual Representation:</h4>
|
195 |
+
<div class="diagram bg-blue-50 p-4 rounded-lg">
|
196 |
+
<pre class="code-block text-sm">
|
197 |
+
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
|
198 |
+
│ │ │ │ │ │
|
199 |
+
│ User │─────▶│ AI Model │─────▶│ Function │
|
200 |
+
│ │ asks │ │ calls│ │
|
201 |
+
└─────────────┘ └─────────────┘ └─────────────┘
|
202 |
+
│ │
|
203 |
+
│ │
|
204 |
+
▼ ▼
|
205 |
+
"I need to use function_name()
|
206 |
+
the weather parameters
|
207 |
+
function"
|
208 |
+
│
|
209 |
+
│
|
210 |
+
▼
|
211 |
+
┌─────────────┐
|
212 |
+
│ │
|
213 |
+
│ Result │
|
214 |
+
│ │
|
215 |
+
└─────────────┘
|
216 |
+
│
|
217 |
+
│
|
218 |
+
▼
|
219 |
+
┌─────────────┐
|
220 |
+
│ │
|
221 |
+
│ AI Response │
|
222 |
+
│ │
|
223 |
+
└─────────────┘
|
224 |
+
</pre>
|
225 |
+
</div>
|
226 |
+
</div>
|
227 |
+
</div>
|
228 |
+
|
229 |
+
<h3 class="text-2xl font-semibold mb-4">Technical Implementation: Function Definition</h3>
|
230 |
+
|
231 |
+
<p class="mb-4 text-lg">
|
232 |
+
Functions are defined in JSON Schema format, providing the AI with a clear structure of available tools:
|
233 |
+
</p>
|
234 |
+
|
235 |
+
<div class="bg-gray-100 p-4 rounded-lg mb-6 overflow-x-auto shadow-inner">
|
236 |
+
<pre class="code-block text-sm">
|
237 |
+
{
|
238 |
+
"name": "get_weather",
|
239 |
+
"description": "Get current weather for a specific location",
|
240 |
+
"parameters": {
|
241 |
+
"type": "object",
|
242 |
+
"properties": {
|
243 |
+
"location": {
|
244 |
+
"type": "string",
|
245 |
+
"description": "City name (e.g., London, New York, Tokyo)"
|
246 |
+
},
|
247 |
+
"unit": {
|
248 |
+
"type": "string",
|
249 |
+
"enum": ["celsius", "fahrenheit"],
|
250 |
+
"description": "Temperature unit"
|
251 |
+
}
|
252 |
+
},
|
253 |
+
"required": ["location"]
|
254 |
+
}
|
255 |
+
}</pre>
|
256 |
+
</div>
|
257 |
+
|
258 |
+
<h3 class="text-2xl font-semibold mb-4">Function Call Output</h3>
|
259 |
+
|
260 |
+
<p class="mb-4 text-lg">
|
261 |
+
When the AI determines a function call is needed, it generates a structured output like this:
|
262 |
+
</p>
|
263 |
+
|
264 |
+
<div class="bg-gray-100 p-4 rounded-lg mb-6 overflow-x-auto shadow-inner">
|
265 |
+
<pre class="code-block text-sm">
|
266 |
+
{
|
267 |
+
"function": "get_weather",
|
268 |
+
"parameters": {
|
269 |
+
"location": "London",
|
270 |
+
"unit": "celsius"
|
271 |
+
}
|
272 |
+
}</pre>
|
273 |
+
</div>
|
274 |
+
|
275 |
+
<h3 class="text-2xl font-semibold mb-4">Advantages and Limitations</h3>
|
276 |
+
|
277 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
278 |
+
<div class="bg-green-50 p-5 rounded-lg border border-green-200 hover:shadow-md transition-all duration-300">
|
279 |
+
<h4 class="font-bold text-lg mb-2 text-green-800">Advantages</h4>
|
280 |
+
<ul class="list-disc pl-5 space-y-2">
|
281 |
+
<li><strong>Easy implementation:</strong> Simple to set up with most AI APIs</li>
|
282 |
+
<li><strong>Direct integration:</strong> Works within existing LLM frameworks</li>
|
283 |
+
<li><strong>Flexibility:</strong> Can connect to virtually any API or service</li>
|
284 |
+
<li><strong>Structured output:</strong> Guarantees valid parameter formats</li>
|
285 |
+
<li><strong>Rapid adoption:</strong> Widely supported across major AI providers</li>
|
286 |
+
</ul>
|
287 |
+
</div>
|
288 |
+
|
289 |
+
<div class="bg-red-50 p-5 rounded-lg border border-red-200 hover:shadow-md transition-all duration-300">
|
290 |
+
<h4 class="font-bold text-lg mb-2 text-red-800">Limitations</h4>
|
291 |
+
<ul class="list-disc pl-5 space-y-2">
|
292 |
+
<li><strong>Tight coupling:</strong> Function logic embedded in AI reasoning</li>
|
293 |
+
<li><strong>Limited interoperability:</strong> Not standardized across systems</li>
|
294 |
+
<li><strong>Scaling challenges:</strong> Complex with many functions</li>
|
295 |
+
<li><strong>Vendor dependence:</strong> Implementation varies by AI provider</li>
|
296 |
+
<li><strong>Limited context:</strong> Functions may lack broader system awareness</li>
|
297 |
+
</ul>
|
298 |
+
</div>
|
299 |
+
</div>
|
300 |
+
|
301 |
+
<h3 class="text-2xl font-semibold mb-4">Real-World Applications</h3>
|
302 |
+
|
303 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
|
304 |
+
<div class="bg-blue-50 p-4 rounded-lg hover:shadow-md transition-all duration-300">
|
305 |
+
<div class="text-blue-600 text-xl mb-2"><i class="fas fa-calendar-alt"></i></div>
|
306 |
+
<h4 class="font-bold mb-1">Calendar Management</h4>
|
307 |
+
<p>Scheduling meetings, setting reminders, and managing appointments based on natural language requests.</p>
|
308 |
+
</div>
|
309 |
+
|
310 |
+
<div class="bg-blue-50 p-4 rounded-lg hover:shadow-md transition-all duration-300">
|
311 |
+
<div class="text-blue-600 text-xl mb-2"><i class="fas fa-shopping-cart"></i></div>
|
312 |
+
<h4 class="font-bold mb-1">E-commerce</h4>
|
313 |
+
<p>Searching for products, checking inventory, and placing orders through conversational interfaces.</p>
|
314 |
+
</div>
|
315 |
+
|
316 |
+
<div class="bg-blue-50 p-4 rounded-lg hover:shadow-md transition-all duration-300">
|
317 |
+
<div class="text-blue-600 text-xl mb-2"><i class="fas fa-cloud-sun"></i></div>
|
318 |
+
<h4 class="font-bold mb-1">Information Retrieval</h4>
|
319 |
+
<p>Fetching weather forecasts, news updates, stock prices, and other real-time data on demand.</p>
|
320 |
+
</div>
|
321 |
+
</div>
|
322 |
+
|
323 |
+
<div class="mt-6 bg-indigo-50 p-5 rounded-lg border-l-4 border-indigo-500">
|
324 |
+
<h4 class="font-bold text-lg mb-2">Historical Context</h4>
|
325 |
+
<p>Function calling was first introduced by OpenAI in June 2023, marking a significant advancement in making AI systems more useful for practical applications. Since then, it has been widely adopted across the industry and has become a fundamental capability in modern AI systems.</p>
|
326 |
+
</div>
|
327 |
+
</div>
|
328 |
+
</section>
|
329 |
+
|
330 |
+
<div class="section-divider"></div>
|
331 |
+
|
332 |
+
<!-- MCP Section -->
|
333 |
+
<section id="mcp" class="mb-16">
|
334 |
+
<h2 class="text-3xl font-bold mb-6 gradient-text">Model Context Protocol (MCP): The Universal Data Connector</h2>
|
335 |
+
|
336 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
337 |
+
<h3 class="text-2xl font-semibold mb-4">Basic Concept: What is MCP?</h3>
|
338 |
+
|
339 |
+
<p class="mb-4 text-lg">
|
340 |
+
The Model Context Protocol (MCP) is an open standard designed to connect AI systems with various data sources in a standardized way. Developed by Anthropic in November 2024, MCP creates a universal interface for AI systems to access content repositories, business tools, and development environments without custom integrations for each source.
|
341 |
+
</p>
|
342 |
+
|
343 |
+
<div class="bg-purple-50 p-6 rounded-lg mb-6 border-l-4 border-purple-500">
|
344 |
+
<h4 class="text-xl font-bold mb-3">Analogy: The Universal Port</h4>
|
345 |
+
<p class="text-lg">
|
346 |
+
Think of MCP as the USB-C port of the AI world. Just as your laptop can connect to any device—monitors, hard drives, phones—through a single standardized USB-C port, MCP allows AI systems to connect to any data source—Google Drive, GitHub, databases, etc.—through a single standardized protocol.
|
347 |
+
</p>
|
348 |
+
<p class="text-lg mt-3">
|
349 |
+
This standardization eliminates the need for custom integrations with each data source, dramatically simplifying how AI systems access and interact with external information.
|
350 |
+
</p>
|
351 |
+
</div>
|
352 |
+
|
353 |
+
<h3 class="text-2xl font-semibold mb-4">How MCP Works</h3>
|
354 |
+
|
355 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
356 |
+
<div>
|
357 |
+
<h4 class="text-lg font-semibold mb-2">MCP Architecture:</h4>
|
358 |
+
<ol class="list-decimal pl-6 space-y-3">
|
359 |
+
<li class="text-lg">
|
360 |
+
<strong>MCP Hosts:</strong> Applications like Claude Desktop or AI tools that need to access external data
|
361 |
+
</li>
|
362 |
+
<li class="text-lg">
|
363 |
+
<strong>MCP Clients:</strong> Protocol clients that maintain connections with MCP servers
|
364 |
+
</li>
|
365 |
+
<li class="text-lg">
|
366 |
+
<strong>MCP Servers:</strong> Lightweight programs that expose specific capabilities through the MCP protocol
|
367 |
+
</li>
|
368 |
+
<li class="text-lg">
|
369 |
+
<strong>Data Sources:</strong> Local files, databases, or remote services that MCP servers connect to
|
370 |
+
</li>
|
371 |
+
</ol>
|
372 |
+
</div>
|
373 |
+
|
374 |
+
<div class="bg-white rounded-lg shadow-md p-4">
|
375 |
+
<h4 class="text-lg font-semibold mb-2">Visual Representation:</h4>
|
376 |
+
<div class="diagram bg-purple-50 p-4 rounded-lg">
|
377 |
+
<pre class="code-block text-sm">
|
378 |
+
┌──────────────┐ ┌──────────────┐
|
379 |
+
│ │ │ │
|
380 |
+
│ AI Model │◄─────►│ MCP Client │
|
381 |
+
│ (Claude, etc)│ │ │
|
382 |
+
└──────────────┘ └──────────────┘
|
383 |
+
│
|
384 |
+
│ MCP Protocol
|
385 |
+
▼
|
386 |
+
┌─────────────────────────────────┐
|
387 |
+
│ │
|
388 |
+
│ MCP Servers │
|
389 |
+
│ │
|
390 |
+
└─────────────────────────────────┘
|
391 |
+
│ │ │
|
392 |
+
│ │ │
|
393 |
+
▼ ▼ ▼
|
394 |
+
┌─────────┐ ┌─────────┐ ┌─────────┐
|
395 |
+
│ │ │ │ │ │
|
396 |
+
│ Google │ │ GitHub │ │ Custom │
|
397 |
+
│ Drive │ │ Server │ │ Database│
|
398 |
+
│ │ │ │ │ │
|
399 |
+
└─────────┘ └─────────┘ └─────────┘</pre>
|
400 |
+
</div>
|
401 |
+
</div>
|
402 |
+
</div>
|
403 |
+
|
404 |
+
<h3 class="text-2xl font-semibold mb-4">Technical Implementation</h3>
|
405 |
+
|
406 |
+
<p class="mb-4 text-lg">
|
407 |
+
The communication between MCP servers and clients follows a standardized HTTP-based protocol. Here's how it works in practice:
|
408 |
+
</p>
|
409 |
+
|
410 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
411 |
+
<div class="bg-gray-100 p-4 rounded-lg overflow-x-auto shadow-inner">
|
412 |
+
<h4 class="font-bold mb-2">MCP Server Request Example:</h4>
|
413 |
+
<pre class="code-block text-sm">
|
414 |
+
POST /v1/service/files/list HTTP/1.1
|
415 |
+
Content-Type: application/json
|
416 |
+
|
417 |
+
{
|
418 |
+
"path": "/documents/project-alpha",
|
419 |
+
"recursive": true,
|
420 |
+
"include_content": false
|
421 |
+
}</pre>
|
422 |
+
</div>
|
423 |
+
|
424 |
+
<div class="bg-gray-100 p-4 rounded-lg overflow-x-auto shadow-inner">
|
425 |
+
<h4 class="font-bold mb-2">MCP Server Response Example:</h4>
|
426 |
+
<pre class="code-block text-sm">
|
427 |
+
HTTP/1.1 200 OK
|
428 |
+
Content-Type: application/json
|
429 |
+
|
430 |
+
{
|
431 |
+
"files": [
|
432 |
+
{
|
433 |
+
"name": "requirements.txt",
|
434 |
+
"path": "/documents/project-alpha/requirements.txt",
|
435 |
+
"type": "file",
|
436 |
+
"size": 1245,
|
437 |
+
"last_modified": "2023-09-15T14:32:10Z"
|
438 |
+
},
|
439 |
+
{
|
440 |
+
"name": "README.md",
|
441 |
+
"path": "/documents/project-alpha/README.md",
|
442 |
+
"type": "file",
|
443 |
+
"size": 8732,
|
444 |
+
"last_modified": "2023-09-10T09:15:22Z"
|
445 |
+
}
|
446 |
+
]
|
447 |
+
}</pre>
|
448 |
+
</div>
|
449 |
+
</div>
|
450 |
+
|
451 |
+
<h3 class="text-2xl font-semibold mb-4">Advantages and Limitations</h3>
|
452 |
+
|
453 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
454 |
+
<div class="bg-green-50 p-5 rounded-lg border border-green-200 hover:shadow-md transition-all duration-300">
|
455 |
+
<h4 class="font-bold text-lg mb-2 text-green-800">Advantages</h4>
|
456 |
+
<ul class="list-disc pl-5 space-y-2">
|
457 |
+
<li><strong>Clean separation:</strong> Decouples AI models from data sources</li>
|
458 |
+
<li><strong>Standardized protocol:</strong> Ensures consistent data exchange patterns</li>
|
459 |
+
<li><strong>Universal connectivity:</strong> One protocol for multiple data sources</li>
|
460 |
+
<li><strong>Enhanced security:</strong> Data remains within controlled infrastructure</li>
|
461 |
+
<li><strong>Vendor flexibility:</strong> Switch between AI providers without changing data access</li>
|
462 |
+
<li><strong>Privacy-preserving:</strong> Minimizes data exposure to external systems</li>
|
463 |
+
</ul>
|
464 |
+
</div>
|
465 |
+
|
466 |
+
<div class="bg-red-50 p-5 rounded-lg border border-red-200 hover:shadow-md transition-all duration-300">
|
467 |
+
<h4 class="font-bold text-lg mb-2 text-red-800">Limitations</h4>
|
468 |
+
<ul class="list-disc pl-5 space-y-2">
|
469 |
+
<li><strong>Primarily data-focused:</strong> Better for data access than complex interactions</li>
|
470 |
+
<li><strong>Emerging ecosystem:</strong> Still developing comprehensive tooling</li>
|
471 |
+
<li><strong>Implementation complexity:</strong> Requires more setup than simple function calling</li>
|
472 |
+
<li><strong>Learning curve:</strong> New paradigm for many developers</li>
|
473 |
+
<li><strong>Adoption challenges:</strong> Requires ecosystem buy-in to reach full potential</li>
|
474 |
+
</ul>
|
475 |
+
</div>
|
476 |
+
</div>
|
477 |
+
|
478 |
+
<h3 class="text-2xl font-semibold mb-4">Real-World Applications</h3>
|
479 |
+
|
480 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
|
481 |
+
<div class="bg-purple-50 p-4 rounded-lg hover:shadow-md transition-all duration-300">
|
482 |
+
<div class="text-purple-600 text-xl mb-2"><i class="fas fa-code"></i></div>
|
483 |
+
<h4 class="font-bold mb-1">IDE Integration</h4>
|
484 |
+
<p>Accessing code repositories to assist with development, providing context-aware suggestions, and helping navigate complex codebases.</p>
|
485 |
+
</div>
|
486 |
+
|
487 |
+
<div class="bg-purple-50 p-4 rounded-lg hover:shadow-md transition-all duration-300">
|
488 |
+
<div class="text-purple-600 text-xl mb-2"><i class="fas fa-building"></i></div>
|
489 |
+
<h4 class="font-bold mb-1">Enterprise Data</h4>
|
490 |
+
<p>Extracting information from company documents and internal knowledge bases while maintaining security and access controls.</p>
|
491 |
+
</div>
|
492 |
+
|
493 |
+
<div class="bg-purple-50 p-4 rounded-lg hover:shadow-md transition-all duration-300">
|
494 |
+
<div class="text-purple-600 text-xl mb-2"><i class="fas fa-database"></i></div>
|
495 |
+
<h4 class="font-bold mb-1">Knowledge Management</h4>
|
496 |
+
<p>Collecting data from different sources to provide a unified view, enabling AI to synthesize information across repositories.</p>
|
497 |
+
</div>
|
498 |
+
</div>
|
499 |
+
|
500 |
+
<div class="mt-6 bg-purple-50 p-5 rounded-lg border-l-4 border-purple-500">
|
501 |
+
<h4 class="font-bold text-lg mb-2">MCP Ecosystem</h4>
|
502 |
+
<p class="text-lg">
|
503 |
+
The MCP ecosystem is growing rapidly with pre-built servers already available for many popular services including Google Drive, Slack, GitHub, Git, Postgres, and Puppeteer. Major companies like Block and Apollo have already integrated MCP into their systems, demonstrating its enterprise readiness.
|
504 |
+
</p>
|
505 |
+
<p class="mt-3">
|
506 |
+
As the protocol matures, we can expect to see an explosion of MCP servers for various data sources, making it increasingly easy for AI systems to access the information they need in a standardized way.
|
507 |
+
</p>
|
508 |
+
</div>
|
509 |
+
|
510 |
+
<div class="mt-6 bg-indigo-50 p-5 rounded-lg border-l-4 border-indigo-500">
|
511 |
+
<h4 class="font-bold text-lg mb-2">Historical Context</h4>
|
512 |
+
<p>The Model Context Protocol was launched by Anthropic in November 2024, marking a significant step forward in standardizing how AI systems access external data. It represents a shift from the ad-hoc integrations of early AI systems toward a more structured, interoperable approach to AI-data connectivity.</p>
|
513 |
+
</div>
|
514 |
+
</div>
|
515 |
+
</section>
|
516 |
+
|
517 |
+
<div class="section-divider"></div>
|
518 |
+
|
519 |
+
<!-- A2A Section -->
|
520 |
+
<section id="a2a" class="mb-16">
|
521 |
+
<h2 class="text-3xl font-bold mb-6 gradient-text">Agent-to-Agent (A2A): Enabling AI Collaboration</h2>
|
522 |
+
|
523 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
524 |
+
<h3 class="text-2xl font-semibold mb-4">Basic Concept: What is A2A?</h3>
|
525 |
+
|
526 |
+
<p class="mb-4 text-lg">
|
527 |
+
The Agent-to-Agent (A2A) protocol is an open standard developed by Google in April 2025 that enables communication between different AI agents, regardless of which framework or vendor created them. A2A facilitates secure, standardized communication between independent AI systems, allowing them to collaborate on complex tasks.
|
528 |
+
</p>
|
529 |
+
|
530 |
+
<div class="bg-pink-50 p-6 rounded-lg mb-6 border-l-4 border-pink-500">
|
531 |
+
<h4 class="text-xl font-bold mb-3">Analogy: The Universal Phone Network</h4>
|
532 |
+
<p class="text-lg">
|
533 |
+
Think of A2A as the cellular network of the AI world. Just as phones from different manufacturers—iPhones, Samsung, Xiaomi—can all communicate with each other through a standardized cellular protocol, A2A allows AI agents built by different companies and frameworks to seamlessly communicate with one another.
|
534 |
+
</p>
|
535 |
+
<p class="text-lg mt-3">
|
536 |
+
This universal communication layer means that specialized AI agents can work together regardless of who built them or what underlying technology they use. Just as you don't need to worry about whether your friend has the same phone brand when calling them, with A2A, AI systems don't need to be built on the same framework to collaborate effectively.
|
537 |
+
</p>
|
538 |
+
</div>
|
539 |
+
|
540 |
+
<h3 class="text-2xl font-semibold mb-4">How A2A Works</h3>
|
541 |
+
|
542 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
543 |
+
<div>
|
544 |
+
<h4 class="text-lg font-semibold mb-2">Key Components:</h4>
|
545 |
+
<ol class="list-decimal pl-6 space-y-3">
|
546 |
+
<li class="text-lg">
|
547 |
+
<strong>Agent Cards:</strong> Public metadata files that describe an agent's capabilities, skills, and endpoint URL, enabling discovery and interaction
|
548 |
+
</li>
|
549 |
+
<li class="text-lg">
|
550 |
+
<strong>A2A Server:</strong> An agent that implements the A2A protocol methods and can receive and process requests from other agents
|
551 |
+
</li>
|
552 |
+
<li class="text-lg">
|
553 |
+
<strong>A2A Client:</strong> An application or agent that consumes A2A services by sending requests to A2A servers
|
554 |
+
</li>
|
555 |
+
<li class="text-lg">
|
556 |
+
<strong>Tasks:</strong> Work units that progress through different states (submitted, working, completed, etc.) as they're processed by agents
|
557 |
+
</li>
|
558 |
+
<li class="text-lg">
|
559 |
+
<strong>Messages:</strong> Communication turns containing various content types including text, structured data, forms, and media
|
560 |
+
</li>
|
561 |
+
</ol>
|
562 |
+
</div>
|
563 |
+
|
564 |
+
<div class="bg-white rounded-lg shadow-md p-4">
|
565 |
+
<h4 class="text-lg font-semibold mb-2">Visual Representation:</h4>
|
566 |
+
<div class="diagram bg-pink-50 p-4 rounded-lg">
|
567 |
+
<pre class="code-block text-sm">
|
568 |
+
┌───────────────┐ ┌───────────────┐
|
569 |
+
│ │ │ │
|
570 |
+
│ Agent A │ │ Agent B │
|
571 |
+
│ (LangChain) │ │ (CrewAI) │
|
572 |
+
│ │ │ │
|
573 |
+
└───────┬───────┘ └───────┬───────┘
|
574 |
+
│ │
|
575 |
+
│ │
|
576 |
+
│ │
|
577 |
+
│ │
|
578 |
+
▼ ▼
|
579 |
+
┌───────────────┐ ┌───────────────┐
|
580 |
+
│ │ A2A │ │
|
581 |
+
│ A2A Client │◄────Protocol─────►│ A2A Server │
|
582 |
+
│ │ │ │
|
583 |
+
└───────────────┘ └───────────────┘
|
584 |
+
▲
|
585 |
+
│
|
586 |
+
│
|
587 |
+
│
|
588 |
+
┌──────┴──────┐
|
589 |
+
│ │
|
590 |
+
│ Agent Card │
|
591 |
+
│ │
|
592 |
+
└─────────────┘</pre>
|
593 |
+
</div>
|
594 |
+
</div>
|
595 |
+
</div>
|
596 |
+
|
597 |
+
<h3 class="text-2xl font-semibold mb-4">Technical Implementation</h3>
|
598 |
+
|
599 |
+
<p class="mb-4 text-lg">
|
600 |
+
The technical implementation of A2A involves several key components that work together to enable seamless agent communication:
|
601 |
+
</p>
|
602 |
+
|
603 |
+
<div class="grid grid-cols-1 gap-6 mb-6">
|
604 |
+
<div class="bg-gray-100 p-4 rounded-lg overflow-x-auto shadow-inner">
|
605 |
+
<h4 class="font-bold mb-2">Agent Card Example (/.well-known/agent.json):</h4>
|
606 |
+
<pre class="code-block text-sm">
|
607 |
+
{
|
608 |
+
"name": "Travel Planning Agent",
|
609 |
+
"version": "1.0.0",
|
610 |
+
"description": "An agent that helps plan travel itineraries",
|
611 |
+
"endpoint": "https://travel-agent.example.com/a2a",
|
612 |
+
"capabilities": ["streaming", "pushNotifications"],
|
613 |
+
"auth": {
|
614 |
+
"type": "bearer"
|
615 |
+
},
|
616 |
+
"skills": [
|
617 |
+
{
|
618 |
+
"name": "flight_search",
|
619 |
+
"description": "Search for flights between airports on specific dates"
|
620 |
+
},
|
621 |
+
{
|
622 |
+
"name": "hotel_booking",
|
623 |
+
"description": "Find and book hotels in various destinations"
|
624 |
+
}
|
625 |
+
]
|
626 |
+
}</pre>
|
627 |
+
</div>
|
628 |
+
|
629 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
630 |
+
<div class="bg-gray-100 p-4 rounded-lg overflow-x-auto shadow-inner">
|
631 |
+
<h4 class="font-bold mb-2">A2A Task Request Example:</h4>
|
632 |
+
<pre class="code-block text-sm">
|
633 |
+
POST /a2a/tasks/send HTTP/1.1
|
634 |
+
Content-Type: application/json
|
635 |
+
|
636 |
+
{
|
637 |
+
"taskId": "task_12345",
|
638 |
+
"message": {
|
639 |
+
"role": "user",
|
640 |
+
"parts": [
|
641 |
+
{
|
642 |
+
"text": "I need to plan a trip to Goa next month"
|
643 |
+
}
|
644 |
+
]
|
645 |
+
}
|
646 |
+
}</pre>
|
647 |
+
</div>
|
648 |
+
|
649 |
+
<div class="bg-gray-100 p-4 rounded-lg overflow-x-auto shadow-inner">
|
650 |
+
<h4 class="font-bold mb-2">A2A Task Response Example:</h4>
|
651 |
+
<pre class="code-block text-sm">
|
652 |
+
HTTP/1.1 200 OK
|
653 |
+
Content-Type: application/json
|
654 |
+
|
655 |
+
{
|
656 |
+
"task": {
|
657 |
+
"taskId": "task_12345",
|
658 |
+
"status": "working",
|
659 |
+
"messages": [
|
660 |
+
{
|
661 |
+
"role": "user",
|
662 |
+
"parts": [
|
663 |
+
{
|
664 |
+
"text": "I need to plan a trip to Goa next month"
|
665 |
+
}
|
666 |
+
]
|
667 |
+
},
|
668 |
+
{
|
669 |
+
"role": "agent",
|
670 |
+
"parts": [
|
671 |
+
{
|
672 |
+
"text": "I'll help you plan your trip to Goa! To get started, could you please provide:"
|
673 |
+
},
|
674 |
+
{
|
675 |
+
"data": {
|
676 |
+
"form": {
|
677 |
+
"fields": [
|
678 |
+
{"name": "travel_dates", "label": "When exactly are you planning to travel?"},
|
679 |
+
{"name": "budget", "label": "What's your approximate budget?"},
|
680 |
+
{"name": "interests", "label": "What activities are you interested in?"}
|
681 |
+
]
|
682 |
+
}
|
683 |
+
}
|
684 |
+
}
|
685 |
+
]
|
686 |
+
}
|
687 |
+
]
|
688 |
+
}
|
689 |
+
}</pre>
|
690 |
+
</div>
|
691 |
+
</div>
|
692 |
+
</div>
|
693 |
+
|
694 |
+
<h3 class="text-2xl font-semibold mb-4">Advantages and Limitations</h3>
|
695 |
+
|
696 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
697 |
+
<div class="bg-green-50 p-5 rounded-lg border border-green-200 hover:shadow-md transition-all duration-300">
|
698 |
+
<h4 class="font-bold text-lg mb-2 text-green-800">Advantages</h4>
|
699 |
+
<ul class="list-disc pl-5 space-y-2">
|
700 |
+
<li><strong>Framework-agnostic:</strong> Works across different AI frameworks and platforms</li>
|
701 |
+
<li><strong>Rich communication:</strong> Supports text, forms, files, audio/video, and structured data</li>
|
702 |
+
<li><strong>Enterprise-ready:</strong> Secure, cross-organizational collaboration with authentication</li>
|
703 |
+
<li><strong>Capability discovery:</strong> Agents can advertise their abilities through Agent Cards</li>
|
704 |
+
<li><strong>Real-time updates:</strong> Streaming support for complex, long-running tasks</li>
|
705 |
+
<li><strong>Standardized protocol:</strong> Consistent implementation across different systems</li>
|
706 |
+
</ul>
|
707 |
+
</div>
|
708 |
+
|
709 |
+
<div class="bg-red-50 p-5 rounded-lg border border-red-200 hover:shadow-md transition-all duration-300">
|
710 |
+
<h4 class="font-bold text-lg mb-2 text-red-800">Limitations</h4>
|
711 |
+
<ul class="list-disc pl-5 space-y-2">
|
712 |
+
<li><strong>Complex implementation:</strong> More involved setup compared to simpler protocols</li>
|
713 |
+
<li><strong>Nascent ecosystem:</strong> Still early in adoption cycle with evolving standards</li>
|
714 |
+
<li><strong>Higher overhead:</strong> Requires more infrastructure and computational resources</li>
|
715 |
+
<li><strong>Coordination challenges:</strong> Managing complex multi-agent workflows</li>
|
716 |
+
<li><strong>Security considerations:</strong> Requires careful implementation of authentication</li>
|
717 |
+
</ul>
|
718 |
+
</div>
|
719 |
+
</div>
|
720 |
+
|
721 |
+
<h3 class="text-2xl font-semibold mb-4">Real-World Applications</h3>
|
722 |
+
|
723 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
|
724 |
+
<div class="bg-pink-50 p-4 rounded-lg hover:shadow-md transition-all duration-300">
|
725 |
+
<div class="text-pink-600 text-xl mb-2"><i class="fas fa-users"></i></div>
|
726 |
+
<h4 class="font-bold mb-1">Multi-Agent Systems</h4>
|
727 |
+
<p>Dividing complex tasks between multiple specialized agents, allowing each to focus on their area of expertise while collaborating on the overall solution.</p>
|
728 |
+
</div>
|
729 |
+
|
730 |
+
<div class="bg-pink-50 p-4 rounded-lg hover:shadow-md transition-all duration-300">
|
731 |
+
<div class="text-pink-600 text-xl mb-2"><i class="fas fa-building"></i></div>
|
732 |
+
<h4 class="font-bold mb-1">Cross-Organization</h4>
|
733 |
+
<p>Enabling secure collaboration between AI agents from different companies or departments, while maintaining appropriate access controls and data privacy.</p>
|
734 |
+
</div>
|
735 |
+
|
736 |
+
<div class="bg-pink-50 p-4 rounded-lg hover:shadow-md transition-all duration-300">
|
737 |
+
<div class="text-pink-600 text-xl mb-2"><i class="fas fa-project-diagram"></i></div>
|
738 |
+
<h4 class="font-bold mb-1">Workflow Automation</h4>
|
739 |
+
<p>Automating complex business processes by coordinating specialized agents that handle different aspects of the workflow, from data processing to decision-making.</p>
|
740 |
+
</div>
|
741 |
+
</div>
|
742 |
+
|
743 |
+
<div class="mt-6 bg-pink-50 p-5 rounded-lg border-l-4 border-pink-500">
|
744 |
+
<h4 class="font-bold text-lg mb-2">A2A Support for Major Frameworks</h4>
|
745 |
+
<p class="text-lg">
|
746 |
+
A2A protocol is already supported by major AI frameworks including LangGraph, CrewAI, Semantic Kernel, Marvin, Genkit, and LlamaIndex. This widespread adoption makes it easier for developers to build interoperable multi-agent systems without worrying about compatibility issues.
|
747 |
+
</p>
|
748 |
+
<p class="mt-3">
|
749 |
+
As the protocol continues to mature, we can expect to see even more frameworks and platforms adding A2A support, further expanding the ecosystem of collaborative AI agents.
|
750 |
+
</p>
|
751 |
+
</div>
|
752 |
+
|
753 |
+
<div class="mt-6 bg-indigo-50 p-5 rounded-lg border-l-4 border-indigo-500">
|
754 |
+
<h4 class="font-bold text-lg mb-2">Historical Context</h4>
|
755 |
+
<p>The Agent-to-Agent protocol was launched by Google in April 2025 at Google Cloud Next, representing the next evolutionary step in AI system integration. While Function Calling enabled tool use and MCP standardized data access, A2A completes the picture by enabling AI systems to work together in coordinated teams, much like human specialists collaborate on complex projects.</p>
|
756 |
+
</div>
|
757 |
+
</div>
|
758 |
+
</section>
|
759 |
+
|
760 |
+
<div class="section-divider"></div>
|
761 |
+
|
762 |
+
<!-- Comparison Section -->
|
763 |
+
<section id="comparison" class="mb-16">
|
764 |
+
<h2 class="text-3xl font-bold mb-6 gradient-text">Comparison: Understanding the Protocol Ecosystem</h2>
|
765 |
+
|
766 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
767 |
+
<div class="overflow-x-auto">
|
768 |
+
<table class="w-full text-left border-collapse shadow-lg">
|
769 |
+
<thead>
|
770 |
+
<tr class="bg-gradient-to-r from-blue-100 via-purple-100 to-pink-100">
|
771 |
+
<th class="p-4 border border-gray-300">Feature</th>
|
772 |
+
<th class="p-4 border border-gray-300 text-blue-700">Function Calling</th>
|
773 |
+
<th class="p-4 border border-gray-300 text-purple-700">MCP</th>
|
774 |
+
<th class="p-4 border border-gray-300 text-pink-700">A2A</th>
|
775 |
+
</tr>
|
776 |
+
</thead>
|
777 |
+
<tbody>
|
778 |
+
<tr class="hover:bg-gray-50 transition-colors">
|
779 |
+
<td class="p-4 border border-gray-300 font-semibold bg-gray-50">Primary Purpose</td>
|
780 |
+
<td class="p-4 border border-gray-300">Tool usage and external function execution</td>
|
781 |
+
<td class="p-4 border border-gray-300">Standardized data access and retrieval</td>
|
782 |
+
<td class="p-4 border border-gray-300">Agent-to-agent communication and collaboration</td>
|
783 |
+
</tr>
|
784 |
+
<tr class="hover:bg-gray-50 transition-colors">
|
785 |
+
<td class="p-4 border border-gray-300 font-semibold bg-gray-50">Developed By</td>
|
786 |
+
<td class="p-4 border border-gray-300">OpenAI (June 2023), later adopted by Anthropic and others</td>
|
787 |
+
<td class="p-4 border border-gray-300">Anthropic (November 2024)</td>
|
788 |
+
<td class="p-4 border border-gray-300">Google (April 2025)</td>
|
789 |
+
</tr>
|
790 |
+
<tr class="hover:bg-gray-50 transition-colors">
|
791 |
+
<td class="p-4 border border-gray-300 font-semibold bg-gray-50">Architecture</td>
|
792 |
+
<td class="p-4 border border-gray-300">Direct model-to-function integration</td>
|
793 |
+
<td class="p-4 border border-gray-300">Client-server architecture</td>
|
794 |
+
<td class="p-4 border border-gray-300">Distributed agent-to-agent network</td>
|
795 |
+
</tr>
|
796 |
+
<tr class="hover:bg-gray-50 transition-colors">
|
797 |
+
<td class="p-4 border border-gray-300 font-semibold bg-gray-50">Standardization</td>
|
798 |
+
<td class="p-4 border border-gray-300">Limited - Vendor-specific implementations</td>
|
799 |
+
<td class="p-4 border border-gray-300">High - Open protocol with consistent standards</td>
|
800 |
+
<td class="p-4 border border-gray-300">High - Open protocol with formal specification</td>
|
801 |
+
</tr>
|
802 |
+
<tr class="hover:bg-gray-50 transition-colors">
|
803 |
+
<td class="p-4 border border-gray-300 font-semibold bg-gray-50">Communication</td>
|
804 |
+
<td class="p-4 border border-gray-300">One-way (model identifies and calls functions)</td>
|
805 |
+
<td class="p-4 border border-gray-300">Two-way (client-server interaction)</td>
|
806 |
+
<td class="p-4 border border-gray-300">Multi-directional (agent network communication)</td>
|
807 |
+
</tr>
|
808 |
+
<tr class="hover:bg-gray-50 transition-colors">
|
809 |
+
<td class="p-4 border border-gray-300 font-semibold bg-gray-50">Discovery</td>
|
810 |
+
<td class="p-4 border border-gray-300">Not built-in (functions must be pre-defined)</td>
|
811 |
+
<td class="p-4 border border-gray-300">Via MCP servers and service discovery</td>
|
812 |
+
<td class="p-4 border border-gray-300">Via Agent Cards and capability advertising</td>
|
813 |
+
</tr>
|
814 |
+
<tr class="hover:bg-gray-50 transition-colors">
|
815 |
+
<td class="p-4 border border-gray-300 font-semibold bg-gray-50">Implementation Complexity</td>
|
816 |
+
<td class="p-4 border border-gray-300">Low - Simple JSON schema definitions</td>
|
817 |
+
<td class="p-4 border border-gray-300">Medium - Requires server setup and configuration</td>
|
818 |
+
<td class="p-4 border border-gray-300">High - Involves complex agent coordination</td>
|
819 |
+
</tr>
|
820 |
+
<tr class="hover:bg-gray-50 transition-colors">
|
821 |
+
<td class="p-4 border border-gray-300 font-semibold bg-gray-50">Best For</td>
|
822 |
+
<td class="p-4 border border-gray-300">Simple tool integration and single-agent tasks</td>
|
823 |
+
<td class="p-4 border border-gray-300">Enterprise data access and knowledge retrieval</td>
|
824 |
+
<td class="p-4 border border-gray-300">Complex multi-agent systems and workflows</td>
|
825 |
+
</tr>
|
826 |
+
</tbody>
|
827 |
+
</table>
|
828 |
+
</div>
|
829 |
+
|
830 |
+
<h3 class="text-2xl font-semibold mt-8 mb-4">Evolution Timeline</h3>
|
831 |
+
|
832 |
+
<div class="relative bg-gray-100 p-4 rounded-lg my-6">
|
833 |
+
<div class="h-2 bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500 rounded-full mb-6"></div>
|
834 |
+
|
835 |
+
<div class="grid grid-cols-3 gap-4">
|
836 |
+
<div class="text-center">
|
837 |
+
<div class="bg-blue-100 rounded-full h-12 w-12 flex items-center justify-center mx-auto mb-2">
|
838 |
+
<i class="fas fa-wrench text-blue-600"></i>
|
839 |
+
</div>
|
840 |
+
<h4 class="font-bold mb-1">Function Calling</h4>
|
841 |
+
<p class="text-sm">Basic tool usage</p>
|
842 |
+
<p class="text-xs text-gray-500">(Launched June 2023)</p>
|
843 |
+
</div>
|
844 |
+
|
845 |
+
<div class="text-center">
|
846 |
+
<div class="bg-purple-100 rounded-full h-12 w-12 flex items-center justify-center mx-auto mb-2">
|
847 |
+
<i class="fas fa-database text-purple-600"></i>
|
848 |
+
</div>
|
849 |
+
<h4 class="font-bold mb-1">MCP</h4>
|
850 |
+
<p class="text-sm">Standardized data access</p>
|
851 |
+
<p class="text-xs text-gray-500">(Launched Nov 2024)</p>
|
852 |
+
</div>
|
853 |
+
|
854 |
+
<div class="text-center">
|
855 |
+
<div class="bg-pink-100 rounded-full h-12 w-12 flex items-center justify-center mx-auto mb-2">
|
856 |
+
<i class="fas fa-comments text-pink-600"></i>
|
857 |
+
</div>
|
858 |
+
<h4 class="font-bold mb-1">A2A</h4>
|
859 |
+
<p class="text-sm">Agent communication</p>
|
860 |
+
<p class="text-xs text-gray-500">(Launched April 2025)</p>
|
861 |
+
</div>
|
862 |
+
</div>
|
863 |
+
</div>
|
864 |
+
|
865 |
+
<h3 class="text-2xl font-semibold mb-4">How They Work Together</h3>
|
866 |
+
|
867 |
+
<p class="mb-4 text-lg">
|
868 |
+
These three technologies are complementary rather than competitive - they don't replace each other but instead work together. In fact, a sophisticated AI system might leverage all three protocols simultaneously to achieve maximum capability:
|
869 |
+
</p>
|
870 |
+
|
871 |
+
<div class="bg-gradient-to-r from-blue-50 via-purple-50 to-pink-50 p-6 rounded-lg mb-6 shadow-md">
|
872 |
+
<h4 class="text-xl font-bold mb-3">Complementary Nature</h4>
|
873 |
+
<ul class="list-disc pl-6 space-y-2 text-lg">
|
874 |
+
<li><strong>Function Calling</strong> provides the basic mechanics for a single agent to use tools and APIs, forming the foundation of AI capability</li>
|
875 |
+
<li><strong>MCP</strong> standardizes how agents access external data sources, enabling consistent information retrieval across different repositories</li>
|
876 |
+
<li><strong>A2A</strong> enables those agents to communicate with other specialized agents, creating collaborative networks of AI systems</li>
|
877 |
+
</ul>
|
878 |
+
|
879 |
+
<div class="mt-6">
|
880 |
+
<h5 class="font-semibold mb-2">Example Integration:</h5>
|
881 |
+
<div class="diagram bg-white p-4 rounded-lg">
|
882 |
+
<pre class="code-block text-sm">
|
883 |
+
┌───────────────────────────────────────────────────────────┐
|
884 |
+
│ User Request │
|
885 |
+
└───────────────────────┬───────────────────────────────────┘
|
886 |
+
│
|
887 |
+
▼
|
888 |
+
┌───────────────────────────────────────────────────────────┐
|
889 |
+
│ Primary Agent │
|
890 |
+
│ │
|
891 |
+
│ ┌─────────────────┐ ┌────────────────┐ │
|
892 |
+
│ │ Function Calling│ │ MCP │ │
|
893 |
+
│ │ (Tool Use) │ │ (Data Access) │ │
|
894 |
+
│ └─────────────────┘ └────────────────┘ │
|
895 |
+
└──────────────────────────┬────────────────────────────────┘
|
896 |
+
│
|
897 |
+
│ A2A Protocol
|
898 |
+
▼
|
899 |
+
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
|
900 |
+
│ │ │ │ │ │
|
901 |
+
│ Specialist │ │ Specialist │ │ Specialist │
|
902 |
+
│ Agent A │ │ Agent B │ │ Agent C │
|
903 |
+
│ │ │ │ │ │
|
904 |
+
└─────────────────┘ └─────────────────┘ └─────────────────┘</pre>
|
905 |
+
</div>
|
906 |
+
</div>
|
907 |
+
</div>
|
908 |
+
|
909 |
+
<div class="mt-8 bg-indigo-50 p-6 rounded-lg border-l-4 border-indigo-500">
|
910 |
+
<h4 class="text-xl font-bold mb-3">The Future of AI Integration</h4>
|
911 |
+
<p class="text-lg">
|
912 |
+
As these protocols continue to mature and gain wider adoption, we're witnessing the emergence of a new paradigm in AI system design. Rather than monolithic models trying to do everything, we're moving toward ecosystems of specialized AI agents that can seamlessly work together through standardized protocols.
|
913 |
+
</p>
|
914 |
+
<p class="text-lg mt-3">
|
915 |
+
This shift mirrors how human organizations work - with specialists in different domains collaborating to solve complex problems. The combination of Function Calling, MCP, and A2A creates the foundation for truly capable AI systems that can understand user needs, access relevant information, and coordinate specialized expertise to deliver comprehensive solutions.
|
916 |
+
</p>
|
917 |
+
</div>
|
918 |
+
</div>
|
919 |
+
</section>
|
920 |
+
|
921 |
+
<div class="section-divider"></div>
|
922 |
+
|
923 |
+
<!-- Real-World Examples Section -->
|
924 |
+
<section id="examples" class="mb-16">
|
925 |
+
<h2 class="text-3xl font-bold mb-6 gradient-text">Real-World Examples: Practical Applications in Action</h2>
|
926 |
+
|
927 |
+
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
|
928 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
929 |
+
<!-- Function Calling Example -->
|
930 |
+
<div class="bg-blue-50 p-6 rounded-xl">
|
931 |
+
<div class="text-blue-600 text-3xl mb-4"><i class="fas fa-calendar-check"></i></div>
|
932 |
+
<h3 class="text-xl font-bold mb-3">Function Calling Example</h3>
|
933 |
+
<h4 class="font-semibold mb-2">Meeting Scheduler</h4>
|
934 |
+
|
935 |
+
<div class="bg-white rounded-lg p-4 mb-4">
|
936 |
+
<p class="italic mb-2">User asks:</p>
|
937 |
+
<p class="bg-gray-100 p-3 rounded">"Schedule a meeting with the marketing team next Tuesday at 2 PM about the new campaign."</p>
|
938 |
+
</div>
|
939 |
+
|
940 |
+
<div class="bg-blue-100 p-4 rounded-lg mb-4">
|
941 |
+
<p class="font-semibold mb-1">AI identifies:</p>
|
942 |
+
<ul class="list-disc pl-5 space-y-1">
|
943 |
+
<li>Need to create calendar event</li>
|
944 |
+
<li>Calls <code>create_meeting</code> function</li>
|
945 |
+
<li>Passes attendees, time, topic details</li>
|
946 |
+
</ul>
|
947 |
+
</div>
|
948 |
+
|
949 |
+
<div class="bg-white rounded-lg p-4">
|
950 |
+
<p class="italic mb-2">AI responds:</p>
|
951 |
+
<p class="bg-gray-100 p-3 rounded">"I've scheduled a meeting with the marketing team for Tuesday, May 3rd at 2:00 PM titled 'New Campaign Discussion'. Calendar invites have been sent to all team members."</p>
|
952 |
+
</div>
|
953 |
+
</div>
|
954 |
+
|
955 |
+
<!-- MCP Example -->
|
956 |
+
<div class="bg-purple-50 p-6 rounded-xl">
|
957 |
+
<div class="text-purple-600 text-3xl mb-4"><i class="fas fa-code-branch"></i></div>
|
958 |
+
<h3 class="text-xl font-bold mb-3">MCP Example</h3>
|
959 |
+
<h4 class="font-semibold mb-2">Code Assistant</h4>
|
960 |
+
|
961 |
+
<div class="bg-white rounded-lg p-4 mb-4">
|
962 |
+
<p class="italic mb-2">User asks:</p>
|
963 |
+
<p class="bg-gray-100 p-3 rounded">"Can you help me understand how the authentication system works in our codebase? I'm specifically looking for how password reset is handled."</p>
|
964 |
+
</div>
|
965 |
+
|
966 |
+
<div class="bg-purple-100 p-4 rounded-lg mb-4">
|
967 |
+
<p class="font-semibold mb-1">AI uses MCP to:</p>
|
968 |
+
<ul class="list-disc pl-5 space-y-1">
|
969 |
+
<li>Connect to GitHub via MCP server</li>
|
970 |
+
<li>Search repository for auth code</li>
|
971 |
+
<li>Access password reset implementation</li>
|
972 |
+
<li>Read documentation and tests</li>
|
973 |
+
</ul>
|
974 |
+
</div>
|
975 |
+
|
976 |
+
<div class="bg-white rounded-lg p-4">
|
977 |
+
<p class="italic mb-2">AI responds:</p>
|
978 |
+
<p class="bg-gray-100 p-3 rounded">"I've analyzed your codebase. The password reset workflow is implemented in `auth/password_reset.py`. It uses a token-based system with a 24-hour expiry. Here's how it works: [detailed explanation with code references]"</p>
|
979 |
+
</div>
|
980 |
+
</div>
|
981 |
+
|
982 |
+
<!-- A2A Example -->
|
983 |
+
<div class="bg-pink-50 p-6 rounded-xl">
|
984 |
+
<div class="text-pink-600 text-3xl mb-4"><i class="fas fa-plane"></i></div>
|
985 |
+
<h3 class="text-xl font-bold mb-3">A2A Example</h3>
|
986 |
+
<h4 class="font-semibold mb-2">Travel Planning System</h4>
|
987 |
+
|
988 |
+
<div class="bg-white rounded-lg p-4 mb-4">
|
989 |
+
<p class="italic mb-2">User asks:</p>
|
990 |
+
<p class="bg-gray-100 p-3 rounded">"I want to plan a 5-day trip to Kerala next month for my anniversary. We love nature and good food. Budget is around ₹50,000."</p>
|
991 |
+
</div>
|
992 |
+
|
993 |
+
<div class="bg-pink-100 p-4 rounded-lg mb-4">
|
994 |
+
<p class="font-semibold mb-1">Multi-agent collaboration:</p>
|
995 |
+
<ul class="list-disc pl-5 space-y-1">
|
996 |
+
<li>Primary agent uses A2A to connect to:</li>
|
997 |
+
<li>Travel Agent (flight/hotel options)</li>
|
998 |
+
<li>Local Expert Agent (Kerala activities)</li>
|
999 |
+
<li>Budget Manager Agent (cost optimization)</li>
|
1000 |
+
<li>Agents coordinate via A2A protocol</li>
|
1001 |
+
</ul>
|
1002 |
+
</div>
|
1003 |
+
|
1004 |
+
<div class="bg-white rounded-lg p-4">
|
1005 |
+
<p class="italic mb-2">Coordinated response:</p>
|
1006 |
+
<p class="bg-gray-100 p-3 rounded">"I've created a complete Kerala itinerary for your anniversary with flights from Delhi (₹12,000), boutique eco-resort in Munnar (₹20,000), guided nature walks, authentic Kerala cuisine experiences, and a romantic backwater cruise - all within your ₹50,000 budget. Would you like to see the day-by-day plan?"</p>
|
1007 |
+
</div>
|
1008 |
+
</div>
|
1009 |
+
</div>
|
1010 |
+
|
1011 |
+
<h3 class="text-2xl font-semibold mt-10 mb-4">Advanced Use Case: Integrating All Three</h3>
|
1012 |
+
|
1013 |
+
<div class="bg-gradient-to-r from-blue-50 via-purple-50 to-pink-50 p-6 rounded-xl">
|
1014 |
+
<h4 class="text-xl font-bold mb-3">Enterprise Knowledge Assistant</h4>
|
1015 |
+
|
1016 |
+
<div class="bg-white rounded-lg p-4 mb-6">
|
1017 |
+
<p class="italic mb-2">Executive asks:</p>
|
1018 |
+
<p class="bg-gray-100 p-3 rounded">"I need a comprehensive analysis of our Q1 sales performance compared to projections, with recommendations for Q2 strategy. Include relevant market trends and competitor analysis. Schedule a meeting with the sales directors to review your findings."</p>
|
1019 |
+
</div>
|
1020 |
+
|
1021 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
|
1022 |
+
<div class="bg-blue-100 p-4 rounded-lg">
|
1023 |
+
<p class="font-semibold mb-1">Function Calling Role:</p>
|
1024 |
+
<ul class="list-disc pl-5 space-y-1 text-sm">
|
1025 |
+
<li>Creates meeting invitation</li>
|
1026 |
+
<li>Generates PDF report</li>
|
1027 |
+
<li>Sends notifications</li>
|
1028 |
+
</ul>
|
1029 |
+
</div>
|
1030 |
+
|
1031 |
+
<div class="bg-purple-100 p-4 rounded-lg">
|
1032 |
+
<p class="font-semibold mb-1">MCP Role:</p>
|
1033 |
+
<ul class="list-disc pl-5 space-y-1 text-sm">
|
1034 |
+
<li>Accesses sales data from Salesforce</li>
|
1035 |
+
<li>Retrieves forecasts from internal systems</li>
|
1036 |
+
<li>Searches meeting records for context</li>
|
1037 |
+
</ul>
|
1038 |
+
</div>
|
1039 |
+
|
1040 |
+
<div class="bg-pink-100 p-4 rounded-lg">
|
1041 |
+
<p class="font-semibold mb-1">A2A Role:</p>
|
1042 |
+
<ul class="list-disc pl-5 space-y-1 text-sm">
|
1043 |
+
<li>Engages Data Analyst Agent for trends</li>
|
1044 |
+
<li>Consults Strategy Agent for recommendations</li>
|
1045 |
+
<li>Coordinates with Scheduling Agent</li>
|
1046 |
+
</ul>
|
1047 |
+
</div>
|
1048 |
+
</div>
|
1049 |
+
|
1050 |
+
<div class="bg-white rounded-lg p-4">
|
1051 |
+
<p class="italic mb-2">Integrated response:</p>
|
1052 |
+
<p class="bg-gray-100 p-3 rounded mb-2">"I've prepared a comprehensive Q1 sales analysis showing we exceeded targets in enterprise sales (112%) but underperformed in SMB sector (85%). Based on market analysis and competitor data, I've outlined three strategic recommendations for Q2.</p>
|
1053 |
+
<p class="bg-gray-100 p-3 rounded mb-2">A meeting is scheduled with all sales directors for Thursday at 10 AM, and I've attached the full report to the invitation. Would you like me to highlight any specific sections during the meeting?"</p>
|
1054 |
+
<p class="text-sm text-gray-600"><i class="fas fa-paperclip mr-1"></i> Q1_Sales_Analysis_Report.pdf</p>
|
1055 |
+
</div>
|
1056 |
+
</div>
|
1057 |
+
</div>
|
1058 |
+
</section>
|
1059 |
+
|
1060 |
+
|
1061 |
+
</main>
|
1062 |
+
|
1063 |
+
<!-- Footer Section -->
|
1064 |
+
<footer class="bg-gradient-to-r from-gray-900 via-indigo-900 to-gray-900 text-white py-12 px-4">
|
1065 |
+
<div class="container mx-auto">
|
1066 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-8">
|
1067 |
+
<div>
|
1068 |
+
<h3 class="text-2xl font-bold mb-4">AI Protocol Guide</h3>
|
1069 |
+
<p class="text-gray-300 mb-4">
|
1070 |
+
A comprehensive guide to understanding the revolutionary protocols that are transforming AI from simple chatbots into powerful digital assistants capable of real-world action.
|
1071 |
+
</p>
|
1072 |
+
<div class="flex space-x-4">
|
1073 |
+
<a href="#" class="text-gray-300 hover:text-white transition-colors" title="Follow us on Twitter" aria-label="Twitter"><i class="fab fa-twitter"></i><span class="sr-only">Twitter</span></a>
|
1074 |
+
<a href="#" class="text-gray-300 hover:text-white transition-colors" title="Connect on LinkedIn" aria-label="LinkedIn"><i class="fab fa-linkedin"></i><span class="sr-only">LinkedIn</span></a>
|
1075 |
+
<a href="#" class="text-gray-300 hover:text-white transition-colors" title="View source on GitHub" aria-label="GitHub"><i class="fab fa-github"></i><span class="sr-only">GitHub</span></a>
|
1076 |
+
</div>
|
1077 |
+
</div>
|
1078 |
+
|
1079 |
+
<div>
|
1080 |
+
<h3 class="text-xl font-semibold mb-4">Quick Links</h3>
|
1081 |
+
<ul class="space-y-2">
|
1082 |
+
<li><a href="#introduction" class="text-gray-300 hover:text-white transition-colors"><i class="fas fa-chevron-right mr-2 text-xs"></i>Introduction</a></li>
|
1083 |
+
<li><a href="#function-calling" class="text-gray-300 hover:text-white transition-colors"><i class="fas fa-chevron-right mr-2 text-xs"></i>Function Calling</a></li>
|
1084 |
+
<li><a href="#mcp" class="text-gray-300 hover:text-white transition-colors"><i class="fas fa-chevron-right mr-2 text-xs"></i>Model Context Protocol</a></li>
|
1085 |
+
<li><a href="#a2a" class="text-gray-300 hover:text-white transition-colors"><i class="fas fa-chevron-right mr-2 text-xs"></i>Agent-to-Agent Protocol</a></li>
|
1086 |
+
<li><a href="#comparison" class="text-gray-300 hover:text-white transition-colors"><i class="fas fa-chevron-right mr-2 text-xs"></i>Protocol Comparison</a></li>
|
1087 |
+
</ul>
|
1088 |
+
</div>
|
1089 |
+
|
1090 |
+
<div>
|
1091 |
+
<h3 class="text-xl font-semibold mb-4">Resources</h3>
|
1092 |
+
<ul class="space-y-2">
|
1093 |
+
<li><a href="https://platform.openai.com/docs/guides/function-calling" class="text-gray-300 hover:text-white transition-colors" target="_blank" rel="noopener"><i class="fas fa-external-link-alt mr-2 text-xs"></i>OpenAI Function Calling Docs</a></li>
|
1094 |
+
<li><a href="https://modelcontextprotocol.io" class="text-gray-300 hover:text-white transition-colors" target="_blank" rel="noopener"><i class="fas fa-external-link-alt mr-2 text-xs"></i>Model Context Protocol</a></li>
|
1095 |
+
<li><a href="https://github.com/google/A2A" class="text-gray-300 hover:text-white transition-colors" target="_blank" rel="noopener"><i class="fas fa-external-link-alt mr-2 text-xs"></i>A2A Protocol (GitHub)</a></li>
|
1096 |
+
</ul>
|
1097 |
+
</div>
|
1098 |
+
</div>
|
1099 |
+
|
1100 |
+
<div class="border-t border-gray-700 pt-8 text-center">
|
1101 |
+
<p class="text-gray-400">© 2025 AI Protocol Guide. All rights reserved.</p>
|
1102 |
+
<p class="text-gray-500 text-sm mt-2">Last updated: May 2025 | All protocol information verified with official documentation</p>
|
1103 |
+
<p class="text-indigo-400 font-semibold mt-3">Crafted by OEvortex</p>
|
1104 |
+
</div>
|
1105 |
+
</div>
|
1106 |
+
</footer>
|
1107 |
+
|
1108 |
+
<script>
|
1109 |
+
// Smooth scrolling for anchor links
|
1110 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
1111 |
+
anchor.addEventListener('click', function (e) {
|
1112 |
+
e.preventDefault();
|
1113 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
1114 |
+
behavior: 'smooth'
|
1115 |
+
});
|
1116 |
+
});
|
1117 |
+
});
|
1118 |
+
|
1119 |
+
// Highlight active section in navigation
|
1120 |
+
window.addEventListener('scroll', function() {
|
1121 |
+
const sections = document.querySelectorAll('main section');
|
1122 |
+
const navLinks = document.querySelectorAll('nav a');
|
1123 |
+
|
1124 |
+
let currentSection = '';
|
1125 |
+
|
1126 |
+
sections.forEach(section => {
|
1127 |
+
const sectionTop = section.offsetTop;
|
1128 |
+
const sectionHeight = section.clientHeight;
|
1129 |
+
|
1130 |
+
if (pageYOffset >= (sectionTop - 200)) {
|
1131 |
+
currentSection = section.getAttribute('id');
|
1132 |
+
}
|
1133 |
+
});
|
1134 |
+
|
1135 |
+
navLinks.forEach(link => {
|
1136 |
+
link.classList.remove('text-indigo-700', 'bg-indigo-100');
|
1137 |
+
if (link.getAttribute('href') === `#${currentSection}`) {
|
1138 |
+
link.classList.add('text-indigo-700', 'bg-indigo-100');
|
1139 |
+
}
|
1140 |
+
});
|
1141 |
+
});
|
1142 |
+
</script>
|
1143 |
+
</body>
|
1144 |
</html>
|