33from collections .abc import Awaitable , Callable , Iterable
44from typing import Any , TypeVar
55
6- from microsoft_agents .activity import Activity , ChannelId
6+ from microsoft_agents .activity import ChannelId
77from microsoft_agents .hosting .core import TurnContext
88from microsoft_agents .hosting .core .app .state import TurnState
99from .models .agent_notification_activity import AgentNotificationActivity , NotificationTypes
1010from .models .agent_subchannel import AgentSubChannel
1111from .models .agent_lifecycle_event import AgentLifecycleEvent
12- from .models .email_response import EmailResponse
1312
1413TContext = TypeVar ("TContext" , bound = TurnContext )
1514TState = TypeVar ("TState" , bound = TurnState )
@@ -181,24 +180,4 @@ def _normalize_lifecycleevent(value: str | AgentLifecycleEvent | None) -> str:
181180 if value is None :
182181 return ""
183182 resolved = value .value if isinstance (value , AgentLifecycleEvent ) else str (value )
184- return resolved .lower ().strip ()
185-
186- @staticmethod
187- def create_email_response_activity (
188- activity : Activity , email_response_html_body : str
189- ) -> 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- """
199- working_activity = activity .create_reply ()
200- email_response = EmailResponse (html_body = email_response_html_body )
201- if working_activity .entities is None :
202- working_activity .entities = []
203- working_activity .entities .append (email_response )
204- return working_activity
183+ return resolved .lower ().strip ()
0 commit comments