OpenAIClient.DeleteAssistantAsync
OpenAIClient.DeleteAssistantAsync method
Deletes an existing assistant asynchronously.
public Task<DeleteStatusResponse> DeleteAssistantAsync(string assistantId,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
assistantId | String | The ID of the assistant to delete. |
cancellationToken | Nullable`1 | A token to cancel the operation. |
Return Value
A task that represents the asynchronous operation. The task result contains the status of the delete operation.
Exceptions
exception | condition |
---|---|
AIClientException | Thrown when the assistant Id is null or empty. |
See Also
- class DeleteStatusResponse
- class OpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF