Table of Contents

Class VectorStoreFileService

public class VectorStoreFileService : CrudServiceBase<OpenAIClient>, IBetaApi
Inheritance
object
VectorStoreFileService
Implements
IBetaApi

Constructors

VectorStoreFileService(OpenAIClient)

public VectorStoreFileService(OpenAIClient client)

Parameters

client OpenAIClient

Methods

CreateAsync(string, VectorStoreFileRequest)

public UniTask<VectorStoreFile> CreateAsync(string vectorStoreId, VectorStoreFileRequest req)

Parameters

vectorStoreId string
req VectorStoreFileRequest

Returns

UniTask<VectorStoreFile>

DeleteAsync(string, string, RESTOptions)

public UniTask<VectorStoreFile> DeleteAsync(string vectorStoreId, string fileId, RESTOptions options = null)

Parameters

vectorStoreId string
fileId string
options RESTOptions

Returns

UniTask<VectorStoreFile>

ListAsync(string, CursorQuery, RESTOptions)

public UniTask<QueryResponse<VectorStoreFile>> ListAsync(string vectorStoreId, CursorQuery query = null, RESTOptions options = null)

Parameters

vectorStoreId string
query CursorQuery
options RESTOptions

Returns

UniTask<QueryResponse<VectorStoreFile>>

RetrieveAsync(string, string, RESTOptions)

public UniTask<VectorStoreFile> RetrieveAsync(string vectorStoreId, string fileId, RESTOptions options = null)

Parameters

vectorStoreId string
fileId string
options RESTOptions

Returns

UniTask<VectorStoreFile>