IOpenAIClient.GetThreadAsync
IOpenAIClient.GetThreadAsync method
Retrieves details of a specific thread asynchronously.
public Task<ThreadResponse> GetThreadAsync(string threadId,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
threadId | String | The ID of the thread to retrieve. |
cancellationToken | Nullable`1 | A token to cancel the operation. |
Return Value
A task that represents the asynchronous operation. The task result contains the details of the thread.
Exceptions
exception | condition |
---|---|
AIClientException | Thrown when the thread Id is null or empty. |
See Also
- class ThreadResponse
- interface IOpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF