OpenAIClient.GetAssistantAsync
OpenAIClient.GetAssistantAsync method
Retrieves details of a specific assistant asynchronously.
public Task<AssistantResponse> GetAssistantAsync(string assistantId,
CancellationToken? cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| assistantId | String | The ID of the assistant 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 assistant.
Exceptions
| exception | condition |
|---|---|
| AIClientException | Thrown when the assistant Id is null or empty. |
See Also
- class AssistantResponse
- class OpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF