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
threadIdSystem.StringThe ID of the thread to which the run and run step belongs.
runIdSystem.StringThe ID of the run to which the run step belongs.
stepIdSystem.StringThe ID of the run step to retrieve.
cancellationTokenCancellationToken
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
threadIdSystem.StringThe ID of the thread the run and run steps belong to.
runIdSystem.StringThe ID of the run steps belong to.
requestPaginationRequestPaging
cancellationTokenCancellationToken
Returns
- Task<RunStepListResponse>
A list of run step objects.