Skip to content

Commit b593b59

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#297)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 9682e5f commit b593b59

60 files changed

Lines changed: 1612 additions & 1612 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex
4141
if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; }
4242
if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; }
4343

44-
global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? value1 = default;
44+
global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? @enum = default;
4545
global::tryAGI.OpenAI.ResponseFormatText? text = default;
4646
global::tryAGI.OpenAI.ResponseFormatJsonObject? jsonObject = default;
4747
global::tryAGI.OpenAI.ResponseFormatJsonSchema? jsonSchema = default;
@@ -53,7 +53,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex
5353
{
5454
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum> ??
5555
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}");
56-
value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
56+
@enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
5757
}
5858
catch (global::System.Text.Json.JsonException)
5959
{
@@ -109,13 +109,13 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex
109109
}
110110
}
111111

112-
if (value1 == null && text == null && jsonObject == null && jsonSchema == null)
112+
if (@enum == null && text == null && jsonObject == null && jsonSchema == null)
113113
{
114114
try
115115
{
116116
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum> ??
117117
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}");
118-
value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
118+
@enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
119119
}
120120
catch (global::System.Text.Json.JsonException)
121121
{
@@ -165,7 +165,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex
165165
}
166166

167167
var __value = new global::tryAGI.OpenAI.AssistantsApiResponseFormatOption(
168-
value1,
168+
@enum,
169169

170170
text,
171171

@@ -186,11 +186,11 @@ public override void Write(
186186
options = options ?? throw new global::System.ArgumentNullException(nameof(options));
187187
var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
188188

189-
if (value.IsValue1)
189+
if (value.IsEnum)
190190
{
191191
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum> ??
192192
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}");
193-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo);
193+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo);
194194
}
195195
else if (value.IsText)
196196
{

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js
3535
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
3636
if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
3737

38-
global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? value1 = default;
39-
global::tryAGI.OpenAI.AssistantsNamedToolChoice? value2 = default;
38+
global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? @enum = default;
39+
global::tryAGI.OpenAI.AssistantsNamedToolChoice? named = default;
4040
if (__bestIndex >= 0)
4141
{
4242
if (__bestIndex == 0)
@@ -45,7 +45,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js
4545
{
4646
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum> ??
4747
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}");
48-
value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
48+
@enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
4949
}
5050
catch (global::System.Text.Json.JsonException)
5151
{
@@ -60,7 +60,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js
6060
{
6161
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.AssistantsNamedToolChoice> ??
6262
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}");
63-
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
63+
named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
6464
}
6565
catch (global::System.Text.Json.JsonException)
6666
{
@@ -71,13 +71,13 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js
7171
}
7272
}
7373

74-
if (value1 == null && value2 == null)
74+
if (@enum == null && named == null)
7575
{
7676
try
7777
{
7878
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum> ??
7979
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}");
80-
value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
80+
@enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
8181
}
8282
catch (global::System.Text.Json.JsonException)
8383
{
@@ -90,7 +90,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js
9090
{
9191
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.AssistantsNamedToolChoice> ??
9292
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}");
93-
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
93+
named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
9494
}
9595
catch (global::System.Text.Json.JsonException)
9696
{
@@ -101,9 +101,9 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js
101101
}
102102

103103
var __value = new global::tryAGI.OpenAI.AssistantsApiToolChoiceOption(
104-
value1,
104+
@enum,
105105

106-
value2
106+
named
107107
);
108108

109109
return __value;
@@ -118,17 +118,17 @@ public override void Write(
118118
options = options ?? throw new global::System.ArgumentNullException(nameof(options));
119119
var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
120120

121-
if (value.IsValue1)
121+
if (value.IsEnum)
122122
{
123123
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum> ??
124124
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}");
125-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo);
125+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo);
126126
}
127-
else if (value.IsValue2)
127+
else if (value.IsNamed)
128128
{
129129
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.AssistantsNamedToolChoice?> ??
130130
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}");
131-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
131+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Named!, typeInfo);
132132
}
133133
}
134134
}

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J
4343
if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; }
4444

4545
global::tryAGI.OpenAI.ComputerToolCallOutput? computerToolCallOutput = default;
46-
global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? value2 = default;
46+
global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? computerToolCallOutputResourceVariant2 = default;
4747
if (__bestIndex >= 0)
4848
{
4949
if (__bestIndex == 0)
@@ -67,7 +67,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J
6767
{
6868
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2> ??
6969
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}");
70-
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
70+
computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
7171
}
7272
catch (global::System.Text.Json.JsonException)
7373
{
@@ -78,7 +78,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J
7878
}
7979
}
8080

81-
if (computerToolCallOutput == null && value2 == null)
81+
if (computerToolCallOutput == null && computerToolCallOutputResourceVariant2 == null)
8282
{
8383
try
8484
{
@@ -97,7 +97,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J
9797
{
9898
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2> ??
9999
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}");
100-
value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
100+
computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
101101
}
102102
catch (global::System.Text.Json.JsonException)
103103
{
@@ -110,7 +110,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J
110110
var __value = new global::tryAGI.OpenAI.ComputerToolCallOutputResource(
111111
computerToolCallOutput,
112112

113-
value2
113+
computerToolCallOutputResourceVariant2
114114
);
115115

116116
return __value;
@@ -131,11 +131,11 @@ public override void Write(
131131
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutput).Name}");
132132
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput!, typeInfo);
133133
}
134-
else if (value.IsValue2)
134+
else if (value.IsComputerToolCallOutputResourceVariant2)
135135
{
136136
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2?> ??
137137
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}");
138-
global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
138+
global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResourceVariant2!, typeInfo);
139139
}
140140
}
141141
}

0 commit comments

Comments
 (0)