Skip to content

Comments

Add helper functions for creating activity with email response#49

Merged
joratz merged 5 commits intomainfrom
users/joratz/addcreateemailresponsehelper
Nov 15, 2025
Merged

Add helper functions for creating activity with email response#49
joratz merged 5 commits intomainfrom
users/joratz/addcreateemailresponsehelper

Conversation

@joratz
Copy link
Contributor

@joratz joratz commented Nov 13, 2025

Porting helper function from .NET to simplify creating an activity for an email response.

@joratz joratz requested a review from a team as a code owner November 13, 2025 22:07
Copilot AI review requested due to automatic review settings November 13, 2025 22:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

…_a365/notifications/agent_notification.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings November 13, 2025 22:44
…_a365/notifications/models/email_response.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Nov 13, 2025

@joratz I've opened a new pull request, #50, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:\npython\n# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT License.\n
from __future__ import annotations

Copilot AI review requested due to automatic review settings November 13, 2025 23:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@joratz joratz merged commit 18d5219 into main Nov 15, 2025
14 checks passed
@pontemonti pontemonti deleted the users/joratz/addcreateemailresponsehelper branch December 5, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants