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)
Parameter | Type | Description |
---|---|---|
threadId | String | The ID of the thread to retrieve runs from. |
queryParameters | RunListQueryParameters | Optional query parameters to filter the list of runs. |
cancellationToken | Nullable`1 | A token to cancel the operation. |
Return Value
A task that represents the asynchronous operation. The task result contains a list of runs.
Exceptions
exception | condition |
---|---|
AIClientException | Thrown when the thread Id is null or empty. |
See Also
- class RunListResponse
- class RunListQueryParameters
- interface IOpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF