Skip to content

Commit 6d9e012

Browse files
Disabling streaming when receiving agentic request for msteams channel (#243)
1 parent d75d0cf commit 6d9e012

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • libraries/microsoft-agents-hosting-aiohttp/microsoft_agents/hosting/aiohttp/app/streaming

libraries/microsoft-agents-hosting-aiohttp/microsoft_agents/hosting/aiohttp/app/streaming/streaming_response.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,13 @@ async def wait_for_queue(self) -> None:
251251

252252
def _set_defaults(self, context: "TurnContext"):
253253
if Channels.ms_teams == context.activity.channel_id.channel:
254-
self._is_streaming_channel = True
255-
self._interval = 1.0
254+
if context.activity.is_agentic_request():
255+
# Agentic requests do not support streaming responses at this time.
256+
# TODO : Enable streaming for agentic requests when supported.
257+
self._is_streaming_channel = False
258+
else:
259+
self._is_streaming_channel = True
260+
self._interval = 1.0
256261
elif Channels.direct_line == context.activity.channel_id.channel:
257262
self._is_streaming_channel = True
258263
self._interval = 0.5

0 commit comments

Comments
 (0)