OpenAIRealtimeClientSession.GetStreamingResponseAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Streams the response from the real-time session.
public System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.RealtimeServerMessage> GetStreamingResponseAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetStreamingResponseAsync : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.RealtimeServerMessage>
override this.GetStreamingResponseAsync : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.RealtimeServerMessage>
Public Function GetStreamingResponseAsync (Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of RealtimeServerMessage)
Parameters
- cancellationToken
- CancellationToken
A token to cancel the operation.
Returns
The response messages generated by the session.