-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtryAGI.OpenAI.Models.VectorStoreFileObject.g.cs
More file actions
140 lines (126 loc) · 6.88 KB
/
tryAGI.OpenAI.Models.VectorStoreFileObject.g.cs
File metadata and controls
140 lines (126 loc) · 6.88 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
#pragma warning disable CS0618 // Type or member is obsolete
#nullable enable
namespace tryAGI.OpenAI
{
/// <summary>
/// A list of files attached to a vector store.
/// </summary>
public sealed partial class VectorStoreFileObject
{
/// <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.file`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("object")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectObjectJsonConverter))]
public global::tryAGI.OpenAI.VectorStoreFileObjectObject Object { get; set; }
/// <summary>
/// The total vector store usage in bytes. Note that this may be different from the original file size.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("usage_bytes")]
[global::System.Text.Json.Serialization.JsonRequired]
public required long UsageBytes { get; set; }
/// <summary>
/// The Unix timestamp (in seconds) for when the vector store file 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 ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("vector_store_id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string VectorStoreId { get; set; }
/// <summary>
/// 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.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("status")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VectorStoreFileObjectStatusJsonConverter))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::tryAGI.OpenAI.VectorStoreFileObjectStatus Status { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("last_error")]
public global::tryAGI.OpenAI.VectorStoreFileObjectLastError2? LastError { get; set; }
/// <summary>
/// The strategy used to chunk the file.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("chunking_strategy")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OneOfJsonConverter<global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam, global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam>))]
public global::tryAGI.OpenAI.OneOf<global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam, global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam>? ChunkingStrategy { get; set; }
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("attributes")]
public object? Attributes { 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="VectorStoreFileObject" /> 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.file`.
/// </param>
/// <param name="usageBytes">
/// The total vector store usage in bytes. Note that this may be different from the original file size.
/// </param>
/// <param name="createdAt">
/// The Unix timestamp (in seconds) for when the vector store file was created.
/// </param>
/// <param name="vectorStoreId">
/// The ID of the [vector store](/docs/api-reference/vector-stores/object) that the [File](/docs/api-reference/files) is attached to.
/// </param>
/// <param name="status">
/// 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.
/// </param>
/// <param name="lastError"></param>
/// <param name="chunkingStrategy">
/// The strategy used to chunk the file.
/// </param>
/// <param name="attributes"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public VectorStoreFileObject(
string id,
long usageBytes,
global::System.DateTimeOffset createdAt,
string vectorStoreId,
global::tryAGI.OpenAI.VectorStoreFileObjectStatus status,
global::tryAGI.OpenAI.VectorStoreFileObjectObject @object,
global::tryAGI.OpenAI.VectorStoreFileObjectLastError2? lastError,
global::tryAGI.OpenAI.OneOf<global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam, global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam>? chunkingStrategy,
object? attributes)
{
this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id));
this.UsageBytes = usageBytes;
this.CreatedAt = createdAt;
this.VectorStoreId = vectorStoreId ?? throw new global::System.ArgumentNullException(nameof(vectorStoreId));
this.Status = status;
this.Object = @object;
this.LastError = lastError;
this.ChunkingStrategy = chunkingStrategy;
this.Attributes = attributes;
}
/// <summary>
/// Initializes a new instance of the <see cref="VectorStoreFileObject" /> class.
/// </summary>
public VectorStoreFileObject()
{
}
}
}