diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs
index 92e1eee0..9bb0f61f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Annotation.g.cs
@@ -23,6 +23,7 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs
index 9cd768c0..92ec2d98 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationsItem3.g.cs
@@ -23,14 +23,26 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
if (__jsonProps.Contains("source")) __score0++;
+ if (__jsonProps.Contains("source.filename")) __score0++;
+ if (__jsonProps.Contains("source.type")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("source")) __score1++;
+ if (__jsonProps.Contains("source.type")) __score1++;
+ if (__jsonProps.Contains("source.url")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs
index b8c5a071..8d2df4c7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParam.g.cs
@@ -23,6 +23,7 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs
index 8f58f7fa..e8c7e87d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantStreamEvent.g.cs
@@ -23,6 +23,14 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -32,6 +40,10 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial
var __score3 = 0;
var __score4 = 0;
if (__jsonProps.Contains("data")) __score4++;
+ if (__jsonProps.Contains("data.code")) __score4++;
+ if (__jsonProps.Contains("data.message")) __score4++;
+ if (__jsonProps.Contains("data.param")) __score4++;
+ if (__jsonProps.Contains("data.type")) __score4++;
if (__jsonProps.Contains("event")) __score4++;
var __score5 = 0;
if (__jsonProps.Contains("data")) __score5++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs
index 6f25b14d..ef4b5d5e 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiResponseFormatOption.g.cs
@@ -23,6 +23,14 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -33,6 +41,10 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("json_schema")) __score3++;
+ if (__jsonProps.Contains("json_schema.description")) __score3++;
+ if (__jsonProps.Contains("json_schema.name")) __score3++;
+ if (__jsonProps.Contains("json_schema.schema")) __score3++;
+ if (__jsonProps.Contains("json_schema.strict")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs
index 18fd6235..0d9be5bd 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AssistantsApiToolChoiceOption.g.cs
@@ -23,12 +23,21 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
var __score1 = 0;
if (__jsonProps.Contains("function")) __score1++;
+ if (__jsonProps.Contains("function.name")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs
index dc450a0f..aaeb9af8 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallsItem.g.cs
@@ -23,15 +23,27 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
if (__jsonProps.Contains("function")) __score0++;
+ if (__jsonProps.Contains("function.arguments")) __score0++;
+ if (__jsonProps.Contains("function.name")) __score0++;
if (__jsonProps.Contains("id")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("custom")) __score1++;
+ if (__jsonProps.Contains("custom.input")) __score1++;
+ if (__jsonProps.Contains("custom.name")) __score1++;
if (__jsonProps.Contains("id")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs
index 32e17562..8290a375 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPart.g.cs
@@ -23,6 +23,7 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs
index 0d285835..ce3f47a4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessage.g.cs
@@ -23,6 +23,7 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs
index 7cf0b1b0..6d09cb76 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestSystemMessageContentPart.g.cs
@@ -23,6 +23,7 @@ public class ChatCompletionRequestSystemMessageContentPartJsonConverter : global
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs
index 1e04fa0d..ccbf5c94 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestToolMessageContentPart.g.cs
@@ -23,6 +23,7 @@ public class ChatCompletionRequestToolMessageContentPartJsonConverter : global::
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs
index 4d16f01f..d846aed0 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestUserMessageContentPart.g.cs
@@ -23,6 +23,14 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global::
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -31,12 +39,19 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global::
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("image_url")) __score1++;
+ if (__jsonProps.Contains("image_url.detail")) __score1++;
+ if (__jsonProps.Contains("image_url.url")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("input_audio")) __score2++;
+ if (__jsonProps.Contains("input_audio.data")) __score2++;
+ if (__jsonProps.Contains("input_audio.format")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("file")) __score3++;
+ if (__jsonProps.Contains("file.file_data")) __score3++;
+ if (__jsonProps.Contains("file.file_id")) __score3++;
+ if (__jsonProps.Contains("file.filename")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs
index d3c1469c..26ff24ef 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOption.g.cs
@@ -23,18 +23,30 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
var __score1 = 0;
if (__jsonProps.Contains("allowed_tools")) __score1++;
+ if (__jsonProps.Contains("allowed_tools.mode")) __score1++;
+ if (__jsonProps.Contains("allowed_tools.tools")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("function")) __score2++;
+ if (__jsonProps.Contains("function.name")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("custom")) __score3++;
+ if (__jsonProps.Contains("custom.name")) __score3++;
if (__jsonProps.Contains("type")) __score3++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs
index a9396b43..20ac1676 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParam.g.cs
@@ -23,6 +23,14 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -30,6 +38,8 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("static")) __score1++;
+ if (__jsonProps.Contains("static.chunk_overlap_tokens")) __score1++;
+ if (__jsonProps.Contains("static.max_chunk_size_tokens")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs
index f219b153..37ebe0ba 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerAction.g.cs
@@ -23,6 +23,7 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs
index d76a7dd0..019dc604 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerToolCallOutputResource.g.cs
@@ -23,6 +23,14 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -31,6 +39,9 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J
if (__jsonProps.Contains("call_id")) __score0++;
if (__jsonProps.Contains("id")) __score0++;
if (__jsonProps.Contains("output")) __score0++;
+ if (__jsonProps.Contains("output.file_id")) __score0++;
+ if (__jsonProps.Contains("output.image_url")) __score0++;
+ if (__jsonProps.Contains("output.type")) __score0++;
if (__jsonProps.Contains("status")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs
index e6f9f6d8..9ba4bc80 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem3.g.cs
@@ -23,6 +23,7 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization.
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs
index b9c5aa46..bd6a98a3 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContentItem4.g.cs
@@ -23,6 +23,7 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization.
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs
index 637ae34d..e8f19b9a 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItem.g.cs
@@ -23,6 +23,14 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -97,6 +105,12 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat
if (__jsonProps.Contains("type")) __score12++;
var __score13 = 0;
if (__jsonProps.Contains("action")) __score13++;
+ if (__jsonProps.Contains("action.command")) __score13++;
+ if (__jsonProps.Contains("action.env")) __score13++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score13++;
+ if (__jsonProps.Contains("action.type")) __score13++;
+ if (__jsonProps.Contains("action.user")) __score13++;
+ if (__jsonProps.Contains("action.working_directory")) __score13++;
if (__jsonProps.Contains("call_id")) __score13++;
if (__jsonProps.Contains("id")) __score13++;
if (__jsonProps.Contains("status")) __score13++;
@@ -108,6 +122,9 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat
if (__jsonProps.Contains("type")) __score14++;
var __score15 = 0;
if (__jsonProps.Contains("action")) __score15++;
+ if (__jsonProps.Contains("action.commands")) __score15++;
+ if (__jsonProps.Contains("action.max_output_length")) __score15++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score15++;
if (__jsonProps.Contains("call_id")) __score15++;
if (__jsonProps.Contains("created_by")) __score15++;
if (__jsonProps.Contains("environment")) __score15++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs
index ddc03bd6..6a8c5f57 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationParam.g.cs
@@ -23,6 +23,7 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs
index 9248c800..6715154e 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequest.g.cs
@@ -23,12 +23,22 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
var __score1 = 0;
if (__jsonProps.Contains("audio")) __score1++;
+ if (__jsonProps.Contains("audio.format")) __score1++;
+ if (__jsonProps.Contains("audio.voice")) __score1++;
if (__jsonProps.Contains("frequency_penalty")) __score1++;
if (__jsonProps.Contains("function_call")) __score1++;
if (__jsonProps.Contains("functions")) __score1++;
@@ -55,6 +65,8 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json
if (__jsonProps.Contains("top_logprobs")) __score1++;
if (__jsonProps.Contains("verbosity")) __score1++;
if (__jsonProps.Contains("web_search_options")) __score1++;
+ if (__jsonProps.Contains("web_search_options.search_context_size")) __score1++;
+ if (__jsonProps.Contains("web_search_options.user_location")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs
index 7a581286..256ae3de 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateEvalItem.g.cs
@@ -23,6 +23,7 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs
index a6cc9224..db4166fb 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateModelResponseProperties.g.cs
@@ -23,6 +23,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs
index 070c9697..17595f73 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateResponse.g.cs
@@ -23,6 +23,14 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -35,6 +43,8 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio
if (__jsonProps.Contains("prompt")) __score1++;
if (__jsonProps.Contains("reasoning")) __score1++;
if (__jsonProps.Contains("text")) __score1++;
+ if (__jsonProps.Contains("text.format")) __score1++;
+ if (__jsonProps.Contains("text.verbosity")) __score1++;
if (__jsonProps.Contains("tool_choice")) __score1++;
if (__jsonProps.Contains("tools")) __score1++;
if (__jsonProps.Contains("truncation")) __score1++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs
index 5582f3ec..5dbd8a4b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEvent.g.cs
@@ -23,6 +23,14 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text.
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -32,6 +40,9 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text.
var __score1 = 0;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("usage")) __score1++;
+ if (__jsonProps.Contains("usage.input_tokens")) __score1++;
+ if (__jsonProps.Contains("usage.output_tokens")) __score1++;
+ if (__jsonProps.Contains("usage.total_tokens")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs
index 8197f6dc..41004612 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsage.g.cs
@@ -23,11 +23,21 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global:
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
if (__jsonProps.Contains("input_token_details")) __score0++;
+ if (__jsonProps.Contains("input_token_details.audio_tokens")) __score0++;
+ if (__jsonProps.Contains("input_token_details.text_tokens")) __score0++;
if (__jsonProps.Contains("input_tokens")) __score0++;
if (__jsonProps.Contains("output_tokens")) __score0++;
if (__jsonProps.Contains("total_tokens")) __score0++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs
index e3618e62..c10bac7a 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEvent.g.cs
@@ -23,6 +23,14 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -43,6 +51,11 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste
if (__jsonProps.Contains("text")) __score2++;
if (__jsonProps.Contains("type")) __score2++;
if (__jsonProps.Contains("usage")) __score2++;
+ if (__jsonProps.Contains("usage.input_token_details")) __score2++;
+ if (__jsonProps.Contains("usage.input_tokens")) __score2++;
+ if (__jsonProps.Contains("usage.output_tokens")) __score2++;
+ if (__jsonProps.Contains("usage.total_tokens")) __score2++;
+ if (__jsonProps.Contains("usage.type")) __score2++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs
index 17bb774a..50079a1b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallOutputResource.g.cs
@@ -23,6 +23,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs
index 489412fc..0ab14136 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolCallResource.g.cs
@@ -23,6 +23,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs
index c2e0e4bd..9612f537 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.DeletedConversation.g.cs
@@ -23,6 +23,7 @@ public class DeletedConversationJsonConverter : global::System.Text.Json.Seriali
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs
index ef3ce75b..c9dea72e 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant1.g.cs
@@ -23,6 +23,7 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs
index e00981e9..61cb2e9d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant12.g.cs
@@ -23,6 +23,7 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs
index 82cf582b..d89f4fae 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EnvironmentVariant13.g.cs
@@ -23,6 +23,7 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs
index 0043a3ba..437e63d7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderLabelModel.g.cs
@@ -23,6 +23,7 @@ public class EvalGraderLabelModelJsonConverter : global::System.Text.Json.Serial
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs
index fc6ef2c5..de5134d8 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderPython.g.cs
@@ -23,6 +23,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs
index eb1f7c21..e799e023 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderScoreModel.g.cs
@@ -23,6 +23,14 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -32,6 +40,11 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial
if (__jsonProps.Contains("name")) __score0++;
if (__jsonProps.Contains("range")) __score0++;
if (__jsonProps.Contains("sampling_params")) __score0++;
+ if (__jsonProps.Contains("sampling_params.max_completions_tokens")) __score0++;
+ if (__jsonProps.Contains("sampling_params.reasoning_effort")) __score0++;
+ if (__jsonProps.Contains("sampling_params.seed")) __score0++;
+ if (__jsonProps.Contains("sampling_params.temperature")) __score0++;
+ if (__jsonProps.Contains("sampling_params.top_p")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("pass_threshold")) __score1++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs
index 47e7c086..ac6d3c60 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderStringCheck.g.cs
@@ -23,6 +23,7 @@ public class EvalGraderStringCheckJsonConverter : global::System.Text.Json.Seria
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs
index 32e16153..c9f8143b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalGraderTextSimilarity.g.cs
@@ -23,6 +23,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs
index 0d63d0d5..acae3190 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContentItem.g.cs
@@ -23,6 +23,14 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -39,6 +47,8 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali
if (__jsonProps.Contains("type")) __score3++;
var __score4 = 0;
if (__jsonProps.Contains("input_audio")) __score4++;
+ if (__jsonProps.Contains("input_audio.data")) __score4++;
+ if (__jsonProps.Contains("input_audio.format")) __score4++;
if (__jsonProps.Contains("type")) __score4++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs
index a272827a..723ea19d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Filters2.g.cs
@@ -23,6 +23,7 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs
index 0fbc5bd3..af4e3786 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FiltersItem.g.cs
@@ -23,6 +23,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs
index 0ebfb528..62c7aff3 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FineTuneChatCompletionRequestAssistantMessage.g.cs
@@ -23,6 +23,7 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs
index aa05712e..7275546d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Format2.g.cs
@@ -23,6 +23,7 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs
index 9d688b3e..bc4c45c6 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutput.g.cs
@@ -23,6 +23,7 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text.
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs
index ab8e431f..4413bed1 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParam.g.cs
@@ -23,6 +23,7 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs
index e9e03f5f..393e8f4a 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallOutputResource.g.cs
@@ -23,6 +23,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs
index 4a06d7af..fc08fdf4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionToolCallResource.g.cs
@@ -23,6 +23,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs
index d02c26f7..9d5a6666 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEvent.g.cs
@@ -23,6 +23,14 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -44,6 +52,10 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial
if (__jsonProps.Contains("size")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("usage")) __score1++;
+ if (__jsonProps.Contains("usage.input_tokens")) __score1++;
+ if (__jsonProps.Contains("usage.input_tokens_details")) __score1++;
+ if (__jsonProps.Contains("usage.output_tokens")) __score1++;
+ if (__jsonProps.Contains("usage.total_tokens")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs
index 3f704507..dc04d303 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEvent.g.cs
@@ -23,6 +23,14 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -44,6 +52,10 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali
if (__jsonProps.Contains("size")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("usage")) __score1++;
+ if (__jsonProps.Contains("usage.input_tokens")) __score1++;
+ if (__jsonProps.Contains("usage.input_tokens_details")) __score1++;
+ if (__jsonProps.Contains("usage.output_tokens")) __score1++;
+ if (__jsonProps.Contains("usage.total_tokens")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs
index 03dde98c..dea5bc9a 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContent.g.cs
@@ -23,6 +23,7 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization.
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs
index 2bed7a56..8e28fe13 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItem.g.cs
@@ -23,6 +23,7 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs
index d161ba9c..ec87178b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputMessageResource.g.cs
@@ -23,6 +23,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs
index cbe22eee..0a2124aa 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Item.g.cs
@@ -23,6 +23,14 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -57,6 +65,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv
if (__jsonProps.Contains("call_id")) __score4++;
if (__jsonProps.Contains("id")) __score4++;
if (__jsonProps.Contains("output")) __score4++;
+ if (__jsonProps.Contains("output.file_id")) __score4++;
+ if (__jsonProps.Contains("output.image_url")) __score4++;
+ if (__jsonProps.Contains("output.type")) __score4++;
if (__jsonProps.Contains("status")) __score4++;
if (__jsonProps.Contains("type")) __score4++;
var __score5 = 0;
@@ -117,6 +128,12 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv
if (__jsonProps.Contains("type")) __score13++;
var __score14 = 0;
if (__jsonProps.Contains("action")) __score14++;
+ if (__jsonProps.Contains("action.command")) __score14++;
+ if (__jsonProps.Contains("action.env")) __score14++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score14++;
+ if (__jsonProps.Contains("action.type")) __score14++;
+ if (__jsonProps.Contains("action.user")) __score14++;
+ if (__jsonProps.Contains("action.working_directory")) __score14++;
if (__jsonProps.Contains("call_id")) __score14++;
if (__jsonProps.Contains("id")) __score14++;
if (__jsonProps.Contains("status")) __score14++;
@@ -128,6 +145,9 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv
if (__jsonProps.Contains("type")) __score15++;
var __score16 = 0;
if (__jsonProps.Contains("action")) __score16++;
+ if (__jsonProps.Contains("action.commands")) __score16++;
+ if (__jsonProps.Contains("action.max_output_length")) __score16++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score16++;
if (__jsonProps.Contains("call_id")) __score16++;
if (__jsonProps.Contains("environment")) __score16++;
if (__jsonProps.Contains("id")) __score16++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs
index 246e3fc6..50bb4973 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemField.g.cs
@@ -23,6 +23,14 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -109,6 +117,12 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso
if (__jsonProps.Contains("type")) __score12++;
var __score13 = 0;
if (__jsonProps.Contains("action")) __score13++;
+ if (__jsonProps.Contains("action.command")) __score13++;
+ if (__jsonProps.Contains("action.env")) __score13++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score13++;
+ if (__jsonProps.Contains("action.type")) __score13++;
+ if (__jsonProps.Contains("action.user")) __score13++;
+ if (__jsonProps.Contains("action.working_directory")) __score13++;
if (__jsonProps.Contains("call_id")) __score13++;
if (__jsonProps.Contains("id")) __score13++;
if (__jsonProps.Contains("status")) __score13++;
@@ -120,6 +134,9 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso
if (__jsonProps.Contains("type")) __score14++;
var __score15 = 0;
if (__jsonProps.Contains("action")) __score15++;
+ if (__jsonProps.Contains("action.commands")) __score15++;
+ if (__jsonProps.Contains("action.max_output_length")) __score15++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score15++;
if (__jsonProps.Contains("call_id")) __score15++;
if (__jsonProps.Contains("created_by")) __score15++;
if (__jsonProps.Contains("environment")) __score15++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs
index d5f61c25..7a51bc5b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResource.g.cs
@@ -23,6 +23,14 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization.
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -98,6 +106,12 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization.
if (__jsonProps.Contains("type")) __score13++;
var __score14 = 0;
if (__jsonProps.Contains("action")) __score14++;
+ if (__jsonProps.Contains("action.command")) __score14++;
+ if (__jsonProps.Contains("action.env")) __score14++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score14++;
+ if (__jsonProps.Contains("action.type")) __score14++;
+ if (__jsonProps.Contains("action.user")) __score14++;
+ if (__jsonProps.Contains("action.working_directory")) __score14++;
if (__jsonProps.Contains("call_id")) __score14++;
if (__jsonProps.Contains("id")) __score14++;
if (__jsonProps.Contains("status")) __score14++;
@@ -109,6 +123,9 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization.
if (__jsonProps.Contains("type")) __score15++;
var __score16 = 0;
if (__jsonProps.Contains("action")) __score16++;
+ if (__jsonProps.Contains("action.commands")) __score16++;
+ if (__jsonProps.Contains("action.max_output_length")) __score16++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score16++;
if (__jsonProps.Contains("call_id")) __score16++;
if (__jsonProps.Contains("created_by")) __score16++;
if (__jsonProps.Contains("environment")) __score16++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs
index f6266cd7..e8c95f36 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageStreamEvent.g.cs
@@ -23,23 +23,90 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
if (__jsonProps.Contains("data")) __score0++;
+ if (__jsonProps.Contains("data.assistant_id")) __score0++;
+ if (__jsonProps.Contains("data.attachments")) __score0++;
+ if (__jsonProps.Contains("data.completed_at")) __score0++;
+ if (__jsonProps.Contains("data.content")) __score0++;
+ if (__jsonProps.Contains("data.created_at")) __score0++;
+ if (__jsonProps.Contains("data.id")) __score0++;
+ if (__jsonProps.Contains("data.incomplete_at")) __score0++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score0++;
+ if (__jsonProps.Contains("data.metadata")) __score0++;
+ if (__jsonProps.Contains("data.object")) __score0++;
+ if (__jsonProps.Contains("data.role")) __score0++;
+ if (__jsonProps.Contains("data.run_id")) __score0++;
+ if (__jsonProps.Contains("data.status")) __score0++;
+ if (__jsonProps.Contains("data.thread_id")) __score0++;
if (__jsonProps.Contains("event")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("data")) __score1++;
+ if (__jsonProps.Contains("data.assistant_id")) __score1++;
+ if (__jsonProps.Contains("data.attachments")) __score1++;
+ if (__jsonProps.Contains("data.completed_at")) __score1++;
+ if (__jsonProps.Contains("data.content")) __score1++;
+ if (__jsonProps.Contains("data.created_at")) __score1++;
+ if (__jsonProps.Contains("data.id")) __score1++;
+ if (__jsonProps.Contains("data.incomplete_at")) __score1++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score1++;
+ if (__jsonProps.Contains("data.metadata")) __score1++;
+ if (__jsonProps.Contains("data.object")) __score1++;
+ if (__jsonProps.Contains("data.role")) __score1++;
+ if (__jsonProps.Contains("data.run_id")) __score1++;
+ if (__jsonProps.Contains("data.status")) __score1++;
+ if (__jsonProps.Contains("data.thread_id")) __score1++;
if (__jsonProps.Contains("event")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("data")) __score2++;
+ if (__jsonProps.Contains("data.delta")) __score2++;
+ if (__jsonProps.Contains("data.id")) __score2++;
+ if (__jsonProps.Contains("data.object")) __score2++;
if (__jsonProps.Contains("event")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("data")) __score3++;
+ if (__jsonProps.Contains("data.assistant_id")) __score3++;
+ if (__jsonProps.Contains("data.attachments")) __score3++;
+ if (__jsonProps.Contains("data.completed_at")) __score3++;
+ if (__jsonProps.Contains("data.content")) __score3++;
+ if (__jsonProps.Contains("data.created_at")) __score3++;
+ if (__jsonProps.Contains("data.id")) __score3++;
+ if (__jsonProps.Contains("data.incomplete_at")) __score3++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score3++;
+ if (__jsonProps.Contains("data.metadata")) __score3++;
+ if (__jsonProps.Contains("data.object")) __score3++;
+ if (__jsonProps.Contains("data.role")) __score3++;
+ if (__jsonProps.Contains("data.run_id")) __score3++;
+ if (__jsonProps.Contains("data.status")) __score3++;
+ if (__jsonProps.Contains("data.thread_id")) __score3++;
if (__jsonProps.Contains("event")) __score3++;
var __score4 = 0;
if (__jsonProps.Contains("data")) __score4++;
+ if (__jsonProps.Contains("data.assistant_id")) __score4++;
+ if (__jsonProps.Contains("data.attachments")) __score4++;
+ if (__jsonProps.Contains("data.completed_at")) __score4++;
+ if (__jsonProps.Contains("data.content")) __score4++;
+ if (__jsonProps.Contains("data.created_at")) __score4++;
+ if (__jsonProps.Contains("data.id")) __score4++;
+ if (__jsonProps.Contains("data.incomplete_at")) __score4++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score4++;
+ if (__jsonProps.Contains("data.metadata")) __score4++;
+ if (__jsonProps.Contains("data.object")) __score4++;
+ if (__jsonProps.Contains("data.role")) __score4++;
+ if (__jsonProps.Contains("data.run_id")) __score4++;
+ if (__jsonProps.Contains("data.status")) __score4++;
+ if (__jsonProps.Contains("data.thread_id")) __score4++;
if (__jsonProps.Contains("event")) __score4++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs
index 1ba9ca7f..05344b95 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy.g.cs
@@ -23,6 +23,7 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs
index 99deecbe..e49d8d72 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy2.g.cs
@@ -23,6 +23,7 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs
index 1b6282bf..a0dd69fa 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NetworkPolicy3.g.cs
@@ -23,6 +23,7 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs
index 4427c578..cad005e2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Operation.g.cs
@@ -23,6 +23,7 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs
index 80b59eff..070ff997 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Outcome.g.cs
@@ -23,6 +23,7 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs
index e75988a0..fbbf018b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContent.g.cs
@@ -23,6 +23,7 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs
index 374368dd..18b12654 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItem.g.cs
@@ -23,6 +23,14 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -104,6 +112,12 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js
if (__jsonProps.Contains("type")) __score12++;
var __score13 = 0;
if (__jsonProps.Contains("action")) __score13++;
+ if (__jsonProps.Contains("action.command")) __score13++;
+ if (__jsonProps.Contains("action.env")) __score13++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score13++;
+ if (__jsonProps.Contains("action.type")) __score13++;
+ if (__jsonProps.Contains("action.user")) __score13++;
+ if (__jsonProps.Contains("action.working_directory")) __score13++;
if (__jsonProps.Contains("call_id")) __score13++;
if (__jsonProps.Contains("id")) __score13++;
if (__jsonProps.Contains("status")) __score13++;
@@ -115,6 +129,9 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js
if (__jsonProps.Contains("type")) __score14++;
var __score15 = 0;
if (__jsonProps.Contains("action")) __score15++;
+ if (__jsonProps.Contains("action.commands")) __score15++;
+ if (__jsonProps.Contains("action.max_output_length")) __score15++;
+ if (__jsonProps.Contains("action.timeout_ms")) __score15++;
if (__jsonProps.Contains("call_id")) __score15++;
if (__jsonProps.Contains("created_by")) __score15++;
if (__jsonProps.Contains("environment")) __score15++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs
index d0607b0a..f82df932 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContent.g.cs
@@ -23,6 +23,7 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs
index 191de876..d9528071 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputVariant2Item.g.cs
@@ -23,6 +23,7 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs
index 8a09a3a8..b546972d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputsVariant1Item.g.cs
@@ -23,6 +23,7 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs
index 75ffdbdd..5c7bb1c1 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeAudioFormats.g.cs
@@ -23,6 +23,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs
index 611a0d0f..f8aaf370 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEvent.g.cs
@@ -23,6 +23,14 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -65,6 +73,16 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali
var __score9 = 0;
if (__jsonProps.Contains("event_id")) __score9++;
if (__jsonProps.Contains("response")) __score9++;
+ if (__jsonProps.Contains("response.audio")) __score9++;
+ if (__jsonProps.Contains("response.conversation")) __score9++;
+ if (__jsonProps.Contains("response.input")) __score9++;
+ if (__jsonProps.Contains("response.instructions")) __score9++;
+ if (__jsonProps.Contains("response.max_output_tokens")) __score9++;
+ if (__jsonProps.Contains("response.metadata")) __score9++;
+ if (__jsonProps.Contains("response.output_modalities")) __score9++;
+ if (__jsonProps.Contains("response.prompt")) __score9++;
+ if (__jsonProps.Contains("response.tool_choice")) __score9++;
+ if (__jsonProps.Contains("response.tools")) __score9++;
if (__jsonProps.Contains("type")) __score9++;
var __score10 = 0;
if (__jsonProps.Contains("event_id")) __score10++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs
index 77be0431..41fdf4fa 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItem.g.cs
@@ -23,6 +23,7 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs
index 641dc4ef..ffc324f3 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEvent.g.cs
@@ -23,11 +23,21 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
if (__jsonProps.Contains("conversation")) __score0++;
+ if (__jsonProps.Contains("conversation.id")) __score0++;
+ if (__jsonProps.Contains("conversation.object")) __score0++;
if (__jsonProps.Contains("event_id")) __score0++;
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
@@ -57,6 +67,10 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali
var __score5 = 0;
if (__jsonProps.Contains("content_index")) __score5++;
if (__jsonProps.Contains("error")) __score5++;
+ if (__jsonProps.Contains("error.code")) __score5++;
+ if (__jsonProps.Contains("error.message")) __score5++;
+ if (__jsonProps.Contains("error.param")) __score5++;
+ if (__jsonProps.Contains("error.type")) __score5++;
if (__jsonProps.Contains("event_id")) __score5++;
if (__jsonProps.Contains("item_id")) __score5++;
if (__jsonProps.Contains("type")) __score5++;
@@ -72,6 +86,11 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali
if (__jsonProps.Contains("type")) __score7++;
var __score8 = 0;
if (__jsonProps.Contains("error")) __score8++;
+ if (__jsonProps.Contains("error.code")) __score8++;
+ if (__jsonProps.Contains("error.event_id")) __score8++;
+ if (__jsonProps.Contains("error.message")) __score8++;
+ if (__jsonProps.Contains("error.param")) __score8++;
+ if (__jsonProps.Contains("error.type")) __score8++;
if (__jsonProps.Contains("event_id")) __score8++;
if (__jsonProps.Contains("type")) __score8++;
var __score9 = 0;
@@ -137,6 +156,10 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali
if (__jsonProps.Contains("item_id")) __score19++;
if (__jsonProps.Contains("output_index")) __score19++;
if (__jsonProps.Contains("part")) __score19++;
+ if (__jsonProps.Contains("part.audio")) __score19++;
+ if (__jsonProps.Contains("part.text")) __score19++;
+ if (__jsonProps.Contains("part.transcript")) __score19++;
+ if (__jsonProps.Contains("part.type")) __score19++;
if (__jsonProps.Contains("response_id")) __score19++;
if (__jsonProps.Contains("type")) __score19++;
var __score20 = 0;
@@ -145,15 +168,41 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali
if (__jsonProps.Contains("item_id")) __score20++;
if (__jsonProps.Contains("output_index")) __score20++;
if (__jsonProps.Contains("part")) __score20++;
+ if (__jsonProps.Contains("part.audio")) __score20++;
+ if (__jsonProps.Contains("part.text")) __score20++;
+ if (__jsonProps.Contains("part.transcript")) __score20++;
+ if (__jsonProps.Contains("part.type")) __score20++;
if (__jsonProps.Contains("response_id")) __score20++;
if (__jsonProps.Contains("type")) __score20++;
var __score21 = 0;
if (__jsonProps.Contains("event_id")) __score21++;
if (__jsonProps.Contains("response")) __score21++;
+ if (__jsonProps.Contains("response.audio")) __score21++;
+ if (__jsonProps.Contains("response.conversation_id")) __score21++;
+ if (__jsonProps.Contains("response.id")) __score21++;
+ if (__jsonProps.Contains("response.max_output_tokens")) __score21++;
+ if (__jsonProps.Contains("response.metadata")) __score21++;
+ if (__jsonProps.Contains("response.object")) __score21++;
+ if (__jsonProps.Contains("response.output")) __score21++;
+ if (__jsonProps.Contains("response.output_modalities")) __score21++;
+ if (__jsonProps.Contains("response.status")) __score21++;
+ if (__jsonProps.Contains("response.status_details")) __score21++;
+ if (__jsonProps.Contains("response.usage")) __score21++;
if (__jsonProps.Contains("type")) __score21++;
var __score22 = 0;
if (__jsonProps.Contains("event_id")) __score22++;
if (__jsonProps.Contains("response")) __score22++;
+ if (__jsonProps.Contains("response.audio")) __score22++;
+ if (__jsonProps.Contains("response.conversation_id")) __score22++;
+ if (__jsonProps.Contains("response.id")) __score22++;
+ if (__jsonProps.Contains("response.max_output_tokens")) __score22++;
+ if (__jsonProps.Contains("response.metadata")) __score22++;
+ if (__jsonProps.Contains("response.object")) __score22++;
+ if (__jsonProps.Contains("response.output")) __score22++;
+ if (__jsonProps.Contains("response.output_modalities")) __score22++;
+ if (__jsonProps.Contains("response.status")) __score22++;
+ if (__jsonProps.Contains("response.status_details")) __score22++;
+ if (__jsonProps.Contains("response.usage")) __score22++;
if (__jsonProps.Contains("type")) __score22++;
var __score23 = 0;
if (__jsonProps.Contains("call_id")) __score23++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs
index 355034f2..6f642a39 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTruncation.g.cs
@@ -23,6 +23,14 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -30,6 +38,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ
var __score1 = 0;
if (__jsonProps.Contains("retention_ratio")) __score1++;
if (__jsonProps.Contains("token_limits")) __score1++;
+ if (__jsonProps.Contains("token_limits.post_instructions")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs
index 7a791d49..718358e5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs
@@ -23,6 +23,7 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global::
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs
index 8b1e0d3c..eac9a122 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Response.g.cs
@@ -23,6 +23,14 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -44,6 +52,8 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json
if (__jsonProps.Contains("prompt")) __score1++;
if (__jsonProps.Contains("reasoning")) __score1++;
if (__jsonProps.Contains("text")) __score1++;
+ if (__jsonProps.Contains("text.format")) __score1++;
+ if (__jsonProps.Contains("text.verbosity")) __score1++;
if (__jsonProps.Contains("tool_choice")) __score1++;
if (__jsonProps.Contains("tools")) __score1++;
if (__jsonProps.Contains("truncation")) __score1++;
@@ -62,6 +72,11 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json
if (__jsonProps.Contains("parallel_tool_calls")) __score2++;
if (__jsonProps.Contains("status")) __score2++;
if (__jsonProps.Contains("usage")) __score2++;
+ if (__jsonProps.Contains("usage.input_tokens")) __score2++;
+ if (__jsonProps.Contains("usage.input_tokens_details")) __score2++;
+ if (__jsonProps.Contains("usage.output_tokens")) __score2++;
+ if (__jsonProps.Contains("usage.output_tokens_details")) __score2++;
+ if (__jsonProps.Contains("usage.total_tokens")) __score2++;
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs
index 457366a9..5fca4eb7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseFormat.g.cs
@@ -23,6 +23,14 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -30,6 +38,10 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("json_schema")) __score1++;
+ if (__jsonProps.Contains("json_schema.description")) __score1++;
+ if (__jsonProps.Contains("json_schema.name")) __score1++;
+ if (__jsonProps.Contains("json_schema.schema")) __score1++;
+ if (__jsonProps.Contains("json_schema.strict")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("type")) __score2++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs
index 8d271516..ff96211f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEvent.g.cs
@@ -23,6 +23,14 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -149,6 +157,8 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali
if (__jsonProps.Contains("item_id")) __score24++;
if (__jsonProps.Contains("output_index")) __score24++;
if (__jsonProps.Contains("part")) __score24++;
+ if (__jsonProps.Contains("part.text")) __score24++;
+ if (__jsonProps.Contains("part.type")) __score24++;
if (__jsonProps.Contains("sequence_number")) __score24++;
if (__jsonProps.Contains("summary_index")) __score24++;
if (__jsonProps.Contains("type")) __score24++;
@@ -156,6 +166,8 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali
if (__jsonProps.Contains("item_id")) __score25++;
if (__jsonProps.Contains("output_index")) __score25++;
if (__jsonProps.Contains("part")) __score25++;
+ if (__jsonProps.Contains("part.text")) __score25++;
+ if (__jsonProps.Contains("part.type")) __score25++;
if (__jsonProps.Contains("sequence_number")) __score25++;
if (__jsonProps.Contains("summary_index")) __score25++;
if (__jsonProps.Contains("type")) __score25++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs
index d7c5c4db..3dc9cb85 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponsesClientEventResponseCreate.g.cs
@@ -23,6 +23,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs
index a3e74fb4..c46e3a6c 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStepStreamEvent.g.cs
@@ -23,29 +23,136 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
if (__jsonProps.Contains("data")) __score0++;
+ if (__jsonProps.Contains("data.assistant_id")) __score0++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score0++;
+ if (__jsonProps.Contains("data.completed_at")) __score0++;
+ if (__jsonProps.Contains("data.created_at")) __score0++;
+ if (__jsonProps.Contains("data.expired_at")) __score0++;
+ if (__jsonProps.Contains("data.failed_at")) __score0++;
+ if (__jsonProps.Contains("data.id")) __score0++;
+ if (__jsonProps.Contains("data.last_error")) __score0++;
+ if (__jsonProps.Contains("data.metadata")) __score0++;
+ if (__jsonProps.Contains("data.object")) __score0++;
+ if (__jsonProps.Contains("data.run_id")) __score0++;
+ if (__jsonProps.Contains("data.status")) __score0++;
+ if (__jsonProps.Contains("data.step_details")) __score0++;
+ if (__jsonProps.Contains("data.thread_id")) __score0++;
+ if (__jsonProps.Contains("data.type")) __score0++;
+ if (__jsonProps.Contains("data.usage")) __score0++;
if (__jsonProps.Contains("event")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("data")) __score1++;
+ if (__jsonProps.Contains("data.assistant_id")) __score1++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score1++;
+ if (__jsonProps.Contains("data.completed_at")) __score1++;
+ if (__jsonProps.Contains("data.created_at")) __score1++;
+ if (__jsonProps.Contains("data.expired_at")) __score1++;
+ if (__jsonProps.Contains("data.failed_at")) __score1++;
+ if (__jsonProps.Contains("data.id")) __score1++;
+ if (__jsonProps.Contains("data.last_error")) __score1++;
+ if (__jsonProps.Contains("data.metadata")) __score1++;
+ if (__jsonProps.Contains("data.object")) __score1++;
+ if (__jsonProps.Contains("data.run_id")) __score1++;
+ if (__jsonProps.Contains("data.status")) __score1++;
+ if (__jsonProps.Contains("data.step_details")) __score1++;
+ if (__jsonProps.Contains("data.thread_id")) __score1++;
+ if (__jsonProps.Contains("data.type")) __score1++;
+ if (__jsonProps.Contains("data.usage")) __score1++;
if (__jsonProps.Contains("event")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("data")) __score2++;
+ if (__jsonProps.Contains("data.delta")) __score2++;
+ if (__jsonProps.Contains("data.id")) __score2++;
+ if (__jsonProps.Contains("data.object")) __score2++;
if (__jsonProps.Contains("event")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("data")) __score3++;
+ if (__jsonProps.Contains("data.assistant_id")) __score3++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score3++;
+ if (__jsonProps.Contains("data.completed_at")) __score3++;
+ if (__jsonProps.Contains("data.created_at")) __score3++;
+ if (__jsonProps.Contains("data.expired_at")) __score3++;
+ if (__jsonProps.Contains("data.failed_at")) __score3++;
+ if (__jsonProps.Contains("data.id")) __score3++;
+ if (__jsonProps.Contains("data.last_error")) __score3++;
+ if (__jsonProps.Contains("data.metadata")) __score3++;
+ if (__jsonProps.Contains("data.object")) __score3++;
+ if (__jsonProps.Contains("data.run_id")) __score3++;
+ if (__jsonProps.Contains("data.status")) __score3++;
+ if (__jsonProps.Contains("data.step_details")) __score3++;
+ if (__jsonProps.Contains("data.thread_id")) __score3++;
+ if (__jsonProps.Contains("data.type")) __score3++;
+ if (__jsonProps.Contains("data.usage")) __score3++;
if (__jsonProps.Contains("event")) __score3++;
var __score4 = 0;
if (__jsonProps.Contains("data")) __score4++;
+ if (__jsonProps.Contains("data.assistant_id")) __score4++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score4++;
+ if (__jsonProps.Contains("data.completed_at")) __score4++;
+ if (__jsonProps.Contains("data.created_at")) __score4++;
+ if (__jsonProps.Contains("data.expired_at")) __score4++;
+ if (__jsonProps.Contains("data.failed_at")) __score4++;
+ if (__jsonProps.Contains("data.id")) __score4++;
+ if (__jsonProps.Contains("data.last_error")) __score4++;
+ if (__jsonProps.Contains("data.metadata")) __score4++;
+ if (__jsonProps.Contains("data.object")) __score4++;
+ if (__jsonProps.Contains("data.run_id")) __score4++;
+ if (__jsonProps.Contains("data.status")) __score4++;
+ if (__jsonProps.Contains("data.step_details")) __score4++;
+ if (__jsonProps.Contains("data.thread_id")) __score4++;
+ if (__jsonProps.Contains("data.type")) __score4++;
+ if (__jsonProps.Contains("data.usage")) __score4++;
if (__jsonProps.Contains("event")) __score4++;
var __score5 = 0;
if (__jsonProps.Contains("data")) __score5++;
+ if (__jsonProps.Contains("data.assistant_id")) __score5++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score5++;
+ if (__jsonProps.Contains("data.completed_at")) __score5++;
+ if (__jsonProps.Contains("data.created_at")) __score5++;
+ if (__jsonProps.Contains("data.expired_at")) __score5++;
+ if (__jsonProps.Contains("data.failed_at")) __score5++;
+ if (__jsonProps.Contains("data.id")) __score5++;
+ if (__jsonProps.Contains("data.last_error")) __score5++;
+ if (__jsonProps.Contains("data.metadata")) __score5++;
+ if (__jsonProps.Contains("data.object")) __score5++;
+ if (__jsonProps.Contains("data.run_id")) __score5++;
+ if (__jsonProps.Contains("data.status")) __score5++;
+ if (__jsonProps.Contains("data.step_details")) __score5++;
+ if (__jsonProps.Contains("data.thread_id")) __score5++;
+ if (__jsonProps.Contains("data.type")) __score5++;
+ if (__jsonProps.Contains("data.usage")) __score5++;
if (__jsonProps.Contains("event")) __score5++;
var __score6 = 0;
if (__jsonProps.Contains("data")) __score6++;
+ if (__jsonProps.Contains("data.assistant_id")) __score6++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score6++;
+ if (__jsonProps.Contains("data.completed_at")) __score6++;
+ if (__jsonProps.Contains("data.created_at")) __score6++;
+ if (__jsonProps.Contains("data.expired_at")) __score6++;
+ if (__jsonProps.Contains("data.failed_at")) __score6++;
+ if (__jsonProps.Contains("data.id")) __score6++;
+ if (__jsonProps.Contains("data.last_error")) __score6++;
+ if (__jsonProps.Contains("data.metadata")) __score6++;
+ if (__jsonProps.Contains("data.object")) __score6++;
+ if (__jsonProps.Contains("data.run_id")) __score6++;
+ if (__jsonProps.Contains("data.status")) __score6++;
+ if (__jsonProps.Contains("data.step_details")) __score6++;
+ if (__jsonProps.Contains("data.thread_id")) __score6++;
+ if (__jsonProps.Contains("data.type")) __score6++;
+ if (__jsonProps.Contains("data.usage")) __score6++;
if (__jsonProps.Contains("event")) __score6++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs
index b809d934..3cb3564b 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RunStreamEvent.g.cs
@@ -23,38 +23,316 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
if (__jsonProps.Contains("data")) __score0++;
+ if (__jsonProps.Contains("data.assistant_id")) __score0++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score0++;
+ if (__jsonProps.Contains("data.completed_at")) __score0++;
+ if (__jsonProps.Contains("data.created_at")) __score0++;
+ if (__jsonProps.Contains("data.expires_at")) __score0++;
+ if (__jsonProps.Contains("data.failed_at")) __score0++;
+ if (__jsonProps.Contains("data.id")) __score0++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score0++;
+ if (__jsonProps.Contains("data.instructions")) __score0++;
+ if (__jsonProps.Contains("data.last_error")) __score0++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score0++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score0++;
+ if (__jsonProps.Contains("data.metadata")) __score0++;
+ if (__jsonProps.Contains("data.model")) __score0++;
+ if (__jsonProps.Contains("data.object")) __score0++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score0++;
+ if (__jsonProps.Contains("data.required_action")) __score0++;
+ if (__jsonProps.Contains("data.response_format")) __score0++;
+ if (__jsonProps.Contains("data.started_at")) __score0++;
+ if (__jsonProps.Contains("data.status")) __score0++;
+ if (__jsonProps.Contains("data.temperature")) __score0++;
+ if (__jsonProps.Contains("data.thread_id")) __score0++;
+ if (__jsonProps.Contains("data.tool_choice")) __score0++;
+ if (__jsonProps.Contains("data.tools")) __score0++;
+ if (__jsonProps.Contains("data.top_p")) __score0++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score0++;
+ if (__jsonProps.Contains("data.usage")) __score0++;
if (__jsonProps.Contains("event")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("data")) __score1++;
+ if (__jsonProps.Contains("data.assistant_id")) __score1++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score1++;
+ if (__jsonProps.Contains("data.completed_at")) __score1++;
+ if (__jsonProps.Contains("data.created_at")) __score1++;
+ if (__jsonProps.Contains("data.expires_at")) __score1++;
+ if (__jsonProps.Contains("data.failed_at")) __score1++;
+ if (__jsonProps.Contains("data.id")) __score1++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score1++;
+ if (__jsonProps.Contains("data.instructions")) __score1++;
+ if (__jsonProps.Contains("data.last_error")) __score1++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score1++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score1++;
+ if (__jsonProps.Contains("data.metadata")) __score1++;
+ if (__jsonProps.Contains("data.model")) __score1++;
+ if (__jsonProps.Contains("data.object")) __score1++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score1++;
+ if (__jsonProps.Contains("data.required_action")) __score1++;
+ if (__jsonProps.Contains("data.response_format")) __score1++;
+ if (__jsonProps.Contains("data.started_at")) __score1++;
+ if (__jsonProps.Contains("data.status")) __score1++;
+ if (__jsonProps.Contains("data.temperature")) __score1++;
+ if (__jsonProps.Contains("data.thread_id")) __score1++;
+ if (__jsonProps.Contains("data.tool_choice")) __score1++;
+ if (__jsonProps.Contains("data.tools")) __score1++;
+ if (__jsonProps.Contains("data.top_p")) __score1++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score1++;
+ if (__jsonProps.Contains("data.usage")) __score1++;
if (__jsonProps.Contains("event")) __score1++;
var __score2 = 0;
if (__jsonProps.Contains("data")) __score2++;
+ if (__jsonProps.Contains("data.assistant_id")) __score2++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score2++;
+ if (__jsonProps.Contains("data.completed_at")) __score2++;
+ if (__jsonProps.Contains("data.created_at")) __score2++;
+ if (__jsonProps.Contains("data.expires_at")) __score2++;
+ if (__jsonProps.Contains("data.failed_at")) __score2++;
+ if (__jsonProps.Contains("data.id")) __score2++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score2++;
+ if (__jsonProps.Contains("data.instructions")) __score2++;
+ if (__jsonProps.Contains("data.last_error")) __score2++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score2++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score2++;
+ if (__jsonProps.Contains("data.metadata")) __score2++;
+ if (__jsonProps.Contains("data.model")) __score2++;
+ if (__jsonProps.Contains("data.object")) __score2++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score2++;
+ if (__jsonProps.Contains("data.required_action")) __score2++;
+ if (__jsonProps.Contains("data.response_format")) __score2++;
+ if (__jsonProps.Contains("data.started_at")) __score2++;
+ if (__jsonProps.Contains("data.status")) __score2++;
+ if (__jsonProps.Contains("data.temperature")) __score2++;
+ if (__jsonProps.Contains("data.thread_id")) __score2++;
+ if (__jsonProps.Contains("data.tool_choice")) __score2++;
+ if (__jsonProps.Contains("data.tools")) __score2++;
+ if (__jsonProps.Contains("data.top_p")) __score2++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score2++;
+ if (__jsonProps.Contains("data.usage")) __score2++;
if (__jsonProps.Contains("event")) __score2++;
var __score3 = 0;
if (__jsonProps.Contains("data")) __score3++;
+ if (__jsonProps.Contains("data.assistant_id")) __score3++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score3++;
+ if (__jsonProps.Contains("data.completed_at")) __score3++;
+ if (__jsonProps.Contains("data.created_at")) __score3++;
+ if (__jsonProps.Contains("data.expires_at")) __score3++;
+ if (__jsonProps.Contains("data.failed_at")) __score3++;
+ if (__jsonProps.Contains("data.id")) __score3++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score3++;
+ if (__jsonProps.Contains("data.instructions")) __score3++;
+ if (__jsonProps.Contains("data.last_error")) __score3++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score3++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score3++;
+ if (__jsonProps.Contains("data.metadata")) __score3++;
+ if (__jsonProps.Contains("data.model")) __score3++;
+ if (__jsonProps.Contains("data.object")) __score3++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score3++;
+ if (__jsonProps.Contains("data.required_action")) __score3++;
+ if (__jsonProps.Contains("data.response_format")) __score3++;
+ if (__jsonProps.Contains("data.started_at")) __score3++;
+ if (__jsonProps.Contains("data.status")) __score3++;
+ if (__jsonProps.Contains("data.temperature")) __score3++;
+ if (__jsonProps.Contains("data.thread_id")) __score3++;
+ if (__jsonProps.Contains("data.tool_choice")) __score3++;
+ if (__jsonProps.Contains("data.tools")) __score3++;
+ if (__jsonProps.Contains("data.top_p")) __score3++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score3++;
+ if (__jsonProps.Contains("data.usage")) __score3++;
if (__jsonProps.Contains("event")) __score3++;
var __score4 = 0;
if (__jsonProps.Contains("data")) __score4++;
+ if (__jsonProps.Contains("data.assistant_id")) __score4++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score4++;
+ if (__jsonProps.Contains("data.completed_at")) __score4++;
+ if (__jsonProps.Contains("data.created_at")) __score4++;
+ if (__jsonProps.Contains("data.expires_at")) __score4++;
+ if (__jsonProps.Contains("data.failed_at")) __score4++;
+ if (__jsonProps.Contains("data.id")) __score4++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score4++;
+ if (__jsonProps.Contains("data.instructions")) __score4++;
+ if (__jsonProps.Contains("data.last_error")) __score4++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score4++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score4++;
+ if (__jsonProps.Contains("data.metadata")) __score4++;
+ if (__jsonProps.Contains("data.model")) __score4++;
+ if (__jsonProps.Contains("data.object")) __score4++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score4++;
+ if (__jsonProps.Contains("data.required_action")) __score4++;
+ if (__jsonProps.Contains("data.response_format")) __score4++;
+ if (__jsonProps.Contains("data.started_at")) __score4++;
+ if (__jsonProps.Contains("data.status")) __score4++;
+ if (__jsonProps.Contains("data.temperature")) __score4++;
+ if (__jsonProps.Contains("data.thread_id")) __score4++;
+ if (__jsonProps.Contains("data.tool_choice")) __score4++;
+ if (__jsonProps.Contains("data.tools")) __score4++;
+ if (__jsonProps.Contains("data.top_p")) __score4++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score4++;
+ if (__jsonProps.Contains("data.usage")) __score4++;
if (__jsonProps.Contains("event")) __score4++;
var __score5 = 0;
if (__jsonProps.Contains("data")) __score5++;
+ if (__jsonProps.Contains("data.assistant_id")) __score5++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score5++;
+ if (__jsonProps.Contains("data.completed_at")) __score5++;
+ if (__jsonProps.Contains("data.created_at")) __score5++;
+ if (__jsonProps.Contains("data.expires_at")) __score5++;
+ if (__jsonProps.Contains("data.failed_at")) __score5++;
+ if (__jsonProps.Contains("data.id")) __score5++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score5++;
+ if (__jsonProps.Contains("data.instructions")) __score5++;
+ if (__jsonProps.Contains("data.last_error")) __score5++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score5++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score5++;
+ if (__jsonProps.Contains("data.metadata")) __score5++;
+ if (__jsonProps.Contains("data.model")) __score5++;
+ if (__jsonProps.Contains("data.object")) __score5++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score5++;
+ if (__jsonProps.Contains("data.required_action")) __score5++;
+ if (__jsonProps.Contains("data.response_format")) __score5++;
+ if (__jsonProps.Contains("data.started_at")) __score5++;
+ if (__jsonProps.Contains("data.status")) __score5++;
+ if (__jsonProps.Contains("data.temperature")) __score5++;
+ if (__jsonProps.Contains("data.thread_id")) __score5++;
+ if (__jsonProps.Contains("data.tool_choice")) __score5++;
+ if (__jsonProps.Contains("data.tools")) __score5++;
+ if (__jsonProps.Contains("data.top_p")) __score5++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score5++;
+ if (__jsonProps.Contains("data.usage")) __score5++;
if (__jsonProps.Contains("event")) __score5++;
var __score6 = 0;
if (__jsonProps.Contains("data")) __score6++;
+ if (__jsonProps.Contains("data.assistant_id")) __score6++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score6++;
+ if (__jsonProps.Contains("data.completed_at")) __score6++;
+ if (__jsonProps.Contains("data.created_at")) __score6++;
+ if (__jsonProps.Contains("data.expires_at")) __score6++;
+ if (__jsonProps.Contains("data.failed_at")) __score6++;
+ if (__jsonProps.Contains("data.id")) __score6++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score6++;
+ if (__jsonProps.Contains("data.instructions")) __score6++;
+ if (__jsonProps.Contains("data.last_error")) __score6++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score6++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score6++;
+ if (__jsonProps.Contains("data.metadata")) __score6++;
+ if (__jsonProps.Contains("data.model")) __score6++;
+ if (__jsonProps.Contains("data.object")) __score6++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score6++;
+ if (__jsonProps.Contains("data.required_action")) __score6++;
+ if (__jsonProps.Contains("data.response_format")) __score6++;
+ if (__jsonProps.Contains("data.started_at")) __score6++;
+ if (__jsonProps.Contains("data.status")) __score6++;
+ if (__jsonProps.Contains("data.temperature")) __score6++;
+ if (__jsonProps.Contains("data.thread_id")) __score6++;
+ if (__jsonProps.Contains("data.tool_choice")) __score6++;
+ if (__jsonProps.Contains("data.tools")) __score6++;
+ if (__jsonProps.Contains("data.top_p")) __score6++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score6++;
+ if (__jsonProps.Contains("data.usage")) __score6++;
if (__jsonProps.Contains("event")) __score6++;
var __score7 = 0;
if (__jsonProps.Contains("data")) __score7++;
+ if (__jsonProps.Contains("data.assistant_id")) __score7++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score7++;
+ if (__jsonProps.Contains("data.completed_at")) __score7++;
+ if (__jsonProps.Contains("data.created_at")) __score7++;
+ if (__jsonProps.Contains("data.expires_at")) __score7++;
+ if (__jsonProps.Contains("data.failed_at")) __score7++;
+ if (__jsonProps.Contains("data.id")) __score7++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score7++;
+ if (__jsonProps.Contains("data.instructions")) __score7++;
+ if (__jsonProps.Contains("data.last_error")) __score7++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score7++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score7++;
+ if (__jsonProps.Contains("data.metadata")) __score7++;
+ if (__jsonProps.Contains("data.model")) __score7++;
+ if (__jsonProps.Contains("data.object")) __score7++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score7++;
+ if (__jsonProps.Contains("data.required_action")) __score7++;
+ if (__jsonProps.Contains("data.response_format")) __score7++;
+ if (__jsonProps.Contains("data.started_at")) __score7++;
+ if (__jsonProps.Contains("data.status")) __score7++;
+ if (__jsonProps.Contains("data.temperature")) __score7++;
+ if (__jsonProps.Contains("data.thread_id")) __score7++;
+ if (__jsonProps.Contains("data.tool_choice")) __score7++;
+ if (__jsonProps.Contains("data.tools")) __score7++;
+ if (__jsonProps.Contains("data.top_p")) __score7++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score7++;
+ if (__jsonProps.Contains("data.usage")) __score7++;
if (__jsonProps.Contains("event")) __score7++;
var __score8 = 0;
if (__jsonProps.Contains("data")) __score8++;
+ if (__jsonProps.Contains("data.assistant_id")) __score8++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score8++;
+ if (__jsonProps.Contains("data.completed_at")) __score8++;
+ if (__jsonProps.Contains("data.created_at")) __score8++;
+ if (__jsonProps.Contains("data.expires_at")) __score8++;
+ if (__jsonProps.Contains("data.failed_at")) __score8++;
+ if (__jsonProps.Contains("data.id")) __score8++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score8++;
+ if (__jsonProps.Contains("data.instructions")) __score8++;
+ if (__jsonProps.Contains("data.last_error")) __score8++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score8++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score8++;
+ if (__jsonProps.Contains("data.metadata")) __score8++;
+ if (__jsonProps.Contains("data.model")) __score8++;
+ if (__jsonProps.Contains("data.object")) __score8++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score8++;
+ if (__jsonProps.Contains("data.required_action")) __score8++;
+ if (__jsonProps.Contains("data.response_format")) __score8++;
+ if (__jsonProps.Contains("data.started_at")) __score8++;
+ if (__jsonProps.Contains("data.status")) __score8++;
+ if (__jsonProps.Contains("data.temperature")) __score8++;
+ if (__jsonProps.Contains("data.thread_id")) __score8++;
+ if (__jsonProps.Contains("data.tool_choice")) __score8++;
+ if (__jsonProps.Contains("data.tools")) __score8++;
+ if (__jsonProps.Contains("data.top_p")) __score8++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score8++;
+ if (__jsonProps.Contains("data.usage")) __score8++;
if (__jsonProps.Contains("event")) __score8++;
var __score9 = 0;
if (__jsonProps.Contains("data")) __score9++;
+ if (__jsonProps.Contains("data.assistant_id")) __score9++;
+ if (__jsonProps.Contains("data.cancelled_at")) __score9++;
+ if (__jsonProps.Contains("data.completed_at")) __score9++;
+ if (__jsonProps.Contains("data.created_at")) __score9++;
+ if (__jsonProps.Contains("data.expires_at")) __score9++;
+ if (__jsonProps.Contains("data.failed_at")) __score9++;
+ if (__jsonProps.Contains("data.id")) __score9++;
+ if (__jsonProps.Contains("data.incomplete_details")) __score9++;
+ if (__jsonProps.Contains("data.instructions")) __score9++;
+ if (__jsonProps.Contains("data.last_error")) __score9++;
+ if (__jsonProps.Contains("data.max_completion_tokens")) __score9++;
+ if (__jsonProps.Contains("data.max_prompt_tokens")) __score9++;
+ if (__jsonProps.Contains("data.metadata")) __score9++;
+ if (__jsonProps.Contains("data.model")) __score9++;
+ if (__jsonProps.Contains("data.object")) __score9++;
+ if (__jsonProps.Contains("data.parallel_tool_calls")) __score9++;
+ if (__jsonProps.Contains("data.required_action")) __score9++;
+ if (__jsonProps.Contains("data.response_format")) __score9++;
+ if (__jsonProps.Contains("data.started_at")) __score9++;
+ if (__jsonProps.Contains("data.status")) __score9++;
+ if (__jsonProps.Contains("data.temperature")) __score9++;
+ if (__jsonProps.Contains("data.thread_id")) __score9++;
+ if (__jsonProps.Contains("data.tool_choice")) __score9++;
+ if (__jsonProps.Contains("data.tools")) __score9++;
+ if (__jsonProps.Contains("data.top_p")) __score9++;
+ if (__jsonProps.Contains("data.truncation_strategy")) __score9++;
+ if (__jsonProps.Contains("data.usage")) __score9++;
if (__jsonProps.Contains("event")) __score9++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs
index a5a8c626..bac6b720 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Session2.g.cs
@@ -23,12 +23,24 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
if (__jsonProps.Contains("audio")) __score0++;
+ if (__jsonProps.Contains("audio.input")) __score0++;
+ if (__jsonProps.Contains("audio.output")) __score0++;
if (__jsonProps.Contains("client_secret")) __score0++;
+ if (__jsonProps.Contains("client_secret.expires_at")) __score0++;
+ if (__jsonProps.Contains("client_secret.value")) __score0++;
if (__jsonProps.Contains("include")) __score0++;
if (__jsonProps.Contains("instructions")) __score0++;
if (__jsonProps.Contains("max_output_tokens")) __score0++;
@@ -42,6 +54,7 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json
if (__jsonProps.Contains("type")) __score0++;
var __score1 = 0;
if (__jsonProps.Contains("audio")) __score1++;
+ if (__jsonProps.Contains("audio.input")) __score1++;
if (__jsonProps.Contains("expires_at")) __score1++;
if (__jsonProps.Contains("id")) __score1++;
if (__jsonProps.Contains("include")) __score1++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs
index 629708d1..35e3b32f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem.g.cs
@@ -23,6 +23,14 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -34,6 +42,9 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js
if (__jsonProps.Contains("description")) __score1++;
if (__jsonProps.Contains("name")) __score1++;
if (__jsonProps.Contains("source")) __score1++;
+ if (__jsonProps.Contains("source.data")) __score1++;
+ if (__jsonProps.Contains("source.media_type")) __score1++;
+ if (__jsonProps.Contains("source.type")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs
index e061ddde..9f5c26b5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.SkillsItem2.g.cs
@@ -23,6 +23,14 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -34,6 +42,9 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J
if (__jsonProps.Contains("description")) __score1++;
if (__jsonProps.Contains("name")) __score1++;
if (__jsonProps.Contains("source")) __score1++;
+ if (__jsonProps.Contains("source.data")) __score1++;
+ if (__jsonProps.Contains("source.media_type")) __score1++;
+ if (__jsonProps.Contains("source.type")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
var __bestScore = 0;
var __bestIndex = -1;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs
index f930d0f0..72a532a5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Status.g.cs
@@ -23,6 +23,7 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs
index ea12e7e5..81d7aeb7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TextResponseFormatConfiguration.g.cs
@@ -23,6 +23,7 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text.
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs
index f4b3f11f..0379f47a 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItem.g.cs
@@ -23,6 +23,7 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs
index be6a5645..ad9ad897 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadStreamEvent.g.cs
@@ -23,11 +23,24 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
var __score0 = 0;
if (__jsonProps.Contains("data")) __score0++;
+ if (__jsonProps.Contains("data.created_at")) __score0++;
+ if (__jsonProps.Contains("data.id")) __score0++;
+ if (__jsonProps.Contains("data.metadata")) __score0++;
+ if (__jsonProps.Contains("data.object")) __score0++;
+ if (__jsonProps.Contains("data.tool_resources")) __score0++;
if (__jsonProps.Contains("enabled")) __score0++;
if (__jsonProps.Contains("event")) __score0++;
var __bestScore = 0;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs
index 160e74a6..b135ce2d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Tool.g.cs
@@ -23,6 +23,14 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+ if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object)
+ {
+ foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject())
+ {
+ __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name);
+ }
+ }
+
}
}
@@ -37,6 +45,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv
if (__jsonProps.Contains("filters")) __score1++;
if (__jsonProps.Contains("max_num_results")) __score1++;
if (__jsonProps.Contains("ranking_options")) __score1++;
+ if (__jsonProps.Contains("ranking_options.hybrid_search")) __score1++;
+ if (__jsonProps.Contains("ranking_options.ranker")) __score1++;
+ if (__jsonProps.Contains("ranking_options.score_threshold")) __score1++;
if (__jsonProps.Contains("type")) __score1++;
if (__jsonProps.Contains("vector_store_ids")) __score1++;
var __score2 = 0;
@@ -70,6 +81,8 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv
if (__jsonProps.Contains("background")) __score7++;
if (__jsonProps.Contains("input_fidelity")) __score7++;
if (__jsonProps.Contains("input_image_mask")) __score7++;
+ if (__jsonProps.Contains("input_image_mask.file_id")) __score7++;
+ if (__jsonProps.Contains("input_image_mask.image_url")) __score7++;
if (__jsonProps.Contains("model")) __score7++;
if (__jsonProps.Contains("moderation")) __score7++;
if (__jsonProps.Contains("output_compression")) __score7++;
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs
index 1ee1ad31..967c7abb 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolChoiceParam.g.cs
@@ -23,6 +23,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs
index 04361d86..d609bde2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolsItem13.g.cs
@@ -23,6 +23,7 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs
index 1b236842..c79df17c 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.TranscriptionChunkingStrategy.g.cs
@@ -23,6 +23,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs
index 8ee9de8b..6701bbee 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsOrCustomVoice.g.cs
@@ -23,6 +23,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs
index 52595160..7b8d0cd6 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallAction.g.cs
@@ -23,6 +23,7 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser
foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject())
{
__jsonProps.Add(__jsonProp.Name);
+
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.InputAudioBufferAppendPayload.BinaryPayloads.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.InputAudioBufferAppendPayload.BinaryPayloads.g.cs
new file mode 100644
index 00000000..a338a3e7
--- /dev/null
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.InputAudioBufferAppendPayload.BinaryPayloads.g.cs
@@ -0,0 +1,16 @@
+
+#nullable enable
+
+namespace tryAGI.OpenAI.Realtime
+{
+ public sealed partial class InputAudioBufferAppendPayload
+ {
+ ///
+ /// Gets the decoded bytes for .
+ ///
+ [global::System.Text.Json.Serialization.JsonIgnore]
+ public global::System.ReadOnlyMemory AudioBytes => Audio is null
+ ? default
+ : global::System.Convert.FromBase64String(Audio);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.InputAudioBufferAppend.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.InputAudioBufferAppend.g.cs
index 7d89e30e..ccaf319d 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.InputAudioBufferAppend.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.InputAudioBufferAppend.g.cs
@@ -20,5 +20,29 @@ public sealed partial class OpenAiRealtimeClient
await SendAsync(json, cancellationToken).ConfigureAwait(false);
}
+
+
+ ///
+ /// Base64-encoded audio bytes.
+ ///
+ /// The binary payload to send.
+ /// Optional client-generated ID.
+ /// The event type.
+ /// A cancellation token.
+ public global::System.Threading.Tasks.Task SendInputAudioBufferAppendAsync(
+ global::System.ReadOnlyMemory audio,
+ string? eventId = default,
+ global::tryAGI.OpenAI.Realtime.InputAudioBufferAppendPayloadType type = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ return SendInputAudioBufferAppendAsync(
+ new global::tryAGI.OpenAI.Realtime.InputAudioBufferAppendPayload
+ {
+ Audio = global::System.Convert.ToBase64String(audio.Span),
+ EventId = eventId,
+ Type = type,
+ },
+ cancellationToken);
+ }
}
}
\ No newline at end of file
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.ReceiveUpdates.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.ReceiveUpdates.g.cs
index 6a6abcce..a063df68 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.ReceiveUpdates.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.ReceiveUpdates.g.cs
@@ -28,36 +28,74 @@ public sealed partial class OpenAiRealtimeClient
yield break;
}
- global::System.Net.WebSockets.WebSocketReceiveResult result;
+ using var __messageBuffer = new global::System.IO.MemoryStream();
+ var __receivedTextMessage = false;
- try
+ while (true)
{
- result = await _clientWebSocket.ReceiveAsync(arraySegment, cancellationToken).ConfigureAwait(false);
- }
- catch (global::System.Net.WebSockets.WebSocketException)
- {
- yield break;
+ global::System.Net.WebSockets.WebSocketReceiveResult result;
+
+ try
+ {
+ result = await _clientWebSocket.ReceiveAsync(arraySegment, cancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.WebSockets.WebSocketException exception)
+ {
+ var rethrow = false;
+ OnReceiveException(exception, ref rethrow);
+ if (rethrow)
+ {
+ throw;
+ }
+
+ yield break;
+ }
+ catch (global::System.OperationCanceledException exception)
+ {
+ var rethrow = false;
+ OnReceiveException(exception, ref rethrow);
+ if (rethrow)
+ {
+ throw;
+ }
+
+ yield break;
+ }
+
+ if (result.MessageType == global::System.Net.WebSockets.WebSocketMessageType.Close)
+ {
+ await _clientWebSocket.CloseAsync(
+ closeStatus: global::System.Net.WebSockets.WebSocketCloseStatus.NormalClosure,
+ statusDescription: "Closing",
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ yield break;
+ }
+
+ if (result.MessageType == global::System.Net.WebSockets.WebSocketMessageType.Text)
+ {
+ __receivedTextMessage = true;
+
+ if (result.Count > 0)
+ {
+ __messageBuffer.Write(buffer, 0, result.Count);
+ }
+ }
+
+ if (result.EndOfMessage)
+ {
+ break;
+ }
}
- catch (global::System.OperationCanceledException)
+
+ if (!__receivedTextMessage)
{
- yield break;
+ continue;
}
- if (result.MessageType == global::System.Net.WebSockets.WebSocketMessageType.Text)
- {
- string json = global::System.Text.Encoding.UTF8.GetString(buffer, 0, result.Count);
+ string json = global::System.Text.Encoding.UTF8.GetString(__messageBuffer.ToArray());
var @event = (global::tryAGI.OpenAI.Realtime.ServerEvent)global::System.Text.Json.JsonSerializer.Deserialize(json, typeof(global::tryAGI.OpenAI.Realtime.ServerEvent), JsonSerializerContext)!;
yield return @event;
- }
- else if (result.MessageType == global::System.Net.WebSockets.WebSocketMessageType.Close)
- {
- await _clientWebSocket.CloseAsync(
- closeStatus: global::System.Net.WebSockets.WebSocketCloseStatus.NormalClosure,
- statusDescription: "Closing",
- cancellationToken: cancellationToken).ConfigureAwait(false);
- yield break;
- }
}
}
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.g.cs
index 876e8c0e..b573ce77 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.OpenAiRealtimeClient.g.cs
@@ -40,6 +40,10 @@ public OpenAiRealtimeClient(
}
+ private string? _storedAuthorizationHeaderName;
+ private string? _storedAuthorizationHeaderScheme;
+ private string? _storedAuthorizationApiKey;
+
///
/// Authorize using bearer authentication.
///
@@ -49,7 +53,9 @@ public void AuthorizeUsingBearer(
{
apiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
- _clientWebSocket.Options.SetRequestHeader("Authorization", $"bearer {apiKey}");
+ _storedAuthorizationApiKey = apiKey;
+ _storedAuthorizationHeaderName = "Authorization";
+ _storedAuthorizationHeaderScheme = "bearer";
}
///
@@ -70,14 +76,99 @@ public OpenAiRealtimeClient(
+
+
+ private void ApplyStoredAuthorization(
+ bool useSubprotocolAuth)
+ {
+
+ if (_storedAuthorizationApiKey is not null &&
+ _storedAuthorizationHeaderName is not null)
+ {
+ var __authorizationValue = _storedAuthorizationHeaderScheme is not null
+ ? $"{_storedAuthorizationHeaderScheme} {_storedAuthorizationApiKey}"
+ : _storedAuthorizationApiKey;
+ _clientWebSocket.Options.SetRequestHeader(_storedAuthorizationHeaderName, __authorizationValue);
+ }
+ }
+ private void ApplyConnectionOptions(
+ global::System.Collections.Generic.IDictionary? additionalHeaders,
+ global::System.Collections.Generic.IEnumerable? additionalSubProtocols,
+ global::System.TimeSpan? keepAliveInterval)
+ {
+ if (keepAliveInterval is not null)
+ {
+ _clientWebSocket.Options.KeepAliveInterval = keepAliveInterval.Value;
+ }
+
+ ApplyStoredAuthorization(false);
+
+ if (additionalHeaders is not null)
+ {
+ foreach (var header in additionalHeaders)
+ {
+ _clientWebSocket.Options.SetRequestHeader(header.Key, header.Value);
+ }
+ }
+
+ if (additionalSubProtocols is not null)
+ {
+ foreach (var subProtocol in additionalSubProtocols)
+ {
+ _clientWebSocket.Options.AddSubProtocol(subProtocol);
+ }
+ }
+ }
+
+ private async global::System.Threading.Tasks.Task ConnectAsyncCore(
+ global::System.Uri uri,
+ global::System.TimeSpan? connectTimeout,
+ global::System.Threading.CancellationToken cancellationToken)
+ {
+ global::System.Threading.CancellationTokenSource? __timeoutCancellationTokenSource = null;
+ var __effectiveCancellationToken = cancellationToken;
+
+ if (connectTimeout is not null)
+ {
+ __timeoutCancellationTokenSource = global::System.Threading.CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
+ __timeoutCancellationTokenSource.CancelAfter(connectTimeout.Value);
+ __effectiveCancellationToken = __timeoutCancellationTokenSource.Token;
+ }
+
+ try
+ {
+ await _clientWebSocket.ConnectAsync(uri, __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ finally
+ {
+ __timeoutCancellationTokenSource?.Dispose();
+ }
+ }
+
///
public async global::System.Threading.Tasks.Task ConnectAsync(
global::System.Uri? uri = null,
+ global::System.Collections.Generic.IDictionary? additionalHeaders = null,
+ global::System.Collections.Generic.IEnumerable? additionalSubProtocols = null,
+ global::System.TimeSpan? keepAliveInterval = null,
+ global::System.TimeSpan? connectTimeout = null,
global::System.Threading.CancellationToken cancellationToken = default)
{
- uri ??= new global::System.Uri(DefaultBaseUrl);
+ global::System.Uri __uri;
+ if (uri is not null)
+ {
+ __uri = uri;
+ }
+ else
+ {
+ var __pathBuilder = new global::tryAGI.OpenAI.Realtime.PathBuilder(
+ path: DefaultBaseUrl);
+
+ __uri = new global::System.Uri(__pathBuilder.ToString());
+ }
- await _clientWebSocket.ConnectAsync(uri, cancellationToken).ConfigureAwait(false);
+ ApplyConnectionOptions(additionalHeaders, additionalSubProtocols, keepAliveInterval);
+ await ConnectAsyncCore(__uri, connectTimeout, cancellationToken).ConfigureAwait(false);
}
///
@@ -165,5 +256,8 @@ partial void ProcessResponseContent(
global::System.Net.WebSockets.ClientWebSocket client,
global::System.Net.Http.HttpResponseMessage response,
ref string content);
+ partial void OnReceiveException(
+ global::System.Exception exception,
+ ref bool rethrow);
}
}
\ No newline at end of file