Creates a new StreamingResponse instance.
Context for the current turn of conversation with the user.
Gets the citations of the current response.
Gets whether the channel supports streaming.
Gets the number of updates sent for the stream.
Ends the stream by sending the final message to the client.
Returns the most recently streamed message.
The streamed message.
Queues an informative update to be sent to the client.
Text of the update to send.
Queues a chunk of partial message text to be sent to the client
Partial text of the message to send.
Optionalcitations: Citation[]Citations to be included in the message.
Resets the streaming response to its initial state. If the stream is still running, this will wait for completion.
Sets the attachments to attach to the final chunk.
List of attachments.
Sets the citations for the full message.
Citations to be included in the message.
Sets the delay in milliseconds between chunks.
The delay in milliseconds.
Sets the Feedback Loop in Teams that allows a user to
give thumbs up or down to a response.
Default is false.
If true, the feedback loop is enabled.
Sets the type of UI to use for the feedback loop.
The type of the feedback loop.
Set Activity that will be (optionally) used for the final streaming message.
Sets the the Generated by AI label in Teams
Default is false.
If true, the label is added.
Sets the sensitivity label to attach to the final chunk.
The sensitivty label.
A helper class for streaming responses to the client.
Remarks
This class is used to send a series of updates to the client in a single response. The expected sequence of calls is:
queueInformativeUpdate(),queueTextChunk(),queueTextChunk(), ...,endStream().Once
endStream()is called, the stream is considered ended and no further updates can be sent.