openai_struct/models/
vector_store_file_object.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub VectorStoreFileObject : A list of files attached to a vector store.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct VectorStoreFileObject {
18    #[serde(rename = "attributes")]
19    pub attributes: Option<crate::models::VectorStoreFileAttributes>,
20    /// The strategy used to chunk the file.
21    #[serde(rename = "chunking_strategy")]
22    pub chunking_strategy: Option<Value>,
23    /// The Unix timestamp (in seconds) for when the vector store file was created.
24    #[serde(rename = "created_at")]
25    pub created_at: i32,
26    /// The identifier, which can be referenced in API endpoints.
27    #[serde(rename = "id")]
28    pub id: String,
29    #[serde(rename = "last_error")]
30    pub last_error: crate::models::VectorStoreFileObjectLastError,
31    /// The object type, which is always `vector_store.file`.
32    #[serde(rename = "object")]
33    pub object: String,
34    /// The status of the vector store file, which can be either `in_progress`, `completed`, `cancelled`, or `failed`. The status `completed` indicates that the vector store file is ready for use.
35    #[serde(rename = "status")]
36    pub status: String,
37    /// The total vector store usage in bytes. Note that this may be different from the original file size.
38    #[serde(rename = "usage_bytes")]
39    pub usage_bytes: i32,
40    /// The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.
41    #[serde(rename = "vector_store_id")]
42    pub vector_store_id: String,
43}