-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtryAGI.OpenAI.Models.VectorStoreObject.g.cs
More file actions
156 lines (141 loc) · 6.92 KB
/
tryAGI.OpenAI.Models.VectorStoreObject.g.cs
File metadata and controls
156 lines (141 loc) · 6.92 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#nullable enable
namespace tryAGI.OpenAI
{
/// <summary>
/// A vector store is a collection of processed files can be used by the `file_search` tool.
/// </summary>
public sealed partial class VectorStoreObject
{
/// <summary>
/// The identifier, which can be referenced in API endpoints.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Id { get; set; }
/// <summary>
/// The object type, which is always `vector_store`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("object")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectObjectJsonConverter))]
public global::tryAGI.OpenAI.VectorStoreObjectObject Object { get; set; }
/// <summary>
/// The Unix timestamp (in seconds) for when the vector store was created.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UnixTimestampJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.DateTimeOffset CreatedAt { get; set; }
/// <summary>
/// The name of the vector store.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Name { get; set; }
/// <summary>
/// The total number of bytes used by the files in the vector store.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("usage_bytes")]
[global::System.Text.Json.Serialization.JsonRequired]
public required long UsageBytes { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("file_counts")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::tryAGI.OpenAI.VectorStoreObjectFileCounts FileCounts { get; set; }
/// <summary>
/// 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.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreObjectStatusJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::tryAGI.OpenAI.VectorStoreObjectStatus Status { get; set; }
/// <summary>
/// The expiration policy for a vector store.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("expires_after")]
public global::tryAGI.OpenAI.VectorStoreExpirationAfter? ExpiresAfter { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("expires_at")]
public global::System.DateTimeOffset? ExpiresAt { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("last_active_at")]
public global::System.DateTimeOffset? LastActiveAt { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("metadata")]
public global::System.Collections.Generic.Dictionary<string, string>? Metadata { get; set; }
/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
/// <summary>
/// Initializes a new instance of the <see cref="VectorStoreObject" /> class.
/// </summary>
/// <param name="id">
/// The identifier, which can be referenced in API endpoints.
/// </param>
/// <param name="object">
/// The object type, which is always `vector_store`.
/// </param>
/// <param name="createdAt">
/// The Unix timestamp (in seconds) for when the vector store was created.
/// </param>
/// <param name="name">
/// The name of the vector store.
/// </param>
/// <param name="usageBytes">
/// The total number of bytes used by the files in the vector store.
/// </param>
/// <param name="fileCounts"></param>
/// <param name="status">
/// 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.
/// </param>
/// <param name="expiresAfter">
/// The expiration policy for a vector store.
/// </param>
/// <param name="expiresAt"></param>
/// <param name="lastActiveAt"></param>
/// <param name="metadata"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public VectorStoreObject(
string id,
global::System.DateTimeOffset createdAt,
string name,
long usageBytes,
global::tryAGI.OpenAI.VectorStoreObjectFileCounts fileCounts,
global::tryAGI.OpenAI.VectorStoreObjectStatus status,
global::tryAGI.OpenAI.VectorStoreObjectObject @object,
global::tryAGI.OpenAI.VectorStoreExpirationAfter? expiresAfter,
global::System.DateTimeOffset? expiresAt,
global::System.DateTimeOffset? lastActiveAt,
global::System.Collections.Generic.Dictionary<string, string>? metadata)
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.CreatedAt = createdAt;
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
this.UsageBytes = usageBytes;
this.FileCounts = fileCounts ?? throw new global::System.ArgumentNullException(nameof(fileCounts));
this.Status = status;
this.Object = @object;
this.ExpiresAfter = expiresAfter;
this.ExpiresAt = expiresAt;
this.LastActiveAt = lastActiveAt;
this.Metadata = metadata;
}
/// <summary>
/// Initializes a new instance of the <see cref="VectorStoreObject" /> class.
/// </summary>
public VectorStoreObject()
{
}
}
}