IOpenAIClient.CreateThreadAsync
IOpenAIClient.CreateThreadAsync method
Creates a new thread asynchronously.
public Task<ThreadResponse> CreateThreadAsync(ThreadCreateRequest threadCreateRequest,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
threadCreateRequest | ThreadCreateRequest | The request object containing details for creating the thread. |
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 creation.
See Also
- class ThreadResponse
- class ThreadCreateRequest
- interface IOpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF