Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Microsoft Agents Hosting - Teams

PyPI version

Integration library for building Microsoft Teams agents using the Microsoft 365 Agents SDK. This library provides specialized handlers and utilities for Teams-specific functionality like messaging extensions, task modules, adaptive cards, and meeting events.

This library extends the core hosting capabilities with Teams-specific features. It handles Teams' unique interaction patterns like messaging extensions, tab applications, task modules, and meeting integrations. Think of it as the bridge that makes your agent "Teams-native" rather than just a generic chatbot.

This library is still in flux, as the interfaces to Teams continue to evolve.

What is this?

This library is part of the Microsoft 365 Agents SDK for Python - a comprehensive framework for building enterprise-grade conversational AI agents. The SDK enables developers to create intelligent agents that work across multiple platforms including Microsoft Teams, M365 Copilot, Copilot Studio, and web chat, with support for third-party integrations like Slack, Facebook Messenger, and Twilio.

Release Notes

Version Date Release Notes
1.7.0 2026-09-17 1.7.0 Release Notes
1.5.0 2026-08-26 1.5.0 Release Notes
1.4.0 2026-08-18 1.4.0 Release Notes
1.3.0 2026-07-30 1.3.0 Release Notes
1.2.0 2026-07-17 1.2.0 Release Notes
1.1.0 2026-06-19 1.1.0 Release Notes
1.0.0 2026-05-22 1.0.0 Release Notes
0.9.0 2026-04-15 0.9.0 Release Notes
0.8.0 2026-02-23 0.8.0 Release Notes
0.7.0 2026-01-21 0.7.0 Release Notes
0.6.1 2025-12-01 0.6.1 Release Notes
0.6.0 2025-11-18 0.6.0 Release Notes
0.5.0 2025-10-22 0.5.0 Release Notes

Packages Overview

We offer the following PyPI packages to create conversational experiences based on Agents:

Package Name PyPI Version Description
microsoft-agents-activity PyPI Types and validators implementing the Activity protocol spec.
microsoft-agents-hosting-core PyPI Core library for Microsoft Agents hosting.
microsoft-agents-hosting-aiohttp PyPI Configures aiohttp to run the Agent.
microsoft-agents-hosting-fastapi PyPI Configures fastapi to run the Agent.
microsoft-agents-hosting-msteams PyPI Provides classes to host an Agent for Teams.
microsoft-agents-hosting-dialogs PyPI Dialog system with waterfall dialogs, prompts, and multi-turn conversation management.
microsoft-agents-hosting-slack PyPI Provides classes to host an Agent for Slack.
microsoft-agents-storage-blob PyPI Extension to use Azure Blob as storage.
microsoft-agents-storage-cosmos PyPI Extension to use CosmosDB as storage.
microsoft-agents-authentication-msal PyPI MSAL-based authentication for Microsoft Agents.
microsoft-agents-authentication-entra-auth-sidecar PyPI Credential-free Entra ID Agent ID authentication via the sidecar.

Additionally we provide a Copilot Studio Client, to interact with Agents created in CopilotStudio:

Package Name PyPI Version Description
microsoft-agents-copilotstudio-client PyPI Direct to Engine client to interact with Agents created in CopilotStudio

Installation

pip install microsoft-agents-hosting-teams

Key Classes Reference

  • TeamsActivityHandler - Main handler class with Teams-specific event methods
  • TeamsInfo - Utility class for Teams operations (members, meetings, channels)
  • MessagingExtensionQuery/Response - Handle search and messaging extensions
  • TaskModuleRequest/Response - Interactive dialogs and forms
  • TabRequest/Response - Tab application interactions

Features Supported

✅ Messaging Extensions - Search and action-based extensions
✅ Task Modules - Interactive dialogs and forms
✅ Adaptive Cards - Rich card interactions
✅ Meeting Events - Start, end, participant changes
✅ Team Management - Member operations, channel messaging
✅ File Handling - Upload/download with consent flow
✅ Tab Apps - Personal and team tab interactions
✅ Proactive Messaging - Send messages to channels/users

Migration from Bot Framework

Bot Framework Teams Microsoft Agents Teams
TeamsActivityHandler TeamsActivityHandler
TeamsInfo TeamsInfo
on_teams_members_added on_teams_members_added_activity
MessagingExtensionQuery MessagingExtensionQuery
TaskModuleRequest TaskModuleRequest

Quick Links

Sample Applications

Name Description README
Quickstart Simplest agent Quickstart
Auto Sign In Simple OAuth agent using Graph and GitHub auto-signin
OBO Authorization OBO flow to access a Copilot Studio Agent obo-authorization
Semantic Kernel Integration A weather agent built with Semantic Kernel semantic-kernel-multiturn
Streaming Agent Streams OpenAI responses azure-ai-streaming
Copilot Studio Client Console app to consume a Copilot Studio Agent copilotstudio-client
Cards Agent Agent that uses rich cards to enhance conversation design cards

Metadata

Release files for microsoft-agents-hosting-teams 1.7.0.dev7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for microsoft-agents-hosting-teams 1.7.0.dev7
File Size Uploaded
microsoft_agents_hosting_teams-1.7.0.dev7.tar.gz 18.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for microsoft-agents-hosting-teams 1.7.0.dev7
File Interpreter ABI Platform
microsoft_agents_hosting_teams-1.7.0.dev7-py3-none-any.whl Python 3 none any Details

Total release size: 36.2 kB

Release files / microsoft_agents_hosting_teams-1.7.0.dev7.tar.gz

Download URL microsoft_agents_hosting_teams-1.7.0.dev7.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c6472ca0368d98d92d4daa09183c61663f45a40aecabfbae93cd0c8a2108aa48
BLAKE2b-256 checksum
How to use checksums
51e17d926dc23f8766c3b0a9d5913814c7cd45c814846d6282992ea8eea74bec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / microsoft_agents_hosting_teams-1.7.0.dev7-py3-none-any.whl

Download URL microsoft_agents_hosting_teams-1.7.0.dev7-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccd902810a4cb9974dcd40b1c3efea337044e35a939beeb72682d1adb39b9c10
BLAKE2b-256 checksum
How to use checksums
dbe03bb371aa0d09a7ecac4f88065af8840361d44d4be7fe1eb74a5ca11b2845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release history Release notifications | RSS feed

1.8.0

2 release files

1.7.0

2 release files

This release

1.7.0.dev7 This release

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page