Skip to main content

plugin that enables your teams agent to be used as an a2a agent

Project description

Microsoft Teams A2A

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])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microsoft_teams_a2a-2.0.0a50.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microsoft_teams_a2a-2.0.0a50-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file microsoft_teams_a2a-2.0.0a50.tar.gz.

File metadata

  • Download URL: microsoft_teams_a2a-2.0.0a50.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for microsoft_teams_a2a-2.0.0a50.tar.gz
Algorithm Hash digest
SHA256 3abca801e448259abcff22ce98732cb7183296d923be863e4d6e5c4f4260e3b9
MD5 f8465a23d7dcf804f335a17c18fe45d9
BLAKE2b-256 a85ddf7240a505c6c4ba6277da18e128ad6172318e4a5e3045d1170ab4401a3a

See more details on using hashes here.

File details

Details for the file microsoft_teams_a2a-2.0.0a50-py3-none-any.whl.

File metadata

File hashes

Hashes for microsoft_teams_a2a-2.0.0a50-py3-none-any.whl
Algorithm Hash digest
SHA256 2b63a3adcf8e8bc0d1c3e722b044c4030366b9052edfae319572960aca1a9ad9
MD5 9758944b77b7a9d133160483c692ad37
BLAKE2b-256 1bcf0ebd5c08799731491435980d138b7d5b39cc9e07a0939cb2cc4ba17b8597

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page