Add helper functions for creating activity with email response#49
Merged
Add helper functions for creating activity with email response#49
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds helper functions to simplify creating activities with email responses, porting functionality from the .NET SDK to Python. The changes introduce two static methods that create Activity objects with EmailResponse entities attached.
- Adds
EmailResponse.create_email_response_activity()to create a new message activity with an email response entity - Adds
AgentNotification.create_email_response_activity()to create a reply activity with an email response entity
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/email_response.py | Adds static factory method to create a new Activity with EmailResponse entity; imports Activity class |
| libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py | Adds static factory method to create a reply Activity with EmailResponse entity; imports Activity and EmailResponse classes |
...osoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/email_response.py
Show resolved
Hide resolved
...osoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/email_response.py
Show resolved
Hide resolved
...icrosoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py
Outdated
Show resolved
Hide resolved
…_a365/notifications/agent_notification.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…_a365/notifications/models/email_response.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
Contributor
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py:1
- Missing Microsoft copyright header. Add the following at the top of the file:\n
python\n# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT License.\n
from __future__ import annotations
...osoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/email_response.py
Show resolved
Hide resolved
...osoft-agents-a365-notifications/microsoft_agents_a365/notifications/models/email_response.py
Show resolved
Hide resolved
pontemonti
approved these changes
Nov 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.
Porting helper function from .NET to simplify creating an activity for an email response.