Improved Teams support with microsoft-agents-hosting-msteams package#434
Open
rodrigobr-msft wants to merge 52 commits into
Open
Improved Teams support with microsoft-agents-hosting-msteams package#434rodrigobr-msft wants to merge 52 commits into
rodrigobr-msft wants to merge 52 commits into
Conversation
…into users/robrandao/teams-turn-context
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces new Teams integration utilities, expands the activity entity model, and improves type safety and handler definitions in the hosting core. The most notable changes are the addition of Teams-specific modules and authentication helpers, the introduction of the
ActivityTreatmententity, and the refactoring of handler types for handoff routes. Several minor improvements and clarifications to type annotations and documentation are also included.Teams integration and SDK utilities:
microsoft_agents.hosting.msteamspackage with an__init__.pythat exposes Teams-specific classes for bot and agent development, includingTeamsAgentExtension,TeamsTurnContext, and related types._graph.pyand_teams_api_client.pymodules providing helpers for Microsoft Graph API authentication and Teams API client management, supporting seamless integration with Teams services. [1] [2]Activity entity model enhancements:
ActivityTreatmentandActivityTreatmentTypesentities to the activity model, enabling richer representation of activity treatment metadata. These are now imported and exported in the relevant__init__.pyfiles and registered as a new entity type. [1] [2] [3] [4] [5] [6]Core hosting and handler improvements:
HandoffHandlerprotocol and refactored theAgentApplication.handoffmethod and overloads to use this strongly typed handler, improving type safety and clarity for handoff route registration. [1] [2] [3] [4] [5] [6] [7]Turn context and type annotation improvements:
_activityattribute inTurnContext, ensuring consistent internal naming and null-checking, and updated the return type ofsend_activityfor improved reliability. [1] [2] [3] [4] [5] [6]Minor dependency and documentation updates:
connection_managertoconnectionsand added missing imports forConnections. [1] [2]