ProjectResponsesClient.CreateResponseStreamingAsync 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.
Overloads
| Name | Description |
|---|---|
| CreateResponseStreamingAsync(CreateResponseOptions, CancellationToken) |
Asynchronously creates a streaming response using the supplied response options. |
| CreateResponseStreamingAsync(IEnumerable<ResponseItem>, String, CancellationToken) |
Asynchronously creates a streaming response from the supplied input items. |
| CreateResponseStreamingAsync(String, String, CancellationToken) |
Asynchronously creates a streaming response from user input text. |
| CreateResponseStreamingAsync(String, IEnumerable<ResponseItem>, String, CancellationToken) |
Asynchronously creates a streaming response for the specified model from the supplied input items. |
| CreateResponseStreamingAsync(String, String, String, CancellationToken) |
Asynchronously creates a streaming response for the specified model from user input text. |
CreateResponseStreamingAsync(CreateResponseOptions, CancellationToken)
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Asynchronously creates a streaming response using the supplied response options.
public override System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate> CreateResponseStreamingAsync(OpenAI.Responses.CreateResponseOptions options, System.Threading.CancellationToken cancellationToken = default);
override this.CreateResponseStreamingAsync : OpenAI.Responses.CreateResponseOptions * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
abstract member CreateResponseStreamingAsync : OpenAI.Responses.CreateResponseOptions * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
override this.CreateResponseStreamingAsync : OpenAI.Responses.CreateResponseOptions * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
Public Overrides Function CreateResponseStreamingAsync (options As CreateResponseOptions, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of StreamingResponseUpdate)
Parameters
- options
- OpenAI.Responses.CreateResponseOptions
The options used to create the streaming response.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The streaming response updates.
Applies to
CreateResponseStreamingAsync(IEnumerable<ResponseItem>, String, CancellationToken)
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Asynchronously creates a streaming response from the supplied input items.
public virtual System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate> CreateResponseStreamingAsync(System.Collections.Generic.IEnumerable<OpenAI.Responses.ResponseItem> inputItems, string previousResponseId = default, System.Threading.CancellationToken cancellationToken = default);
override this.CreateResponseStreamingAsync : seq<OpenAI.Responses.ResponseItem> * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
abstract member CreateResponseStreamingAsync : seq<OpenAI.Responses.ResponseItem> * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
override this.CreateResponseStreamingAsync : seq<OpenAI.Responses.ResponseItem> * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
Public Overridable Function CreateResponseStreamingAsync (inputItems As IEnumerable(Of ResponseItem), Optional previousResponseId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of StreamingResponseUpdate)
Parameters
- inputItems
- IEnumerable<OpenAI.Responses.ResponseItem>
The input items used to create the streaming response.
- previousResponseId
- String
The ID of the previous response to continue.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The streaming response updates.
Applies to
CreateResponseStreamingAsync(String, String, CancellationToken)
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Asynchronously creates a streaming response from user input text.
public virtual System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate> CreateResponseStreamingAsync(string userInputText, string previousResponseId = default, System.Threading.CancellationToken cancellationToken = default);
override this.CreateResponseStreamingAsync : string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
abstract member CreateResponseStreamingAsync : string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
override this.CreateResponseStreamingAsync : string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
Public Overridable Function CreateResponseStreamingAsync (userInputText As String, Optional previousResponseId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of StreamingResponseUpdate)
Parameters
- userInputText
- String
The user input text used to create the streaming response.
- previousResponseId
- String
The ID of the previous response to continue.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The streaming response updates.
Applies to
CreateResponseStreamingAsync(String, IEnumerable<ResponseItem>, String, CancellationToken)
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Asynchronously creates a streaming response for the specified model from the supplied input items.
public override System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate> CreateResponseStreamingAsync(string model, System.Collections.Generic.IEnumerable<OpenAI.Responses.ResponseItem> inputItems, string previousResponseId = default, System.Threading.CancellationToken cancellationToken = default);
override this.CreateResponseStreamingAsync : string * seq<OpenAI.Responses.ResponseItem> * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
abstract member CreateResponseStreamingAsync : string * seq<OpenAI.Responses.ResponseItem> * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
override this.CreateResponseStreamingAsync : string * seq<OpenAI.Responses.ResponseItem> * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
Public Overrides Function CreateResponseStreamingAsync (model As String, inputItems As IEnumerable(Of ResponseItem), Optional previousResponseId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of StreamingResponseUpdate)
Parameters
- model
- String
The model used to create the streaming response.
- inputItems
- IEnumerable<OpenAI.Responses.ResponseItem>
The input items used to create the streaming response.
- previousResponseId
- String
The ID of the previous response to continue.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The streaming response updates.
Applies to
CreateResponseStreamingAsync(String, String, String, CancellationToken)
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Asynchronously creates a streaming response for the specified model from user input text.
public override System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate> CreateResponseStreamingAsync(string model, string userInputText, string previousResponseId = default, System.Threading.CancellationToken cancellationToken = default);
override this.CreateResponseStreamingAsync : string * string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
abstract member CreateResponseStreamingAsync : string * string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
override this.CreateResponseStreamingAsync : string * string * string * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<OpenAI.Responses.StreamingResponseUpdate>
Public Overrides Function CreateResponseStreamingAsync (model As String, userInputText As String, Optional previousResponseId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of StreamingResponseUpdate)
Parameters
- model
- String
The model used to create the streaming response.
- userInputText
- String
The user input text used to create the streaming response.
- previousResponseId
- String
The ID of the previous response to continue.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The streaming response updates.