|
| 1 | +# Microsoft 365 Agents SDK for Python - Release Notes v0.5.0 |
| 2 | + |
| 3 | +**Release Date:** October 20, 2025 |
| 4 | +**Previous Version:** 0.4.0 (Released October 7, 2025) |
| 5 | + |
| 6 | +## 🎉 What's New in 0.5.0 |
| 7 | + |
| 8 | +This release represents a significant step forward in the Microsoft 365 Agents SDK for Python, focusing on enhanced Python version support, improved developer experience, and robust new features for building enterprise-grade conversational agents. |
| 9 | + |
| 10 | +--- |
| 11 | + |
| 12 | +## 🔄 Breaking Changes |
| 13 | + |
| 14 | +### Python Version Requirements |
| 15 | +- **Dropped Support:** Python 3.9 is no longer supported |
| 16 | +- **New Minimum:** Python 3.10 is now the minimum required version |
| 17 | +- **Migration:** Update your Python environment to 3.10 or later before upgrading |
| 18 | + |
| 19 | +### Import Structure (from previous releases) |
| 20 | +If you haven't already migrated from earlier versions, note the import structure change: |
| 21 | + |
| 22 | +```python |
| 23 | +# Old (no longer supported) |
| 24 | +from microsoft.agents.activity import Activity |
| 25 | + |
| 26 | +# New (current) |
| 27 | +from microsoft_agents.activity import Activity |
| 28 | +``` |
| 29 | +--- |
| 30 | + |
| 31 | + |
| 32 | +## 🚀 Major Features & Enhancements |
| 33 | + |
| 34 | +### Expanded Python Version Support |
| 35 | +The SDK now officially supports Python versions 3.10 through 3.14, providing developers with flexibility to use the latest Python features and improvements. This aligns with the currently [supported versions of Python](https://devguide.python.org/versions/). |
| 36 | + |
| 37 | +**Key Changes:** |
| 38 | +- Added support for Python 3.12, 3.13, and 3.14 |
| 39 | +- Updated minimum Python requirement to 3.10 (dropped Python 3.9 support) |
| 40 | +- Updated CI/CD pipelines to test against all supported Python versions |
| 41 | +- Enhanced compatibility testing across the Python ecosystem |
| 42 | + |
| 43 | +**Pull Requests:** |
| 44 | +- [#177 - Add support for Python versions 3.12, 3.13, and 3.14](https://github.com/microsoft/Agents-for-python/pull/177) |
| 45 | +- [#172 - Update Python version requirements to 3.10](https://github.com/microsoft/Agents-for-python/pull/172) |
| 46 | + |
| 47 | +### Sub-Channel Identification Support |
| 48 | +A powerful new feature that enables agents to handle complex channel routing and identification scenarios. |
| 49 | + |
| 50 | +**New Capabilities:** |
| 51 | +- Enhanced Activity model with sub-channel identification |
| 52 | +- New `ChannelId` class for managing channel routing |
| 53 | +- Support for channel-specific entity handling |
| 54 | +- Improved conversation routing and context management |
| 55 | + |
| 56 | +**Technical Details:** |
| 57 | +- Added `_channel_id_field_mixin.py` for channel ID management |
| 58 | +- Enhanced Activity serialization with channel identification |
| 59 | +- New entity types for product information and geo-coordinates |
| 60 | +- Comprehensive test coverage for sub-channel scenarios |
| 61 | + |
| 62 | +**Pull Request:** |
| 63 | +- [#150 - Support sub channel identification from Activities](https://github.com/microsoft/Agents-for-python/pull/150) |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +## 📚 Documentation & Developer Experience |
| 68 | + |
| 69 | +### Comprehensive Library Documentation |
| 70 | +Each package now includes detailed README files with examples, installation instructions, and usage guidance. |
| 71 | + |
| 72 | +**New Documentation:** |
| 73 | +- Individual README files for all 8 core libraries |
| 74 | +- PyPI-friendly descriptions for better package discovery |
| 75 | +- Comprehensive SDK overview and getting started guides |
| 76 | +- Sample code and best practices for each component |
| 77 | + |
| 78 | +**Libraries with New Documentation:** |
| 79 | +- `microsoft-agents-activity` - Core activity handling and models |
| 80 | +- `microsoft-agents-authentication-msal` - MSAL authentication integration |
| 81 | +- `microsoft-agents-copilotstudio-client` - Copilot Studio connectivity |
| 82 | +- `microsoft-agents-hosting-aiohttp` - AIOHTTP-based hosting |
| 83 | +- `microsoft-agents-hosting-core` - Core hosting functionality |
| 84 | +- `microsoft-agents-hosting-teams` - Microsoft Teams integration |
| 85 | +- `microsoft-agents-storage-blob` - Azure Blob Storage support |
| 86 | +- `microsoft-agents-storage-cosmos` - Azure Cosmos DB storage |
| 87 | + |
| 88 | +**Pull Request:** |
| 89 | +- [#157 - Author README files for each library and integrate into PyPI descriptions](https://github.com/microsoft/Agents-for-python/pull/157) |
| 90 | + |
| 91 | +### Enhanced Type Annotations |
| 92 | +Improved code clarity and IDE support through comprehensive type annotations across the SDK. |
| 93 | + |
| 94 | +**Improvements:** |
| 95 | +- Enhanced type hints for better IntelliSense support |
| 96 | +- Improved static analysis capabilities |
| 97 | +- Better error detection during development |
| 98 | +- Consistent typing patterns across all modules |
| 99 | + |
| 100 | +**Pull Request:** |
| 101 | +- [#162 - Enhance type annotations in various modules](https://github.com/microsoft/Agents-for-python/pull/162) |
| 102 | + |
| 103 | +--- |
| 104 | + |
| 105 | +## 🔧 Developer Tools & Quality Improvements |
| 106 | + |
| 107 | +### PyTest Warning Cleanup |
| 108 | +Eliminated test warnings to provide a cleaner development experience and stricter quality enforcement. |
| 109 | + |
| 110 | +**Quality Improvements:** |
| 111 | +- Cleaned up test classes to eliminate PyTest warnings |
| 112 | +- Enhanced test reliability and consistency |
| 113 | +- Improved CI/CD pipeline stability |
| 114 | +- Better error reporting and debugging |
| 115 | + |
| 116 | +**Pull Request:** |
| 117 | +- [#168 - Cleanup test classes to eliminate warnings from PyTest](https://github.com/microsoft/Agents-for-python/pull/168) |
| 118 | +- [#164 - Refactor testing functions to use create_ prefix](https://github.com/microsoft/Agents-for-python/pull/164) |
| 119 | +- [#166 - Refactor timestamp handling in FileTranscriptStore](https://github.com/microsoft/Agents-for-python/pull/166) |
| 120 | + |
| 121 | +--- |
| 122 | +## 🔐 Authentication & Security Enhancements |
| 123 | + |
| 124 | +### OAuth Flow Consolidation |
| 125 | +Simplified OAuth authentication flows for better security and ease of use. |
| 126 | + |
| 127 | +**Improvements:** |
| 128 | +- Consolidated OAuth flow `begin_flow` calls into single API |
| 129 | +- New `getTokenOrSignInResource` API for streamlined authentication |
| 130 | +- Reduced complexity in authentication setup |
| 131 | +- Improved security patterns and best practices |
| 132 | + |
| 133 | +**Pull Request:** |
| 134 | +- [#146 - Consolidating OAuthFlow begin_flow calls](https://github.com/microsoft/Agents-for-python/pull/146) |
| 135 | + |
| 136 | +### License Information |
| 137 | +Added comprehensive license information to all package configurations for better compliance and transparency. |
| 138 | + |
| 139 | +**Changes:** |
| 140 | +- Modernize license tagging in all `pyproject.toml` files |
| 141 | +- Improved package metadata for PyPI |
| 142 | +- Enhanced compliance with open source standards |
| 143 | +- Better legal clarity for enterprise adoption |
| 144 | + |
| 145 | +**Pull Request:** |
| 146 | +- [#161 - Add license information to pyproject.toml files](https://github.com/microsoft/Agents-for-python/pull/161) |
| 147 | + |
| 148 | +--- |
| 149 | + |
| 150 | +## 🐛 Bug Fixes & Maintenance |
| 151 | + |
| 152 | +### Activity Model Improvements |
| 153 | +Removed deprecated "delay" activity type to simplify the activity model and improve clarity. |
| 154 | + |
| 155 | +**Changes:** |
| 156 | +- Removed "delay" activity as an implied activity type |
| 157 | +- Simplified activity handling logic |
| 158 | +- Improved activity model consistency |
| 159 | + |
| 160 | +**Pull Request:** |
| 161 | +- [#149 - Remove "delay" activity as an implied activity](https://github.com/microsoft/Agents-for-python/pull/149) |
| 162 | + |
| 163 | +### Documentation Fixes |
| 164 | +Multiple rounds of documentation improvements for better clarity and accuracy. |
| 165 | + |
| 166 | +**Improvements:** |
| 167 | +- Fixed documentation comments across multiple modules |
| 168 | +- Improved code examples and usage patterns |
| 169 | +- Enhanced API documentation |
| 170 | +- Better consistency in documentation style |
| 171 | + |
| 172 | +**Pull Requests:** |
| 173 | +- [#155 - Yet another round of doc fixes](https://github.com/microsoft/Agents-for-python/pull/155) |
| 174 | +- [#154 - Additional doc comment fixes](https://github.com/microsoft/Agents-for-python/pull/154) |
| 175 | + |
| 176 | +--- |
| 177 | + |
| 178 | +## 📦 Package Information |
| 179 | + |
| 180 | +### Included Libraries |
| 181 | + |
| 182 | +This release includes the following 8 core libraries: |
| 183 | + |
| 184 | +1. **microsoft-agents-activity** - Core activity models and handling |
| 185 | +2. **microsoft-agents-authentication-msal** - MSAL authentication integration |
| 186 | +3. **microsoft-agents-copilotstudio-client** - Copilot Studio client connectivity |
| 187 | +4. **microsoft-agents-hosting-aiohttp** - AIOHTTP-based agent hosting |
| 188 | +5. **microsoft-agents-hosting-core** - Core hosting functionality and abstractions |
| 189 | +6. **microsoft-agents-hosting-teams** - Microsoft Teams-specific hosting |
| 190 | +7. **microsoft-agents-storage-blob** - Azure Blob Storage integration |
| 191 | +8. **microsoft-agents-storage-cosmos** - Azure Cosmos DB storage integration |
| 192 | + |
| 193 | +### Python Version Support |
| 194 | + |
| 195 | +- **Supported Versions:** Python 3.10, 3.11, 3.12, 3.13, 3.14 |
| 196 | +- **Minimum Required:** Python 3.10 |
| 197 | +- **Recommended:** Python 3.11 or later for optimal performance |
| 198 | + |
| 199 | +--- |
| 200 | + |
| 201 | +## 🚀 Getting Started |
| 202 | + |
| 203 | +### Installation |
| 204 | + |
| 205 | +Install individual packages as needed: |
| 206 | + |
| 207 | +```bash |
| 208 | +pip install microsoft-agents-activity |
| 209 | +pip install microsoft-agents-hosting-core |
| 210 | +pip install microsoft-agents-hosting-aiohttp |
| 211 | +# ... other packages as needed |
| 212 | +``` |
| 213 | + |
| 214 | +### Quick Start |
| 215 | + |
| 216 | +```python |
| 217 | +from microsoft_agents.activity import Activity |
| 218 | +from microsoft_agents.hosting.core import TurnContext |
| 219 | +from microsoft_agents.hosting.aiohttp import start_agent_process |
| 220 | + |
| 221 | +# Your agent implementation here |
| 222 | +``` |
| 223 | + |
| 224 | +### Sample Applications |
| 225 | + |
| 226 | +Explore comprehensive samples and documentation at: |
| 227 | +- [Microsoft 365 Agents SDK Samples](https://github.com/microsoft/Agents) |
| 228 | +- [Python-specific examples](https://github.com/microsoft/Agents-for-python/tree/main/test_samples) |
| 229 | + |
| 230 | +--- |
| 231 | + |
| 232 | +## 🙏 Acknowledgments |
| 233 | + |
| 234 | +Special thanks to all contributors who made this release possible, including the Microsoft 365 Agents team and the open source community for their valuable feedback and contributions. |
| 235 | + |
| 236 | +--- |
| 237 | + |
| 238 | +## 📞 Support & Resources |
| 239 | + |
| 240 | +- **Documentation:** [Microsoft 365 Agents SDK](https://aka.ms/agents) |
| 241 | +- **Issues:** [GitHub Issues](https://github.com/microsoft/Agents-for-python/issues) |
| 242 | +- **Samples:** [Agent Samples Repository](https://github.com/microsoft/Agents) |
| 243 | +- **Community:** Join our developer community discussions |
| 244 | + |
| 245 | +For technical support and questions, please use the GitHub Issues page or refer to our comprehensive documentation and samples. |
0 commit comments