IOpenAIClient.GetVectorStoreFilesAsync

IOpenAIClient.GetVectorStoreFilesAsync method

Retrieves a list of files within a specific vector store asynchronously.

public Task<VectorStoreFileListResponse> GetVectorStoreFilesAsync(string vectorStoreId, 
    VectorStoreFileListQueryParameters queryParameters = null, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
vectorStoreIdStringThe ID of the vector store containing the files.
queryParametersVectorStoreFileListQueryParametersOptional query parameters to filter the list of files.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains a list of files within the vector store.

Exceptions

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

See Also