pub struct VectorStoreFileBatches<'c, C: Config> {
pub vector_store_id: String,
/* private fields */
}Available on crate feature
vectorstore only.Expand description
Vector store file batches represent operations to add multiple files to a vector store.
Related guide: File Search
Fields§
§vector_store_id: StringImplementations§
Source§impl<'c, C: Config> VectorStoreFileBatches<'c, C>
impl<'c, C: Config> VectorStoreFileBatches<'c, C>
pub fn new(client: &'c Client<C>, vector_store_id: &str) -> Self
Sourcepub async fn create(
&self,
request: CreateVectorStoreFileBatchRequest,
) -> Result<VectorStoreFileBatchObject, OpenAIError>
pub async fn create( &self, request: CreateVectorStoreFileBatchRequest, ) -> Result<VectorStoreFileBatchObject, OpenAIError>
Create vector store file batch
Sourcepub async fn create_byot<T0: Serialize, R: DeserializeOwned>(
&self,
request: T0,
) -> Result<R, OpenAIError>
pub async fn create_byot<T0: Serialize, R: DeserializeOwned>( &self, request: T0, ) -> Result<R, OpenAIError>
Create vector store file batch
Sourcepub async fn retrieve(
&self,
batch_id: &str,
) -> Result<VectorStoreFileBatchObject, OpenAIError>
pub async fn retrieve( &self, batch_id: &str, ) -> Result<VectorStoreFileBatchObject, OpenAIError>
Retrieves a vector store file batch.
Sourcepub async fn retrieve_byot<T0: Display, R: DeserializeOwned>(
&self,
batch_id: T0,
) -> Result<R, OpenAIError>
pub async fn retrieve_byot<T0: Display, R: DeserializeOwned>( &self, batch_id: T0, ) -> Result<R, OpenAIError>
Retrieves a vector store file batch.
Sourcepub async fn cancel(
&self,
batch_id: &str,
) -> Result<VectorStoreFileBatchObject, OpenAIError>
pub async fn cancel( &self, batch_id: &str, ) -> Result<VectorStoreFileBatchObject, OpenAIError>
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Sourcepub async fn cancel_byot<T0: Display, R: DeserializeOwned>(
&self,
batch_id: T0,
) -> Result<R, OpenAIError>
pub async fn cancel_byot<T0: Display, R: DeserializeOwned>( &self, batch_id: T0, ) -> Result<R, OpenAIError>
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Sourcepub async fn list_files(
&self,
batch_id: &str,
) -> Result<ListVectorStoreFilesResponse, OpenAIError>
pub async fn list_files( &self, batch_id: &str, ) -> Result<ListVectorStoreFilesResponse, OpenAIError>
Returns a list of vector store files in a batch.
Sourcepub async fn list_files_byot<T0: Display, R: DeserializeOwned>(
&self,
batch_id: T0,
) -> Result<R, OpenAIError>
pub async fn list_files_byot<T0: Display, R: DeserializeOwned>( &self, batch_id: T0, ) -> Result<R, OpenAIError>
Returns a list of vector store files in a batch.
Trait Implementations§
Source§impl<'c, C: Config> RequestOptionsBuilder for VectorStoreFileBatches<'c, C>
Available on crate feature _api only.
impl<'c, C: Config> RequestOptionsBuilder for VectorStoreFileBatches<'c, C>
Available on crate feature
_api only.Source§fn options_mut(&mut self) -> &mut RequestOptions
fn options_mut(&mut self) -> &mut RequestOptions
Get mutable reference to RequestOptions (for building)
Source§fn options(&self) -> &RequestOptions
fn options(&self) -> &RequestOptions
Get reference to RequestOptions
Source§fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
Add a single header to RequestOptions
Auto Trait Implementations§
impl<'c, C> Freeze for VectorStoreFileBatches<'c, C>
impl<'c, C> !RefUnwindSafe for VectorStoreFileBatches<'c, C>
impl<'c, C> Send for VectorStoreFileBatches<'c, C>
impl<'c, C> Sync for VectorStoreFileBatches<'c, C>
impl<'c, C> Unpin for VectorStoreFileBatches<'c, C>
impl<'c, C> !UnwindSafe for VectorStoreFileBatches<'c, C>
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