IOpenAIClient.GetThreadMessageAsync
IOpenAIClient.GetThreadMessageAsync method
Retrieves details of a specific message within a thread asynchronously.
public Task<ThreadMessageResponse> GetThreadMessageAsync(string threadId, string threadMessageId,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
threadId | String | The ID of the thread containing the message. |
threadMessageId | String | The ID of the message 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 message.
Exceptions
exception | condition |
---|---|
AIClientException | Thrown when the thread Id is null or empty. |
AIClientException | Thrown when the thread message Id is null or empty. |
See Also
- class ThreadMessageResponse
- interface IOpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF