IOpenAIClient.CreateAssistantAsync

IOpenAIClient.CreateAssistantAsync method

Creates a new assistant asynchronously.

public Task<AssistantResponse> CreateAssistantAsync(AssistantCreateRequest assistantCreateRequest, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
assistantCreateRequestAssistantCreateRequestThe request object containing details for creating the assistant.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the response from the assistant creation.

See Also