IOpenAIClient.GetRunStepAsync

IOpenAIClient.GetRunStepAsync method

Retrieves details of a specific step within a run asynchronously.

public Task<RunStepResponse> GetRunStepAsync(string threadId, string runId, string runStepId, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
threadIdStringThe ID of the thread containing the run.
runIdStringThe ID of the run containing the step.
runStepIdStringThe ID of the run step to retrieve.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the details of the run step.

Exceptions

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

See Also