你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VectorStores.GetVectorStoreFilesAsync Method

Definition

Returns a list of vector store files.

public virtual Azure.AsyncPageable<Azure.AI.Agents.Persistent.VectorStoreFile> GetVectorStoreFilesAsync(string vectorStoreId, Azure.AI.Agents.Persistent.VectorStoreFileStatusFilter? filter = default, int? limit = default, Azure.AI.Agents.Persistent.ListSortOrder? order = default, string after = default, string before = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVectorStoreFilesAsync : string * Nullable<Azure.AI.Agents.Persistent.VectorStoreFileStatusFilter> * Nullable<int> * Nullable<Azure.AI.Agents.Persistent.ListSortOrder> * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.Agents.Persistent.VectorStoreFile>
override this.GetVectorStoreFilesAsync : string * Nullable<Azure.AI.Agents.Persistent.VectorStoreFileStatusFilter> * Nullable<int> * Nullable<Azure.AI.Agents.Persistent.ListSortOrder> * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.Agents.Persistent.VectorStoreFile>
Public Overridable Function GetVectorStoreFilesAsync (vectorStoreId As String, Optional filter As Nullable(Of VectorStoreFileStatusFilter) = Nothing, Optional limit As Nullable(Of Integer) = Nothing, Optional order As Nullable(Of ListSortOrder) = Nothing, Optional after As String = Nothing, Optional before As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VectorStoreFile)

Parameters

vectorStoreId
String

Identifier of the vector store.

filter
Nullable<VectorStoreFileStatusFilter>

Filter by file status.

limit
Nullable<Int32>

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

order
Nullable<ListSortOrder>

Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.

after
String

A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.

before
String

A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

vectorStoreId is null.

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

Applies to