IOpenAIClient.GetVectorStoreAsync

IOpenAIClient.GetVectorStoreAsync method

Retrieves details of a specific vector store asynchronously.

public Task<VectorStoreResponse> GetVectorStoreAsync(string vectorStoreId, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
vectorStoreIdStringThe ID of the vector store 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 vector store.

Exceptions

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

See Also