m365-agents-py - Microsoft 365 Agents SDK for Python
Build agents for Teams, M365, and Copilot Studio with aiohttp hosting, AgentApplication routing, streaming responses, and MSAL auth.
Tags
Updated: 2026-09-24Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Build Microsoft 365 agents
- Route activities using AgentApplication
- Stream responses via Azure OpenAI
- Authenticate users with MSAL
- Connect to Copilot Studio client
Inputs
- Microsoft 365 service connection settings
- MSAL authentication credentials
- Azure OpenAI configuration
- Copilot Studio environment settings
Outputs
- Agent activity responses
- Streamed AI text chunks
- User authentication tokens
Requirements
- Python runtime environment
- microsoft-agents Python packages
- aiohttp web server framework
- Azure OpenAI API access
