microsoft-agents-hosting-teams
Integration library for Microsoft Agents with Teams
What it is and what it does
This package extends the Microsoft 365 Agents SDK with Teams-specific integration, providing handlers and utilities to make agents native to Microsoft Teams rather than generic chatbots. It wraps core hosting capabilities with Teams-specific event handlers and interaction patterns, including messaging extensions for search and actions, task modules for interactive dialogs, adaptive card support, and meeting event integration.
The library is part of a larger SDK ecosystem that supports multiple platforms (Teams, M365 Copilot, Copilot Studio, web chat, Slack, Facebook Messenger, Twilio). It depends on microsoft-agents-hosting-core for base functionality and aiohttp for async HTTP operations. The package targets Python 3.12 and later and is actively maintained, though the description notes that Teams interfaces continue to evolve.
Use it for:
- Build a Teams bot that responds to messaging extensions for searching and acting on data within Teams conversations.
- Create interactive task modules and dialogs that collect user input through forms and adaptive cards in Teams.
- Handle Teams meeting events (start, end, participant changes) to integrate agent functionality into meeting contexts.
- Implement proactive messaging to send notifications or updates to Teams channels and individual users.
- Migrate existing Bot Framework Teams agents to the Microsoft 365 Agents SDK using the provided handler classes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Teams-specific handlers and utilities for building Microsoft Teams agents using the Microsoft 365 Agents SDK, including support for messaging extensions, task modules, adaptive cards, and meeting events.
Yes. The package has low install friction, active maintenance (release 15 days old), no known vulnerabilities, and MIT licensing. It is purpose-built for Teams integration within the Microsoft 365 Agents SDK. Install it if you are building a Teams agent and need Teams-specific handlers; skip it if you are targeting a different platform or do not require Teams features.
Install
microsoft-agents-hosting-teams on PyPI
pip
pip install microsoft-agents-hosting-teamsuv
uv add microsoft-agents-hosting-teamspoetry
poetry add microsoft-agents-hosting-teamsInstalling microsoft-agents-hosting-teams
Before you install
Low install friction with a pure-Python wheel. The package is actively maintained with a release 15 days old and recent commits; it depends on three runtime packages including the core hosting library and aiohttp.
License in practice
MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license notice.
Quickstart
pip install microsoft-agents-hosting-teams
from microsoft_agents_hosting_teams import TeamsActivityHandler
handler = TeamsActivityHandler()
Requires Python 3.12 or later; depends on microsoft-agents-hosting-core and aiohttp at runtime.
Verify before relying
- Whether the package's stated 'still in flux' interface stability claim affects production readiness for Teams-specific features.
- Specific Python 3.12+ requirement implications for existing projects on earlier versions.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — microsoft-agents-hosting-core, aiohttp, microsoft-teams-api |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 214,323/month — #9,418 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: microsoft_agents_hosting_teams-1.3.0-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
microsoft-agents-hosting-aiohttpProvides HTTP hosting integration for Microsoft…
permissive · top 15,000 on PyPI
microsoft-teams-cardsProvides Pydantic-based models for building…
permissive · top 5,000 on PyPI
microsoft-teams-apiHTTP client library for Microsoft Teams Bot…
permissive · top 5,000 on PyPI
microsoft-agents-hosting-coreProvides the core hosting infrastructure for…
permissive · top 5,000 on PyPI
microsoft-agents-activityProvides core types and schemas implementing…
permissive · top 5,000 on PyPI
microsoft-teams-appsFramework for building Microsoft Teams…
permissive · top 15,000 on PyPI
microsoft-agents-hosting-fastapiProvides FastAPI integration for building and…
permissive · top 15,000 on PyPI
microsoft-agents-authentication-msalProvides MSAL-based authentication for…
permissive · top 15,000 on PyPI
pymsteamsSends formatted messages to Microsoft Teams…
permissive · top 5,000 on PyPI
fathom-pythonA Python SDK for the Fathom External API that…
unclear · top 15,000 on PyPI