pub struct CreateVectorStoreFileBatchRequest {
pub file_ids: Option<Vec<String>>,
pub files: Option<Vec<CreateVectorStoreFileRequest>>,
pub chunking_strategy: Option<ChunkingStrategyRequestParam>,
pub attributes: Option<VectorStoreFileAttributes>,
}vectorstore-types only.Fields§
§file_ids: Option<Vec<String>>A list of File IDs that the vector store
should use. Useful for tools like file_search that can access files. If attributes or
chunking_strategy are provided, they will be applied to all files in the batch. Mutually
exclusive with files.
files: Option<Vec<CreateVectorStoreFileRequest>>A list of objects that each include a file_id plus optional attributes or
chunking_strategy. Use this when you need to override metadata for specific files.
The global attributes or chunking_strategy will be ignored and must be specified
for each file. Mutually exclusive with file_ids.
chunking_strategy: Option<ChunkingStrategyRequestParam>§attributes: Option<VectorStoreFileAttributes>Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
Trait Implementations§
Source§impl Clone for CreateVectorStoreFileBatchRequest
impl Clone for CreateVectorStoreFileBatchRequest
Source§fn clone(&self) -> CreateVectorStoreFileBatchRequest
fn clone(&self) -> CreateVectorStoreFileBatchRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CreateVectorStoreFileBatchRequest
impl Default for CreateVectorStoreFileBatchRequest
Source§fn default() -> CreateVectorStoreFileBatchRequest
fn default() -> CreateVectorStoreFileBatchRequest
Source§impl<'de> Deserialize<'de> for CreateVectorStoreFileBatchRequest
impl<'de> Deserialize<'de> for CreateVectorStoreFileBatchRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CreateVectorStoreFileBatchRequest
impl PartialEq for CreateVectorStoreFileBatchRequest
Source§fn eq(&self, other: &CreateVectorStoreFileBatchRequest) -> bool
fn eq(&self, other: &CreateVectorStoreFileBatchRequest) -> bool
self and other values to be equal, and is used by ==.