pub struct VectorStoreFileBatches { /* private fields */ }Expand description
The file batches sub-resource of a single vector store.
Implementations§
Source§impl VectorStoreFileBatches
impl VectorStoreFileBatches
Sourcepub async fn create(
&self,
params: VectorStoreFileBatchCreateParams,
) -> Result<VectorStoreFileBatch, OpenAIError>
pub async fn create( &self, params: VectorStoreFileBatchCreateParams, ) -> Result<VectorStoreFileBatch, OpenAIError>
Create a file batch.
Sourcepub async fn retrieve(
&self,
batch_id: &str,
) -> Result<VectorStoreFileBatch, OpenAIError>
pub async fn retrieve( &self, batch_id: &str, ) -> Result<VectorStoreFileBatch, OpenAIError>
Retrieve a file batch.
Sourcepub async fn cancel(
&self,
batch_id: &str,
) -> Result<VectorStoreFileBatch, OpenAIError>
pub async fn cancel( &self, batch_id: &str, ) -> Result<VectorStoreFileBatch, OpenAIError>
Cancel a file batch (POST, no body).
Sourcepub async fn list_files(
&self,
batch_id: &str,
params: Option<VectorStoreFileListParams>,
) -> Result<List<VectorStoreFile>, OpenAIError>
pub async fn list_files( &self, batch_id: &str, params: Option<VectorStoreFileListParams>, ) -> Result<List<VectorStoreFile>, OpenAIError>
List the files in a file batch (single page).
Trait Implementations§
Source§impl Clone for VectorStoreFileBatches
impl Clone for VectorStoreFileBatches
Source§fn clone(&self) -> VectorStoreFileBatches
fn clone(&self) -> VectorStoreFileBatches
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for VectorStoreFileBatches
impl !UnwindSafe for VectorStoreFileBatches
impl Freeze for VectorStoreFileBatches
impl Send for VectorStoreFileBatches
impl Sync for VectorStoreFileBatches
impl Unpin for VectorStoreFileBatches
impl UnsafeUnpin for VectorStoreFileBatches
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more