GUIDA TECNICA

Protocollo Agent2Agent (A2A)

The Agent2Agent (A2A) protocol is an open standard that lets AI agents built by different vendors on different frameworks find each other, describe what they can do, and hand tasks back and forth over ordinary web technologies.

Ascolta questa guidaNarrato dall'IA · ~3 min

In questa pagina4 minuti di lettura
  1. Panoramica
  2. Immersione profonda
  3. Implementazione nel mondo reale
  4. The Future of Agent2Agent (A2A) Protocol
  5. Metterlo in pratica
  6. Continua a esplorare
  7. Domande frequenti

Panoramica

It complements the Model Context Protocol: MCP connects an agent to tools and data, while A2A connects an agent to other agents.

Immersione profonda

Google announced A2A in April 2025 with a large group of technology partners. The project was later contributed to the Linux Foundation so that it could be governed in the open. The protocol builds on familiar standards: HTTP for transport, JSON-RPC 2.0 for message structure, and Server-Sent Events for streaming updates. Discovery starts with an Agent Card, a JSON document that an agent usually publishes at a well-known URL. It gives the agent's name, a description, its service endpoint, the skills it offers, the input and output types it accepts, and how clients should authenticate. A client agent reads the card to decide whether this remote agent suits the job. Work is organized around tasks. A client sends a message made of parts, which can be text, files or structured data. The remote agent can create a task that moves through defined states such as submitted, working, input-required, completed, failed or canceled. Results come back as artifacts. For work that takes minutes or hours, the client can stream progress or register a webhook for push notifications instead of holding a connection open. A2A treats remote agents as opaque. The client does not see the other agent's prompts, tools, memory or model, only what it advertises and returns. Vendors can therefore cooperate without exposing their internals. People often assume A2A and MCP compete. They answer different questions. MCP describes how an agent calls tools and reads resources, which are usually well-defined functions with structured inputs and outputs. A2A describes how an agent works with another autonomous agent that has its own reasoning and may need several exchanges to finish. A single system can use both. Another misconception is that A2A handles trust on its own. It declares how to authenticate, but organizations still have to decide which agents to trust and what to share with them.

Implementazione nel mondo reale

A company's travel assistant finds a partner airline's booking agent by reading that agent's Agent Card, sees that it offers a 'rebook flight' skill, and sends it a task instead of scraping the airline's website.

A hiring coordinator agent passes candidate sourcing to one vendor's recruiting agent and background checks to another's. It tracks each as a separate A2A task with its own status.

A long-running research task sent to a specialist agent returns 'input-required' partway through. The client agent asks the user to clarify and sends the answer back on the same task.

Inside one agent, MCP connects it to a database and a file store. A2A is what that same agent uses to delegate a subtask to a separately owned agent whose inner workings it cannot see.

The Future of Agent2Agent (A2A) Protocol

A2A is still relatively young, and its specification and SDKs have changed noticeably since launch. Adoption depends on whether enough vendors publish agents that are actually useful to call, and on whether registries and trust frameworks develop to help agents find reliable partners. Open questions include how to handle billing, reputation and accountability when one company's agent acts on another's instructions. It seems reasonable to expect A2A and MCP to be used side by side, while the details of how cross-organization agent networks will look in practice remain uncertain.

Metterlo in pratica

Perché è importante

  • Costo e budget. Le decisioni relative all'architettura determinano prestazioni e costi operativi per anni.
  • Decisioni più chiare. La formazione tecnica aiuta i team a scegliere lo stack giusto, non solo quello più nuovo.
  • Controllo di qualità. Migliori scelte ingegneristiche riducono gli incidenti legati all’affidabilità nella produzione.

Attenzione

  • L'ottimizzazione di un benchmark può nascondere debolezze di sistema più ampie.
  • I costi delle infrastrutture e della manutenzione sono spesso sottostimati.
  • Le lacune in termini di sicurezza e osservabilità possono aumentare man mano che i sistemi diventano più complessi.

Prossimi passi

  1. Definire obiettivi di latenza, qualità e costi prima dell'implementazione.
  2. Benchmark in condizioni di carico e dati realistiche.
  3. Monitoraggio dello strumento per errori, deriva e impatto sull'utente.
  4. Preparare percorsi di rollback e risposta agli incidenti prima della scalabilità.

Continua a esplorare

Newsletter gratuita

Ricevi il briefing quotidiano sull'IA

Tre storie verificate sull'IA ogni mattina nei giorni feriali, scritte in un inglese semplice. Gratuito per sempre, senza pubblicità.

Un'email ogni giorno feriale. Disiscriviti con un clic. Non vendiamo né condividiamo mai il tuo indirizzo.

Mettiti alla prova

Take the Agent2Agent (A2A) Protocol quiz

Feedback immediato su ogni risposta e un certificato condivisibile con un ID verificabile una volta superato un corso.

Inizia il quiz

Sostieni l'istruzione gratuita sull'IA. AI Understanding è un'organizzazione non profit 501(c)(3) — nessun annuncio, nessun paywall, mai. Fai una donazione

Domande frequenti

What is Agent2Agent (A2A) Protocol?

The Agent2Agent (A2A) protocol is an open standard that lets AI agents built by different vendors on different frameworks find each other, describe what they can do, and hand tasks back and forth over ordinary web technologies. It complements the Model Context Protocol: MCP connects an agent to tools and data, while A2A connects an agent to other agents.

Qual è lo scopo principale del protocollo A2A?

A2A standardizza la scoperta e lo scambio di attività tra agenti indipendenti, chiunque li abbia creati.

Come si relaziona A2A con MCP?

Risolvono problemi diversi e possono funzionare nello stesso sistema: accesso agli strumenti tramite MCP e collaborazione degli agenti tramite A2A.

Cos'è una carta agente?

Gli agenti client leggono la scheda agente per scoprire cosa può fare un agente remoto e come connettersi ad esso.

Su quali standard si basa A2A?

A2A utilizza deliberatamente standard web comuni per adattarsi alle infrastrutture esistenti.

Cosa significa lo stato dell'attività "input richiesto"?

L'attività viene sospesa finché il client non invia un messaggio di follow-up sulla stessa attività, spesso dopo aver chiesto all'utente.