MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
277 stars 500 forks source link

How to implement stream data to teams #9790

Open Chang025 opened 8 months ago

Chang025 commented 8 months ago

We've integrated an Azure bot using the REST API to send various message types, such as plain text, adaptive cards, and hero cards, to Microsoft Teams. Now, we need to explore the possibility of streaming data, such as multiple paragraphs or rows of tables, through the Azure bot's RESTful API. Is there a method to achieve this?

Chang025 commented 8 months ago

@sayali-MSFT @Meghana-MSFT @ChetanSharma-msft - can someone please refer to the documentation if any?

ChetanSharma-msft commented 8 months ago

Hello @Chang025 - Thanks for raising your query. We will look into it and let you know the updates.

Chang025 commented 8 months ago

@sayali-MSFT - Please refer to the data streaming done by chatgpt. We need something similar with ms teams.

Screenshot 2023-10-31 at 11 39 05 AM
sayali-MSFT commented 8 months ago

@Chang025 -Thanks for providing information, we will check it from our end and let you know the update.

Chang025 commented 8 months ago

@sayali-MSFT - we found one more reference which is only available with c# https://learn.microsoft.com/en-us/azure/ai-services/openai/use-your-data-quickstart?tabs=command-line&pivots=programming-language-csharp#async-with-streaming

Anyway, we can achieve a similar async streaming behavior with Azure Bot Rest API?

sayali-MSFT commented 8 months ago

@Chang025 -The Bot Framework REST APIs are used to send these cards as attachments in a message. You'll need to handle token management and other aspects of the API request. while Adaptive Cards can display complex data, they are not designed for streaming large amounts of data. If you need to display a large amount of data, consider using a tab or a task module to display a web page with a full-featured data grid or other UI suited to large data sets.

Meanwhile we are checking with the engineering team as well and let you know the update once we have any.

Chang025 commented 1 month ago

@sayali-MSFT - Any update on this? does restful API now support streaming responses, at least for normal texts?