Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .azdo/ci-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ steps:
else
echo "Skipping microsoft_agents_hosting_msteams: requires Python 3.11+"
fi
if python -c "import sys; sys.exit(0 if sys.version_info >= (3, 12) else 1)"; then
python -m pip install ./dist/microsoft_agents_hosting_teams*.whl
else
echo "Skipping microsoft_agents_hosting_teams: requires Python 3.12+"
fi
python -m pip install ./dist/microsoft_agents_hosting_slack*.whl
python -m pip install ./dist/microsoft_agents_storage_blob*.whl
python -m pip install ./dist/microsoft_agents_storage_cosmos*.whl
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ jobs:
else
echo "Skipping microsoft_agents_hosting_msteams: requires Python 3.11+"
fi
if python -c "import sys; sys.exit(0 if sys.version_info >= (3, 12) else 1)"; then
python -m pip install ./dist/microsoft_agents_hosting_teams*.whl
else
echo "Skipping microsoft_agents_hosting_teams: requires Python 3.12+"
fi
python -m pip install ./dist/microsoft_agents_hosting_slack*.whl
python -m pip install ./dist/microsoft_agents_storage_blob*.whl
python -m pip install ./dist/microsoft_agents_storage_cosmos*.whl
Expand Down
21 changes: 21 additions & 0 deletions libraries/microsoft-agents-hosting-teams/LICENSE
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
1 change: 1 addition & 0 deletions libraries/microsoft-agents-hosting-teams/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from .teams_activity_handler import TeamsActivityHandler
Comment thread
rodrigobr-msft marked this conversation as resolved.
from .teams_agent_extension import (
TeamsAgentExtension,
MessageExtension,
TaskModule,
Meeting,
)
from .teams_info import TeamsInfo

__all__ = [
"TeamsActivityHandler",
"TeamsAgentExtension",
"MessageExtension",
"TaskModule",
"Meeting",
"TeamsInfo",
]
Comment thread
rodrigobr-msft marked this conversation as resolved.
Comment thread
rodrigobr-msft marked this conversation as resolved.
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"]
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
Loading
Loading