Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
Microsoft Teams A2A
[!WARNING] Deprecated — This package was originally in preview, but we have decided to stop maintaining it before General Availability. We recommend using the official A2A Python SDK instead, which provides better long-term support for Agent-to-Agent protocol integrations.
Agent-to-Agent (A2A) protocol support for Microsoft Teams AI applications. Enables Teams agents to communicate and collaborate with other AI agents using standardized protocols.
Installation
pip install microsoft-teams-a2a
Or if using uv:
uv add microsoft-teams-a2a
Usage
A2A Server (Expose Agent)
from microsoft_teams.apps import App
from microsoft_teams.a2a import A2APlugin, A2APluginOptions
from a2a.types import AgentCard, AgentCapabilities
app = App()
# Define agent card with capabilities
agent_card = AgentCard(
name="weather_agent",
description="An agent that can tell you the weather",
url="http://localhost:4000/a2a/",
version="0.0.1",
protocol_version="0.3.0",
capabilities=AgentCapabilities(),
default_input_modes=[],
default_output_modes=[]
)
a2a_server = A2APlugin(A2APluginOptions(agent_card=agent_card))
app = App(plugins=[a2a_server])
A2A Client (Use Other Agents)
from microsoft_teams.a2a import A2AClientPlugin, A2APluginUseParams
from microsoft_teams.ai import ChatPrompt
from microsoft_teams.openai import OpenAICompletionsAIModel
model = OpenAICompletionsAIModel(api_key="your-api-key", model="gpt-4")
# Connect to another A2A agent
a2a_client = A2AClientPlugin()
a2a_client.on_use_plugin(
A2APluginUseParams(
key="my-weather-agent",
base_url="http://localhost:4000/a2a",
card_url=".well-known/agent-card.json"
)
)
prompt = ChatPrompt(model, plugins=[a2a_client])
Metadata
Release files for microsoft-teams-a2a 2.0.0a78
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| microsoft_teams_a2a-2.0.0a78.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| microsoft_teams_a2a-2.0.0a78-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.4 kB
Release files / microsoft_teams_a2a-2.0.0a78.tar.gz
| Download URL | microsoft_teams_a2a-2.0.0a78.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9ea8fc36373b60ca0839cb35eb7f136bf7decb30e0e8b40ac863c9d1c2a03e9
|
|
BLAKE2b-256 checksum How to use checksums |
9896eb8abbe8ca76b561d37ca2c2383dd675cd10a1f17e19d7f0d683d3d2b1c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Release files / microsoft_teams_a2a-2.0.0a78-py3-none-any.whl
| Download URL | microsoft_teams_a2a-2.0.0a78-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5f8ec854a5fbaeb5a78dab4ba809e702de5bb10ed6ed4469e7d1453e04b1159
|
|
BLAKE2b-256 checksum How to use checksums |
df497ba99c6d3d8dc8915df66b09f622b449f96736b2fc79a11392190d3ce05f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|