IOpenAIClient.GetRunsAsync

IOpenAIClient.GetRunsAsync method

Retrieves a list of runs for a specified thread asynchronously.

public Task<RunListResponse> GetRunsAsync(string threadId, 
    RunListQueryParameters queryParameters = null, CancellationToken? cancellationToken = default)
ParameterTypeDescription
threadIdStringThe ID of the thread to retrieve runs from.
queryParametersRunListQueryParametersOptional query parameters to filter the list of runs.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains a list of runs.

Exceptions

exceptioncondition
AIClientExceptionThrown when the thread Id is null or empty.

See Also