Skip to main content

Integration library for Microsoft Agents with Teams

Project description

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.

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-teams PyPI Provides classes to host an Agent for Teams.
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.

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

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

microsoft_agents_hosting_teams-0.5.0.dev11.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file microsoft_agents_hosting_teams-0.5.0.dev11.tar.gz.

File metadata

File hashes

Hashes for microsoft_agents_hosting_teams-0.5.0.dev11.tar.gz
Algorithm Hash digest
SHA256 462153d0b0d81e623a13c56f977ab0e47e41af17700014917bcef23bb8f36cd2
MD5 a4cdbccc410cb56301851bd41ee1dd99
BLAKE2b-256 6b931d24283543f448e7ef47044b6d2b24292876f63525a456d25fe2461b9026

See more details on using hashes here.

File details

Details for the file microsoft_agents_hosting_teams-0.5.0.dev11-py3-none-any.whl.

File metadata

File hashes

Hashes for microsoft_agents_hosting_teams-0.5.0.dev11-py3-none-any.whl
Algorithm Hash digest
SHA256 8b66a86adf638b6748d6e700ec90b522299943cfe9302e6ac494657e9a746d60
MD5 6ca86bf06111b7a6f3c0e4902323c002
BLAKE2b-256 7cb0dccbbf440e657007cef4a3ca96486e9bc97236b70f91eb88b3766d19fd8b

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