Skip to content

Disable Streaming Response when channel = teams and request type is agentic. - #243

Merged
Axel Suárez (axelsrz) merged 1 commit into
mainfrom
users/robrandao/disable-streaming-for-teams-agentic
Nov 13, 2025
Merged

Disable Streaming Response when channel = teams and request type is agentic.#243
Axel Suárez (axelsrz) merged 1 commit into
mainfrom
users/robrandao/disable-streaming-for-teams-agentic

Conversation

@rodrigobr-msft

Copy link
Copy Markdown
Contributor

This pull request updates the streaming response logic to handle agentic requests differently in the microsoft_agents/hosting/aiohttp/app/streaming/streaming_response.py file. The main change ensures that agentic requests are not treated as streaming, with a clear TODO for future support.

Streaming logic update:

  • In the _set_defaults method, agentic requests detected via context.activity.is_agentic_request() are now explicitly set to not use streaming responses (self._is_streaming_channel = False), with a TODO comment for future enablement.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request disables streaming responses for agentic requests in Microsoft Teams channel by adding conditional logic to check if an incoming request is agentic and setting the streaming flag to False in such cases.

  • Added conditional check using is_agentic_request() method to detect agentic requests
  • Disabled streaming for agentic requests with _is_streaming_channel = False
  • Added TODO comment for future streaming support for agentic requests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@axelsrz
Axel Suárez (axelsrz) merged commit 6d9e012 into main Nov 13, 2025
16 checks passed
@axelsrz
Axel Suárez (axelsrz) deleted the users/robrandao/disable-streaming-for-teams-agentic branch November 13, 2025 17:36
Copilot AI mentioned this pull request Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agentic Identity + Teams does not support streaming responses at this time.

4 participants