1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* OpenAI API
*
* The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
*
* OpenAPI spec pub version: 2.3.0
*
* Generated pub by: https://github.com/swagger-api/swagger-codegen.git
*/
/// pub VectorStoreObject : A vector store is a collection of processed files can be used by the `file_search` tool.
#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct VectorStoreObject {
/// The Unix timestamp (in seconds) for when the vector store was created.
#[serde(rename = "created_at")]
pub created_at: i32,
#[serde(rename = "expires_after")]
pub expires_after: Option<crate::models::VectorStoreExpirationAfter>,
/// The Unix timestamp (in seconds) for when the vector store will expire.
#[serde(rename = "expires_at")]
pub expires_at: Option<i32>,
#[serde(rename = "file_counts")]
pub file_counts: crate::models::VectorStoreObjectFileCounts,
/// The identifier, which can be referenced in API endpoints.
#[serde(rename = "id")]
pub id: String,
/// The Unix timestamp (in seconds) for when the vector store was last active.
#[serde(rename = "last_active_at")]
pub last_active_at: i32,
#[serde(rename = "metadata")]
pub metadata: crate::models::Metadata,
/// The name of the vector store.
#[serde(rename = "name")]
pub name: String,
/// The object type, which is always `vector_store`.
#[serde(rename = "object")]
pub object: String,
/// The status of the vector store, which can be either `expired`, `in_progress`, or `completed`. A status of `completed` indicates that the vector store is ready for use.
#[serde(rename = "status")]
pub status: String,
/// The total number of bytes used by the files in the vector store.
#[serde(rename = "usage_bytes")]
pub usage_bytes: i32,
}