IOpenAIClient.CreateThreadAndRunAsync
IOpenAIClient.CreateThreadAndRunAsync method
Creates a thread and a run within it asynchronously.
public Task<RunResponse> CreateThreadAndRunAsync(RunThreadCreateRequest runCreateRequest,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
runCreateRequest | RunThreadCreateRequest | The request details for creating the thread and 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 thread and run creation.
See Also
- class RunResponse
- class RunThreadCreateRequest
- interface IOpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF