Share via


VectorStores.GetVectorStoreFileAsync Method

Definition

Retrieves a vector store file.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFile>> GetVectorStoreFileAsync(string vectorStoreId, string fileId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVectorStoreFileAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFile>>
override this.GetVectorStoreFileAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Agents.Persistent.VectorStoreFile>>
Public Overridable Function GetVectorStoreFileAsync (vectorStoreId As String, fileId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VectorStoreFile))

Parameters

vectorStoreId
String

Identifier of the vector store.

fileId
String

Identifier of the file.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

vectorStoreId or fileId is null.

vectorStoreId or fileId is an empty string, and was expected to be non-empty.

Applies to