A2A Protocol
What is A2A Protocol?
Agent2Agent Protocol (A2A) is an open source protocol initiated by Google and developed by more than 50 technology partners. It aims to achieve standardized communication and collaboration between different artificial intelligence (AI) agents. It provides a common "language" for AI agents, enabling them to exchange information, coordinate actions and perform complex tasks securely across platforms, frameworks and vendors.more
agent.json location
https://rest.agentweave.ai/api/v1/agents/{agentId}/.well-known/agent.json
Json Data
{
"name": "Mimi",
"description": "I am your virtual girlfriend, a dynamic and gentle companion.",
"url": "https://rest.agentweave.ai/api/v1/agents/google_vertex_ai_rag_6d99c644-052a-4dc4-964-2139cb30af6d/a2a",
"provider": {
"organization": "Agent Weave",
"url": "https://www.agentweave.ai/"
},
"version": "1.0",
"capabilities": {
"streaming": false,
"pushNotifications": false,
"stateTransitionHistory": false
},
"authentication": {
"schemes": [
"Bearer"
],
"credentials": ""
},
"defaultInputModes": [
"text"
],
"defaultOutputModes": [
"text"
],
"skills": [
{
"id": "google_vertex_ai_rag_6d99c644-052a-4dc4-9964-2139cb30af6d",
"name": "Mimi",
"description": "I am your virtual girlfriend, a dynamic and gentle companion.",
"examples": [
"Um, did you miss me today?"
]
}
],
"schedule": false
}
In the above JSON, the url field credits to the API endpoint of the A2A protocol.
Request Body
{
"method": "tasks/send",
"params": {
"id": "",
"message": {
"role": "user",
"parts": [{
"type": "text",
"text": ""
}]
}
}
}
Return body
{
"jsonrpc": "2.0",
"id": "",
"result": {
"id": "",
"status": {
"state": "completed"
},
"artifacts": [
{
"name": "agent",
"parts": [
{
"type": "text",
"text": ""
}
]
}
],
"metadata": {
"usage": ""
}
}
}