IOpenAIClient.CreateThreadAsync

IOpenAIClient.CreateThreadAsync method

Creates a new thread asynchronously.

public Task<ThreadResponse> CreateThreadAsync(ThreadCreateRequest threadCreateRequest, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
threadCreateRequestThreadCreateRequestThe request object containing details for creating the thread.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

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

See Also