Edit

Share via


A2A (Agent-to-Agent) Protocol

This page isn't available for C#.

Note

This package wraps the official A2A SDK for both server and client.

Note

This package wraps the official A2A SDK for both server and client.

A2A (Agent-to-Agent) is a protocol designed to enable agents to communicate and collaborate programmatically. This package allows you to integrate the A2A protocol into your Teams app, making your agent accessible to other A2A clients and enabling your app to interact with other A2A servers.

Install the package:

uv add microsoft-teams-a2a

Install the package:

npm install @microsoft/teams.a2a

What does this package do?

  • A2A Server: Enables your Teams agent to act as an A2A server, exposing its capabilities to other agents through the /a2a endpoint and serving an agent card at /a2a/.well-known/agent-card.json.
  • A2A Client: Allows your Teams app to proactively reach out to other A2A servers as a client, either through direct AgentManager usage or integrated with ChatPrompt for LLM-driven interactions.

High-level Architecture

A2A Server

alt-text for overview-1.png

A2A Client

alt-text for overview-2.png

Protocol Details

For detailed information about the A2A protocol, including agent card structure, message formats, and protocol specifications, see the official A2A Protocol Documentation.