IOpenAIClient.ModifyThreadAsync

IOpenAIClient.ModifyThreadAsync method

Modifies an existing thread asynchronously.

public Task<ThreadResponse> ModifyThreadAsync(string threadId, 
    ThreadModifyRequest threadModifyRequest, CancellationToken? cancellationToken = default)
ParameterTypeDescription
threadIdStringThe ID of the thread to modify.
threadModifyRequestThreadModifyRequestThe 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 thread modification.

Exceptions

exceptioncondition
AIClientExceptionThrown when the thread Id is null or empty.

See Also