-
Notifications
You must be signed in to change notification settings - Fork 86
Adding back hosting-teams source
#472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Rodrigo Brandão (rodrigobr-msft)
merged 10 commits into
main
from
users/robrandao/re-add-teams
Jul 17, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1cef3d5
Adding back teams
rodrigobr-msft 8b08a3f
Merge branch 'main' into users/robrandao/re-add-teams
rodrigobr-msft 7223732
Adding back tests
rodrigobr-msft e001b76
Merge branch 'main' of https://github.com/microsoft/Agents-for-python…
rodrigobr-msft e612d51
Merge branch 'users/robrandao/re-add-teams' of https://github.com/mic…
rodrigobr-msft b99315c
Update to install wheels step
rodrigobr-msft 0506d0d
Update to install wheels step
rodrigobr-msft 516640a
Updating pipelines to not install hosting-teams for python <= 3.11
rodrigobr-msft e6820c1
Updating pipelines to not install hosting-teams for python <= 3.11
rodrigobr-msft 87c2272
Merge branch 'main' into users/robrandao/re-add-teams
rodrigobr-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) Microsoft Corporation. | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| include VERSION.txt |
17 changes: 17 additions & 0 deletions
17
libraries/microsoft-agents-hosting-teams/microsoft_agents/hosting/teams/__init__.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| from .teams_activity_handler import TeamsActivityHandler | ||
| from .teams_agent_extension import ( | ||
| TeamsAgentExtension, | ||
| MessageExtension, | ||
| TaskModule, | ||
| Meeting, | ||
| ) | ||
| from .teams_info import TeamsInfo | ||
|
|
||
| __all__ = [ | ||
| "TeamsActivityHandler", | ||
| "TeamsAgentExtension", | ||
| "MessageExtension", | ||
| "TaskModule", | ||
| "Meeting", | ||
| "TeamsInfo", | ||
| ] | ||
|
rodrigobr-msft marked this conversation as resolved.
rodrigobr-msft marked this conversation as resolved.
|
||
15 changes: 15 additions & 0 deletions
15
libraries/microsoft-agents-hosting-teams/microsoft_agents/hosting/teams/errors/__init__.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
|
|
||
| """ | ||
| Error resources for Microsoft Agents Hosting Teams package. | ||
| """ | ||
|
|
||
| from microsoft_agents.activity.errors import ErrorMessage | ||
|
|
||
| from .error_resources import TeamsErrorResources | ||
|
|
||
| # Singleton instance | ||
| teams_errors = TeamsErrorResources() | ||
|
|
||
| __all__ = ["ErrorMessage", "TeamsErrorResources", "teams_errors"] |
72 changes: 72 additions & 0 deletions
72
...s/microsoft-agents-hosting-teams/microsoft_agents/hosting/teams/errors/error_resources.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
|
|
||
| """ | ||
| Teams error resources for Microsoft Agents SDK. | ||
|
|
||
| Error codes are in the range -62000 to -62999. | ||
| """ | ||
|
|
||
| from microsoft_agents.activity.errors import ErrorMessage | ||
|
|
||
|
|
||
| class TeamsErrorResources: | ||
| """ | ||
| Error messages for Teams operations. | ||
|
|
||
| Error codes are organized in the range -62000 to -62999. | ||
| """ | ||
|
|
||
| TeamsBadRequest = ErrorMessage( | ||
| "BadRequest", | ||
| -62000, | ||
| ) | ||
|
|
||
| TeamsNotImplemented = ErrorMessage( | ||
| "NotImplemented", | ||
| -62001, | ||
| ) | ||
|
|
||
| TeamsContextRequired = ErrorMessage( | ||
| "context is required.", | ||
| -62002, | ||
| ) | ||
|
|
||
| TeamsMeetingIdRequired = ErrorMessage( | ||
| "meeting_id is required.", | ||
| -62003, | ||
| ) | ||
|
|
||
| TeamsParticipantIdRequired = ErrorMessage( | ||
| "participant_id is required.", | ||
| -62004, | ||
| ) | ||
|
|
||
| TeamsTeamIdRequired = ErrorMessage( | ||
| "team_id is required.", | ||
| -62005, | ||
| ) | ||
|
|
||
| TeamsTurnContextRequired = ErrorMessage( | ||
| "TurnContext cannot be None", | ||
| -62006, | ||
| ) | ||
|
|
||
| TeamsActivityRequired = ErrorMessage( | ||
| "Activity cannot be None", | ||
| -62007, | ||
| ) | ||
|
|
||
| TeamsChannelIdRequired = ErrorMessage( | ||
| "The teams_channel_id cannot be None or empty", | ||
| -62008, | ||
| ) | ||
|
|
||
| TeamsConversationIdRequired = ErrorMessage( | ||
| "conversation_id is required.", | ||
| -62009, | ||
| ) | ||
|
|
||
| def __init__(self): | ||
| """Initialize TeamsErrorResources.""" | ||
| pass |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.