IOpenAIClient.GetVectorStoreFileBatchFilesAsync

IOpenAIClient.GetVectorStoreFileBatchFilesAsync 方法

异步检索特定向量存储文件批次中的文件列表。

public Task<VectorStoreFileListResponse> GetVectorStoreFileBatchFilesAsync(string vectorStoreId, 
    string fileBatchId, VectorStoreFileBatchFileListQueryParameters queryParameters = null, 
    CancellationToken? cancellationToken = default)
参数类型描述
vectorStoreId字符串包含文件批次的向量存储的 ID。
fileBatchId字符串要从中检索文件的文件批次的 ID。
queryParametersVectorStoreFileBatchFileListQueryParameters可选查询参数,用于过滤文件列表。
cancellationToken可空`1用于取消操作的令牌。

返回值

表示异步操作的任务。任务结果包含文件批次中的文件列表。

异常

异常条件
AIClientException当向量存储 ID 为 null 或空时抛出。
AIClientException当向量存储文件批次 ID 为 null 或空时抛出。

另请参阅