Skip to content

Commit 7db49cc

Browse files
authored
Remove "delay" activity as an implied activity. Fixes Issue #11 in the Python repo. (#149)
1 parent 02eb8cd commit 7db49cc

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

libraries/microsoft-agents-hosting-core/microsoft_agents/hosting/core/channel_service_adapter.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ async def send_activities(
6666

6767
response = ResourceResponse()
6868

69-
if activity.type == "delay":
70-
delay_time = int((activity.value or 1000) / 1000)
71-
await sleep(delay_time)
72-
elif activity.type == ActivityTypes.invoke_response:
69+
if activity.type == ActivityTypes.invoke_response:
7370
context.turn_state[self.INVOKE_RESPONSE_KEY] = activity
7471
elif (
7572
activity.type == ActivityTypes.trace

0 commit comments

Comments
 (0)