IOpenAIClient.GetAssistantAsync

IOpenAIClient.GetAssistantAsync method

Retrieves details of a specific assistant asynchronously.

public Task<AssistantResponse> GetAssistantAsync(string assistantId, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
assistantIdStringThe ID of the assistant to retrieve.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the details of the assistant.

Exceptions

exceptioncondition
AIClientExceptionThrown when the assistant Id is null or empty.

See Also