Support sub channel identification from Activities#150
Merged
rodrigobr-msft merged 28 commits intomainfrom Oct 14, 2025
Merged
Conversation
…into users/robrandao/sub-channels
cleemullins
requested changes
Oct 9, 2025
libraries/microsoft-agents-activity/microsoft_agents/activity/entity/entity_types.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/entity/entity_types.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/entity/entity_types.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/entity/entity_types.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/channel_id.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/channel_id.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/channel_id.py
Outdated
Show resolved
Hide resolved
cleemullins
previously requested changes
Oct 13, 2025
...soft-agents-hosting-aiohttp/microsoft_agents/hosting/aiohttp/jwt_authorization_middleware.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/channel_id.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py
Outdated
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/entity/thing.py
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/activity.py
Show resolved
Hide resolved
libraries/microsoft-agents-activity/microsoft_agents/activity/entity/entity_types.py
Show resolved
Hide resolved
…into users/robrandao/sub-channels
…rosoft/Agents-for-python into users/robrandao/sub-channels
axelsrz
reviewed
Oct 13, 2025
libraries/microsoft-agents-activity/microsoft_agents/activity/entity/entity_types.py
Outdated
Show resolved
Hide resolved
axelsrz
reviewed
Oct 14, 2025
...agents-hosting-core/microsoft_agents/hosting/core/app/oauth/_handlers/_user_authorization.py
Outdated
Show resolved
Hide resolved
axelsrz
reviewed
Oct 14, 2025
libraries/microsoft-agents-activity/microsoft_agents/activity/conversation_reference.py
Outdated
Show resolved
Hide resolved
axelsrz
approved these changes
Oct 14, 2025
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 a new
ChannelIdmodel to better represent channel identifiers (including sub-channels), improves type safety, and ensures consistency between thechannel_idand relatedproductInfoentities. It also introduces a formal enumeration for entity types and adds a dedicatedProductInfoentity. These changes enhance the clarity, maintainability, and correctness of the activity modeling code.Channel ID and Product Info Enhancements:
ChannelIdmodel inchannel_id.pyto represent channel identifiers with optional sub-channels, including custom parsing, serialization, and equality logic.ActivityandConversationReferencemodels to use the newChannelIdtype instead of a plain string, including migration logic and backward compatibility handling. [1] [2] [3] [4] [5]Activityto synchronize thechannel_id.sub_channelwith theProductInfoentity'sid, ensuring data consistency during validation and serialization. [1] [2]Entity Type Improvements:
EntityTypesenumeration usingstrenumfor well-known entity types, and refactored code to use this enum for clarity and maintainability. [1] [2] [3] [4] [5]Product Info Entity:
ProductInfoentity class to model product information within activities, and registered it in the public API. [1] [2] [3] [4] [5]Dependency Update:
strenumas a dependency to support the newEntityTypesenumeration.Public API Updates:
__init__.pyfiles to export the newChannelId,EntityTypes, andProductInfoclasses, making them available for external use. [1] [2] [3] [4] [5] [6]