Skip to content

Commit 8625dbb

Browse files
joratzCopilot
andauthored
Update libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1a09595 commit 8625dbb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,15 @@ def _normalize_lifecycleevent(value: str | AgentLifecycleEvent | None) -> str:
187187
def create_email_response_activity(
188188
activity: Activity, email_response_html_body: str
189189
) -> Activity:
190+
"""Create a reply Activity with an EmailResponse entity.
191+
192+
Args:
193+
activity: The source activity to create a reply from.
194+
email_response_html_body: The HTML content for the email response.
195+
196+
Returns:
197+
A reply Activity with the EmailResponse entity attached.
198+
"""
190199
working_activity = activity.create_reply()
191200
email_response = EmailResponse(html_body=email_response_html_body)
192201
if working_activity.entities is None:

0 commit comments

Comments
 (0)