IOpenAIClient.GetRunStepsAsync

IOpenAIClient.GetRunStepsAsync method

Retrieves a list of steps for a specific run within a thread asynchronously.

public Task<RunStepListResponse> GetRunStepsAsync(string threadId, string runId, 
    RunStepListQueryParameters queryParameters = null, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
threadIdStringThe ID of the thread containing the run.
runIdStringThe ID of the run to retrieve steps from.
queryParametersRunStepListQueryParametersOptional query parameters to filter the list of run steps.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the list of run steps.

Exceptions

exceptioncondition
AIClientExceptionThrown when the thread Id is null or empty.
AIClientExceptionThrown when the run Id is null or empty.

See Also