From cdfeb69dc02698be1a3f7eca661d85e913d27e38 Mon Sep 17 00:00:00 2001 From: Chris Mullins Date: Tue, 7 Oct 2025 11:20:20 -0700 Subject: [PATCH] Remove "delay" activity as an implied activity. Fixes Issue #11 in the Python repo. --- .../microsoft_agents/hosting/core/channel_service_adapter.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py index dc27a76f..4550c163 100644 --- a/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py +++ b/libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py @@ -66,10 +66,7 @@ async def send_activities( response = ResourceResponse() - if activity.type == "delay": - delay_time = int((activity.value or 1000) / 1000) - await sleep(delay_time) - elif activity.type == ActivityTypes.invoke_response: + if activity.type == ActivityTypes.invoke_response: context.turn_state[self.INVOKE_RESPONSE_KEY] = activity elif ( activity.type == ActivityTypes.trace