IOpenAIClient.CreateThreadAndRunAsync

IOpenAIClient.CreateThreadAndRunAsync method

Creates a thread and a run within it asynchronously.

public Task<RunResponse> CreateThreadAndRunAsync(RunThreadCreateRequest runCreateRequest, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
runCreateRequestRunThreadCreateRequestThe request details for creating the thread and run.
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 and run creation.

See Also