OpenAIResponseExtension.CreateResponseAsync 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.
public static System.Threading.Tasks.Task<System.ClientModel.ClientResult<OpenAI.Responses.OpenAIResponse>> CreateResponseAsync(this OpenAI.Responses.OpenAIResponseClient responseClient, Azure.AI.Projects.OpenAI.ProjectConversation conversation, Azure.AI.Projects.OpenAI.AgentReference agentRef, System.Threading.CancellationToken cancellationToken = default);
static member CreateResponseAsync : OpenAI.Responses.OpenAIResponseClient * Azure.AI.Projects.OpenAI.ProjectConversation * Azure.AI.Projects.OpenAI.AgentReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<OpenAI.Responses.OpenAIResponse>>
<Extension()>
Public Function CreateResponseAsync (responseClient As OpenAIResponseClient, conversation As ProjectConversation, agentRef As AgentReference, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of OpenAIResponse))
Parameters
- responseClient
- OpenAI.Responses.OpenAIResponseClient
- conversation
- ProjectConversation
- agentRef
- AgentReference
- cancellationToken
- CancellationToken