Table of Contents

Interface IRunStepService

Namespace
OpenAI.Interfaces
Assembly
AntRunnerLib.dll
public interface IRunStepService

Methods

RunStepRetrieve(String, String, String, CancellationToken)

Retrieves a run step.

Task<RunStepResponse> RunStepRetrieve(string threadId, string runId, string stepId, CancellationToken cancellationToken = null)

Parameters

threadId System.String

The ID of the thread to which the run and run step belongs.

runId System.String

The ID of the run to which the run step belongs.

stepId System.String

The ID of the run step to retrieve.

cancellationToken CancellationToken

Returns

Task<RunStepResponse>

The run step object matching the specified ID.

RunStepsList(String, String, PaginationRequest, CancellationToken)

Returns a list of run steps belonging to a run.

Task<RunStepListResponse> RunStepsList(string threadId, string runId, PaginationRequest request = null, CancellationToken cancellationToken = null)

Parameters

threadId System.String

The ID of the thread the run and run steps belong to.

runId System.String

The ID of the run steps belong to.

request PaginationRequest

Paging

cancellationToken CancellationToken

Returns

Task<RunStepListResponse>

A list of run step objects.