Class VectorStoreFileBatchesClient
java.lang.Object
io.github.stefanbratanov.jvm.openai.VectorStoreFileBatchesClient
Vector store file batches represent operations to add multiple files to a vector store.
Based on Vector Store File Batches
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
-
Method Summary
Modifier and TypeMethodDescriptioncancelVectorStoreFileBatch
(String vectorStoreId, String batchId) Cancel a vector store file batch.createVectorStoreFileBatch
(String vectorStoreId, CreateVectorStoreFileBatchRequest request) Create a vector store file batch.listVectorStoreFilesInBatch
(String vectorStoreId, String batchId, PaginationQueryParameters paginationQueryParameters, Optional<String> filter) Returns a list of vector store files in a batch.retrieveVectorStoreFileBatch
(String vectorStoreId, String batchId) Retrieves a vector store file batch.
-
Method Details
-
createVectorStoreFileBatch
public VectorStoreFileBatch createVectorStoreFileBatch(String vectorStoreId, CreateVectorStoreFileBatchRequest request) Create a vector store file batch.- Throws:
OpenAIException
- in case of API errors
-
retrieveVectorStoreFileBatch
Retrieves a vector store file batch.- Throws:
OpenAIException
- in case of API errors
-
cancelVectorStoreFileBatch
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.- Throws:
OpenAIException
- in case of API errors
-
listVectorStoreFilesInBatch
public VectorStoreFileBatchesClient.PaginatedVectorStoreFiles listVectorStoreFilesInBatch(String vectorStoreId, String batchId, PaginationQueryParameters paginationQueryParameters, Optional<String> filter) Returns a list of vector store files in a batch.- Parameters:
filter
- Filter by file status- Throws:
OpenAIException
- in case of API errors
-