Integration library for Microsoft Agents with Teams
Project description
Microsoft Agents Hosting - Teams
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 |
|---|---|---|
| 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:
Additionally we provide a Copilot Studio Client, to interact with Agents created in CopilotStudio:
| Package Name | PyPI Version | Description |
|---|---|---|
microsoft-agents-copilotstudio-client |
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 methodsTeamsInfo- Utility class for Teams operations (members, meetings, channels)MessagingExtensionQuery/Response- Handle search and messaging extensionsTaskModuleRequest/Response- Interactive dialogs and formsTabRequest/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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file microsoft_agents_hosting_teams-0.9.0.tar.gz.
File metadata
- Download URL: microsoft_agents_hosting_teams-0.9.0.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c10aade182cc21826ef3b4c0398c99e3bc38f3fe5cfecd3d2c643695753a9b70
|
|
| MD5 |
ce94ef2a74e6704a3c7db2775519f0ca
|
|
| BLAKE2b-256 |
ac8f734eaea64f7893e0b265c5bc442c8dad6ff7a5fa148ef4cad5d1ae5194ee
|
File details
Details for the file microsoft_agents_hosting_teams-0.9.0-py3-none-any.whl.
File metadata
- Download URL: microsoft_agents_hosting_teams-0.9.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5b035367f254f22f099fa8e8868f802686ea474588c4edb15c864c429ab2d05
|
|
| MD5 |
71ce647915a4839669c97874174f9c3c
|
|
| BLAKE2b-256 |
e6a4534c37b9bd80dfefac4ce40a7cadc91e6a5cea72bd4af02b75956490d222
|