IOpenAIClient.WaitForVectorStoreToCompleteAsync

IOpenAIClient.WaitForVectorStoreToCompleteAsync method

Waits for a specific vector store to complete asynchronously.

public Task<VectorStoreResponse> WaitForVectorStoreToCompleteAsync(string vectorStoreId, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
vectorStoreIdStringThe ID of the vector store to monitor until completion.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the final status of the vector store.

Exceptions

exceptioncondition
AIClientExceptionThrown when the vector store Id is null or empty.

See Also