IOpenAIClient.CreateRunAsync
IOpenAIClient.CreateRunAsync method
Creates a run within a specified thread asynchronously.
public Task<RunResponse> CreateRunAsync(string threadId, RunCreateRequest runCreateRequest,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
threadId | String | The ID of the thread where the run will be created. |
runCreateRequest | RunCreateRequest | The request details for creating the run. |
cancellationToken | Nullable`1 | A token to cancel the operation. |
Return Value
A task that represents the asynchronous operation. The task result contains the response from the run creation.
Exceptions
exception | condition |
---|---|
AIClientException | Thrown when the thread Id is null or empty. |
See Also
- class RunResponse
- class RunCreateRequest
- interface IOpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF