IOpenAIClient.ModifyAssistantAsync

IOpenAIClient.ModifyAssistantAsync method

Modifies an existing assistant asynchronously.

public Task<AssistantResponse> ModifyAssistantAsync(string assistantId, 
    AssistantModifyRequest assistantModifyRequest, CancellationToken? cancellationToken = default)
ParameterTypeDescription
assistantIdStringThe ID of the assistant to modify.
assistantModifyRequestAssistantModifyRequestThe request object containing modification details.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the response from the assistant modification.

Exceptions

exceptioncondition
AIClientExceptionThrown when the assistant Id is null or empty.

See Also