diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AdminApiKeyCreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AdminApiKeyCreateResponse.g.cs index 505213f4..c6b7e28c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AdminApiKeyCreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AdminApiKeyCreateResponse.g.cs @@ -95,6 +95,7 @@ public class AdminApiKeyCreateResponseJsonConverter : global::System.Text.Json.S { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AdminApiKey), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AdminApiKey).Name}"); adminApiKey = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -105,9 +106,13 @@ public class AdminApiKeyCreateResponseJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (adminApiKey == null && adminApiKeyCreateResponseVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AdminApiKeyCreateResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AdminApiKeyCreateResponseVariant2).Name}"); adminApiKeyCreateResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs index 2519fa10..7f6dc5d8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AllOf2.g.cs @@ -107,7 +107,10 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { 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 9bb0f61f..87c88e41 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 @@ -15,171 +15,43 @@ public class AnnotationJsonConverter : global::System.Text.Json.Serialization.Js options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("file_id")) __score0++; - if (__jsonProps.Contains("filename")) __score0++; - if (__jsonProps.Contains("index")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("end_index")) __score1++; - if (__jsonProps.Contains("start_index")) __score1++; - if (__jsonProps.Contains("title")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - if (__jsonProps.Contains("url")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("container_id")) __score2++; - if (__jsonProps.Contains("end_index")) __score2++; - if (__jsonProps.Contains("file_id")) __score2++; - if (__jsonProps.Contains("filename")) __score2++; - if (__jsonProps.Contains("start_index")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("file_id")) __score3++; - if (__jsonProps.Contains("index")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AnnotationDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.AnnotationDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.FileCitationBody? fileCitation = default; + if (discriminator?.Type == global::tryAGI.OpenAI.AnnotationDiscriminatorType.FileCitation) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FileCitationBody)}"); + fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.UrlCitationBody? urlCitation = default; + if (discriminator?.Type == global::tryAGI.OpenAI.AnnotationDiscriminatorType.UrlCitation) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UrlCitationBody)}"); + urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ContainerFileCitationBody? containerFileCitation = default; - global::tryAGI.OpenAI.FilePath? filePath = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.AnnotationDiscriminatorType.ContainerFileCitation) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileCitationBody).Name}"); - fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlCitationBody).Name}"); - urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerFileCitationBody).Name}"); - containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FilePath).Name}"); - filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerFileCitationBody)}"); + containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (fileCitation == null && urlCitation == null && containerFileCitation == null && filePath == null) + global::tryAGI.OpenAI.FilePath? filePath = default; + if (discriminator?.Type == global::tryAGI.OpenAI.AnnotationDiscriminatorType.FilePath) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileCitationBody).Name}"); - fileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlCitationBody).Name}"); - urlCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerFileCitationBody).Name}"); - containerFileCitation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FilePath).Name}"); - filePath = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FilePath), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FilePath)}"); + filePath = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Annotation( + discriminator?.Type, fileCitation, urlCitation, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorType.g.cs new file mode 100644 index 00000000..f43fd81f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnnotationDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnnotationDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnnotationDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnnotationDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnnotationDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnnotationDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.AnnotationDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..1fd1a83e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AnnotationDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AnnotationDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AnnotationDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AnnotationDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AnnotationDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AnnotationDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.AnnotationDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 92ec2d98..ce235f82 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 @@ -15,106 +15,29 @@ public class AnnotationsItem3JsonConverter : global::System.Text.Json.Serializat options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.FileAnnotation? file = default; - global::tryAGI.OpenAI.UrlAnnotation? url = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType.File) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileAnnotation).Name}"); - file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlAnnotation).Name}"); - url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FileAnnotation)}"); + file = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (file == null && url == null) + global::tryAGI.OpenAI.UrlAnnotation? url = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType.Url) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileAnnotation).Name}"); - file = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UrlAnnotation).Name}"); - url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UrlAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UrlAnnotation)}"); + url = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.AnnotationsItem3( + discriminator?.Type, file, url diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs index c2c20089..c29eb001 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf2.g.cs @@ -107,7 +107,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs index 7c2abd97..1dcb46dd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AnyOf3.g.cs @@ -137,7 +137,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { @@ -151,7 +154,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { 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 8d2df4c7..7593ff6c 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 @@ -15,130 +15,36 @@ public class ApplyPatchOperationParamJsonConverter : global::System.Text.Json.Se options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("diff")) __score0++; - if (__jsonProps.Contains("path")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("path")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("diff")) __score2++; - if (__jsonProps.Contains("path")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? createFile = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType.CreateFile) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam)}"); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? deleteFile = default; - global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? updateFile = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType.DeleteFile) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam).Name}"); - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam).Name}"); - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam).Name}"); - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam)}"); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (createFile == null && deleteFile == null && updateFile == null) + global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? updateFile = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType.UpdateFile) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam).Name}"); - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam).Name}"); - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam).Name}"); - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam)}"); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ApplyPatchOperationParam( + discriminator?.Type, createFile, deleteFile, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorType.g.cs new file mode 100644 index 00000000..1fb3afa5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ApplyPatchOperationParamDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..3cb82c10 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ApplyPatchOperationParamDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorType.g.cs new file mode 100644 index 00000000..33649379 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..ae8745f4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ApplyPatchToolCallOperationDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 e8c7e87d..1da798ed 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 @@ -161,6 +161,7 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEvent).Name}"); thread = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -171,9 +172,13 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (thread == null && run == null && runStep == null && message == null && error == null && done == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEvent).Name}"); run = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -184,9 +189,13 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (thread == null && run == null && runStep == null && message == null && error == null && done == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEvent).Name}"); runStep = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -197,9 +206,13 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (thread == null && run == null && runStep == null && message == null && error == null && done == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEvent).Name}"); message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -210,9 +223,13 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (thread == null && run == null && runStep == null && message == null && error == null && done == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ErrorEvent).Name}"); error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -223,9 +240,13 @@ public class AssistantStreamEventJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (thread == null && run == null && runStep == null && message == null && error == null && done == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoneEvent).Name}"); done = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 ef4b5d5e..2c2391d4 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 @@ -125,6 +125,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum).Name}"); @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -135,9 +136,13 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (@enum == null && text == null && jsonObject == null && jsonSchema == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -148,9 +153,13 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (@enum == null && text == null && jsonObject == null && jsonSchema == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -161,9 +170,13 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (@enum == null && text == null && jsonObject == null && jsonSchema == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 0d9be5bd..d1e1451c 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 @@ -84,6 +84,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum).Name}"); @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -94,9 +95,13 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (@enum == null && named == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice).Name}"); named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.g.cs new file mode 100644 index 00000000..c74d606a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..97cca25e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorType.g.cs new file mode 100644 index 00000000..41d6f391 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..5b5339c0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionMessageToolCallDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 aaeb9af8..e8bfb970 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 @@ -15,108 +15,29 @@ public class ChatCompletionMessageToolCallsItemJsonConverter : global::System.Te options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ChatCompletionMessageToolCall? function = default; - global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall? custom = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType.Function) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall)}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (function == null && custom == null) + global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall? custom = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType.Custom) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCall).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall)}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem( + discriminator?.Type, function, custom 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 8290a375..f74cf791 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 @@ -15,95 +15,29 @@ public class ChatCompletionRequestAssistantMessageContentPartJsonConverter : glo options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("text")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("refusal")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? text = default; - global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? refusal = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.Text) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText)}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (text == null && refusal == null) + global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? refusal = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.Refusal) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal)}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart( + discriminator?.Type, text, refusal diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.g.cs new file mode 100644 index 00000000..fd3c694e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..45b7e1ae --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 ce3f47a4..12232755 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 @@ -15,237 +15,57 @@ public class ChatCompletionRequestMessageJsonConverter : global::System.Text.Jso options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("content")) __score0++; - if (__jsonProps.Contains("name")) __score0++; - if (__jsonProps.Contains("role")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("content")) __score1++; - if (__jsonProps.Contains("name")) __score1++; - if (__jsonProps.Contains("role")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("content")) __score2++; - if (__jsonProps.Contains("name")) __score2++; - if (__jsonProps.Contains("role")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("audio")) __score3++; - if (__jsonProps.Contains("content")) __score3++; - if (__jsonProps.Contains("function_call")) __score3++; - if (__jsonProps.Contains("name")) __score3++; - if (__jsonProps.Contains("refusal")) __score3++; - if (__jsonProps.Contains("role")) __score3++; - if (__jsonProps.Contains("tool_calls")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("content")) __score4++; - if (__jsonProps.Contains("role")) __score4++; - if (__jsonProps.Contains("tool_call_id")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("content")) __score5++; - if (__jsonProps.Contains("name")) __score5++; - if (__jsonProps.Contains("role")) __score5++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? developer = default; + if (discriminator?.Role == global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole.Developer) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage)}"); + developer = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? system = default; + if (discriminator?.Role == global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole.System) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage)}"); + system = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? user = default; + if (discriminator?.Role == global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole.User) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage)}"); + user = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? assistant = default; + if (discriminator?.Role == global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole.Assistant) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage)}"); + assistant = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? tool = default; - global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? function = default; - if (__bestIndex >= 0) + if (discriminator?.Role == global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole.Tool) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage).Name}"); - developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage).Name}"); - system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage).Name}"); - user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); - assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage).Name}"); - tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage)}"); + tool = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (developer == null && system == null && user == null && assistant == null && tool == null && function == null) + global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? function = default; + if (discriminator?.Role == global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole.Function) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage).Name}"); - developer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage).Name}"); - system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage).Name}"); - user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); - assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage).Name}"); - tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage)}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ChatCompletionRequestMessage( + discriminator?.Role, developer, system, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRole.g.cs new file mode 100644 index 00000000..9f22a453 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRole.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionRequestMessageDiscriminatorRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullable.g.cs new file mode 100644 index 00000000..4f2b412f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChatCompletionRequestMessageDiscriminatorRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRoleExtensions.ToValueString(value.Value)); + } + } + } +} 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 6d09cb76..e2551996 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 @@ -58,6 +58,7 @@ public class ChatCompletionRequestSystemMessageContentPartJsonConverter : global { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 ccbf5c94..19f7952c 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 @@ -58,6 +58,7 @@ public class ChatCompletionRequestToolMessageContentPartJsonConverter : global:: { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 d846aed0..ac0dfcb0 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 @@ -132,6 +132,7 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText).Name}"); textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -142,9 +143,13 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: catch (global::System.InvalidOperationException) { } + } + if (textContentPart == null && imageContentPart == null && audioContentPart == null && fileContentPart == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImage).Name}"); imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -155,9 +160,13 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: catch (global::System.InvalidOperationException) { } + } + if (textContentPart == null && imageContentPart == null && audioContentPart == null && fileContentPart == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio).Name}"); audioContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -168,9 +177,13 @@ public class ChatCompletionRequestUserMessageContentPartJsonConverter : global:: catch (global::System.InvalidOperationException) { } + } + if (textContentPart == null && imageContentPart == null && audioContentPart == null && fileContentPart == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile).Name}"); fileContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 26ff24ef..e8cb5f05 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 @@ -127,6 +127,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum).Name}"); toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -137,9 +138,13 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && functionToolChoice == null && customToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionAllowedToolsChoice).Name}"); allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -150,9 +155,13 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && functionToolChoice == null && customToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice).Name}"); functionToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -163,9 +172,13 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && functionToolChoice == null && customToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom).Name}"); customToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 20ac1676..01e0c043 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 @@ -15,103 +15,29 @@ public class ChunkingStrategyRequestParamJsonConverter : global::System.Text.Jso options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("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; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam? auto = default; - global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? @static = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType.Auto) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam).Name}"); - auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam).Name}"); - @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam)}"); + auto = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (auto == null && @static == null) + global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? @static = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType.Static) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam).Name}"); - auto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam).Name}"); - @static = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam)}"); + @static = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ChunkingStrategyRequestParam( + discriminator?.Type, auto, @static diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorType.g.cs new file mode 100644 index 00000000..5762b7bf --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..ed825461 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.g.cs new file mode 100644 index 00000000..c2c6cbc3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..3ad2eb9d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 37ebe0ba..87bff6e4 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 @@ -15,336 +15,78 @@ public class ComputerActionJsonConverter : global::System.Text.Json.Serializatio options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("button")) __score0++; - if (__jsonProps.Contains("keys")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - if (__jsonProps.Contains("x")) __score0++; - if (__jsonProps.Contains("y")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("keys")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - if (__jsonProps.Contains("x")) __score1++; - if (__jsonProps.Contains("y")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("keys")) __score2++; - if (__jsonProps.Contains("path")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("keys")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("keys")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - if (__jsonProps.Contains("x")) __score4++; - if (__jsonProps.Contains("y")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("type")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("keys")) __score6++; - if (__jsonProps.Contains("scroll_x")) __score6++; - if (__jsonProps.Contains("scroll_y")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - if (__jsonProps.Contains("x")) __score6++; - if (__jsonProps.Contains("y")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("text")) __score7++; - if (__jsonProps.Contains("type")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("type")) __score8++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerActionDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ComputerActionDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ClickParam? click = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Click) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ClickParam)}"); + click = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.DoubleClickAction? doubleClick = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.DoubleClick) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.DoubleClickAction)}"); + doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.DragParam? drag = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Drag) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.DragParam)}"); + drag = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.KeyPressAction? keypress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Keypress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.KeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.KeyPressAction)}"); + keypress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.MoveParam? move = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Move) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.MoveParam)}"); + move = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ScreenshotParam? screenshot = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Screenshot) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ScreenshotParam)}"); + screenshot = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ScrollParam? scroll = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Scroll) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ScrollParam)}"); + scroll = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.TypeParam? type = default; - global::tryAGI.OpenAI.WaitParam? wait = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Type) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClickParam).Name}"); - click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoubleClickAction).Name}"); - doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DragParam).Name}"); - drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.KeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.KeyPressAction).Name}"); - keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MoveParam).Name}"); - move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScreenshotParam).Name}"); - screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScrollParam).Name}"); - scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TypeParam).Name}"); - type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitParam).Name}"); - wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TypeParam)}"); + type = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (click == null && doubleClick == null && drag == null && keypress == null && move == null && screenshot == null && scroll == null && type == null && wait == null) + global::tryAGI.OpenAI.WaitParam? wait = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ComputerActionDiscriminatorType.Wait) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClickParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClickParam).Name}"); - click = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DoubleClickAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DoubleClickAction).Name}"); - doubleClick = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DragParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DragParam).Name}"); - drag = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.KeyPressAction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.KeyPressAction).Name}"); - keypress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MoveParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MoveParam).Name}"); - move = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScreenshotParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScreenshotParam).Name}"); - screenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ScrollParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ScrollParam).Name}"); - scroll = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TypeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TypeParam).Name}"); - type = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WaitParam).Name}"); - wait = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WaitParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.WaitParam)}"); + wait = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ComputerAction( + discriminator?.Type, click, doubleClick, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorType.g.cs new file mode 100644 index 00000000..6c7ac105 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ComputerActionDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ComputerActionDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ComputerActionDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ComputerActionDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ComputerActionDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ComputerActionDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ComputerActionDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..ee871154 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ComputerActionDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ComputerActionDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ComputerActionDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ComputerActionDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ComputerActionDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ComputerActionDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ComputerActionDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 019dc604..66be6491 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 @@ -93,6 +93,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutput).Name}"); computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -103,9 +104,13 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J catch (global::System.InvalidOperationException) { } + } + if (computerToolCallOutput == null && computerToolCallOutputResourceVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2).Name}"); computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorType.g.cs new file mode 100644 index 00000000..c36d8a31 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..e3c02740 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ContainerAutoParamNetworkPolicyDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorType.g.cs new file mode 100644 index 00000000..627be869 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ContainerAutoParamSkillDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..712fdba9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ContainerAutoParamSkillDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs index c297e474..b60d7b8c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.Content5.g.cs @@ -108,7 +108,10 @@ public class Content5JsonConverter : global::System.Text.Json.Serialization.Json catch (global::System.InvalidOperationException) { } + } + if (inputContentTypes == null && outputContentTypes == null) + { try { 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 9ba4bc80..7c40895d 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 @@ -15,336 +15,78 @@ public class ContentItem3JsonConverter : global::System.Text.Json.Serialization. options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("text")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("annotations")) __score1++; - if (__jsonProps.Contains("logprobs")) __score1++; - if (__jsonProps.Contains("text")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("text")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("text")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("text")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("refusal")) __score5++; - if (__jsonProps.Contains("type")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("detail")) __score6++; - if (__jsonProps.Contains("file_id")) __score6++; - if (__jsonProps.Contains("image_url")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("detail")) __score7++; - if (__jsonProps.Contains("file_id")) __score7++; - if (__jsonProps.Contains("image_url")) __score7++; - if (__jsonProps.Contains("type")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("detail")) __score8++; - if (__jsonProps.Contains("file_data")) __score8++; - if (__jsonProps.Contains("file_id")) __score8++; - if (__jsonProps.Contains("file_url")) __score8++; - if (__jsonProps.Contains("filename")) __score8++; - if (__jsonProps.Contains("type")) __score8++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageContentItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.MessageContentItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.InputTextContent? inputText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.MessageContentItemDiscriminatorType.InputText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputTextContent)}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.OutputTextContent? outputText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.MessageContentItemDiscriminatorType.OutputText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.OutputTextContent)}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.TextContent? text = default; + if (discriminator?.Type == global::tryAGI.OpenAI.MessageContentItemDiscriminatorType.Text) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TextContent)}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.SummaryTextContent? summaryText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.MessageContentItemDiscriminatorType.SummaryText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.SummaryTextContent)}"); + summaryText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ReasoningTextContent? reasoningText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.MessageContentItemDiscriminatorType.ReasoningText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ReasoningTextContent)}"); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RefusalContent? refusal = default; + if (discriminator?.Type == global::tryAGI.OpenAI.MessageContentItemDiscriminatorType.Refusal) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RefusalContent)}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.InputImageContent? inputImage = default; + if (discriminator?.Type == global::tryAGI.OpenAI.MessageContentItemDiscriminatorType.InputImage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputImageContent)}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ComputerScreenshotContent? computerScreenshot = default; - global::tryAGI.OpenAI.InputFileContent? inputFile = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.MessageContentItemDiscriminatorType.ComputerScreenshot) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextContent).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SummaryTextContent).Name}"); - summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerScreenshotContent).Name}"); - computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ComputerScreenshotContent)}"); + computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (inputText == null && outputText == null && text == null && summaryText == null && reasoningText == null && refusal == null && inputImage == null && computerScreenshot == null && inputFile == null) + global::tryAGI.OpenAI.InputFileContent? inputFile = default; + if (discriminator?.Type == global::tryAGI.OpenAI.MessageContentItemDiscriminatorType.InputFile) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextContent).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SummaryTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SummaryTextContent).Name}"); - summaryText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerScreenshotContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerScreenshotContent).Name}"); - computerScreenshot = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputFileContent)}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ContentItem3( + discriminator?.Type, inputText, outputText, 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 bd6a98a3..6ee129cd 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 @@ -15,95 +15,29 @@ public class ContentItem4JsonConverter : global::System.Text.Json.Serialization. options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("text")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("text")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.UserMessageInputText? inputText = default; - global::tryAGI.OpenAI.UserMessageQuotedText? quotedText = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType.InputText) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageInputText).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageQuotedText).Name}"); - quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UserMessageInputText)}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (inputText == null && quotedText == null) + global::tryAGI.OpenAI.UserMessageQuotedText? quotedText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType.QuotedText) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageInputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageInputText).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageQuotedText).Name}"); - quotedText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageQuotedText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UserMessageQuotedText)}"); + quotedText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ContentItem4( + discriminator?.Type, inputText, quotedText 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 e8f19b9a..e72375ad 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 @@ -629,6 +629,7 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -639,9 +640,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -652,9 +657,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); functionToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -665,9 +674,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -678,9 +691,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -691,9 +708,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -704,9 +725,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -717,9 +742,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -730,9 +759,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -743,9 +776,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -756,9 +793,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -769,9 +810,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -782,9 +827,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -795,9 +844,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -808,9 +861,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -821,9 +878,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -834,9 +895,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -847,9 +912,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -860,9 +929,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -873,9 +946,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -886,9 +963,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -899,9 +980,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -912,9 +997,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -925,9 +1014,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -938,9 +1031,13 @@ public class ConversationItemJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (message == null && functionToolCallResource == null && functionToolCallOutputResource == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorType.g.cs new file mode 100644 index 00000000..2a2f4821 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ConversationItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ConversationItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ConversationItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ConversationItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ConversationItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ConversationItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ConversationItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..5a89095a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ConversationItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ConversationItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ConversationItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ConversationItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ConversationItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ConversationItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ConversationItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 6a8c5f57..c53db142 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 @@ -75,6 +75,7 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); conversationId = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -85,9 +86,13 @@ public class ConversationParamJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (conversationId == null && conversationObject == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ConversationParam2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ConversationParam2).Name}"); conversationObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 6715154e..2f71c0e7 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 @@ -112,6 +112,7 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -122,9 +123,13 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json catch (global::System.InvalidOperationException) { } + } + if (modelResponseProperties == null && createChatCompletionRequestVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2).Name}"); createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.g.cs new file mode 100644 index 00000000..273a4ed6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..1255ca5f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorType.g.cs new file mode 100644 index 00000000..f6daa33e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..8b2fb9eb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateContainerBodyNetworkPolicyDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorType.g.cs new file mode 100644 index 00000000..211a9015 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateContainerBodySkillDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..0b5fe43b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateContainerBodySkillDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 256ae3de..07ec7381 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 @@ -79,6 +79,7 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage).Name}"); simpleInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -89,9 +90,13 @@ public class CreateEvalItemJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (simpleInputMessage == null && evalMessageObject == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItem).Name}"); evalMessageObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 db4166fb..9e41bbd8 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 @@ -84,6 +84,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -94,9 +95,13 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (modelResponseProperties == null && createModelResponsePropertiesVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2).Name}"); createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 17595f73..4e2217e1 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 @@ -121,6 +121,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateModelResponseProperties).Name}"); modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -131,9 +132,13 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (modelProperties == null && properties == null && createResponseVariant3 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -144,9 +149,13 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (modelProperties == null && properties == null && createResponseVariant3 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponseVariant3).Name}"); createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 5dbd8a4b..ecee4436 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 @@ -15,105 +15,29 @@ public class CreateSpeechResponseStreamEventJsonConverter : global::System.Text. options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("type")) __score0++; - 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; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.SpeechAudioDeltaEvent? speechAudioDelta = default; - global::tryAGI.OpenAI.SpeechAudioDoneEvent? speechAudioDone = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType.SpeechAudioDelta) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent).Name}"); - speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent).Name}"); - speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent)}"); + speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (speechAudioDelta == null && speechAudioDone == null) + global::tryAGI.OpenAI.SpeechAudioDoneEvent? speechAudioDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType.SpeechAudioDone) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent).Name}"); - speechAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent).Name}"); - speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.SpeechAudioDoneEvent)}"); + speechAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent( + discriminator?.Type, speechAudioDelta, speechAudioDone diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..581df6cc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..0cb605ae --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateSpeechResponseStreamEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 41004612..1c896d7f 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 @@ -15,107 +15,29 @@ public class CreateTranscriptionResponseDiarizedJsonUsageJsonConverter : global: options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("seconds")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.TranscriptTextUsageTokens? tokens = default; - global::tryAGI.OpenAI.TranscriptTextUsageDuration? duration = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.Tokens) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); - tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); - duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TranscriptTextUsageTokens)}"); + tokens = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (tokens == null && duration == null) + global::tryAGI.OpenAI.TranscriptTextUsageDuration? duration = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.Duration) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens).Name}"); - tokens = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration).Name}"); - duration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TranscriptTextUsageDuration)}"); + duration = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage( + discriminator?.Type, tokens, duration diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.g.cs new file mode 100644 index 00000000..a019c1e0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..610f25a4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 c10bac7a..44eee2ba 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 @@ -15,148 +15,36 @@ public class CreateTranscriptionResponseStreamEventJsonConverter : global::Syste options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("end")) __score0++; - if (__jsonProps.Contains("id")) __score0++; - if (__jsonProps.Contains("speaker")) __score0++; - if (__jsonProps.Contains("start")) __score0++; - if (__jsonProps.Contains("text")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("delta")) __score1++; - if (__jsonProps.Contains("logprobs")) __score1++; - if (__jsonProps.Contains("segment_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("logprobs")) __score2++; - 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; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.TranscriptTextSegmentEvent? transcriptTextSegment = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType.TranscriptTextSegment) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent)}"); + transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.TranscriptTextDeltaEvent? transcriptTextDelta = default; - global::tryAGI.OpenAI.TranscriptTextDoneEvent? transcriptTextDone = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType.TranscriptTextDelta) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent).Name}"); - transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent).Name}"); - transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent).Name}"); - transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent)}"); + transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (transcriptTextSegment == null && transcriptTextDelta == null && transcriptTextDone == null) + global::tryAGI.OpenAI.TranscriptTextDoneEvent? transcriptTextDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType.TranscriptTextDone) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextSegmentEvent).Name}"); - transcriptTextSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent).Name}"); - transcriptTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent).Name}"); - transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TranscriptTextDoneEvent)}"); + transcriptTextDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent( + discriminator?.Type, transcriptTextSegment, transcriptTextDelta, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..81f546e5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..d784d3d2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CreateTranscriptionResponseStreamEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 50079a1b..51f0f056 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 @@ -81,6 +81,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -91,9 +92,13 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso catch (global::System.InvalidOperationException) { } + } + if (customToolCallOutput == null && customToolCallOutputResourceVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2).Name}"); customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 0ab14136..704ac5b7 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 @@ -83,6 +83,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -93,9 +94,13 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri catch (global::System.InvalidOperationException) { } + } + if (customToolCall == null && customToolCallResourceVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2).Name}"); customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorType.g.cs new file mode 100644 index 00000000..29029726 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CustomToolParamFormatDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..0005e0bc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class CustomToolParamFormatDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 9612f537..ccf23b4c 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 @@ -59,6 +59,7 @@ public class DeletedConversationJsonConverter : global::System.Text.Json.Seriali { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.DeletedConversationResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.DeletedConversationResource).Name}"); resource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 c9dea72e..41ea6797 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 @@ -15,131 +15,36 @@ public class EnvironmentVariant1JsonConverter : global::System.Text.Json.Seriali options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("file_ids")) __score0++; - if (__jsonProps.Contains("memory_limit")) __score0++; - if (__jsonProps.Contains("network_policy")) __score0++; - if (__jsonProps.Contains("skills")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("skills")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("container_id")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ContainerAutoParam? containerAuto = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType.ContainerAuto) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerAutoParam)}"); + containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.LocalEnvironmentParam? local = default; - global::tryAGI.OpenAI.ContainerReferenceParam? containerReference = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType.Local) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerAutoParam).Name}"); - containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LocalEnvironmentParam)}"); + local = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (containerAuto == null && local == null && containerReference == null) + global::tryAGI.OpenAI.ContainerReferenceParam? containerReference = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType.ContainerReference) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerAutoParam).Name}"); - containerAuto = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerReferenceParam)}"); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.EnvironmentVariant1( + discriminator?.Type, containerAuto, local, 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 61cb2e9d..35d11782 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 @@ -15,94 +15,29 @@ public class EnvironmentVariant12JsonConverter : global::System.Text.Json.Serial options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("container_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.LocalEnvironmentResource? local = default; - global::tryAGI.OpenAI.ContainerReferenceResource? containerReference = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType.Local) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentResource).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceResource).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LocalEnvironmentResource)}"); + local = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (local == null && containerReference == null) + global::tryAGI.OpenAI.ContainerReferenceResource? containerReference = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType.ContainerReference) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentResource).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceResource).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerReferenceResource)}"); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.EnvironmentVariant12( + discriminator?.Type, local, containerReference 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 d89f4fae..ea6b494a 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 @@ -15,95 +15,29 @@ public class EnvironmentVariant13JsonConverter : global::System.Text.Json.Serial options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("skills")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("container_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.LocalEnvironmentParam? local = default; - global::tryAGI.OpenAI.ContainerReferenceParam? containerReference = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.Local) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LocalEnvironmentParam)}"); + local = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (local == null && containerReference == null) + global::tryAGI.OpenAI.ContainerReferenceParam? containerReference = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.ContainerReference) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalEnvironmentParam).Name}"); - local = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerReferenceParam).Name}"); - containerReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerReferenceParam)}"); + containerReference = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.EnvironmentVariant13( + discriminator?.Type, local, containerReference 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 437e63d7..841782b7 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 @@ -62,6 +62,7 @@ public class EvalGraderLabelModelJsonConverter : global::System.Text.Json.Serial { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderLabelModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderLabelModel).Name}"); labelModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 de5134d8..d4d2a89a 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 @@ -79,6 +79,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderPython), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); pythonGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -89,9 +90,13 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat catch (global::System.InvalidOperationException) { } + } + if (pythonGrader == null && evalGraderPythonVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2).Name}"); evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 e799e023..f04af1e3 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 @@ -93,6 +93,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderScoreModel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); scoreModelGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -103,9 +104,13 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (scoreModelGrader == null && evalGraderScoreModelVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2).Name}"); evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 ac6d3c60..274201fd 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 @@ -61,6 +61,7 @@ public class EvalGraderStringCheckJsonConverter : global::System.Text.Json.Seria { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderStringCheck), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderStringCheck).Name}"); stringCheckGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 c9f8143b..738dac62 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 @@ -80,6 +80,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.GraderTextSimilarity), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); textSimilarityGrader = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -90,9 +91,13 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se catch (global::System.InvalidOperationException) { } + } + if (textSimilarityGrader == null && evalGraderTextSimilarityVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2).Name}"); evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs index c4cf1b3a..4ed9cbbc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.EvalItemContent.g.cs @@ -108,7 +108,10 @@ public class EvalItemContentJsonConverter : global::System.Text.Json.Serializati catch (global::System.InvalidOperationException) { } + } + if (evalContentItem == null && anArrayOfInputTextOutputTextInputImageAndInputAudio == null) + { try { 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 acae3190..a87172c3 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 @@ -146,6 +146,7 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); textInput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -156,9 +157,13 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (textInput == null && inputText == null && outputText == null && inputImage == null && inputAudio == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -169,9 +174,13 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (textInput == null && inputText == null && outputText == null && inputImage == null && inputAudio == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemContentOutputText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemContentOutputText).Name}"); outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -182,9 +191,13 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (textInput == null && inputText == null && outputText == null && inputImage == null && inputAudio == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EvalItemInputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EvalItemInputImage).Name}"); inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -195,9 +208,13 @@ public class EvalItemContentItemJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (textInput == null && inputText == null && outputText == null && inputImage == null && inputAudio == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputAudio), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputAudio).Name}"); inputAudio = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 723ea19d..cfb23fb1 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 @@ -79,6 +79,7 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -89,9 +90,13 @@ public class Filters2JsonConverter : global::System.Text.Json.Serialization.Json catch (global::System.InvalidOperationException) { } + } + if (comparisonFilter == null && compoundFilter == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompoundFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompoundFilter).Name}"); compoundFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 af4e3786..581d657b 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 @@ -77,6 +77,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComparisonFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); comparisonFilter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -87,9 +88,13 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J catch (global::System.InvalidOperationException) { } + } + if (comparisonFilter == null && compoundFilterVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 62c7aff3..ed05a404 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 @@ -82,6 +82,7 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage).Name}"); assistantMessage1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -92,9 +93,13 @@ public class FineTuneChatCompletionRequestAssistantMessageJsonConverter : global catch (global::System.InvalidOperationException) { } + } + if (assistantMessage1 == null && assistantMessage2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage).Name}"); assistantMessage2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 7275546d..2252103c 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 @@ -15,95 +15,29 @@ public class Format2JsonConverter : global::System.Text.Json.Serialization.JsonC options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("definition")) __score1++; - if (__jsonProps.Contains("syntax")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.CustomTextFormatParam? text = default; - global::tryAGI.OpenAI.CustomGrammarFormatParam? grammar = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType.Text) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomTextFormatParam).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam).Name}"); - grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CustomTextFormatParam)}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (text == null && grammar == null) + global::tryAGI.OpenAI.CustomGrammarFormatParam? grammar = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType.Grammar) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomTextFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomTextFormatParam).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam).Name}"); - grammar = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomGrammarFormatParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CustomGrammarFormatParam)}"); + grammar = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Format2( + discriminator?.Type, text, grammar 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 bc4c45c6..50a2c5f2 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 @@ -15,134 +15,36 @@ public class FunctionAndCustomToolCallOutputJsonConverter : global::System.Text. options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("text")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("detail")) __score1++; - if (__jsonProps.Contains("file_id")) __score1++; - if (__jsonProps.Contains("image_url")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("detail")) __score2++; - if (__jsonProps.Contains("file_data")) __score2++; - if (__jsonProps.Contains("file_id")) __score2++; - if (__jsonProps.Contains("file_url")) __score2++; - if (__jsonProps.Contains("filename")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.InputTextContent? inputText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType.InputText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputTextContent)}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.InputImageContent? inputImage = default; - global::tryAGI.OpenAI.InputFileContent? inputFile = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType.InputImage) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputImageContent)}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (inputText == null && inputImage == null && inputFile == null) + global::tryAGI.OpenAI.InputFileContent? inputFile = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType.InputFile) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputFileContent)}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput( + discriminator?.Type, inputText, inputImage, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorType.g.cs new file mode 100644 index 00000000..119662a0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..4785d245 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionAndCustomToolCallOutputDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.g.cs new file mode 100644 index 00000000..d9063f7c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..0a0c9c5d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorType.g.cs new file mode 100644 index 00000000..a141302a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..592af8a1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.g.cs new file mode 100644 index 00000000..17cef74c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..cd679ba0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorType.g.cs new file mode 100644 index 00000000..6f5451ca --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..296b598c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 4413bed1..75aa46ca 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 @@ -15,94 +15,29 @@ public class FunctionShellCallOutputOutcomeParamJsonConverter : global::System.T options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("exit_code")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? timeout = default; - global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? exit = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType.Timeout) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam).Name}"); - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam).Name}"); - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam)}"); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (timeout == null && exit == null) + global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? exit = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType.Exit) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam).Name}"); - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam).Name}"); - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam)}"); + exit = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam( + discriminator?.Type, timeout, exit diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorType.g.cs new file mode 100644 index 00000000..796eadc6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..3ec3fcc7 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorType.g.cs new file mode 100644 index 00000000..9e748480 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..20c36455 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 393e8f4a..48a13b25 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 @@ -82,6 +82,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -92,9 +93,13 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J catch (global::System.InvalidOperationException) { } + } + if (functionToolCallOutput == null && functionToolCallOutputResourceVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2).Name}"); functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 fc08fdf4..b5cd41e1 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 @@ -84,6 +84,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -94,9 +95,13 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se catch (global::System.InvalidOperationException) { } + } + if (functionToolCall == null && functionToolCallResourceVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2).Name}"); functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 9d5a6666..8bfd03c5 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 @@ -15,118 +15,29 @@ public class ImageEditStreamEventJsonConverter : global::System.Text.Json.Serial options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("b64_json")) __score0++; - if (__jsonProps.Contains("background")) __score0++; - if (__jsonProps.Contains("created_at")) __score0++; - if (__jsonProps.Contains("output_format")) __score0++; - if (__jsonProps.Contains("partial_image_index")) __score0++; - if (__jsonProps.Contains("quality")) __score0++; - if (__jsonProps.Contains("size")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("b64_json")) __score1++; - if (__jsonProps.Contains("background")) __score1++; - if (__jsonProps.Contains("created_at")) __score1++; - if (__jsonProps.Contains("output_format")) __score1++; - if (__jsonProps.Contains("quality")) __score1++; - 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; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ImageEditPartialImageEvent? imageEditPartialImage = default; - global::tryAGI.OpenAI.ImageEditCompletedEvent? imageEditCompleted = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType.ImageEditPartialImage) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent).Name}"); - imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent).Name}"); - imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ImageEditPartialImageEvent)}"); + imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (imageEditPartialImage == null && imageEditCompleted == null) + global::tryAGI.OpenAI.ImageEditCompletedEvent? imageEditCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType.ImageEditCompleted) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditPartialImageEvent).Name}"); - imageEditPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent).Name}"); - imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ImageEditCompletedEvent)}"); + imageEditCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ImageEditStreamEvent( + discriminator?.Type, imageEditPartialImage, imageEditCompleted diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..5a1d5c1d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ImageEditStreamEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..2098deb4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ImageEditStreamEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 dc04d303..487c019e 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 @@ -15,118 +15,29 @@ public class ImageGenStreamEventJsonConverter : global::System.Text.Json.Seriali options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("b64_json")) __score0++; - if (__jsonProps.Contains("background")) __score0++; - if (__jsonProps.Contains("created_at")) __score0++; - if (__jsonProps.Contains("output_format")) __score0++; - if (__jsonProps.Contains("partial_image_index")) __score0++; - if (__jsonProps.Contains("quality")) __score0++; - if (__jsonProps.Contains("size")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("b64_json")) __score1++; - if (__jsonProps.Contains("background")) __score1++; - if (__jsonProps.Contains("created_at")) __score1++; - if (__jsonProps.Contains("output_format")) __score1++; - if (__jsonProps.Contains("quality")) __score1++; - 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; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ImageGenPartialImageEvent? imageGenerationPartialImage = default; - global::tryAGI.OpenAI.ImageGenCompletedEvent? imageGenerationCompleted = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType.ImageGenerationPartialImage) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent).Name}"); - imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent).Name}"); - imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ImageGenPartialImageEvent)}"); + imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (imageGenerationPartialImage == null && imageGenerationCompleted == null) + global::tryAGI.OpenAI.ImageGenCompletedEvent? imageGenerationCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType.ImageGenerationCompleted) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenPartialImageEvent).Name}"); - imageGenerationPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent).Name}"); - imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ImageGenCompletedEvent)}"); + imageGenerationCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ImageGenStreamEvent( + discriminator?.Type, imageGenerationPartialImage, imageGenerationCompleted diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..7e0dd45d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ImageGenStreamEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..2620e288 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ImageGenStreamEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 dea5bc9a..6aae7474 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 @@ -15,134 +15,36 @@ public class InputContentJsonConverter : global::System.Text.Json.Serialization. options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("text")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("detail")) __score1++; - if (__jsonProps.Contains("file_id")) __score1++; - if (__jsonProps.Contains("image_url")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("detail")) __score2++; - if (__jsonProps.Contains("file_data")) __score2++; - if (__jsonProps.Contains("file_id")) __score2++; - if (__jsonProps.Contains("file_url")) __score2++; - if (__jsonProps.Contains("filename")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputContentDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputContentDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.InputTextContent? inputText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.InputContentDiscriminatorType.InputText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputTextContent)}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.InputImageContent? inputImage = default; - global::tryAGI.OpenAI.InputFileContent? inputFile = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.InputContentDiscriminatorType.InputImage) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputImageContent)}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (inputText == null && inputImage == null && inputFile == null) + global::tryAGI.OpenAI.InputFileContent? inputFile = default; + if (discriminator?.Type == global::tryAGI.OpenAI.InputContentDiscriminatorType.InputFile) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContent).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContent).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContent).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputFileContent)}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.InputContent( + discriminator?.Type, inputText, inputImage, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorType.g.cs new file mode 100644 index 00000000..e5c48401 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class InputContentDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.InputContentDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.InputContentDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.InputContentDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.InputContentDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.InputContentDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.InputContentDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..92034dea --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class InputContentDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.InputContentDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.InputContentDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.InputContentDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.InputContentDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.InputContentDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.InputContentDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 8e28fe13..f7c1c272 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 @@ -98,6 +98,7 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.EasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.EasyInputMessage).Name}"); message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -108,9 +109,13 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && item == null && itemReference == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Item), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Item).Name}"); item = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -121,9 +126,13 @@ public class InputItemJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && item == null && itemReference == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ItemReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ItemReferenceParam).Name}"); itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorType.g.cs new file mode 100644 index 00000000..c1513e17 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class InputItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.InputItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.InputItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.InputItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.InputItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.InputItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.InputItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..cedbc586 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class InputItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.InputItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.InputItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.InputItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.InputItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.InputItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.InputItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 ec87178b..0f249724 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 @@ -79,6 +79,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -89,9 +90,13 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && inputMessageResourceVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2).Name}"); inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs index 6e041f55..a05f6251 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.InputParam.g.cs @@ -108,7 +108,10 @@ public class InputParamJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (textInput == null && inputItemList == null) + { try { 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 0a2124aa..2b62309b 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 @@ -15,994 +15,197 @@ public class ItemJsonConverter : global::System.Text.Json.Serialization.JsonConv options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("content")) __score0++; - if (__jsonProps.Contains("role")) __score0++; - if (__jsonProps.Contains("status")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("content")) __score1++; - if (__jsonProps.Contains("id")) __score1++; - if (__jsonProps.Contains("phase")) __score1++; - if (__jsonProps.Contains("role")) __score1++; - if (__jsonProps.Contains("status")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("id")) __score2++; - if (__jsonProps.Contains("queries")) __score2++; - if (__jsonProps.Contains("results")) __score2++; - if (__jsonProps.Contains("status")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("action")) __score3++; - if (__jsonProps.Contains("actions")) __score3++; - if (__jsonProps.Contains("call_id")) __score3++; - if (__jsonProps.Contains("id")) __score3++; - if (__jsonProps.Contains("pending_safety_checks")) __score3++; - if (__jsonProps.Contains("status")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("acknowledged_safety_checks")) __score4++; - 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; - if (__jsonProps.Contains("action")) __score5++; - if (__jsonProps.Contains("id")) __score5++; - if (__jsonProps.Contains("status")) __score5++; - if (__jsonProps.Contains("type")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("arguments")) __score6++; - if (__jsonProps.Contains("call_id")) __score6++; - if (__jsonProps.Contains("id")) __score6++; - if (__jsonProps.Contains("name")) __score6++; - if (__jsonProps.Contains("namespace")) __score6++; - if (__jsonProps.Contains("status")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("call_id")) __score7++; - if (__jsonProps.Contains("id")) __score7++; - if (__jsonProps.Contains("output")) __score7++; - if (__jsonProps.Contains("status")) __score7++; - if (__jsonProps.Contains("type")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("arguments")) __score8++; - if (__jsonProps.Contains("call_id")) __score8++; - if (__jsonProps.Contains("execution")) __score8++; - if (__jsonProps.Contains("id")) __score8++; - if (__jsonProps.Contains("status")) __score8++; - if (__jsonProps.Contains("type")) __score8++; - var __score9 = 0; - if (__jsonProps.Contains("call_id")) __score9++; - if (__jsonProps.Contains("execution")) __score9++; - if (__jsonProps.Contains("id")) __score9++; - if (__jsonProps.Contains("status")) __score9++; - if (__jsonProps.Contains("tools")) __score9++; - if (__jsonProps.Contains("type")) __score9++; - var __score10 = 0; - if (__jsonProps.Contains("content")) __score10++; - if (__jsonProps.Contains("encrypted_content")) __score10++; - if (__jsonProps.Contains("id")) __score10++; - if (__jsonProps.Contains("status")) __score10++; - if (__jsonProps.Contains("summary")) __score10++; - if (__jsonProps.Contains("type")) __score10++; - var __score11 = 0; - if (__jsonProps.Contains("encrypted_content")) __score11++; - if (__jsonProps.Contains("id")) __score11++; - if (__jsonProps.Contains("type")) __score11++; - var __score12 = 0; - if (__jsonProps.Contains("id")) __score12++; - if (__jsonProps.Contains("result")) __score12++; - if (__jsonProps.Contains("status")) __score12++; - if (__jsonProps.Contains("type")) __score12++; - var __score13 = 0; - if (__jsonProps.Contains("code")) __score13++; - if (__jsonProps.Contains("container_id")) __score13++; - if (__jsonProps.Contains("id")) __score13++; - if (__jsonProps.Contains("outputs")) __score13++; - if (__jsonProps.Contains("status")) __score13++; - 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++; - if (__jsonProps.Contains("type")) __score14++; - var __score15 = 0; - if (__jsonProps.Contains("id")) __score15++; - if (__jsonProps.Contains("output")) __score15++; - if (__jsonProps.Contains("status")) __score15++; - 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++; - if (__jsonProps.Contains("status")) __score16++; - if (__jsonProps.Contains("type")) __score16++; - var __score17 = 0; - if (__jsonProps.Contains("call_id")) __score17++; - if (__jsonProps.Contains("id")) __score17++; - if (__jsonProps.Contains("max_output_length")) __score17++; - if (__jsonProps.Contains("output")) __score17++; - if (__jsonProps.Contains("status")) __score17++; - if (__jsonProps.Contains("type")) __score17++; - var __score18 = 0; - if (__jsonProps.Contains("call_id")) __score18++; - if (__jsonProps.Contains("id")) __score18++; - if (__jsonProps.Contains("operation")) __score18++; - if (__jsonProps.Contains("status")) __score18++; - if (__jsonProps.Contains("type")) __score18++; - var __score19 = 0; - if (__jsonProps.Contains("call_id")) __score19++; - if (__jsonProps.Contains("id")) __score19++; - if (__jsonProps.Contains("output")) __score19++; - if (__jsonProps.Contains("status")) __score19++; - if (__jsonProps.Contains("type")) __score19++; - var __score20 = 0; - if (__jsonProps.Contains("error")) __score20++; - if (__jsonProps.Contains("id")) __score20++; - if (__jsonProps.Contains("server_label")) __score20++; - if (__jsonProps.Contains("tools")) __score20++; - if (__jsonProps.Contains("type")) __score20++; - var __score21 = 0; - if (__jsonProps.Contains("arguments")) __score21++; - if (__jsonProps.Contains("id")) __score21++; - if (__jsonProps.Contains("name")) __score21++; - if (__jsonProps.Contains("server_label")) __score21++; - if (__jsonProps.Contains("type")) __score21++; - var __score22 = 0; - if (__jsonProps.Contains("approval_request_id")) __score22++; - if (__jsonProps.Contains("approve")) __score22++; - if (__jsonProps.Contains("id")) __score22++; - if (__jsonProps.Contains("reason")) __score22++; - if (__jsonProps.Contains("type")) __score22++; - var __score23 = 0; - if (__jsonProps.Contains("approval_request_id")) __score23++; - if (__jsonProps.Contains("arguments")) __score23++; - if (__jsonProps.Contains("error")) __score23++; - if (__jsonProps.Contains("id")) __score23++; - if (__jsonProps.Contains("name")) __score23++; - if (__jsonProps.Contains("output")) __score23++; - if (__jsonProps.Contains("server_label")) __score23++; - if (__jsonProps.Contains("status")) __score23++; - if (__jsonProps.Contains("type")) __score23++; - var __score24 = 0; - if (__jsonProps.Contains("call_id")) __score24++; - if (__jsonProps.Contains("id")) __score24++; - if (__jsonProps.Contains("output")) __score24++; - if (__jsonProps.Contains("type")) __score24++; - var __score25 = 0; - if (__jsonProps.Contains("call_id")) __score25++; - if (__jsonProps.Contains("id")) __score25++; - if (__jsonProps.Contains("input")) __score25++; - if (__jsonProps.Contains("name")) __score25++; - if (__jsonProps.Contains("namespace")) __score25++; - if (__jsonProps.Contains("type")) __score25++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } - if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } - if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } - if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } - if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } - if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } - if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } - if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } - if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } - if (__score17 > __bestScore) { __bestScore = __score17; __bestIndex = 17; } - if (__score18 > __bestScore) { __bestScore = __score18; __bestIndex = 18; } - if (__score19 > __bestScore) { __bestScore = __score19; __bestIndex = 19; } - if (__score20 > __bestScore) { __bestScore = __score20; __bestIndex = 20; } - if (__score21 > __bestScore) { __bestScore = __score21; __bestIndex = 21; } - if (__score22 > __bestScore) { __bestScore = __score22; __bestIndex = 22; } - if (__score23 > __bestScore) { __bestScore = __score23; __bestIndex = 23; } - if (__score24 > __bestScore) { __bestScore = __score24; __bestIndex = 24; } - if (__score25 > __bestScore) { __bestScore = __score25; __bestIndex = 25; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.InputMessage? message1 = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.Message) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputMessage)}"); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.OutputMessage? message2 = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.Message) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.OutputMessage)}"); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.FileSearchToolCall? fileSearchCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.FileSearchCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FileSearchToolCall)}"); + fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ComputerToolCall? computerCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.ComputerCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ComputerToolCall)}"); + computerCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ComputerCallOutputItemParam? computerCallOutput = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.ComputerCallOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ComputerCallOutputItemParam)}"); + computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.WebSearchToolCall? webSearchCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.WebSearchCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.WebSearchToolCall)}"); + webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.FunctionToolCall? functionCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.FunctionCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionToolCall)}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.FunctionCallOutputItemParam? functionCallOutput = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.FunctionCallOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionCallOutputItemParam)}"); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ToolSearchCallItemParam? toolSearchCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.ToolSearchCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ToolSearchCallItemParam)}"); + toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ToolSearchOutputItemParam? toolSearchOutput = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.ToolSearchOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ToolSearchOutputItemParam)}"); + toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ReasoningItem? reasoning = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.Reasoning) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ReasoningItem)}"); + reasoning = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.CompactionSummaryItemParam? compaction = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.Compaction) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CompactionSummaryItemParam)}"); + compaction = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ImageGenToolCall? imageGenerationCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.ImageGenerationCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ImageGenToolCall)}"); + imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.CodeInterpreterToolCall? codeInterpreterCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.CodeInterpreterCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CodeInterpreterToolCall)}"); + codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.LocalShellToolCall? localShellCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.LocalShellCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LocalShellToolCall)}"); + localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.LocalShellToolCallOutput? localShellCallOutput = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.LocalShellCallOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LocalShellToolCallOutput)}"); + localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.FunctionShellCallItemParam? shellCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.ShellCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallItemParam)}"); + shellCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? shellCallOutput = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.ShellCallOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam)}"); + shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? applyPatchCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.ApplyPatchCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam)}"); + applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? applyPatchCallOutput = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.ApplyPatchCallOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam)}"); + applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.MCPListTools? mcpListTools = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.McpListTools) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.MCPListTools)}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.MCPApprovalRequest? mcpApprovalRequest = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.McpApprovalRequest) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.MCPApprovalRequest)}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.MCPApprovalResponse? mcpApprovalResponse = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.McpApprovalResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.MCPApprovalResponse)}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.MCPToolCall? mcpCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.McpCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.MCPToolCall)}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.CustomToolCallOutput? customToolCallOutput = default; - global::tryAGI.OpenAI.CustomToolCall? customToolCall = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.CustomToolCallOutput) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam).Name}"); - computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 9) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 10) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 11) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 12) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 13) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 14) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 15) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 16) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 17) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 18) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 19) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 20) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 21) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 22) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 23) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 24) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 25) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CustomToolCallOutput)}"); + customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (message1 == null && message2 == null && fileSearchCall == null && computerCall == null && computerCallOutput == null && webSearchCall == null && functionCall == null && functionCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCallOutput == null && customToolCall == null) + global::tryAGI.OpenAI.CustomToolCall? customToolCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ItemDiscriminatorType.CustomToolCall) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); - fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); - computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerCallOutputItemParam).Name}"); - computerCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); - webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParam).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCallItemParam).Name}"); - toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParam).Name}"); - toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); - reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionSummaryItemParam).Name}"); - compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); - imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); - codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); - localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); - localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallItemParam).Name}"); - shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParam).Name}"); - shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParam).Name}"); - applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam).Name}"); - applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); - customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); - customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CustomToolCall)}"); + customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Item( + discriminator?.Type, message1, message2, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemDiscriminatorType.g.cs new file mode 100644 index 00000000..0eaae101 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..92422a59 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 50bb4973..85adb09a 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 @@ -641,6 +641,7 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Message).Name}"); message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -651,9 +652,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -664,9 +669,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -677,9 +686,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -690,9 +703,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -703,9 +720,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -716,9 +737,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -729,9 +754,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -742,9 +771,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -755,9 +788,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); computerToolCallOutputResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -768,9 +805,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -781,9 +822,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -794,9 +839,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -807,9 +856,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -820,9 +873,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -833,9 +890,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -846,9 +907,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -859,9 +924,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -872,9 +941,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -885,9 +958,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -898,9 +975,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -911,9 +992,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -924,9 +1009,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -937,9 +1026,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -950,9 +1043,13 @@ public class ItemFieldJsonConverter : global::System.Text.Json.Serialization.Jso catch (global::System.InvalidOperationException) { } + } + if (message == null && functionCall == null && toolSearchCall == null && toolSearchOutput == null && functionCallOutput == null && fileSearchCall == null && webSearchCall == null && imageGenerationCall == null && computerCall == null && computerToolCallOutputResource == null && reasoning == null && compaction == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && customToolCall == null && customToolCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); customToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorType.g.cs new file mode 100644 index 00000000..e8503de5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ItemFieldDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ItemFieldDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ItemFieldDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ItemFieldDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ItemFieldDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ItemFieldDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ItemFieldDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..05e01f36 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ItemFieldDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ItemFieldDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ItemFieldDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ItemFieldDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ItemFieldDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ItemFieldDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 7a51bc5b..333d4c2e 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 @@ -637,6 +637,7 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputMessageResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessageResource).Name}"); inputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -647,9 +648,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -660,9 +665,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -673,9 +682,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -686,9 +699,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); computerToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -699,9 +716,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -712,9 +733,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallResource).Name}"); functionToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -725,9 +750,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); functionToolCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -738,9 +767,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -751,9 +784,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -764,9 +801,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -777,9 +818,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -790,9 +835,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -803,9 +852,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -816,9 +869,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -829,9 +886,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -842,9 +903,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -855,9 +920,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -868,9 +937,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -881,9 +954,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -894,9 +971,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -907,9 +988,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -920,9 +1005,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -933,9 +1022,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -946,9 +1039,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallResource).Name}"); responseCustomToolCallItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -959,9 +1056,13 @@ public class ItemResourceJsonConverter : global::System.Text.Json.Serialization. catch (global::System.InvalidOperationException) { } + } + if (inputMessage == null && message == null && fileSearchCall == null && computerCall == null && computerToolCallOutput == null && webSearchCall == null && functionToolCall == null && functionToolCallOutput == null && toolSearchCall == null && toolSearchOutput == null && reasoning == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && mcpCall == null && responseCustomToolCallItem == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorType.g.cs new file mode 100644 index 00000000..46ecd3e3 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ItemResourceDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ItemResourceDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ItemResourceDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ItemResourceDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ItemResourceDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ItemResourceDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ItemResourceDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..366b9928 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ItemResourceDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ItemResourceDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ItemResourceDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ItemResourceDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ItemResourceDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ItemResourceDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ItemResourceDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorType.g.cs new file mode 100644 index 00000000..8c250d5c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class MessageContentItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.MessageContentItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.MessageContentItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.MessageContentItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.MessageContentItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.MessageContentItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.MessageContentItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..e96d4dfd --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class MessageContentItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.MessageContentItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.MessageContentItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.MessageContentItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.MessageContentItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 e8c95f36..f755127d 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 @@ -204,6 +204,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1).Name}"); messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -214,9 +215,13 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (messageStreamEventVariant1 == null && messageStreamEventVariant2 == null && messageStreamEventVariant3 == null && messageStreamEventVariant4 == null && messageStreamEventVariant5 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2).Name}"); messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -227,9 +232,13 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (messageStreamEventVariant1 == null && messageStreamEventVariant2 == null && messageStreamEventVariant3 == null && messageStreamEventVariant4 == null && messageStreamEventVariant5 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3).Name}"); messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -240,9 +249,13 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (messageStreamEventVariant1 == null && messageStreamEventVariant2 == null && messageStreamEventVariant3 == null && messageStreamEventVariant4 == null && messageStreamEventVariant5 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4).Name}"); messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -253,9 +266,13 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (messageStreamEventVariant1 == null && messageStreamEventVariant2 == null && messageStreamEventVariant3 == null && messageStreamEventVariant4 == null && messageStreamEventVariant5 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5).Name}"); messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs index 21cfa9b0..14fbadc3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIds.g.cs @@ -108,7 +108,10 @@ public class ModelIdsJsonConverter : global::System.Text.Json.Serialization.Json catch (global::System.InvalidOperationException) { } + } + if (shared == null && responses == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs index 1f401254..97e95fe5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsCompaction.g.cs @@ -138,7 +138,10 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (responses == null && modelIdsCompactionVariant2 == null && modelIdsCompactionVariant3 == null) + { try { @@ -152,7 +155,10 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (responses == null && modelIdsCompactionVariant2 == null && modelIdsCompactionVariant3 == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs index 29c77427..3fac9e2a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsResponses.g.cs @@ -108,7 +108,10 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (shared == null && responsesOnlyModel == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs index 2e30b412..a26e40fa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ModelIdsShared.g.cs @@ -108,7 +108,10 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (modelIdsSharedVariant1 == null && @enum == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorType.g.cs new file mode 100644 index 00000000..f4d5c4e1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class NamespaceToolParamToolDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..67ed3a17 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class NamespaceToolParamToolDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 05344b95..22852376 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 @@ -15,95 +15,29 @@ public class NetworkPolicyJsonConverter : global::System.Text.Json.Serialization options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("allowed_domains")) __score1++; - if (__jsonProps.Contains("domain_secrets")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? disabled = default; - global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? allowlist = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType.Disabled) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam)}"); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (disabled == null && allowlist == null) + global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? allowlist = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType.Allowlist) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam)}"); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.NetworkPolicy( + discriminator?.Type, disabled, allowlist 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 e49d8d72..4faf49be 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 @@ -15,95 +15,29 @@ public class NetworkPolicy2JsonConverter : global::System.Text.Json.Serializatio options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("allowed_domains")) __score1++; - if (__jsonProps.Contains("domain_secrets")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? disabled = default; - global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? allowlist = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.Disabled) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam)}"); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (disabled == null && allowlist == null) + global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? allowlist = default; + if (discriminator?.Type == global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.Allowlist) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam)}"); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.NetworkPolicy2( + discriminator?.Type, disabled, allowlist 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 a0dd69fa..ac0dedad 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 @@ -15,95 +15,29 @@ public class NetworkPolicy3JsonConverter : global::System.Text.Json.Serializatio options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("allowed_domains")) __score1++; - if (__jsonProps.Contains("domain_secrets")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? disabled = default; - global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? allowlist = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType.Disabled) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam)}"); + disabled = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (disabled == null && allowlist == null) + global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? allowlist = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType.Allowlist) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam)}"); + allowlist = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.NetworkPolicy3( + discriminator?.Type, disabled, allowlist diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs index 877e4810..53689bfc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf2.g.cs @@ -107,7 +107,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs index a6d62768..971259c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf3.g.cs @@ -137,7 +137,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { @@ -151,7 +154,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs index adf47b45..f52af700 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf4.g.cs @@ -167,7 +167,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { @@ -181,7 +184,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { @@ -195,7 +201,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs index 296892e0..1e65c8d8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OneOf5.g.cs @@ -197,7 +197,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { @@ -211,7 +214,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { @@ -225,7 +231,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { @@ -239,7 +248,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { 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 cad005e2..89bb6850 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 @@ -15,130 +15,36 @@ public class OperationJsonConverter : global::System.Text.Json.Serialization.Jso options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("diff")) __score0++; - if (__jsonProps.Contains("path")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("path")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("diff")) __score2++; - if (__jsonProps.Contains("path")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? createFile = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType.CreateFile) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation)}"); + createFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? deleteFile = default; - global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? updateFile = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType.DeleteFile) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation).Name}"); - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation).Name}"); - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation).Name}"); - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation)}"); + deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (createFile == null && deleteFile == null && updateFile == null) + global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? updateFile = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType.UpdateFile) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchCreateFileOperation).Name}"); - createFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation).Name}"); - deleteFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation).Name}"); - updateFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation)}"); + updateFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Operation( + discriminator?.Type, createFile, deleteFile, 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 070ff997..2f5c4125 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 @@ -15,94 +15,29 @@ public class OutcomeJsonConverter : global::System.Text.Json.Serialization.JsonC options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("exit_code")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? timeout = default; - global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? exit = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType.Timeout) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome).Name}"); - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome).Name}"); - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome)}"); + timeout = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (timeout == null && exit == null) + global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? exit = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType.Exit) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome).Name}"); - timeout = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome).Name}"); - exit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome)}"); + exit = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Outcome( + discriminator?.Type, timeout, exit 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 fbbf018b..9e336bec 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 @@ -15,130 +15,36 @@ public class OutputContentJsonConverter : global::System.Text.Json.Serialization options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("annotations")) __score0++; - if (__jsonProps.Contains("logprobs")) __score0++; - if (__jsonProps.Contains("text")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("refusal")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("text")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputContentDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.OutputContentDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.OutputTextContent? outputText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.OutputContentDiscriminatorType.OutputText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.OutputTextContent)}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RefusalContent? refusal = default; - global::tryAGI.OpenAI.ReasoningTextContent? reasoningText = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.OutputContentDiscriminatorType.Refusal) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RefusalContent)}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (outputText == null && refusal == null && reasoningText == null) + global::tryAGI.OpenAI.ReasoningTextContent? reasoningText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.OutputContentDiscriminatorType.ReasoningText) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningTextContent).Name}"); - reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ReasoningTextContent)}"); + reasoningText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.OutputContent( + discriminator?.Type, outputText, refusal, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorType.g.cs new file mode 100644 index 00000000..dd738aca --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OutputContentDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OutputContentDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OutputContentDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OutputContentDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OutputContentDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OutputContentDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.OutputContentDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..c0a33210 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OutputContentDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OutputContentDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OutputContentDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OutputContentDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OutputContentDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OutputContentDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.OutputContentDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 18b12654..c8640de8 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 @@ -632,6 +632,7 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputMessage).Name}"); message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -642,9 +643,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchToolCall).Name}"); fileSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -655,9 +660,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -668,9 +677,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResource).Name}"); functionToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -681,9 +694,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchToolCall).Name}"); webSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -694,9 +711,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCall).Name}"); computerCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -707,9 +728,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResource).Name}"); computerToolCallResource = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -720,9 +745,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ReasoningItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ReasoningItem).Name}"); reasoning = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -733,9 +762,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchCall).Name}"); toolSearchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -746,9 +779,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchOutput).Name}"); toolSearchOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -759,9 +796,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CompactionBody), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CompactionBody).Name}"); compaction = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -772,9 +813,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenToolCall).Name}"); imageGenerationCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -785,9 +830,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterToolCall).Name}"); codeInterpreterCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -798,9 +847,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCall).Name}"); localShellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -811,9 +864,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolCallOutput).Name}"); localShellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -824,9 +881,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCall).Name}"); shellCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -837,9 +898,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellCallOutput).Name}"); shellCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -850,9 +915,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCall).Name}"); applyPatchCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -863,9 +932,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutput).Name}"); applyPatchCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -876,9 +949,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPToolCall).Name}"); mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -889,9 +966,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPListTools).Name}"); mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -902,9 +983,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalRequest).Name}"); mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -915,9 +1000,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPApprovalResponseResource).Name}"); mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -928,9 +1017,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); customToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -941,9 +1034,13 @@ public class OutputItemJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (message == null && fileSearchCall == null && functionCall == null && functionToolCallResource == null && webSearchCall == null && computerCall == null && computerToolCallResource == null && reasoning == null && toolSearchCall == null && toolSearchOutput == null && compaction == null && imageGenerationCall == null && codeInterpreterCall == null && localShellCall == null && localShellCallOutput == null && shellCall == null && shellCallOutput == null && applyPatchCall == null && applyPatchCallOutput == null && mcpCall == null && mcpListTools == null && mcpApprovalRequest == null && mcpApprovalResponse == null && customToolCall == null && responseCustomToolCallOutputItem == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutputResource).Name}"); responseCustomToolCallOutputItem = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorType.g.cs new file mode 100644 index 00000000..588d3e13 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OutputItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OutputItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OutputItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OutputItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OutputItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OutputItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.OutputItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..16dfb73f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OutputItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OutputItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OutputItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OutputItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OutputItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OutputItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.OutputItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 f82df932..ca5da969 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 @@ -15,97 +15,29 @@ public class OutputMessageContentJsonConverter : global::System.Text.Json.Serial options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("annotations")) __score0++; - if (__jsonProps.Contains("logprobs")) __score0++; - if (__jsonProps.Contains("text")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("refusal")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputMessageContentDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.OutputMessageContentDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.OutputTextContent? outputText = default; - global::tryAGI.OpenAI.RefusalContent? refusal = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType.OutputText) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.OutputTextContent)}"); + outputText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (outputText == null && refusal == null) + global::tryAGI.OpenAI.RefusalContent? refusal = default; + if (discriminator?.Type == global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType.Refusal) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.OutputTextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.OutputTextContent).Name}"); - outputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RefusalContent).Name}"); - refusal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RefusalContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RefusalContent)}"); + refusal = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.OutputMessageContent( + discriminator?.Type, outputText, refusal diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorType.g.cs new file mode 100644 index 00000000..f6d7d123 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OutputMessageContentDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OutputMessageContentDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.OutputMessageContentDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..590fe1b0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class OutputMessageContentDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.OutputMessageContentDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.OutputMessageContentDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 d9528071..bbcf045c 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 @@ -15,134 +15,36 @@ public class OutputVariant2ItemJsonConverter : global::System.Text.Json.Serializ options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("text")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("detail")) __score1++; - if (__jsonProps.Contains("file_id")) __score1++; - if (__jsonProps.Contains("image_url")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("detail")) __score2++; - if (__jsonProps.Contains("file_data")) __score2++; - if (__jsonProps.Contains("file_id")) __score2++; - if (__jsonProps.Contains("file_url")) __score2++; - if (__jsonProps.Contains("filename")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.InputTextContentParam? inputText = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.InputText) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputTextContentParam)}"); + inputText = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.InputImageContentParamAutoParam? inputImage = default; - global::tryAGI.OpenAI.InputFileContentParam? inputFile = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.InputImage) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContentParam).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContentParam).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputImageContentParamAutoParam)}"); + inputImage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (inputText == null && inputImage == null && inputFile == null) + global::tryAGI.OpenAI.InputFileContentParam? inputFile = default; + if (discriminator?.Type == global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.InputFile) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputTextContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputTextContentParam).Name}"); - inputText = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputImageContentParamAutoParam).Name}"); - inputImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputFileContentParam).Name}"); - inputFile = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InputFileContentParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InputFileContentParam)}"); + inputFile = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.OutputVariant2Item( + discriminator?.Type, inputText, inputImage, 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 b546972d..f8716485 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 @@ -15,95 +15,29 @@ public class OutputsVariant1ItemJsonConverter : global::System.Text.Json.Seriali options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("logs")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("type")) __score1++; - if (__jsonProps.Contains("url")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.CodeInterpreterOutputLogs? logs = default; - global::tryAGI.OpenAI.CodeInterpreterOutputImage? image = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.Logs) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); - logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); - image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs)}"); + logs = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (logs == null && image == null) + global::tryAGI.OpenAI.CodeInterpreterOutputImage? image = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.Image) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs).Name}"); - logs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage).Name}"); - image = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CodeInterpreterOutputImage)}"); + image = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.OutputsVariant1Item( + discriminator?.Type, logs, image 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 5c7bb1c1..243052e7 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 @@ -96,6 +96,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat).Name}"); pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -106,9 +107,13 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (pcmAudioFormat == null && pcmuAudioFormat == null && pcmaAudioFormat == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat).Name}"); pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -119,9 +124,13 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (pcmAudioFormat == null && pcmuAudioFormat == null && pcmaAudioFormat == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat).Name}"); pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 be9a7956..d72a6745 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 @@ -15,422 +15,92 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("event_id")) __score0++; - if (__jsonProps.Contains("item")) __score0++; - if (__jsonProps.Contains("previous_item_id")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("event_id")) __score1++; - if (__jsonProps.Contains("item_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("event_id")) __score2++; - if (__jsonProps.Contains("item_id")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("audio_end_ms")) __score3++; - if (__jsonProps.Contains("content_index")) __score3++; - if (__jsonProps.Contains("event_id")) __score3++; - if (__jsonProps.Contains("item_id")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("audio")) __score4++; - if (__jsonProps.Contains("event_id")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("event_id")) __score5++; - if (__jsonProps.Contains("type")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("event_id")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("event_id")) __score7++; - if (__jsonProps.Contains("type")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("event_id")) __score8++; - if (__jsonProps.Contains("response_id")) __score8++; - if (__jsonProps.Contains("type")) __score8++; - 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.parallel_tool_calls")) __score9++; - if (__jsonProps.Contains("response.prompt")) __score9++; - if (__jsonProps.Contains("response.reasoning")) __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++; - if (__jsonProps.Contains("session")) __score10++; - if (__jsonProps.Contains("type")) __score10++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } - if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } - if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? conversationItemCreate = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.ConversationItemCreate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate)}"); + conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? conversationItemDelete = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.ConversationItemDelete) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete)}"); + conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? conversationItemRetrieve = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.ConversationItemRetrieve) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve)}"); + conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? conversationItemTruncate = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.ConversationItemTruncate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate)}"); + conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? inputAudioBufferAppend = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.InputAudioBufferAppend) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend)}"); + inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? inputAudioBufferClear = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.InputAudioBufferClear) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear)}"); + inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? outputAudioBufferClear = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.OutputAudioBufferClear) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear)}"); + outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? inputAudioBufferCommit = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.InputAudioBufferCommit) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit)}"); + inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? responseCancel = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.ResponseCancel) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel)}"); + responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? responseCreate = default; - global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? sessionUpdate = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.ResponseCreate) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate).Name}"); - conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete).Name}"); - conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve).Name}"); - conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate).Name}"); - conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend).Name}"); - inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear).Name}"); - inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear).Name}"); - outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit).Name}"); - inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel).Name}"); - responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 9) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate).Name}"); - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 10) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate).Name}"); - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate)}"); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (conversationItemCreate == null && conversationItemDelete == null && conversationItemRetrieve == null && conversationItemTruncate == null && inputAudioBufferAppend == null && inputAudioBufferClear == null && outputAudioBufferClear == null && inputAudioBufferCommit == null && responseCancel == null && responseCreate == null && sessionUpdate == null) + global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? sessionUpdate = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType.SessionUpdate) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate).Name}"); - conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete).Name}"); - conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve).Name}"); - conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate).Name}"); - conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend).Name}"); - inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear).Name}"); - inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear).Name}"); - outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit).Name}"); - inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCancel).Name}"); - responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate).Name}"); - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate).Name}"); - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate)}"); + sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.RealtimeClientEvent( + discriminator?.Type, conversationItemCreate, conversationItemDelete, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorType.g.cs new file mode 100644 index 00000000..8329d43d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeClientEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..a5d225be --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeClientEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 41fdf4fa..b9c84122 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 @@ -15,361 +15,78 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("content")) __score0++; - if (__jsonProps.Contains("id")) __score0++; - if (__jsonProps.Contains("object")) __score0++; - if (__jsonProps.Contains("role")) __score0++; - if (__jsonProps.Contains("status")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("content")) __score1++; - if (__jsonProps.Contains("id")) __score1++; - if (__jsonProps.Contains("object")) __score1++; - if (__jsonProps.Contains("role")) __score1++; - if (__jsonProps.Contains("status")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("content")) __score2++; - if (__jsonProps.Contains("id")) __score2++; - if (__jsonProps.Contains("object")) __score2++; - if (__jsonProps.Contains("role")) __score2++; - if (__jsonProps.Contains("status")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("arguments")) __score3++; - if (__jsonProps.Contains("call_id")) __score3++; - if (__jsonProps.Contains("id")) __score3++; - if (__jsonProps.Contains("name")) __score3++; - if (__jsonProps.Contains("object")) __score3++; - if (__jsonProps.Contains("status")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("call_id")) __score4++; - if (__jsonProps.Contains("id")) __score4++; - if (__jsonProps.Contains("object")) __score4++; - if (__jsonProps.Contains("output")) __score4++; - if (__jsonProps.Contains("status")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("approval_request_id")) __score5++; - if (__jsonProps.Contains("approve")) __score5++; - if (__jsonProps.Contains("id")) __score5++; - if (__jsonProps.Contains("reason")) __score5++; - if (__jsonProps.Contains("type")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("id")) __score6++; - if (__jsonProps.Contains("server_label")) __score6++; - if (__jsonProps.Contains("tools")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("approval_request_id")) __score7++; - if (__jsonProps.Contains("arguments")) __score7++; - if (__jsonProps.Contains("error")) __score7++; - if (__jsonProps.Contains("id")) __score7++; - if (__jsonProps.Contains("name")) __score7++; - if (__jsonProps.Contains("output")) __score7++; - if (__jsonProps.Contains("server_label")) __score7++; - if (__jsonProps.Contains("type")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("arguments")) __score8++; - if (__jsonProps.Contains("id")) __score8++; - if (__jsonProps.Contains("name")) __score8++; - if (__jsonProps.Contains("server_label")) __score8++; - if (__jsonProps.Contains("type")) __score8++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? message1 = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType.Message) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem)}"); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? message2 = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType.Message) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser)}"); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? message3 = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType.Message) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant)}"); + message3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? functionCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType.FunctionCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall)}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? functionCallOutput = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType.FunctionCallOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput)}"); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? mcpApprovalResponse = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType.McpApprovalResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse)}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeMCPListTools? mcpListTools = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType.McpListTools) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeMCPListTools)}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeMCPToolCall? mcpCall = default; - global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? mcpApprovalRequest = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType.McpCall) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant).Name}"); - message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeMCPToolCall)}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (message1 == null && message2 == null && message3 == null && functionCall == null && functionCallOutput == null && mcpApprovalResponse == null && mcpListTools == null && mcpCall == null && mcpApprovalRequest == null) + global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? mcpApprovalRequest = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType.McpApprovalRequest) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageUser).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant).Name}"); - message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest)}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.RealtimeConversationItem( + discriminator?.Type, message1, message2, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorType.g.cs new file mode 100644 index 00000000..75bbad3b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeConversationItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..deb35d9d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeConversationItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorType.g.cs new file mode 100644 index 00000000..6d94ee53 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..7cbbd8b5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 ffc324f3..f062d122 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 @@ -15,1719 +15,337 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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; - if (__jsonProps.Contains("event_id")) __score1++; - if (__jsonProps.Contains("item")) __score1++; - if (__jsonProps.Contains("previous_item_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("event_id")) __score2++; - if (__jsonProps.Contains("item_id")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("content_index")) __score3++; - if (__jsonProps.Contains("event_id")) __score3++; - if (__jsonProps.Contains("item_id")) __score3++; - if (__jsonProps.Contains("logprobs")) __score3++; - if (__jsonProps.Contains("transcript")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - if (__jsonProps.Contains("usage")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("content_index")) __score4++; - if (__jsonProps.Contains("delta")) __score4++; - if (__jsonProps.Contains("event_id")) __score4++; - if (__jsonProps.Contains("item_id")) __score4++; - if (__jsonProps.Contains("logprobs")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - 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++; - var __score6 = 0; - if (__jsonProps.Contains("event_id")) __score6++; - if (__jsonProps.Contains("item")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("audio_end_ms")) __score7++; - if (__jsonProps.Contains("content_index")) __score7++; - if (__jsonProps.Contains("event_id")) __score7++; - if (__jsonProps.Contains("item_id")) __score7++; - 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; - if (__jsonProps.Contains("event_id")) __score9++; - if (__jsonProps.Contains("type")) __score9++; - var __score10 = 0; - if (__jsonProps.Contains("event_id")) __score10++; - if (__jsonProps.Contains("item_id")) __score10++; - if (__jsonProps.Contains("previous_item_id")) __score10++; - if (__jsonProps.Contains("type")) __score10++; - var __score11 = 0; - if (__jsonProps.Contains("event")) __score11++; - if (__jsonProps.Contains("received_at")) __score11++; - if (__jsonProps.Contains("type")) __score11++; - var __score12 = 0; - if (__jsonProps.Contains("audio_start_ms")) __score12++; - if (__jsonProps.Contains("event_id")) __score12++; - if (__jsonProps.Contains("item_id")) __score12++; - if (__jsonProps.Contains("type")) __score12++; - var __score13 = 0; - if (__jsonProps.Contains("audio_end_ms")) __score13++; - if (__jsonProps.Contains("event_id")) __score13++; - if (__jsonProps.Contains("item_id")) __score13++; - if (__jsonProps.Contains("type")) __score13++; - var __score14 = 0; - if (__jsonProps.Contains("event_id")) __score14++; - if (__jsonProps.Contains("rate_limits")) __score14++; - if (__jsonProps.Contains("type")) __score14++; - var __score15 = 0; - if (__jsonProps.Contains("content_index")) __score15++; - if (__jsonProps.Contains("delta")) __score15++; - if (__jsonProps.Contains("event_id")) __score15++; - if (__jsonProps.Contains("item_id")) __score15++; - if (__jsonProps.Contains("output_index")) __score15++; - if (__jsonProps.Contains("response_id")) __score15++; - if (__jsonProps.Contains("type")) __score15++; - var __score16 = 0; - if (__jsonProps.Contains("content_index")) __score16++; - if (__jsonProps.Contains("event_id")) __score16++; - if (__jsonProps.Contains("item_id")) __score16++; - if (__jsonProps.Contains("output_index")) __score16++; - if (__jsonProps.Contains("response_id")) __score16++; - if (__jsonProps.Contains("type")) __score16++; - var __score17 = 0; - if (__jsonProps.Contains("content_index")) __score17++; - if (__jsonProps.Contains("delta")) __score17++; - if (__jsonProps.Contains("event_id")) __score17++; - if (__jsonProps.Contains("item_id")) __score17++; - if (__jsonProps.Contains("output_index")) __score17++; - if (__jsonProps.Contains("response_id")) __score17++; - if (__jsonProps.Contains("type")) __score17++; - var __score18 = 0; - if (__jsonProps.Contains("content_index")) __score18++; - if (__jsonProps.Contains("event_id")) __score18++; - if (__jsonProps.Contains("item_id")) __score18++; - if (__jsonProps.Contains("output_index")) __score18++; - if (__jsonProps.Contains("response_id")) __score18++; - if (__jsonProps.Contains("transcript")) __score18++; - if (__jsonProps.Contains("type")) __score18++; - var __score19 = 0; - if (__jsonProps.Contains("content_index")) __score19++; - if (__jsonProps.Contains("event_id")) __score19++; - 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; - if (__jsonProps.Contains("content_index")) __score20++; - if (__jsonProps.Contains("event_id")) __score20++; - 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++; - if (__jsonProps.Contains("delta")) __score23++; - if (__jsonProps.Contains("event_id")) __score23++; - if (__jsonProps.Contains("item_id")) __score23++; - if (__jsonProps.Contains("output_index")) __score23++; - if (__jsonProps.Contains("response_id")) __score23++; - if (__jsonProps.Contains("type")) __score23++; - var __score24 = 0; - if (__jsonProps.Contains("arguments")) __score24++; - if (__jsonProps.Contains("call_id")) __score24++; - if (__jsonProps.Contains("event_id")) __score24++; - if (__jsonProps.Contains("item_id")) __score24++; - if (__jsonProps.Contains("name")) __score24++; - if (__jsonProps.Contains("output_index")) __score24++; - if (__jsonProps.Contains("response_id")) __score24++; - if (__jsonProps.Contains("type")) __score24++; - var __score25 = 0; - if (__jsonProps.Contains("event_id")) __score25++; - if (__jsonProps.Contains("item")) __score25++; - if (__jsonProps.Contains("output_index")) __score25++; - if (__jsonProps.Contains("response_id")) __score25++; - if (__jsonProps.Contains("type")) __score25++; - var __score26 = 0; - if (__jsonProps.Contains("event_id")) __score26++; - if (__jsonProps.Contains("item")) __score26++; - if (__jsonProps.Contains("output_index")) __score26++; - if (__jsonProps.Contains("response_id")) __score26++; - if (__jsonProps.Contains("type")) __score26++; - var __score27 = 0; - if (__jsonProps.Contains("content_index")) __score27++; - if (__jsonProps.Contains("delta")) __score27++; - if (__jsonProps.Contains("event_id")) __score27++; - if (__jsonProps.Contains("item_id")) __score27++; - if (__jsonProps.Contains("output_index")) __score27++; - if (__jsonProps.Contains("response_id")) __score27++; - if (__jsonProps.Contains("type")) __score27++; - var __score28 = 0; - if (__jsonProps.Contains("content_index")) __score28++; - if (__jsonProps.Contains("event_id")) __score28++; - if (__jsonProps.Contains("item_id")) __score28++; - if (__jsonProps.Contains("output_index")) __score28++; - if (__jsonProps.Contains("response_id")) __score28++; - if (__jsonProps.Contains("text")) __score28++; - if (__jsonProps.Contains("type")) __score28++; - var __score29 = 0; - if (__jsonProps.Contains("event_id")) __score29++; - if (__jsonProps.Contains("session")) __score29++; - if (__jsonProps.Contains("type")) __score29++; - var __score30 = 0; - if (__jsonProps.Contains("event_id")) __score30++; - if (__jsonProps.Contains("session")) __score30++; - if (__jsonProps.Contains("type")) __score30++; - var __score31 = 0; - if (__jsonProps.Contains("event_id")) __score31++; - if (__jsonProps.Contains("response_id")) __score31++; - if (__jsonProps.Contains("type")) __score31++; - var __score32 = 0; - if (__jsonProps.Contains("event_id")) __score32++; - if (__jsonProps.Contains("response_id")) __score32++; - if (__jsonProps.Contains("type")) __score32++; - var __score33 = 0; - if (__jsonProps.Contains("event_id")) __score33++; - if (__jsonProps.Contains("response_id")) __score33++; - if (__jsonProps.Contains("type")) __score33++; - var __score34 = 0; - if (__jsonProps.Contains("event_id")) __score34++; - if (__jsonProps.Contains("item")) __score34++; - if (__jsonProps.Contains("previous_item_id")) __score34++; - if (__jsonProps.Contains("type")) __score34++; - var __score35 = 0; - if (__jsonProps.Contains("event_id")) __score35++; - if (__jsonProps.Contains("item")) __score35++; - if (__jsonProps.Contains("previous_item_id")) __score35++; - if (__jsonProps.Contains("type")) __score35++; - var __score36 = 0; - if (__jsonProps.Contains("audio_end_ms")) __score36++; - if (__jsonProps.Contains("audio_start_ms")) __score36++; - if (__jsonProps.Contains("event_id")) __score36++; - if (__jsonProps.Contains("item_id")) __score36++; - if (__jsonProps.Contains("type")) __score36++; - var __score37 = 0; - if (__jsonProps.Contains("content_index")) __score37++; - if (__jsonProps.Contains("end")) __score37++; - if (__jsonProps.Contains("event_id")) __score37++; - if (__jsonProps.Contains("id")) __score37++; - if (__jsonProps.Contains("item_id")) __score37++; - if (__jsonProps.Contains("speaker")) __score37++; - if (__jsonProps.Contains("start")) __score37++; - if (__jsonProps.Contains("text")) __score37++; - if (__jsonProps.Contains("type")) __score37++; - var __score38 = 0; - if (__jsonProps.Contains("event_id")) __score38++; - if (__jsonProps.Contains("item_id")) __score38++; - if (__jsonProps.Contains("type")) __score38++; - var __score39 = 0; - if (__jsonProps.Contains("event_id")) __score39++; - if (__jsonProps.Contains("item_id")) __score39++; - if (__jsonProps.Contains("type")) __score39++; - var __score40 = 0; - if (__jsonProps.Contains("event_id")) __score40++; - if (__jsonProps.Contains("item_id")) __score40++; - if (__jsonProps.Contains("type")) __score40++; - var __score41 = 0; - if (__jsonProps.Contains("delta")) __score41++; - if (__jsonProps.Contains("event_id")) __score41++; - if (__jsonProps.Contains("item_id")) __score41++; - if (__jsonProps.Contains("obfuscation")) __score41++; - if (__jsonProps.Contains("output_index")) __score41++; - if (__jsonProps.Contains("response_id")) __score41++; - if (__jsonProps.Contains("type")) __score41++; - var __score42 = 0; - if (__jsonProps.Contains("arguments")) __score42++; - if (__jsonProps.Contains("event_id")) __score42++; - if (__jsonProps.Contains("item_id")) __score42++; - if (__jsonProps.Contains("output_index")) __score42++; - if (__jsonProps.Contains("response_id")) __score42++; - if (__jsonProps.Contains("type")) __score42++; - var __score43 = 0; - if (__jsonProps.Contains("event_id")) __score43++; - if (__jsonProps.Contains("item_id")) __score43++; - if (__jsonProps.Contains("output_index")) __score43++; - if (__jsonProps.Contains("type")) __score43++; - var __score44 = 0; - if (__jsonProps.Contains("event_id")) __score44++; - if (__jsonProps.Contains("item_id")) __score44++; - if (__jsonProps.Contains("output_index")) __score44++; - if (__jsonProps.Contains("type")) __score44++; - var __score45 = 0; - if (__jsonProps.Contains("event_id")) __score45++; - if (__jsonProps.Contains("item_id")) __score45++; - if (__jsonProps.Contains("output_index")) __score45++; - if (__jsonProps.Contains("type")) __score45++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } - if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } - if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } - if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } - if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } - if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } - if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } - if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } - if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } - if (__score17 > __bestScore) { __bestScore = __score17; __bestIndex = 17; } - if (__score18 > __bestScore) { __bestScore = __score18; __bestIndex = 18; } - if (__score19 > __bestScore) { __bestScore = __score19; __bestIndex = 19; } - if (__score20 > __bestScore) { __bestScore = __score20; __bestIndex = 20; } - if (__score21 > __bestScore) { __bestScore = __score21; __bestIndex = 21; } - if (__score22 > __bestScore) { __bestScore = __score22; __bestIndex = 22; } - if (__score23 > __bestScore) { __bestScore = __score23; __bestIndex = 23; } - if (__score24 > __bestScore) { __bestScore = __score24; __bestIndex = 24; } - if (__score25 > __bestScore) { __bestScore = __score25; __bestIndex = 25; } - if (__score26 > __bestScore) { __bestScore = __score26; __bestIndex = 26; } - if (__score27 > __bestScore) { __bestScore = __score27; __bestIndex = 27; } - if (__score28 > __bestScore) { __bestScore = __score28; __bestIndex = 28; } - if (__score29 > __bestScore) { __bestScore = __score29; __bestIndex = 29; } - if (__score30 > __bestScore) { __bestScore = __score30; __bestIndex = 30; } - if (__score31 > __bestScore) { __bestScore = __score31; __bestIndex = 31; } - if (__score32 > __bestScore) { __bestScore = __score32; __bestIndex = 32; } - if (__score33 > __bestScore) { __bestScore = __score33; __bestIndex = 33; } - if (__score34 > __bestScore) { __bestScore = __score34; __bestIndex = 34; } - if (__score35 > __bestScore) { __bestScore = __score35; __bestIndex = 35; } - if (__score36 > __bestScore) { __bestScore = __score36; __bestIndex = 36; } - if (__score37 > __bestScore) { __bestScore = __score37; __bestIndex = 37; } - if (__score38 > __bestScore) { __bestScore = __score38; __bestIndex = 38; } - if (__score39 > __bestScore) { __bestScore = __score39; __bestIndex = 39; } - if (__score40 > __bestScore) { __bestScore = __score40; __bestIndex = 40; } - if (__score41 > __bestScore) { __bestScore = __score41; __bestIndex = 41; } - if (__score42 > __bestScore) { __bestScore = __score42; __bestIndex = 42; } - if (__score43 > __bestScore) { __bestScore = __score43; __bestIndex = 43; } - if (__score44 > __bestScore) { __bestScore = __score44; __bestIndex = 44; } - if (__score45 > __bestScore) { __bestScore = __score45; __bestIndex = 45; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? conversationCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated)}"); + conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? conversationItemCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated)}"); + conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? conversationItemDeleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemDeleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted)}"); + conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? conversationItemInputAudioTranscriptionCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted)}"); + conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? conversationItemInputAudioTranscriptionDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta)}"); + conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? conversationItemInputAudioTranscriptionFailed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionFailed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed)}"); + conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? conversationItemRetrieved = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemRetrieved) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved)}"); + conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? conversationItemTruncated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemTruncated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated)}"); + conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventError? error = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.Error) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventError)}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? inputAudioBufferCleared = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.InputAudioBufferCleared) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared)}"); + inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? inputAudioBufferCommitted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.InputAudioBufferCommitted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted)}"); + inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? inputAudioBufferDtmfEventReceived = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.InputAudioBufferDtmfEventReceived) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived)}"); + inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? inputAudioBufferSpeechStarted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStarted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted)}"); + inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? inputAudioBufferSpeechStopped = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStopped) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped)}"); + inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? rateLimitsUpdated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.RateLimitsUpdated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated)}"); + rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? responseOutputAudioDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseOutputAudioDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta)}"); + responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? responseOutputAudioDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseOutputAudioDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone)}"); + responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? responseOutputAudioTranscriptDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta)}"); + responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? responseOutputAudioTranscriptDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone)}"); + responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? responseContentPartAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseContentPartAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded)}"); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? responseContentPartDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseContentPartDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone)}"); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? responseCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated)}"); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseDone? responseDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone)}"); + responseDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? responseFunctionCallArgumentsDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta)}"); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? responseFunctionCallArgumentsDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone)}"); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? responseOutputItemAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseOutputItemAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded)}"); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? responseOutputItemDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseOutputItemDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone)}"); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? responseOutputTextDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseOutputTextDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta)}"); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? responseOutputTextDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseOutputTextDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone)}"); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? sessionCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.SessionCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated)}"); + sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? sessionUpdated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.SessionUpdated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated)}"); + sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? outputAudioBufferStarted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.OutputAudioBufferStarted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted)}"); + outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? outputAudioBufferStopped = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.OutputAudioBufferStopped) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped)}"); + outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? outputAudioBufferCleared = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.OutputAudioBufferCleared) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared)}"); + outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? conversationItemAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded)}"); + conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? conversationItemDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone)}"); + conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? inputAudioBufferTimeoutTriggered = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.InputAudioBufferTimeoutTriggered) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered)}"); + inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? conversationItemInputAudioTranscriptionSegment = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionSegment) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment)}"); + conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? mcpListToolsInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.McpListToolsInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress)}"); + mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? mcpListToolsCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.McpListToolsCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted)}"); + mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? mcpListToolsFailed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.McpListToolsFailed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed)}"); + mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? responseMcpCallArgumentsDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta)}"); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? responseMcpCallArgumentsDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone)}"); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? responseMcpCallInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseMcpCallInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress)}"); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? responseMcpCallCompleted = default; - global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? responseMcpCallFailed = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated).Name}"); - conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated).Name}"); - conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted).Name}"); - conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); - conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); - conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); - conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved).Name}"); - conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated).Name}"); - conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 9) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared).Name}"); - inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 10) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted).Name}"); - inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 11) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); - inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 12) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); - inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 13) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); - inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 14) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated).Name}"); - rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 15) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta).Name}"); - responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 16) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone).Name}"); - responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 17) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); - responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 18) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone).Name}"); - responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 19) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 20) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 21) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 22) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone).Name}"); - responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 23) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 24) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 25) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 26) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 27) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 28) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 29) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated).Name}"); - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 30) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated).Name}"); - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 31) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted).Name}"); - outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 32) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped).Name}"); - outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 33) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared).Name}"); - outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 34) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded).Name}"); - conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 35) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone).Name}"); - conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 36) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); - inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 37) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); - conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 38) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress).Name}"); - mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 39) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted).Name}"); - mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 40) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed).Name}"); - mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 41) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 42) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 43) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 44) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 45) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseMcpCallCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted)}"); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (conversationCreated == null && conversationItemCreated == null && conversationItemDeleted == null && conversationItemInputAudioTranscriptionCompleted == null && conversationItemInputAudioTranscriptionDelta == null && conversationItemInputAudioTranscriptionFailed == null && conversationItemRetrieved == null && conversationItemTruncated == null && error == null && inputAudioBufferCleared == null && inputAudioBufferCommitted == null && inputAudioBufferDtmfEventReceived == null && inputAudioBufferSpeechStarted == null && inputAudioBufferSpeechStopped == null && rateLimitsUpdated == null && responseOutputAudioDelta == null && responseOutputAudioDone == null && responseOutputAudioTranscriptDelta == null && responseOutputAudioTranscriptDone == null && responseContentPartAdded == null && responseContentPartDone == null && responseCreated == null && responseDone == null && responseFunctionCallArgumentsDelta == null && responseFunctionCallArgumentsDone == null && responseOutputItemAdded == null && responseOutputItemDone == null && responseOutputTextDelta == null && responseOutputTextDone == null && sessionCreated == null && sessionUpdated == null && outputAudioBufferStarted == null && outputAudioBufferStopped == null && outputAudioBufferCleared == null && conversationItemAdded == null && conversationItemDone == null && inputAudioBufferTimeoutTriggered == null && conversationItemInputAudioTranscriptionSegment == null && mcpListToolsInProgress == null && mcpListToolsCompleted == null && mcpListToolsFailed == null && responseMcpCallArgumentsDelta == null && responseMcpCallArgumentsDone == null && responseMcpCallInProgress == null && responseMcpCallCompleted == null && responseMcpCallFailed == null) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreated).Name}"); - conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated).Name}"); - conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted).Name}"); - conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); - conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); - conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); - conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved).Name}"); - conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated).Name}"); - conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared).Name}"); - inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted).Name}"); - inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); - inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); - inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); - inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated).Name}"); - rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta).Name}"); - responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone).Name}"); - responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); - responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone).Name}"); - responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseCreated).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseDone).Name}"); - responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionCreated).Name}"); - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated).Name}"); - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted).Name}"); - outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped).Name}"); - outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared).Name}"); - outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded).Name}"); - conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone).Name}"); - conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); - inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); - conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress).Name}"); - mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted).Name}"); - mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed).Name}"); - mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? responseMcpCallFailed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType.ResponseMcpCallFailed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed)}"); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.RealtimeServerEvent( + discriminator?.Type, conversationCreated, conversationItemCreated, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorType.g.cs new file mode 100644 index 00000000..de767dd9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeServerEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..d0907323 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeServerEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs index be2ac739..a5a35c2f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEvent.g.cs @@ -15,138 +15,36 @@ public class RealtimeTranslationClientEventJsonConverter : global::System.Text.J options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("event_id")) __score0++; - if (__jsonProps.Contains("session")) __score0++; - if (__jsonProps.Contains("session.audio")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("audio")) __score1++; - if (__jsonProps.Contains("event_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("event_id")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? sessionUpdate = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType.SessionUpdate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate)}"); + sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? sessionInputAudioBufferAppend = default; - global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? sessionClose = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType.SessionInputAudioBufferAppend) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate).Name}"); - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend).Name}"); - sessionInputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose).Name}"); - sessionClose = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend)}"); + sessionInputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (sessionUpdate == null && sessionInputAudioBufferAppend == null && sessionClose == null) + global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? sessionClose = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType.SessionClose) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate).Name}"); - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend).Name}"); - sessionInputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose).Name}"); - sessionClose = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose)}"); + sessionClose = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.RealtimeTranslationClientEvent( + discriminator?.Type, sessionUpdate, sessionInputAudioBufferAppend, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorType.g.cs new file mode 100644 index 00000000..7a4856c0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..0426261b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationClientEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs index 6d918ea0..aa12ee21 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEvent.g.cs @@ -15,294 +15,64 @@ public class RealtimeTranslationServerEventJsonConverter : global::System.Text.J options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("error")) __score0++; - if (__jsonProps.Contains("error.code")) __score0++; - if (__jsonProps.Contains("error.event_id")) __score0++; - if (__jsonProps.Contains("error.message")) __score0++; - if (__jsonProps.Contains("error.param")) __score0++; - if (__jsonProps.Contains("error.type")) __score0++; - if (__jsonProps.Contains("event_id")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("event_id")) __score1++; - if (__jsonProps.Contains("session")) __score1++; - if (__jsonProps.Contains("session.audio")) __score1++; - if (__jsonProps.Contains("session.expires_at")) __score1++; - if (__jsonProps.Contains("session.id")) __score1++; - if (__jsonProps.Contains("session.model")) __score1++; - if (__jsonProps.Contains("session.type")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("event_id")) __score2++; - if (__jsonProps.Contains("session")) __score2++; - if (__jsonProps.Contains("session.audio")) __score2++; - if (__jsonProps.Contains("session.expires_at")) __score2++; - if (__jsonProps.Contains("session.id")) __score2++; - if (__jsonProps.Contains("session.model")) __score2++; - if (__jsonProps.Contains("session.type")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("event_id")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("delta")) __score4++; - if (__jsonProps.Contains("elapsed_ms")) __score4++; - if (__jsonProps.Contains("event_id")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("delta")) __score5++; - if (__jsonProps.Contains("elapsed_ms")) __score5++; - if (__jsonProps.Contains("event_id")) __score5++; - if (__jsonProps.Contains("type")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("channels")) __score6++; - if (__jsonProps.Contains("delta")) __score6++; - if (__jsonProps.Contains("elapsed_ms")) __score6++; - if (__jsonProps.Contains("event_id")) __score6++; - if (__jsonProps.Contains("format")) __score6++; - if (__jsonProps.Contains("sample_rate")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.RealtimeServerEventError? error = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType.Error) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeServerEventError)}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? sessionCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType.SessionCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated)}"); + sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? sessionUpdated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType.SessionUpdated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated)}"); + sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? sessionClosed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType.SessionClosed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed)}"); + sessionClosed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? sessionInputTranscriptDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType.SessionInputTranscriptDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta)}"); + sessionInputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? sessionOutputTranscriptDelta = default; - global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? sessionOutputAudioDelta = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType.SessionOutputTranscriptDelta) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated).Name}"); - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated).Name}"); - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed).Name}"); - sessionClosed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta).Name}"); - sessionInputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta).Name}"); - sessionOutputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta).Name}"); - sessionOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta)}"); + sessionOutputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (error == null && sessionCreated == null && sessionUpdated == null && sessionClosed == null && sessionInputTranscriptDelta == null && sessionOutputTranscriptDelta == null && sessionOutputAudioDelta == null) + global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? sessionOutputAudioDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType.SessionOutputAudioDelta) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeServerEventError).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated).Name}"); - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated).Name}"); - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed).Name}"); - sessionClosed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta).Name}"); - sessionInputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta).Name}"); - sessionOutputTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta).Name}"); - sessionOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta)}"); + sessionOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.RealtimeTranslationServerEvent( + discriminator?.Type, error, sessionCreated, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorType.g.cs new file mode 100644 index 00000000..5d4add30 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..52306465 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTranslationServerEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 6f642a39..2024500b 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 @@ -85,6 +85,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum).Name}"); @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -95,9 +96,13 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (@enum == null && retentionRatioTruncation == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2).Name}"); retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 718358e5..4bd8da7d 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 @@ -15,102 +15,29 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("create_response")) __score0++; - if (__jsonProps.Contains("idle_timeout_ms")) __score0++; - if (__jsonProps.Contains("interrupt_response")) __score0++; - if (__jsonProps.Contains("prefix_padding_ms")) __score0++; - if (__jsonProps.Contains("silence_duration_ms")) __score0++; - if (__jsonProps.Contains("threshold")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("create_response")) __score1++; - if (__jsonProps.Contains("eagerness")) __score1++; - if (__jsonProps.Contains("interrupt_response")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? serverVad = default; - global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? semanticVad = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.ServerVad) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); - serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); - semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad)}"); + serverVad = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (serverVad == null && semanticVad == null) + global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? semanticVad = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.SemanticVad) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); - serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); - semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad)}"); + semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1( + discriminator?.Type, serverVad, semanticVad diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs new file mode 100644 index 00000000..4b920586 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..ead60e80 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 eac9a122..222dbc61 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 @@ -139,6 +139,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelResponseProperties).Name}"); modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -149,9 +150,13 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json catch (global::System.InvalidOperationException) { } + } + if (modelProperties == null && properties == null && responseVariant3 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseProperties), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseProperties).Name}"); properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -162,9 +167,13 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json catch (global::System.InvalidOperationException) { } + } + if (modelProperties == null && properties == null && responseVariant3 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseVariant3).Name}"); responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 5fca4eb7..2c0dad44 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 @@ -15,137 +15,36 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("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++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ResponseFormatText? text = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.Text) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseFormatText)}"); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseFormatJsonSchema? jsonSchema = default; - global::tryAGI.OpenAI.ResponseFormatJsonObject? jsonObject = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.JsonSchema) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseFormatJsonSchema)}"); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (text == null && jsonSchema == null && jsonObject == null) + global::tryAGI.OpenAI.ResponseFormatJsonObject? jsonObject = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.JsonObject) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseFormatJsonObject)}"); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ResponseFormat( + discriminator?.Type, text, jsonSchema, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorType.g.cs new file mode 100644 index 00000000..61aa0208 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..eababcfe --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ResponseOutputTextAnnotationDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 ff96211f..956318ae 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 @@ -15,1924 +15,386 @@ public class ResponseStreamEventJsonConverter : global::System.Text.Json.Seriali options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("delta")) __score0++; - if (__jsonProps.Contains("sequence_number")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("sequence_number")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("delta")) __score2++; - if (__jsonProps.Contains("sequence_number")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("sequence_number")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("delta")) __score4++; - if (__jsonProps.Contains("item_id")) __score4++; - if (__jsonProps.Contains("output_index")) __score4++; - if (__jsonProps.Contains("sequence_number")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("code")) __score5++; - if (__jsonProps.Contains("item_id")) __score5++; - if (__jsonProps.Contains("output_index")) __score5++; - if (__jsonProps.Contains("sequence_number")) __score5++; - if (__jsonProps.Contains("type")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("item_id")) __score6++; - if (__jsonProps.Contains("output_index")) __score6++; - if (__jsonProps.Contains("sequence_number")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("item_id")) __score7++; - if (__jsonProps.Contains("output_index")) __score7++; - if (__jsonProps.Contains("sequence_number")) __score7++; - if (__jsonProps.Contains("type")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("item_id")) __score8++; - if (__jsonProps.Contains("output_index")) __score8++; - if (__jsonProps.Contains("sequence_number")) __score8++; - if (__jsonProps.Contains("type")) __score8++; - var __score9 = 0; - if (__jsonProps.Contains("response")) __score9++; - if (__jsonProps.Contains("sequence_number")) __score9++; - if (__jsonProps.Contains("type")) __score9++; - var __score10 = 0; - if (__jsonProps.Contains("content_index")) __score10++; - if (__jsonProps.Contains("item_id")) __score10++; - if (__jsonProps.Contains("output_index")) __score10++; - if (__jsonProps.Contains("part")) __score10++; - if (__jsonProps.Contains("sequence_number")) __score10++; - if (__jsonProps.Contains("type")) __score10++; - var __score11 = 0; - if (__jsonProps.Contains("content_index")) __score11++; - if (__jsonProps.Contains("item_id")) __score11++; - if (__jsonProps.Contains("output_index")) __score11++; - if (__jsonProps.Contains("part")) __score11++; - if (__jsonProps.Contains("sequence_number")) __score11++; - if (__jsonProps.Contains("type")) __score11++; - var __score12 = 0; - if (__jsonProps.Contains("response")) __score12++; - if (__jsonProps.Contains("sequence_number")) __score12++; - if (__jsonProps.Contains("type")) __score12++; - var __score13 = 0; - if (__jsonProps.Contains("code")) __score13++; - if (__jsonProps.Contains("message")) __score13++; - if (__jsonProps.Contains("param")) __score13++; - if (__jsonProps.Contains("sequence_number")) __score13++; - if (__jsonProps.Contains("type")) __score13++; - var __score14 = 0; - if (__jsonProps.Contains("item_id")) __score14++; - if (__jsonProps.Contains("output_index")) __score14++; - if (__jsonProps.Contains("sequence_number")) __score14++; - if (__jsonProps.Contains("type")) __score14++; - var __score15 = 0; - if (__jsonProps.Contains("item_id")) __score15++; - if (__jsonProps.Contains("output_index")) __score15++; - if (__jsonProps.Contains("sequence_number")) __score15++; - if (__jsonProps.Contains("type")) __score15++; - var __score16 = 0; - if (__jsonProps.Contains("item_id")) __score16++; - if (__jsonProps.Contains("output_index")) __score16++; - if (__jsonProps.Contains("sequence_number")) __score16++; - if (__jsonProps.Contains("type")) __score16++; - var __score17 = 0; - if (__jsonProps.Contains("delta")) __score17++; - if (__jsonProps.Contains("item_id")) __score17++; - if (__jsonProps.Contains("output_index")) __score17++; - if (__jsonProps.Contains("sequence_number")) __score17++; - if (__jsonProps.Contains("type")) __score17++; - var __score18 = 0; - if (__jsonProps.Contains("arguments")) __score18++; - if (__jsonProps.Contains("item_id")) __score18++; - if (__jsonProps.Contains("name")) __score18++; - if (__jsonProps.Contains("output_index")) __score18++; - if (__jsonProps.Contains("sequence_number")) __score18++; - if (__jsonProps.Contains("type")) __score18++; - var __score19 = 0; - if (__jsonProps.Contains("response")) __score19++; - if (__jsonProps.Contains("sequence_number")) __score19++; - if (__jsonProps.Contains("type")) __score19++; - var __score20 = 0; - if (__jsonProps.Contains("response")) __score20++; - if (__jsonProps.Contains("sequence_number")) __score20++; - if (__jsonProps.Contains("type")) __score20++; - var __score21 = 0; - if (__jsonProps.Contains("response")) __score21++; - if (__jsonProps.Contains("sequence_number")) __score21++; - if (__jsonProps.Contains("type")) __score21++; - var __score22 = 0; - if (__jsonProps.Contains("item")) __score22++; - if (__jsonProps.Contains("output_index")) __score22++; - if (__jsonProps.Contains("sequence_number")) __score22++; - if (__jsonProps.Contains("type")) __score22++; - var __score23 = 0; - if (__jsonProps.Contains("item")) __score23++; - if (__jsonProps.Contains("output_index")) __score23++; - if (__jsonProps.Contains("sequence_number")) __score23++; - if (__jsonProps.Contains("type")) __score23++; - var __score24 = 0; - 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++; - var __score25 = 0; - 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++; - var __score26 = 0; - if (__jsonProps.Contains("delta")) __score26++; - if (__jsonProps.Contains("item_id")) __score26++; - if (__jsonProps.Contains("output_index")) __score26++; - if (__jsonProps.Contains("sequence_number")) __score26++; - if (__jsonProps.Contains("summary_index")) __score26++; - if (__jsonProps.Contains("type")) __score26++; - var __score27 = 0; - if (__jsonProps.Contains("item_id")) __score27++; - if (__jsonProps.Contains("output_index")) __score27++; - if (__jsonProps.Contains("sequence_number")) __score27++; - if (__jsonProps.Contains("summary_index")) __score27++; - if (__jsonProps.Contains("text")) __score27++; - if (__jsonProps.Contains("type")) __score27++; - var __score28 = 0; - if (__jsonProps.Contains("content_index")) __score28++; - if (__jsonProps.Contains("delta")) __score28++; - if (__jsonProps.Contains("item_id")) __score28++; - if (__jsonProps.Contains("output_index")) __score28++; - if (__jsonProps.Contains("sequence_number")) __score28++; - if (__jsonProps.Contains("type")) __score28++; - var __score29 = 0; - if (__jsonProps.Contains("content_index")) __score29++; - if (__jsonProps.Contains("item_id")) __score29++; - if (__jsonProps.Contains("output_index")) __score29++; - if (__jsonProps.Contains("sequence_number")) __score29++; - if (__jsonProps.Contains("text")) __score29++; - if (__jsonProps.Contains("type")) __score29++; - var __score30 = 0; - if (__jsonProps.Contains("content_index")) __score30++; - if (__jsonProps.Contains("delta")) __score30++; - if (__jsonProps.Contains("item_id")) __score30++; - if (__jsonProps.Contains("output_index")) __score30++; - if (__jsonProps.Contains("sequence_number")) __score30++; - if (__jsonProps.Contains("type")) __score30++; - var __score31 = 0; - if (__jsonProps.Contains("content_index")) __score31++; - if (__jsonProps.Contains("item_id")) __score31++; - if (__jsonProps.Contains("output_index")) __score31++; - if (__jsonProps.Contains("refusal")) __score31++; - if (__jsonProps.Contains("sequence_number")) __score31++; - if (__jsonProps.Contains("type")) __score31++; - var __score32 = 0; - if (__jsonProps.Contains("content_index")) __score32++; - if (__jsonProps.Contains("delta")) __score32++; - if (__jsonProps.Contains("item_id")) __score32++; - if (__jsonProps.Contains("logprobs")) __score32++; - if (__jsonProps.Contains("output_index")) __score32++; - if (__jsonProps.Contains("sequence_number")) __score32++; - if (__jsonProps.Contains("type")) __score32++; - var __score33 = 0; - if (__jsonProps.Contains("content_index")) __score33++; - if (__jsonProps.Contains("item_id")) __score33++; - if (__jsonProps.Contains("logprobs")) __score33++; - if (__jsonProps.Contains("output_index")) __score33++; - if (__jsonProps.Contains("sequence_number")) __score33++; - if (__jsonProps.Contains("text")) __score33++; - if (__jsonProps.Contains("type")) __score33++; - var __score34 = 0; - if (__jsonProps.Contains("item_id")) __score34++; - if (__jsonProps.Contains("output_index")) __score34++; - if (__jsonProps.Contains("sequence_number")) __score34++; - if (__jsonProps.Contains("type")) __score34++; - var __score35 = 0; - if (__jsonProps.Contains("item_id")) __score35++; - if (__jsonProps.Contains("output_index")) __score35++; - if (__jsonProps.Contains("sequence_number")) __score35++; - if (__jsonProps.Contains("type")) __score35++; - var __score36 = 0; - if (__jsonProps.Contains("item_id")) __score36++; - if (__jsonProps.Contains("output_index")) __score36++; - if (__jsonProps.Contains("sequence_number")) __score36++; - if (__jsonProps.Contains("type")) __score36++; - var __score37 = 0; - if (__jsonProps.Contains("item_id")) __score37++; - if (__jsonProps.Contains("output_index")) __score37++; - if (__jsonProps.Contains("sequence_number")) __score37++; - if (__jsonProps.Contains("type")) __score37++; - var __score38 = 0; - if (__jsonProps.Contains("item_id")) __score38++; - if (__jsonProps.Contains("output_index")) __score38++; - if (__jsonProps.Contains("sequence_number")) __score38++; - if (__jsonProps.Contains("type")) __score38++; - var __score39 = 0; - if (__jsonProps.Contains("item_id")) __score39++; - if (__jsonProps.Contains("output_index")) __score39++; - if (__jsonProps.Contains("sequence_number")) __score39++; - if (__jsonProps.Contains("type")) __score39++; - var __score40 = 0; - if (__jsonProps.Contains("item_id")) __score40++; - if (__jsonProps.Contains("output_index")) __score40++; - if (__jsonProps.Contains("partial_image_b64")) __score40++; - if (__jsonProps.Contains("partial_image_index")) __score40++; - if (__jsonProps.Contains("sequence_number")) __score40++; - if (__jsonProps.Contains("type")) __score40++; - var __score41 = 0; - if (__jsonProps.Contains("delta")) __score41++; - if (__jsonProps.Contains("item_id")) __score41++; - if (__jsonProps.Contains("output_index")) __score41++; - if (__jsonProps.Contains("sequence_number")) __score41++; - if (__jsonProps.Contains("type")) __score41++; - var __score42 = 0; - if (__jsonProps.Contains("arguments")) __score42++; - if (__jsonProps.Contains("item_id")) __score42++; - if (__jsonProps.Contains("output_index")) __score42++; - if (__jsonProps.Contains("sequence_number")) __score42++; - if (__jsonProps.Contains("type")) __score42++; - var __score43 = 0; - if (__jsonProps.Contains("item_id")) __score43++; - if (__jsonProps.Contains("output_index")) __score43++; - if (__jsonProps.Contains("sequence_number")) __score43++; - if (__jsonProps.Contains("type")) __score43++; - var __score44 = 0; - if (__jsonProps.Contains("item_id")) __score44++; - if (__jsonProps.Contains("output_index")) __score44++; - if (__jsonProps.Contains("sequence_number")) __score44++; - if (__jsonProps.Contains("type")) __score44++; - var __score45 = 0; - if (__jsonProps.Contains("item_id")) __score45++; - if (__jsonProps.Contains("output_index")) __score45++; - if (__jsonProps.Contains("sequence_number")) __score45++; - if (__jsonProps.Contains("type")) __score45++; - var __score46 = 0; - if (__jsonProps.Contains("item_id")) __score46++; - if (__jsonProps.Contains("output_index")) __score46++; - if (__jsonProps.Contains("sequence_number")) __score46++; - if (__jsonProps.Contains("type")) __score46++; - var __score47 = 0; - if (__jsonProps.Contains("item_id")) __score47++; - if (__jsonProps.Contains("output_index")) __score47++; - if (__jsonProps.Contains("sequence_number")) __score47++; - if (__jsonProps.Contains("type")) __score47++; - var __score48 = 0; - if (__jsonProps.Contains("item_id")) __score48++; - if (__jsonProps.Contains("output_index")) __score48++; - if (__jsonProps.Contains("sequence_number")) __score48++; - if (__jsonProps.Contains("type")) __score48++; - var __score49 = 0; - if (__jsonProps.Contains("annotation")) __score49++; - if (__jsonProps.Contains("annotation_index")) __score49++; - if (__jsonProps.Contains("content_index")) __score49++; - if (__jsonProps.Contains("item_id")) __score49++; - if (__jsonProps.Contains("output_index")) __score49++; - if (__jsonProps.Contains("sequence_number")) __score49++; - if (__jsonProps.Contains("type")) __score49++; - var __score50 = 0; - if (__jsonProps.Contains("response")) __score50++; - if (__jsonProps.Contains("sequence_number")) __score50++; - if (__jsonProps.Contains("type")) __score50++; - var __score51 = 0; - if (__jsonProps.Contains("delta")) __score51++; - if (__jsonProps.Contains("item_id")) __score51++; - if (__jsonProps.Contains("output_index")) __score51++; - if (__jsonProps.Contains("sequence_number")) __score51++; - if (__jsonProps.Contains("type")) __score51++; - var __score52 = 0; - if (__jsonProps.Contains("input")) __score52++; - if (__jsonProps.Contains("item_id")) __score52++; - if (__jsonProps.Contains("output_index")) __score52++; - if (__jsonProps.Contains("sequence_number")) __score52++; - if (__jsonProps.Contains("type")) __score52++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } - if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } - if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } - if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } - if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } - if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } - if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } - if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } - if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } - if (__score17 > __bestScore) { __bestScore = __score17; __bestIndex = 17; } - if (__score18 > __bestScore) { __bestScore = __score18; __bestIndex = 18; } - if (__score19 > __bestScore) { __bestScore = __score19; __bestIndex = 19; } - if (__score20 > __bestScore) { __bestScore = __score20; __bestIndex = 20; } - if (__score21 > __bestScore) { __bestScore = __score21; __bestIndex = 21; } - if (__score22 > __bestScore) { __bestScore = __score22; __bestIndex = 22; } - if (__score23 > __bestScore) { __bestScore = __score23; __bestIndex = 23; } - if (__score24 > __bestScore) { __bestScore = __score24; __bestIndex = 24; } - if (__score25 > __bestScore) { __bestScore = __score25; __bestIndex = 25; } - if (__score26 > __bestScore) { __bestScore = __score26; __bestIndex = 26; } - if (__score27 > __bestScore) { __bestScore = __score27; __bestIndex = 27; } - if (__score28 > __bestScore) { __bestScore = __score28; __bestIndex = 28; } - if (__score29 > __bestScore) { __bestScore = __score29; __bestIndex = 29; } - if (__score30 > __bestScore) { __bestScore = __score30; __bestIndex = 30; } - if (__score31 > __bestScore) { __bestScore = __score31; __bestIndex = 31; } - if (__score32 > __bestScore) { __bestScore = __score32; __bestIndex = 32; } - if (__score33 > __bestScore) { __bestScore = __score33; __bestIndex = 33; } - if (__score34 > __bestScore) { __bestScore = __score34; __bestIndex = 34; } - if (__score35 > __bestScore) { __bestScore = __score35; __bestIndex = 35; } - if (__score36 > __bestScore) { __bestScore = __score36; __bestIndex = 36; } - if (__score37 > __bestScore) { __bestScore = __score37; __bestIndex = 37; } - if (__score38 > __bestScore) { __bestScore = __score38; __bestIndex = 38; } - if (__score39 > __bestScore) { __bestScore = __score39; __bestIndex = 39; } - if (__score40 > __bestScore) { __bestScore = __score40; __bestIndex = 40; } - if (__score41 > __bestScore) { __bestScore = __score41; __bestIndex = 41; } - if (__score42 > __bestScore) { __bestScore = __score42; __bestIndex = 42; } - if (__score43 > __bestScore) { __bestScore = __score43; __bestIndex = 43; } - if (__score44 > __bestScore) { __bestScore = __score44; __bestIndex = 44; } - if (__score45 > __bestScore) { __bestScore = __score45; __bestIndex = 45; } - if (__score46 > __bestScore) { __bestScore = __score46; __bestIndex = 46; } - if (__score47 > __bestScore) { __bestScore = __score47; __bestIndex = 47; } - if (__score48 > __bestScore) { __bestScore = __score48; __bestIndex = 48; } - if (__score49 > __bestScore) { __bestScore = __score49; __bestIndex = 49; } - if (__score50 > __bestScore) { __bestScore = __score50; __bestIndex = 50; } - if (__score51 > __bestScore) { __bestScore = __score51; __bestIndex = 51; } - if (__score52 > __bestScore) { __bestScore = __score52; __bestIndex = 52; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseStreamEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseStreamEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ResponseAudioDeltaEvent? responseAudioDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseAudioDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent)}"); + responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseAudioDoneEvent? responseAudioDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseAudioDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseAudioDoneEvent)}"); + responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? responseAudioTranscriptDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseAudioTranscriptDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent)}"); + responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? responseAudioTranscriptDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseAudioTranscriptDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent)}"); + responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? responseCodeInterpreterCallCodeDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallCodeDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent)}"); + responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? responseCodeInterpreterCallCodeDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallCodeDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent)}"); + responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? responseCodeInterpreterCallCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent)}"); + responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? responseCodeInterpreterCallInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent)}"); + responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? responseCodeInterpreterCallInterpreting = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallInterpreting) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent)}"); + responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseCompletedEvent? responseCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseCompletedEvent)}"); + responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseContentPartAddedEvent? responseContentPartAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseContentPartAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent)}"); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseContentPartDoneEvent? responseContentPartDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseContentPartDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent)}"); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseCreatedEvent? responseCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseCreatedEvent)}"); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseErrorEvent? error = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.Error) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseErrorEvent)}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? responseFileSearchCallCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseFileSearchCallCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent)}"); + responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? responseFileSearchCallInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseFileSearchCallInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent)}"); + responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? responseFileSearchCallSearching = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseFileSearchCallSearching) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent)}"); + responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? responseFunctionCallArgumentsDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseFunctionCallArgumentsDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent)}"); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? responseFunctionCallArgumentsDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseFunctionCallArgumentsDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent)}"); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseInProgressEvent? responseInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseInProgressEvent)}"); + responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseFailedEvent? responseFailed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseFailed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseFailedEvent)}"); + responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseIncompleteEvent? responseIncomplete = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseIncomplete) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseIncompleteEvent)}"); + responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? responseOutputItemAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseOutputItemAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent)}"); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? responseOutputItemDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseOutputItemDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent)}"); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? responseReasoningSummaryPartAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryPartAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent)}"); + responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? responseReasoningSummaryPartDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryPartDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent)}"); + responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? responseReasoningSummaryTextDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryTextDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent)}"); + responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? responseReasoningSummaryTextDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryTextDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent)}"); + responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? responseReasoningTextDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseReasoningTextDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent)}"); + responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? responseReasoningTextDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseReasoningTextDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent)}"); + responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? responseRefusalDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseRefusalDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent)}"); + responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseRefusalDoneEvent? responseRefusalDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseRefusalDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent)}"); + responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseTextDeltaEvent? responseOutputTextDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseOutputTextDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseTextDeltaEvent)}"); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseTextDoneEvent? responseOutputTextDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseOutputTextDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseTextDoneEvent)}"); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? responseWebSearchCallCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseWebSearchCallCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent)}"); + responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? responseWebSearchCallInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseWebSearchCallInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent)}"); + responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? responseWebSearchCallSearching = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseWebSearchCallSearching) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent)}"); + responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? responseImageGenerationCallCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent)}"); + responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? responseImageGenerationCallGenerating = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallGenerating) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent)}"); + responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? responseImageGenerationCallInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent)}"); + responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? responseImageGenerationCallPartialImage = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallPartialImage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent)}"); + responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? responseMcpCallArgumentsDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseMcpCallArgumentsDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent)}"); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? responseMcpCallArgumentsDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseMcpCallArgumentsDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent)}"); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? responseMcpCallCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseMcpCallCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent)}"); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? responseMcpCallFailed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseMcpCallFailed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent)}"); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? responseMcpCallInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseMcpCallInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent)}"); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? responseMcpListToolsCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseMcpListToolsCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent)}"); + responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? responseMcpListToolsFailed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseMcpListToolsFailed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent)}"); + responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? responseMcpListToolsInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseMcpListToolsInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent)}"); + responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? responseOutputTextAnnotationAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseOutputTextAnnotationAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent)}"); + responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseQueuedEvent? responseQueued = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseQueued) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseQueuedEvent)}"); + responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? responseCustomToolCallInputDelta = default; - global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? responseCustomToolCallInputDone = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent).Name}"); - responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent).Name}"); - responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent).Name}"); - responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent).Name}"); - responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent).Name}"); - responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent).Name}"); - responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent).Name}"); - responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent).Name}"); - responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent).Name}"); - responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 9) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompletedEvent).Name}"); - responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 10) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 11) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 12) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCreatedEvent).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 13) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseErrorEvent).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 14) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent).Name}"); - responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 15) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent).Name}"); - responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 16) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent).Name}"); - responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 17) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 18) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 19) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseInProgressEvent).Name}"); - responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 20) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFailedEvent).Name}"); - responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 21) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent).Name}"); - responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 22) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 23) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 24) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent).Name}"); - responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 25) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent).Name}"); - responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 26) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent).Name}"); - responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 27) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); - responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 28) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); - responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 29) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); - responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 30) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent).Name}"); - responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 31) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent).Name}"); - responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 32) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 33) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 34) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent).Name}"); - responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 35) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent).Name}"); - responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 36) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent).Name}"); - responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 37) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent).Name}"); - responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 38) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent).Name}"); - responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 39) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent).Name}"); - responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 40) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent).Name}"); - responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 41) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 42) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 43) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 44) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 45) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 46) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent).Name}"); - responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 47) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent).Name}"); - responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 48) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent).Name}"); - responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 49) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent).Name}"); - responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 50) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); - responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 51) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent).Name}"); - responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 52) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent).Name}"); - responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseCustomToolCallInputDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent)}"); + responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (responseAudioDelta == null && responseAudioDone == null && responseAudioTranscriptDelta == null && responseAudioTranscriptDone == null && responseCodeInterpreterCallCodeDelta == null && responseCodeInterpreterCallCodeDone == null && responseCodeInterpreterCallCompleted == null && responseCodeInterpreterCallInProgress == null && responseCodeInterpreterCallInterpreting == null && responseCompleted == null && responseContentPartAdded == null && responseContentPartDone == null && responseCreated == null && error == null && responseFileSearchCallCompleted == null && responseFileSearchCallInProgress == null && responseFileSearchCallSearching == null && responseFunctionCallArgumentsDelta == null && responseFunctionCallArgumentsDone == null && responseInProgress == null && responseFailed == null && responseIncomplete == null && responseOutputItemAdded == null && responseOutputItemDone == null && responseReasoningSummaryPartAdded == null && responseReasoningSummaryPartDone == null && responseReasoningSummaryTextDelta == null && responseReasoningSummaryTextDone == null && responseReasoningTextDelta == null && responseReasoningTextDone == null && responseRefusalDelta == null && responseRefusalDone == null && responseOutputTextDelta == null && responseOutputTextDone == null && responseWebSearchCallCompleted == null && responseWebSearchCallInProgress == null && responseWebSearchCallSearching == null && responseImageGenerationCallCompleted == null && responseImageGenerationCallGenerating == null && responseImageGenerationCallInProgress == null && responseImageGenerationCallPartialImage == null && responseMcpCallArgumentsDelta == null && responseMcpCallArgumentsDone == null && responseMcpCallCompleted == null && responseMcpCallFailed == null && responseMcpCallInProgress == null && responseMcpListToolsCompleted == null && responseMcpListToolsFailed == null && responseMcpListToolsInProgress == null && responseOutputTextAnnotationAdded == null && responseQueued == null && responseCustomToolCallInputDelta == null && responseCustomToolCallInputDone == null) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDeltaEvent).Name}"); - responseAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioDoneEvent).Name}"); - responseAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent).Name}"); - responseAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent).Name}"); - responseAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent).Name}"); - responseCodeInterpreterCallCodeDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent).Name}"); - responseCodeInterpreterCallCodeDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent).Name}"); - responseCodeInterpreterCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent).Name}"); - responseCodeInterpreterCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent).Name}"); - responseCodeInterpreterCallInterpreting = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCompletedEvent).Name}"); - responseCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCreatedEvent).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseErrorEvent).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent).Name}"); - responseFileSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent).Name}"); - responseFileSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent).Name}"); - responseFileSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseInProgressEvent).Name}"); - responseInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFailedEvent).Name}"); - responseFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseIncompleteEvent).Name}"); - responseIncomplete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemAddedEvent).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputItemDoneEvent).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent).Name}"); - responseReasoningSummaryPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent).Name}"); - responseReasoningSummaryPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent).Name}"); - responseReasoningSummaryTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent).Name}"); - responseReasoningSummaryTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent).Name}"); - responseReasoningTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent).Name}"); - responseReasoningTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDeltaEvent).Name}"); - responseRefusalDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseRefusalDoneEvent).Name}"); - responseRefusalDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDeltaEvent).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseTextDoneEvent).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent).Name}"); - responseWebSearchCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent).Name}"); - responseWebSearchCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent).Name}"); - responseWebSearchCallSearching = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent).Name}"); - responseImageGenerationCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent).Name}"); - responseImageGenerationCallGenerating = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent).Name}"); - responseImageGenerationCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent).Name}"); - responseImageGenerationCallPartialImage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallFailedEvent).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent).Name}"); - responseMcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent).Name}"); - responseMcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent).Name}"); - responseMcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent).Name}"); - responseOutputTextAnnotationAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseQueuedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseQueuedEvent).Name}"); - responseQueued = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent).Name}"); - responseCustomToolCallInputDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent).Name}"); - responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? responseCustomToolCallInputDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType.ResponseCustomToolCallInputDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent)}"); + responseCustomToolCallInputDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ResponseStreamEvent( + discriminator?.Type, responseAudioDelta, responseAudioDone, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..12de6230 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ResponseStreamEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..7b364d62 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ResponseStreamEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 3dc9cb85..3cea7f97 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 @@ -75,6 +75,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1).Name}"); responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -85,9 +86,13 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te catch (global::System.InvalidOperationException) { } + } + if (responsesClientEventResponseCreateVariant1 == null && createResponse == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CreateResponse).Name}"); createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem.g.cs index 7662ab18..866577e3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ResultsItem.g.cs @@ -15,379 +15,78 @@ public class ResultsItemJsonConverter : global::System.Text.Json.Serialization.J options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("api_key_id")) __score0++; - if (__jsonProps.Contains("batch")) __score0++; - if (__jsonProps.Contains("input_audio_tokens")) __score0++; - if (__jsonProps.Contains("input_cached_tokens")) __score0++; - if (__jsonProps.Contains("input_tokens")) __score0++; - if (__jsonProps.Contains("model")) __score0++; - if (__jsonProps.Contains("num_model_requests")) __score0++; - if (__jsonProps.Contains("object")) __score0++; - if (__jsonProps.Contains("output_audio_tokens")) __score0++; - if (__jsonProps.Contains("output_tokens")) __score0++; - if (__jsonProps.Contains("project_id")) __score0++; - if (__jsonProps.Contains("service_tier")) __score0++; - if (__jsonProps.Contains("user_id")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("api_key_id")) __score1++; - if (__jsonProps.Contains("input_tokens")) __score1++; - if (__jsonProps.Contains("model")) __score1++; - if (__jsonProps.Contains("num_model_requests")) __score1++; - if (__jsonProps.Contains("object")) __score1++; - if (__jsonProps.Contains("project_id")) __score1++; - if (__jsonProps.Contains("user_id")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("api_key_id")) __score2++; - if (__jsonProps.Contains("input_tokens")) __score2++; - if (__jsonProps.Contains("model")) __score2++; - if (__jsonProps.Contains("num_model_requests")) __score2++; - if (__jsonProps.Contains("object")) __score2++; - if (__jsonProps.Contains("project_id")) __score2++; - if (__jsonProps.Contains("user_id")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("api_key_id")) __score3++; - if (__jsonProps.Contains("images")) __score3++; - if (__jsonProps.Contains("model")) __score3++; - if (__jsonProps.Contains("num_model_requests")) __score3++; - if (__jsonProps.Contains("object")) __score3++; - if (__jsonProps.Contains("project_id")) __score3++; - if (__jsonProps.Contains("size")) __score3++; - if (__jsonProps.Contains("source")) __score3++; - if (__jsonProps.Contains("user_id")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("api_key_id")) __score4++; - if (__jsonProps.Contains("characters")) __score4++; - if (__jsonProps.Contains("model")) __score4++; - if (__jsonProps.Contains("num_model_requests")) __score4++; - if (__jsonProps.Contains("object")) __score4++; - if (__jsonProps.Contains("project_id")) __score4++; - if (__jsonProps.Contains("user_id")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("api_key_id")) __score5++; - if (__jsonProps.Contains("model")) __score5++; - if (__jsonProps.Contains("num_model_requests")) __score5++; - if (__jsonProps.Contains("object")) __score5++; - if (__jsonProps.Contains("project_id")) __score5++; - if (__jsonProps.Contains("seconds")) __score5++; - if (__jsonProps.Contains("user_id")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("object")) __score6++; - if (__jsonProps.Contains("project_id")) __score6++; - if (__jsonProps.Contains("usage_bytes")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("num_sessions")) __score7++; - if (__jsonProps.Contains("object")) __score7++; - if (__jsonProps.Contains("project_id")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("amount")) __score8++; - if (__jsonProps.Contains("amount.currency")) __score8++; - if (__jsonProps.Contains("amount.value")) __score8++; - if (__jsonProps.Contains("api_key_id")) __score8++; - if (__jsonProps.Contains("line_item")) __score8++; - if (__jsonProps.Contains("object")) __score8++; - if (__jsonProps.Contains("project_id")) __score8++; - if (__jsonProps.Contains("quantity")) __score8++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.UsageCompletionsResult? organizationUsageCompletionsResult = default; + if (discriminator?.Object == global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject.OrganizationUsageCompletionsResult) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCompletionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UsageCompletionsResult)}"); + organizationUsageCompletionsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.UsageEmbeddingsResult? organizationUsageEmbeddingsResult = default; + if (discriminator?.Object == global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject.OrganizationUsageEmbeddingsResult) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UsageEmbeddingsResult)}"); + organizationUsageEmbeddingsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.UsageModerationsResult? organizationUsageModerationsResult = default; + if (discriminator?.Object == global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject.OrganizationUsageModerationsResult) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageModerationsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UsageModerationsResult)}"); + organizationUsageModerationsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.UsageImagesResult? organizationUsageImagesResult = default; + if (discriminator?.Object == global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject.OrganizationUsageImagesResult) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageImagesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UsageImagesResult)}"); + organizationUsageImagesResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.UsageAudioSpeechesResult? organizationUsageAudioSpeechesResult = default; + if (discriminator?.Object == global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject.OrganizationUsageAudioSpeechesResult) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UsageAudioSpeechesResult)}"); + organizationUsageAudioSpeechesResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? organizationUsageAudioTranscriptionsResult = default; + if (discriminator?.Object == global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject.OrganizationUsageAudioTranscriptionsResult) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult)}"); + organizationUsageAudioTranscriptionsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.UsageVectorStoresResult? organizationUsageVectorStoresResult = default; + if (discriminator?.Object == global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject.OrganizationUsageVectorStoresResult) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UsageVectorStoresResult)}"); + organizationUsageVectorStoresResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? organizationUsageCodeInterpreterSessionsResult = default; - global::tryAGI.OpenAI.CostsResult? organizationCostsResult = default; - if (__bestIndex >= 0) + if (discriminator?.Object == global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject.OrganizationUsageCodeInterpreterSessionsResult) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCompletionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCompletionsResult).Name}"); - organizationUsageCompletionsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult).Name}"); - organizationUsageEmbeddingsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageModerationsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageModerationsResult).Name}"); - organizationUsageModerationsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageImagesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageImagesResult).Name}"); - organizationUsageImagesResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult).Name}"); - organizationUsageAudioSpeechesResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult).Name}"); - organizationUsageAudioTranscriptionsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageVectorStoresResult).Name}"); - organizationUsageVectorStoresResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult).Name}"); - organizationUsageCodeInterpreterSessionsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CostsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CostsResult).Name}"); - organizationCostsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult)}"); + organizationUsageCodeInterpreterSessionsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (organizationUsageCompletionsResult == null && organizationUsageEmbeddingsResult == null && organizationUsageModerationsResult == null && organizationUsageImagesResult == null && organizationUsageAudioSpeechesResult == null && organizationUsageAudioTranscriptionsResult == null && organizationUsageVectorStoresResult == null && organizationUsageCodeInterpreterSessionsResult == null && organizationCostsResult == null) + global::tryAGI.OpenAI.CostsResult? organizationCostsResult = default; + if (discriminator?.Object == global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject.OrganizationCostsResult) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCompletionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCompletionsResult).Name}"); - organizationUsageCompletionsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageEmbeddingsResult).Name}"); - organizationUsageEmbeddingsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageModerationsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageModerationsResult).Name}"); - organizationUsageModerationsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageImagesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageImagesResult).Name}"); - organizationUsageImagesResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioSpeechesResult).Name}"); - organizationUsageAudioSpeechesResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageAudioTranscriptionsResult).Name}"); - organizationUsageAudioTranscriptionsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageVectorStoresResult).Name}"); - organizationUsageVectorStoresResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult).Name}"); - organizationUsageCodeInterpreterSessionsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CostsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CostsResult).Name}"); - organizationCostsResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CostsResult), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CostsResult)}"); + organizationCostsResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ResultsItem( + discriminator?.Object, organizationUsageCompletionsResult, organizationUsageEmbeddingsResult, 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 c46e3a6c..43d645c5 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 @@ -284,6 +284,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1).Name}"); runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -294,9 +295,13 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (runStepStreamEventVariant1 == null && runStepStreamEventVariant2 == null && runStepStreamEventVariant3 == null && runStepStreamEventVariant4 == null && runStepStreamEventVariant5 == null && runStepStreamEventVariant6 == null && runStepStreamEventVariant7 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2).Name}"); runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -307,9 +312,13 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (runStepStreamEventVariant1 == null && runStepStreamEventVariant2 == null && runStepStreamEventVariant3 == null && runStepStreamEventVariant4 == null && runStepStreamEventVariant5 == null && runStepStreamEventVariant6 == null && runStepStreamEventVariant7 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3).Name}"); runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -320,9 +329,13 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (runStepStreamEventVariant1 == null && runStepStreamEventVariant2 == null && runStepStreamEventVariant3 == null && runStepStreamEventVariant4 == null && runStepStreamEventVariant5 == null && runStepStreamEventVariant6 == null && runStepStreamEventVariant7 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4).Name}"); runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -333,9 +346,13 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (runStepStreamEventVariant1 == null && runStepStreamEventVariant2 == null && runStepStreamEventVariant3 == null && runStepStreamEventVariant4 == null && runStepStreamEventVariant5 == null && runStepStreamEventVariant6 == null && runStepStreamEventVariant7 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5).Name}"); runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -346,9 +363,13 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (runStepStreamEventVariant1 == null && runStepStreamEventVariant2 == null && runStepStreamEventVariant3 == null && runStepStreamEventVariant4 == null && runStepStreamEventVariant5 == null && runStepStreamEventVariant6 == null && runStepStreamEventVariant7 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6).Name}"); runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -359,9 +380,13 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (runStepStreamEventVariant1 == null && runStepStreamEventVariant2 == null && runStepStreamEventVariant3 == null && runStepStreamEventVariant4 == null && runStepStreamEventVariant5 == null && runStepStreamEventVariant6 == null && runStepStreamEventVariant7 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7).Name}"); runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 3cb3564b..0dc52713 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 @@ -515,6 +515,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant1).Name}"); runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -525,9 +526,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (runStreamEventVariant1 == null && runStreamEventVariant2 == null && runStreamEventVariant3 == null && runStreamEventVariant4 == null && runStreamEventVariant5 == null && runStreamEventVariant6 == null && runStreamEventVariant7 == null && runStreamEventVariant8 == null && runStreamEventVariant9 == null && runStreamEventVariant10 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant2).Name}"); runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -538,9 +543,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (runStreamEventVariant1 == null && runStreamEventVariant2 == null && runStreamEventVariant3 == null && runStreamEventVariant4 == null && runStreamEventVariant5 == null && runStreamEventVariant6 == null && runStreamEventVariant7 == null && runStreamEventVariant8 == null && runStreamEventVariant9 == null && runStreamEventVariant10 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant3).Name}"); runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -551,9 +560,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (runStreamEventVariant1 == null && runStreamEventVariant2 == null && runStreamEventVariant3 == null && runStreamEventVariant4 == null && runStreamEventVariant5 == null && runStreamEventVariant6 == null && runStreamEventVariant7 == null && runStreamEventVariant8 == null && runStreamEventVariant9 == null && runStreamEventVariant10 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant4).Name}"); runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -564,9 +577,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (runStreamEventVariant1 == null && runStreamEventVariant2 == null && runStreamEventVariant3 == null && runStreamEventVariant4 == null && runStreamEventVariant5 == null && runStreamEventVariant6 == null && runStreamEventVariant7 == null && runStreamEventVariant8 == null && runStreamEventVariant9 == null && runStreamEventVariant10 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant5).Name}"); runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -577,9 +594,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (runStreamEventVariant1 == null && runStreamEventVariant2 == null && runStreamEventVariant3 == null && runStreamEventVariant4 == null && runStreamEventVariant5 == null && runStreamEventVariant6 == null && runStreamEventVariant7 == null && runStreamEventVariant8 == null && runStreamEventVariant9 == null && runStreamEventVariant10 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant6).Name}"); runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -590,9 +611,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (runStreamEventVariant1 == null && runStreamEventVariant2 == null && runStreamEventVariant3 == null && runStreamEventVariant4 == null && runStreamEventVariant5 == null && runStreamEventVariant6 == null && runStreamEventVariant7 == null && runStreamEventVariant8 == null && runStreamEventVariant9 == null && runStreamEventVariant10 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant7).Name}"); runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -603,9 +628,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (runStreamEventVariant1 == null && runStreamEventVariant2 == null && runStreamEventVariant3 == null && runStreamEventVariant4 == null && runStreamEventVariant5 == null && runStreamEventVariant6 == null && runStreamEventVariant7 == null && runStreamEventVariant8 == null && runStreamEventVariant9 == null && runStreamEventVariant10 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant8).Name}"); runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -616,9 +645,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (runStreamEventVariant1 == null && runStreamEventVariant2 == null && runStreamEventVariant3 == null && runStreamEventVariant4 == null && runStreamEventVariant5 == null && runStreamEventVariant6 == null && runStreamEventVariant7 == null && runStreamEventVariant8 == null && runStreamEventVariant9 == null && runStreamEventVariant10 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant9).Name}"); runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -629,9 +662,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (runStreamEventVariant1 == null && runStreamEventVariant2 == null && runStreamEventVariant3 == null && runStreamEventVariant4 == null && runStreamEventVariant5 == null && runStreamEventVariant6 == null && runStreamEventVariant7 == null && runStreamEventVariant8 == null && runStreamEventVariant9 == null && runStreamEventVariant10 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RunStreamEventVariant10).Name}"); runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 6a9250dd..72b264e4 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 @@ -15,124 +15,29 @@ public class Session2JsonConverter : global::System.Text.Json.Serialization.Json options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("expires_at")) __score0++; - if (__jsonProps.Contains("id")) __score0++; - if (__jsonProps.Contains("include")) __score0++; - if (__jsonProps.Contains("instructions")) __score0++; - if (__jsonProps.Contains("max_output_tokens")) __score0++; - if (__jsonProps.Contains("model")) __score0++; - if (__jsonProps.Contains("object")) __score0++; - if (__jsonProps.Contains("output_modalities")) __score0++; - if (__jsonProps.Contains("prompt")) __score0++; - if (__jsonProps.Contains("reasoning")) __score0++; - if (__jsonProps.Contains("reasoning.effort")) __score0++; - if (__jsonProps.Contains("tool_choice")) __score0++; - if (__jsonProps.Contains("tools")) __score0++; - if (__jsonProps.Contains("tracing")) __score0++; - if (__jsonProps.Contains("truncation")) __score0++; - 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++; - if (__jsonProps.Contains("object")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? realtime = default; - global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? transcription = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType.Realtime) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA).Name}"); - realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA).Name}"); - transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA)}"); + realtime = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (realtime == null && transcription == null) + global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? transcription = default; + if (discriminator?.Type == global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType.Transcription) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA).Name}"); - realtime = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA).Name}"); - transcription = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA)}"); + transcription = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Session2( + discriminator?.Type, realtime, transcription 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 35e3b32f..cace5535 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 @@ -15,108 +15,29 @@ public class SkillsItemJsonConverter : global::System.Text.Json.Serialization.Js options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("skill_id")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - if (__jsonProps.Contains("version")) __score0++; - var __score1 = 0; - 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; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.SkillReferenceParam? skillReference = default; - global::tryAGI.OpenAI.InlineSkillParam? inline = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType.SkillReference) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.SkillReferenceParam)}"); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (skillReference == null && inline == null) + global::tryAGI.OpenAI.InlineSkillParam? inline = default; + if (discriminator?.Type == global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType.Inline) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InlineSkillParam)}"); + inline = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.SkillsItem( + discriminator?.Type, skillReference, inline 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 9f5c26b5..9275db66 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 @@ -15,108 +15,29 @@ public class SkillsItem2JsonConverter : global::System.Text.Json.Serialization.J options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("skill_id")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - if (__jsonProps.Contains("version")) __score0++; - var __score1 = 0; - 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; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.SkillReferenceParam? skillReference = default; - global::tryAGI.OpenAI.InlineSkillParam? inline = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType.SkillReference) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.SkillReferenceParam)}"); + skillReference = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (skillReference == null && inline == null) + global::tryAGI.OpenAI.InlineSkillParam? inline = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType.Inline) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SkillReferenceParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SkillReferenceParam).Name}"); - skillReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InlineSkillParam).Name}"); - inline = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.InlineSkillParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.InlineSkillParam)}"); + inline = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.SkillsItem2( + discriminator?.Type, skillReference, inline 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 72a532a5..22dc29c0 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 @@ -15,127 +15,36 @@ public class StatusJsonConverter : global::System.Text.Json.Serialization.JsonCo options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("reason")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("reason")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.ActiveStatus? active = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType.Active) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ActiveStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ActiveStatus)}"); + active = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.LockedStatus? locked = default; - global::tryAGI.OpenAI.ClosedStatus? closed = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType.Locked) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ActiveStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ActiveStatus).Name}"); - active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LockedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LockedStatus).Name}"); - locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClosedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClosedStatus).Name}"); - closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LockedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.LockedStatus)}"); + locked = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (active == null && locked == null && closed == null) + global::tryAGI.OpenAI.ClosedStatus? closed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType.Closed) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ActiveStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ActiveStatus).Name}"); - active = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LockedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LockedStatus).Name}"); - locked = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClosedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClosedStatus).Name}"); - closed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClosedStatus), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ClosedStatus)}"); + closed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Status( + discriminator?.Type, active, locked, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs index 2332d73b..7b1e7e87 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.StopConfiguration.g.cs @@ -108,7 +108,10 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (stopConfigurationVariant1 == null && stopConfigurationVariant2 == null) + { try { 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 81d7aeb7..50c5e867 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 @@ -99,6 +99,7 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatText).Name}"); text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -109,9 +110,13 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. catch (global::System.InvalidOperationException) { } + } + if (text == null && jsonSchema == null && jsonObject == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TextResponseFormatJsonSchema).Name}"); jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -122,9 +127,13 @@ public class TextResponseFormatConfigurationJsonConverter : global::System.Text. catch (global::System.InvalidOperationException) { } + } + if (text == null && jsonSchema == null && jsonObject == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ResponseFormatJsonObject).Name}"); jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 0379f47a..67472347 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 @@ -15,259 +15,57 @@ public class ThreadItemJsonConverter : global::System.Text.Json.Serialization.Js options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("attachments")) __score0++; - if (__jsonProps.Contains("content")) __score0++; - if (__jsonProps.Contains("created_at")) __score0++; - if (__jsonProps.Contains("id")) __score0++; - if (__jsonProps.Contains("inference_options")) __score0++; - if (__jsonProps.Contains("object")) __score0++; - if (__jsonProps.Contains("thread_id")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("content")) __score1++; - if (__jsonProps.Contains("created_at")) __score1++; - if (__jsonProps.Contains("id")) __score1++; - if (__jsonProps.Contains("object")) __score1++; - if (__jsonProps.Contains("thread_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("created_at")) __score2++; - if (__jsonProps.Contains("id")) __score2++; - if (__jsonProps.Contains("object")) __score2++; - if (__jsonProps.Contains("thread_id")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - if (__jsonProps.Contains("widget")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("arguments")) __score3++; - if (__jsonProps.Contains("call_id")) __score3++; - if (__jsonProps.Contains("created_at")) __score3++; - if (__jsonProps.Contains("id")) __score3++; - if (__jsonProps.Contains("name")) __score3++; - if (__jsonProps.Contains("object")) __score3++; - if (__jsonProps.Contains("output")) __score3++; - if (__jsonProps.Contains("status")) __score3++; - if (__jsonProps.Contains("thread_id")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("created_at")) __score4++; - if (__jsonProps.Contains("heading")) __score4++; - if (__jsonProps.Contains("id")) __score4++; - if (__jsonProps.Contains("object")) __score4++; - if (__jsonProps.Contains("summary")) __score4++; - if (__jsonProps.Contains("task_type")) __score4++; - if (__jsonProps.Contains("thread_id")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("created_at")) __score5++; - if (__jsonProps.Contains("id")) __score5++; - if (__jsonProps.Contains("object")) __score5++; - if (__jsonProps.Contains("tasks")) __score5++; - if (__jsonProps.Contains("thread_id")) __score5++; - if (__jsonProps.Contains("type")) __score5++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ThreadItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.UserMessageItem? chatkitUserMessage = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ThreadItemDiscriminatorType.ChatkitUserMessage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.UserMessageItem)}"); + chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.AssistantMessageItem? chatkitAssistantMessage = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ThreadItemDiscriminatorType.ChatkitAssistantMessage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.AssistantMessageItem)}"); + chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.WidgetMessageItem? chatkitWidget = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ThreadItemDiscriminatorType.ChatkitWidget) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WidgetMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.WidgetMessageItem)}"); + chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.ClientToolCallItem? chatkitClientToolCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ThreadItemDiscriminatorType.ChatkitClientToolCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClientToolCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.ClientToolCallItem)}"); + chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.TaskItem? chatkitTask = default; - global::tryAGI.OpenAI.TaskGroupItem? chatkitTaskGroup = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.ThreadItemDiscriminatorType.ChatkitTask) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageItem).Name}"); - chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantMessageItem).Name}"); - chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WidgetMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WidgetMessageItem).Name}"); - chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClientToolCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClientToolCallItem).Name}"); - chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskItem).Name}"); - chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskGroupItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskGroupItem).Name}"); - chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TaskItem)}"); + chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (chatkitUserMessage == null && chatkitAssistantMessage == null && chatkitWidget == null && chatkitClientToolCall == null && chatkitTask == null && chatkitTaskGroup == null) + global::tryAGI.OpenAI.TaskGroupItem? chatkitTaskGroup = default; + if (discriminator?.Type == global::tryAGI.OpenAI.ThreadItemDiscriminatorType.ChatkitTaskGroup) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.UserMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.UserMessageItem).Name}"); - chatkitUserMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.AssistantMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.AssistantMessageItem).Name}"); - chatkitAssistantMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WidgetMessageItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WidgetMessageItem).Name}"); - chatkitWidget = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ClientToolCallItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ClientToolCallItem).Name}"); - chatkitClientToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskItem).Name}"); - chatkitTask = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskGroupItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TaskGroupItem).Name}"); - chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TaskGroupItem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.TaskGroupItem)}"); + chatkitTaskGroup = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ThreadItem( + discriminator?.Type, chatkitUserMessage, chatkitAssistantMessage, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorType.g.cs new file mode 100644 index 00000000..010eeae9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ThreadItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ThreadItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ThreadItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ThreadItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ThreadItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ThreadItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ThreadItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..166ec5fc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ThreadItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ThreadItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ThreadItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ThreadItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ThreadItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ThreadItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorType.g.cs new file mode 100644 index 00000000..8d74ae26 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ThreadResourceStatusDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..01c99348 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ThreadResourceStatusDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 ad9ad897..bdd7c19f 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 @@ -71,6 +71,7 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1).Name}"); threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 b135ce2d..c5fdbc72 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 @@ -385,6 +385,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionTool).Name}"); function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -395,9 +396,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FileSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FileSearchTool).Name}"); fileSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -408,9 +413,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerTool).Name}"); computer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -421,9 +430,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerUsePreviewTool).Name}"); computerUsePreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -434,9 +447,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchTool).Name}"); webSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -447,9 +464,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.MCPTool).Name}"); mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -460,9 +481,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CodeInterpreterTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CodeInterpreterTool).Name}"); codeInterpreter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -473,9 +498,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ImageGenTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ImageGenTool).Name}"); imageGeneration = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -486,9 +515,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.LocalShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.LocalShellToolParam).Name}"); localShell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -499,9 +532,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionShellToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionShellToolParam).Name}"); shell = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -512,9 +549,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -525,9 +566,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.NamespaceToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.NamespaceToolParam).Name}"); @namespace = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -538,9 +583,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolSearchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolSearchToolParam).Name}"); toolSearch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -551,9 +600,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchPreviewTool).Name}"); webSearchPreview = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -564,9 +617,13 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv catch (global::System.InvalidOperationException) { } + } + if (function == null && fileSearch == null && computer == null && computerUsePreview == null && webSearch == null && mcp == null && codeInterpreter == null && imageGeneration == null && localShell == null && shell == null && custom == null && @namespace == null && toolSearch == null && webSearchPreview == null && applyPatch == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ApplyPatchToolParam).Name}"); applyPatch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); 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 967c7abb..bbb3956e 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 @@ -195,6 +195,7 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceOptions), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceOptions).Name}"); toolChoiceMode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -205,9 +206,13 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && hostedTool == null && functionTool == null && mcpTool == null && customTool == null && specificApplyPatchToolChoice == null && specificShellToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceAllowed).Name}"); allowedTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -218,9 +223,13 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && hostedTool == null && functionTool == null && mcpTool == null && customTool == null && specificApplyPatchToolChoice == null && specificShellToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceTypes), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceTypes).Name}"); hostedTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -231,9 +240,13 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && hostedTool == null && functionTool == null && mcpTool == null && customTool == null && specificApplyPatchToolChoice == null && specificShellToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceFunction), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceFunction).Name}"); functionTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -244,9 +257,13 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && hostedTool == null && functionTool == null && mcpTool == null && customTool == null && specificApplyPatchToolChoice == null && specificShellToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceMCP), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceMCP).Name}"); mcpTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -257,9 +274,13 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && hostedTool == null && functionTool == null && mcpTool == null && customTool == null && specificApplyPatchToolChoice == null && specificShellToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ToolChoiceCustom), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ToolChoiceCustom).Name}"); customTool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -270,9 +291,13 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && hostedTool == null && functionTool == null && mcpTool == null && customTool == null && specificApplyPatchToolChoice == null && specificShellToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificApplyPatchParam).Name}"); specificApplyPatchToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -283,9 +308,13 @@ public class ToolChoiceParamJsonConverter : global::System.Text.Json.Serializati catch (global::System.InvalidOperationException) { } + } + if (toolChoiceMode == null && allowedTools == null && hostedTool == null && functionTool == null && mcpTool == null && customTool == null && specificApplyPatchToolChoice == null && specificShellToolChoice == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.SpecificFunctionShellParam).Name}"); specificShellToolChoice = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolDiscriminatorType.g.cs new file mode 100644 index 00000000..8e5b7303 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.ToolDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..97ffbc33 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class ToolDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.ToolDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.ToolDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.ToolDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.ToolDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.ToolDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.ToolDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} 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 d609bde2..37ebd995 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 @@ -15,102 +15,29 @@ public class ToolsItem13JsonConverter : global::System.Text.Json.Serialization.J options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("defer_loading")) __score0++; - if (__jsonProps.Contains("description")) __score0++; - if (__jsonProps.Contains("name")) __score0++; - if (__jsonProps.Contains("parameters")) __score0++; - if (__jsonProps.Contains("strict")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("defer_loading")) __score1++; - if (__jsonProps.Contains("description")) __score1++; - if (__jsonProps.Contains("format")) __score1++; - if (__jsonProps.Contains("name")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.FunctionToolParam? function = default; - global::tryAGI.OpenAI.CustomToolParam? custom = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType.Function) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolParam).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.FunctionToolParam)}"); + function = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (function == null && custom == null) + global::tryAGI.OpenAI.CustomToolParam? custom = default; + if (discriminator?.Type == global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType.Custom) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.FunctionToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolParam).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolParam).Name}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.CustomToolParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.CustomToolParam)}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.ToolsItem13( + discriminator?.Type, function, custom 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 c79df17c..0e4ef853 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 @@ -78,6 +78,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum).Name}"); @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -88,9 +89,13 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (@enum == null && vadConfig == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VadConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VadConfig).Name}"); vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObject.g.cs new file mode 100644 index 00000000..43a60af4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObject.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UsageTimeBucketResultDiscriminatorObjectJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObjectExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObjectExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullable.g.cs new file mode 100644 index 00000000..d7b4ee76 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UsageTimeBucketResultDiscriminatorObjectNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObjectExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObjectExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorType.g.cs new file mode 100644 index 00000000..f424ccb2 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UserMessageItemContentItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..e7901740 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class UserMessageItemContentItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs index 27aac2ee..bae6c3a3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VideoModel.g.cs @@ -108,7 +108,10 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js catch (global::System.InvalidOperationException) { } + } + if (videoModelVariant1 == null && @enum == null) + { try { 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 6701bbee..7a450a05 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 @@ -75,6 +75,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsShared).Name}"); shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -85,9 +86,13 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (shared == null && voiceIdsOrCustomVoiceVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2).Name}"); voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs index 387edda7..936eda24 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.VoiceIdsShared.g.cs @@ -108,7 +108,10 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (voiceIdsSharedVariant1 == null && @enum == null) + { try { 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 7b8d0cd6..6fa4c615 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 @@ -15,131 +15,36 @@ public class WebSearchToolCallActionJsonConverter : global::System.Text.Json.Ser options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("queries")) __score0++; - if (__jsonProps.Contains("query")) __score0++; - if (__jsonProps.Contains("sources")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("type")) __score1++; - if (__jsonProps.Contains("url")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("pattern")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - if (__jsonProps.Contains("url")) __score2++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.WebSearchActionSearch? search = default; + if (discriminator?.Type == global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType.Search) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.WebSearchActionSearch)}"); + search = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.WebSearchActionOpenPage? openPage = default; - global::tryAGI.OpenAI.WebSearchActionFind? findInPage = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType.OpenPage) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); - search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); - openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); - findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.WebSearchActionOpenPage)}"); + openPage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (search == null && openPage == null && findInPage == null) + global::tryAGI.OpenAI.WebSearchActionFind? findInPage = default; + if (discriminator?.Type == global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType.FindInPage) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionSearch).Name}"); - search = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionOpenPage).Name}"); - openPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.WebSearchActionFind).Name}"); - findInPage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.WebSearchActionFind), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.WebSearchActionFind)}"); + findInPage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.WebSearchToolCallAction( + discriminator?.Type, search, openPage, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorType.g.cs new file mode 100644 index 00000000..d91b3824 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class WebSearchToolCallActionDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..aedafc36 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.JsonConverters +{ + /// + public sealed class WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs index 72cee2d1..44c835ac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContext.g.cs @@ -137,6 +137,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter), @@ -153,6 +157,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter), @@ -161,6 +169,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter), @@ -225,6 +237,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter), @@ -245,6 +261,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter), @@ -253,6 +273,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter), @@ -293,6 +317,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter), @@ -313,6 +341,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter), @@ -353,10 +385,18 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter), @@ -585,6 +625,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter), @@ -613,6 +657,14 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter), @@ -925,6 +977,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), @@ -1037,6 +1093,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter), @@ -1077,6 +1137,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter), @@ -1137,6 +1201,14 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter), @@ -1181,6 +1253,14 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter), @@ -1445,6 +1525,14 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter), @@ -1457,6 +1545,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), @@ -1825,6 +1917,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), @@ -1873,6 +1969,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), @@ -1985,6 +2085,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), @@ -2057,6 +2161,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), @@ -2405,6 +2513,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter), @@ -2421,6 +2533,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter), @@ -2465,6 +2581,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter), @@ -2733,6 +2853,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter), @@ -2973,6 +3097,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), @@ -3085,6 +3213,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter), @@ -3233,6 +3365,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter), @@ -3405,6 +3541,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter), @@ -3453,6 +3593,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter), @@ -3545,6 +3689,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter), @@ -3561,6 +3709,14 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter), @@ -3573,6 +3729,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter), @@ -3589,6 +3749,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter), @@ -3597,6 +3761,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter), @@ -3657,6 +3825,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumNullableJsonConverter), @@ -3669,6 +3841,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter), @@ -3693,6 +3869,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter), @@ -3737,6 +3917,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter), @@ -3757,6 +3941,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter), @@ -3765,6 +3953,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter), @@ -3785,6 +3977,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter), @@ -3865,6 +4061,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.PromptCacheRetentionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter), @@ -3925,6 +4125,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter), @@ -3945,6 +4149,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter), @@ -3993,6 +4201,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter), @@ -4013,6 +4225,10 @@ namespace tryAGI.OpenAI typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter), @@ -5037,6 +5253,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallsItem), TypeInfoPropertyName = "ChatCompletionMessageToolCallsItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType), TypeInfoPropertyName = "ChatCompletionMessageToolCallDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionModalitiesVariant1Item), TypeInfoPropertyName = "ChatCompletionModalitiesVariant1Item2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionNamedToolChoice))] @@ -5054,6 +5271,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType), TypeInfoPropertyName = "ChatCompletionRequestAssistantMessageContentPartDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>), TypeInfoPropertyName = "OneOfStringIListChatCompletionRequestMessageContentPartText2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -5065,6 +5283,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestUserMessage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestToolMessage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole), TypeInfoPropertyName = "ChatCompletionRequestMessageDiscriminatorRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType), TypeInfoPropertyName = "ChatCompletionRequestMessageContentPartAudioType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio))] @@ -5113,6 +5332,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChunkingStrategyRequestParam), TypeInfoPropertyName = "ChunkingStrategyRequestParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType), TypeInfoPropertyName = "ChunkingStrategyRequestParamDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterFileOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterFileOutputType), TypeInfoPropertyName = "CodeInterpreterFileOutputType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -5131,6 +5351,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputLogs))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterOutputImage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType), TypeInfoPropertyName = "CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComparisonFilter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComparisonFilterType), TypeInfoPropertyName = "ComparisonFilterType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>), TypeInfoPropertyName = "OneOfStringDoubleBooleanIListOneOfStringDouble2")] @@ -5156,6 +5377,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TypeParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WaitParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerActionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerActionDiscriminatorType), TypeInfoPropertyName = "ComputerActionDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotImage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ComputerScreenshotImageType), TypeInfoPropertyName = "ComputerScreenshotImageType2")] @@ -5210,6 +5432,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolCallOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemDiscriminatorType), TypeInfoPropertyName = "ConversationItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ConversationItemListObject), TypeInfoPropertyName = "ConversationItemListObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -5245,6 +5468,7 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchContextSize), TypeInfoPropertyName = "WebSearchContextSize2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFormat), TypeInfoPropertyName = "ResponseFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoice), TypeInfoPropertyName = "VoiceIdsOrCustomVoice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat), TypeInfoPropertyName = "CreateChatCompletionRequestVariant2AudioFormat2")] @@ -5293,11 +5517,13 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType), TypeInfoPropertyName = "CreateContainerBodySkillDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyMemoryLimit), TypeInfoPropertyName = "CreateContainerBodyMemoryLimit2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy), TypeInfoPropertyName = "NetworkPolicy2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType), TypeInfoPropertyName = "CreateContainerBodyNetworkPolicyDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateContainerFileBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateEmbeddingRequestModel2")] @@ -5309,16 +5535,6 @@ namespace tryAGI.OpenAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingResponseObject), TypeInfoPropertyName = "CreateEmbeddingResponseObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEmbeddingResponseUsage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEasyInputMessageEvalItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -5454,6 +5670,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter), @@ -5470,6 +5690,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter), @@ -5478,6 +5702,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter), @@ -5542,6 +5770,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter), @@ -5562,6 +5794,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter), @@ -5570,6 +5806,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter), @@ -5610,6 +5850,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter), @@ -5630,6 +5874,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter), @@ -5670,10 +5918,18 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter), @@ -5902,6 +6158,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter), @@ -5930,6 +6190,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter), @@ -6242,6 +6510,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), @@ -6354,6 +6626,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter), @@ -6394,6 +6670,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter), @@ -6454,6 +6734,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter), @@ -6498,6 +6786,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter), @@ -6762,6 +7058,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter), @@ -6774,6 +7078,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), @@ -7142,6 +7450,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), @@ -7190,6 +7502,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), @@ -7302,6 +7618,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), @@ -7374,6 +7694,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), @@ -7722,6 +8046,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter), @@ -7738,6 +8066,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter), @@ -7782,6 +8114,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter), @@ -8050,6 +8386,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter), @@ -8290,6 +8630,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), @@ -8402,6 +8746,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter), @@ -8550,6 +8898,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter), @@ -8722,6 +9074,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter), @@ -8770,6 +9126,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter), @@ -8862,6 +9222,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter), @@ -8878,6 +9242,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter), @@ -8890,6 +9262,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter), @@ -8906,6 +9282,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter), @@ -8914,6 +9294,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter), @@ -8974,6 +9358,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumNullableJsonConverter), @@ -8986,6 +9374,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter), @@ -9010,6 +9402,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter), @@ -9054,6 +9450,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter), @@ -9074,6 +9474,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter), @@ -9082,6 +9486,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter), @@ -9102,6 +9510,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter), @@ -9182,6 +9594,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.PromptCacheRetentionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter), @@ -9242,6 +9658,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter), @@ -9262,6 +9682,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter), @@ -9310,6 +9734,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter), @@ -9330,6 +9758,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter), @@ -10159,6 +10591,16 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEasyInputMessageEvalItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EasyInputMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EvalItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType), TypeInfoPropertyName = "CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfResponseFormatTextResponseFormatJsonSchemaResponseFormatJsonObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf), TypeInfoPropertyName = "OneOfEvalJsonlFileContentSourceEvalJsonlFileIdSourceEvalStoredCompletionsSource2")] @@ -10333,6 +10775,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDeltaEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SpeechAudioDoneEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType), TypeInfoPropertyName = "CreateSpeechResponseStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadAndRunRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateThreadRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringCreateThreadAndRunRequestModel2")] @@ -10368,6 +10811,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageTokens))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextUsageDuration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType), TypeInfoPropertyName = "CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseJson))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob))] @@ -10377,6 +10821,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDeltaEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptTextDoneEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType), TypeInfoPropertyName = "CreateTranscriptionResponseStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TranscriptionWord))] @@ -10600,6 +11045,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputImageContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputFileContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType), TypeInfoPropertyName = "FunctionAndCustomToolCallOutputDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallType), TypeInfoPropertyName = "FunctionToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolCallStatus), TypeInfoPropertyName = "FunctionToolCallStatus2")] @@ -10622,20 +11068,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Group))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupObject), TypeInfoPropertyName = "GroupObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupDeletedResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupDeletedResourceObject), TypeInfoPropertyName = "GroupDeletedResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupListResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupListResourceObject), TypeInfoPropertyName = "GroupListResourceObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResourceWithSuccess))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignmentObject), TypeInfoPropertyName = "GroupRoleAssignmentObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Role))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUser))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserAssignment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserAssignmentObject), TypeInfoPropertyName = "GroupUserAssignmentObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserDeletedResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserDeletedResourceObject), TypeInfoPropertyName = "GroupUserDeletedResourceObject2")] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -10771,6 +11203,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter), @@ -10787,6 +11223,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter), @@ -10795,6 +11235,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter), @@ -10859,6 +11303,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter), @@ -10879,6 +11327,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter), @@ -10887,6 +11339,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter), @@ -10927,6 +11383,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter), @@ -10947,6 +11407,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter), @@ -10987,10 +11451,18 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter), @@ -11219,6 +11691,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter), @@ -11247,6 +11723,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter), @@ -11559,6 +12043,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), @@ -11671,6 +12159,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter), @@ -11711,6 +12203,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter), @@ -11771,6 +12267,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter), @@ -11815,6 +12319,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter), @@ -12079,6 +12591,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter), @@ -12091,6 +12611,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), @@ -12459,6 +12983,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), @@ -12507,6 +13035,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), @@ -12619,6 +13151,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), @@ -12691,6 +13227,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), @@ -13039,6 +13579,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter), @@ -13055,6 +13599,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter), @@ -13099,6 +13647,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter), @@ -13367,6 +13919,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter), @@ -13607,6 +14163,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), @@ -13719,6 +14279,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter), @@ -13867,6 +14431,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter), @@ -14039,6 +14607,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter), @@ -14087,6 +14659,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter), @@ -14179,6 +14755,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter), @@ -14195,6 +14775,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter), @@ -14207,6 +14795,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter), @@ -14223,6 +14815,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter), @@ -14231,6 +14827,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter), @@ -14291,6 +14891,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumNullableJsonConverter), @@ -14303,6 +14907,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter), @@ -14327,6 +14935,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter), @@ -14371,6 +14983,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter), @@ -14391,6 +15007,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter), @@ -14399,6 +15019,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter), @@ -14419,6 +15043,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter), @@ -14499,6 +15127,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.PromptCacheRetentionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter), @@ -14559,6 +15191,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter), @@ -14579,6 +15215,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter), @@ -14627,6 +15267,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter), @@ -14647,6 +15291,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter), @@ -15476,6 +16124,20 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupDeletedResourceObject), TypeInfoPropertyName = "GroupDeletedResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupListResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupListResourceObject), TypeInfoPropertyName = "GroupListResourceObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupResourceWithSuccess))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupRoleAssignmentObject), TypeInfoPropertyName = "GroupRoleAssignmentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Role))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUser))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserAssignment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserAssignmentObject), TypeInfoPropertyName = "GroupUserAssignmentObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserDeletedResource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GroupUserDeletedResourceObject), TypeInfoPropertyName = "GroupUserDeletedResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Image2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditCompletedEventType), TypeInfoPropertyName = "ImageEditCompletedEventType2")] @@ -15492,6 +16154,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat), TypeInfoPropertyName = "ImageEditPartialImageEventOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditStreamEvent), TypeInfoPropertyName = "ImageEditStreamEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType), TypeInfoPropertyName = "ImageEditStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventType), TypeInfoPropertyName = "ImageGenCompletedEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenCompletedEventSize), TypeInfoPropertyName = "ImageGenCompletedEventSize2")] @@ -15506,6 +16169,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat), TypeInfoPropertyName = "ImageGenPartialImageEventOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenStreamEvent), TypeInfoPropertyName = "ImageGenStreamEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType), TypeInfoPropertyName = "ImageGenStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ImageGenToolType), TypeInfoPropertyName = "ImageGenToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnyOf), TypeInfoPropertyName = "AnyOfStringImageGenToolModel2")] @@ -15532,10 +16196,12 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudioInputAudio1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputAudioInputAudio1Format), TypeInfoPropertyName = "InputAudioInputAudio1Format2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputContentDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputContentDiscriminatorType), TypeInfoPropertyName = "InputContentDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItem), TypeInfoPropertyName = "InputItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Item), TypeInfoPropertyName = "Item2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemReferenceParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputItemDiscriminatorType), TypeInfoPropertyName = "InputItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageType), TypeInfoPropertyName = "InputMessageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputMessageRole), TypeInfoPropertyName = "InputMessageRole2")] @@ -15573,8 +16239,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MCPApprovalResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemDiscriminatorType), TypeInfoPropertyName = "ItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResource), TypeInfoPropertyName = "ItemResource2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResourceDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemResourceDiscriminatorType), TypeInfoPropertyName = "ItemResourceDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAssistantsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ListAuditLogsResponse))] @@ -15753,14 +16421,17 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RefusalContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningTextContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputContentDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputContentDiscriminatorType), TypeInfoPropertyName = "OutputContentDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputItem), TypeInfoPropertyName = "OutputItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputItemDiscriminatorType), TypeInfoPropertyName = "OutputItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageType), TypeInfoPropertyName = "OutputMessageType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageRole), TypeInfoPropertyName = "OutputMessageRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageContent), TypeInfoPropertyName = "OutputMessageContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageStatus), TypeInfoPropertyName = "OutputMessageStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageContentDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType), TypeInfoPropertyName = "OutputMessageContentDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.PredictionContentType), TypeInfoPropertyName = "PredictionContentType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Project))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ProjectObject), TypeInfoPropertyName = "ProjectObject2")] @@ -15930,29 +16601,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName), TypeInfoPropertyName = "RealtimeBetaServerEventRateLimitsUpdatedRateLimitName2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioTranscriptDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioTranscriptDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartAddedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartAddedPartType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartDonePartType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseCreatedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseDoneType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType2")] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -16088,6 +16736,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter), @@ -16104,6 +16756,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter), @@ -16112,6 +16768,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter), @@ -16176,6 +16836,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter), @@ -16196,6 +16860,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter), @@ -16204,6 +16872,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter), @@ -16244,6 +16916,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter), @@ -16264,6 +16940,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter), @@ -16304,10 +16984,18 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter), @@ -16536,6 +17224,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter), @@ -16564,6 +17256,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter), @@ -16876,6 +17576,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), @@ -16988,6 +17692,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter), @@ -17028,6 +17736,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter), @@ -17088,6 +17800,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter), @@ -17132,6 +17852,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter), @@ -17396,6 +18124,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter), @@ -17408,6 +18144,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), @@ -17776,6 +18516,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), @@ -17824,6 +18568,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), @@ -17936,6 +18684,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), @@ -18008,6 +18760,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), @@ -18356,6 +19112,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter), @@ -18372,6 +19132,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter), @@ -18416,6 +19180,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter), @@ -18684,6 +19452,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter), @@ -18924,6 +19696,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), @@ -19036,6 +19812,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter), @@ -19184,6 +19964,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter), @@ -19356,6 +20140,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter), @@ -19404,6 +20192,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter), @@ -19496,6 +20288,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter), @@ -19512,6 +20308,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter), @@ -19524,6 +20328,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter), @@ -19540,6 +20348,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter), @@ -19548,6 +20360,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter), @@ -19608,6 +20424,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumNullableJsonConverter), @@ -19620,6 +20440,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter), @@ -19644,6 +20468,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter), @@ -19688,6 +20516,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter), @@ -19708,6 +20540,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter), @@ -19716,6 +20552,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter), @@ -19736,6 +20576,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter), @@ -19816,6 +20660,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.PromptCacheRetentionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter), @@ -19876,6 +20724,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter), @@ -19896,6 +20748,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter), @@ -19944,6 +20800,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter), @@ -19964,6 +20824,10 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter), @@ -20793,6 +21657,29 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioTranscriptDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseAudioTranscriptDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartAddedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartAddedPartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseContentPartDonePartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseCreatedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseDoneType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType), TypeInfoPropertyName = "RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone))] @@ -20838,6 +21725,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventResponseCreate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType), TypeInfoPropertyName = "RealtimeClientEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType), TypeInfoPropertyName = "RealtimeClientEventConversationItemCreateType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType), TypeInfoPropertyName = "RealtimeClientEventConversationItemDeleteType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType), TypeInfoPropertyName = "RealtimeClientEventConversationItemRetrieveType2")] @@ -20864,6 +21752,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPToolCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType), TypeInfoPropertyName = "RealtimeConversationItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallStatus2")] @@ -20908,6 +21797,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType), TypeInfoPropertyName = "RealtimeCreateClientSecretResponseSessionDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeFunctionTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeFunctionToolType), TypeInfoPropertyName = "RealtimeFunctionToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType), TypeInfoPropertyName = "RealtimeMCPApprovalRequestType2")] @@ -20998,6 +21888,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType), TypeInfoPropertyName = "RealtimeServerEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType), TypeInfoPropertyName = "RealtimeServerEventConversationCreatedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemAddedType2")] @@ -21164,6 +22055,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType), TypeInfoPropertyName = "RealtimeTranslationClientEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType), TypeInfoPropertyName = "RealtimeTranslationClientEventInputAudioBufferAppendType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType), TypeInfoPropertyName = "RealtimeTranslationClientEventSessionCloseType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType), TypeInfoPropertyName = "RealtimeTranslationClientEventSessionUpdateType2")] @@ -21182,6 +22074,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType), TypeInfoPropertyName = "RealtimeTranslationServerEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionClosedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionCreatedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType), TypeInfoPropertyName = "RealtimeTranslationServerEventSessionInputTranscriptDeltaType2")] @@ -21213,6 +22106,7 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness), TypeInfoPropertyName = "RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType), TypeInfoPropertyName = "RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Reasoning))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningSummary2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ReasoningGenerateSummary2))] @@ -21240,36 +22134,6 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType), TypeInfoPropertyName = "ResponseAudioTranscriptDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType), TypeInfoPropertyName = "ResponseAudioTranscriptDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCodeDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCodeDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallInProgressEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallInterpretingEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCompletedEventType), TypeInfoPropertyName = "ResponseCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEventType), TypeInfoPropertyName = "ResponseContentPartAddedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEventType), TypeInfoPropertyName = "ResponseContentPartDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCreatedEventType), TypeInfoPropertyName = "ResponseCreatedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType), TypeInfoPropertyName = "ResponseCustomToolCallInputDeltaEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorCode), TypeInfoPropertyName = "ResponseErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorEventType), TypeInfoPropertyName = "ResponseErrorEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFailedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFailedEventType), TypeInfoPropertyName = "ResponseFailedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType), TypeInfoPropertyName = "ResponseFileSearchCallCompletedEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent))] internal sealed partial class SourceGenerationContextChunk3 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -21405,6 +22269,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter), @@ -21421,6 +22289,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter), @@ -21429,6 +22301,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter), @@ -21493,6 +22369,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter), @@ -21513,6 +22393,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter), @@ -21521,6 +22405,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter), @@ -21561,6 +22449,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter), @@ -21581,6 +22473,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter), @@ -21621,10 +22517,18 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter), @@ -21853,6 +22757,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter), @@ -21881,6 +22789,14 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter), @@ -22193,6 +23109,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), @@ -22305,6 +23225,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter), @@ -22345,6 +23269,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter), @@ -22405,6 +23333,14 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter), @@ -22449,6 +23385,14 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter), @@ -22713,6 +23657,14 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter), @@ -22725,6 +23677,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), @@ -23093,6 +24049,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), @@ -23141,6 +24101,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), @@ -23253,6 +24217,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), @@ -23325,6 +24293,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), @@ -23673,6 +24645,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter), @@ -23689,6 +24665,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter), @@ -23733,6 +24713,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter), @@ -24001,6 +24985,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter), @@ -24241,6 +25229,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), @@ -24353,6 +25345,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter), @@ -24501,6 +25497,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter), @@ -24673,6 +25673,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter), @@ -24721,6 +25725,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter), @@ -24813,6 +25821,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter), @@ -24829,6 +25841,14 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter), @@ -24841,6 +25861,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter), @@ -24857,6 +25881,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter), @@ -24865,6 +25893,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter), @@ -24925,6 +25957,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumNullableJsonConverter), @@ -24937,6 +25973,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter), @@ -24961,6 +26001,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter), @@ -25005,6 +26049,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter), @@ -25025,6 +26073,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter), @@ -25033,6 +26085,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter), @@ -25053,6 +26109,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter), @@ -25133,6 +26193,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.PromptCacheRetentionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter), @@ -25193,6 +26257,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter), @@ -25213,6 +26281,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter), @@ -25261,6 +26333,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter), @@ -25281,6 +26357,10 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter), @@ -26110,6 +27190,36 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCodeDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCodeDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallInProgressEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType), TypeInfoPropertyName = "ResponseCodeInterpreterCallInterpretingEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCompletedEventType), TypeInfoPropertyName = "ResponseCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartAddedEventType), TypeInfoPropertyName = "ResponseContentPartAddedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseContentPartDoneEventType), TypeInfoPropertyName = "ResponseContentPartDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCreatedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCreatedEventType), TypeInfoPropertyName = "ResponseCreatedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType), TypeInfoPropertyName = "ResponseCustomToolCallInputDeltaEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType), TypeInfoPropertyName = "ResponseCustomToolCallInputDoneEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorCode), TypeInfoPropertyName = "ResponseErrorCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseErrorEventType), TypeInfoPropertyName = "ResponseErrorEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFailedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFailedEventType), TypeInfoPropertyName = "ResponseFailedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType), TypeInfoPropertyName = "ResponseFileSearchCallCompletedEventType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType), TypeInfoPropertyName = "ResponseFileSearchCallInProgressEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType), TypeInfoPropertyName = "ResponseFileSearchCallSearchingEventType2")] @@ -26200,6 +27310,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseStreamEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType), TypeInfoPropertyName = "ResponseStreamEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDeltaEventType), TypeInfoPropertyName = "ResponseTextDeltaEventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseTextDoneEventType), TypeInfoPropertyName = "ResponseTextDoneEventType2")] @@ -26366,6 +27477,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchPreviewTool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolDiscriminatorType), TypeInfoPropertyName = "ToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceAllowed))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceAllowedType), TypeInfoPropertyName = "ToolChoiceAllowedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolChoiceAllowedMode), TypeInfoPropertyName = "ToolChoiceAllowedMode2")] @@ -26426,6 +27538,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResultsItem), TypeInfoPropertyName = "ResultsItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject), TypeInfoPropertyName = "UsageTimeBucketResultDiscriminatorObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UsageVectorStoresResultObject), TypeInfoPropertyName = "UsageVectorStoresResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.User))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserObject), TypeInfoPropertyName = "UserObject2")] @@ -26508,6 +27621,7 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallStatus), TypeInfoPropertyName = "WebSearchToolCallStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallAction), TypeInfoPropertyName = "WebSearchToolCallAction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType), TypeInfoPropertyName = "WebSearchToolCallActionDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelled))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelledData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookBatchCancelledObject), TypeInfoPropertyName = "WebhookBatchCancelledObject2")] @@ -26553,40 +27667,6 @@ internal sealed partial class SourceGenerationContextChunk3 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject), TypeInfoPropertyName = "WebhookRealtimeCallIncomingObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType), TypeInfoPropertyName = "WebhookRealtimeCallIncomingType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelled))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledObject), TypeInfoPropertyName = "WebhookResponseCancelledObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledType), TypeInfoPropertyName = "WebhookResponseCancelledType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompleted))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedObject), TypeInfoPropertyName = "WebhookResponseCompletedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedType), TypeInfoPropertyName = "WebhookResponseCompletedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedObject), TypeInfoPropertyName = "WebhookResponseFailedObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedType), TypeInfoPropertyName = "WebhookResponseFailedType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncomplete))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteObject), TypeInfoPropertyName = "WebhookResponseIncompleteObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteType), TypeInfoPropertyName = "WebhookResponseIncompleteType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType), TypeInfoPropertyName = "SkillReferenceParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamType), TypeInfoPropertyName = "InlineSkillSourceParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamMediaType), TypeInfoPropertyName = "InlineSkillSourceParamMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillParamType), TypeInfoPropertyName = "InlineSkillParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType), TypeInfoPropertyName = "ContainerNetworkPolicyDisabledParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType), TypeInfoPropertyName = "ContainerNetworkPolicyAllowlistParamType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStatus), TypeInfoPropertyName = "MessageStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageRole), TypeInfoPropertyName = "MessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentType), TypeInfoPropertyName = "InputTextContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileCitationBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileCitationBodyType), TypeInfoPropertyName = "FileCitationBodyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlCitationBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlCitationBodyType), TypeInfoPropertyName = "UrlCitationBodyType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody))] internal sealed partial class SourceGenerationContextChunk4 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -26722,6 +27802,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter), @@ -26738,6 +27822,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter), @@ -26746,6 +27834,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter), @@ -26810,6 +27902,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter), @@ -26830,6 +27926,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter), @@ -26838,6 +27938,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter), @@ -26878,6 +27982,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter), @@ -26898,6 +28006,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter), @@ -26938,10 +28050,18 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter), @@ -27170,6 +28290,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter), @@ -27198,6 +28322,14 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter), @@ -27510,6 +28642,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), @@ -27622,6 +28758,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter), @@ -27662,6 +28802,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter), @@ -27722,6 +28866,14 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter), @@ -27766,6 +28918,14 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter), @@ -28030,6 +29190,14 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter), @@ -28042,6 +29210,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), @@ -28410,6 +29582,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), @@ -28458,6 +29634,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), @@ -28570,6 +29750,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), @@ -28642,6 +29826,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), @@ -28990,6 +30178,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter), @@ -29006,6 +30198,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter), @@ -29050,6 +30246,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter), @@ -29318,6 +30518,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter), @@ -29558,6 +30762,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), @@ -29670,6 +30878,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter), @@ -29818,6 +31030,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter), @@ -29990,6 +31206,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter), @@ -30038,6 +31258,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter), @@ -30130,6 +31354,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter), @@ -30146,6 +31374,14 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter), @@ -30158,6 +31394,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter), @@ -30174,6 +31414,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter), @@ -30182,6 +31426,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter), @@ -30242,6 +31490,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumNullableJsonConverter), @@ -30254,6 +31506,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter), @@ -30278,6 +31534,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter), @@ -30322,6 +31582,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter), @@ -30342,6 +31606,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter), @@ -30350,6 +31618,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter), @@ -30370,6 +31642,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter), @@ -30450,6 +31726,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.PromptCacheRetentionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter), @@ -30510,6 +31790,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter), @@ -30530,6 +31814,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter), @@ -30578,6 +31866,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter), @@ -30598,6 +31890,10 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter), @@ -31427,9 +32723,44 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType), TypeInfoPropertyName = "WebhookRealtimeCallIncomingType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelled))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledObject), TypeInfoPropertyName = "WebhookResponseCancelledObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCancelledType), TypeInfoPropertyName = "WebhookResponseCancelledType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompleted))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedObject), TypeInfoPropertyName = "WebhookResponseCompletedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseCompletedType), TypeInfoPropertyName = "WebhookResponseCompletedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailed))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedObject), TypeInfoPropertyName = "WebhookResponseFailedObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseFailedType), TypeInfoPropertyName = "WebhookResponseFailedType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncomplete))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteObject), TypeInfoPropertyName = "WebhookResponseIncompleteObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.WebhookResponseIncompleteType), TypeInfoPropertyName = "WebhookResponseIncompleteType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillReferenceParamType), TypeInfoPropertyName = "SkillReferenceParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamType), TypeInfoPropertyName = "InlineSkillSourceParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillSourceParamMediaType), TypeInfoPropertyName = "InlineSkillSourceParamMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InlineSkillParamType), TypeInfoPropertyName = "InlineSkillParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType), TypeInfoPropertyName = "ContainerNetworkPolicyDisabledParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType), TypeInfoPropertyName = "ContainerNetworkPolicyAllowlistParamType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageStatus), TypeInfoPropertyName = "MessageStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageRole), TypeInfoPropertyName = "MessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.InputTextContentType), TypeInfoPropertyName = "InputTextContentType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileCitationBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileCitationBodyType), TypeInfoPropertyName = "FileCitationBodyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlCitationBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UrlCitationBodyType), TypeInfoPropertyName = "UrlCitationBodyType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerFileCitationBodyType), TypeInfoPropertyName = "ContainerFileCitationBodyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Annotation), TypeInfoPropertyName = "Annotation2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnnotationDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnnotationDiscriminatorType), TypeInfoPropertyName = "AnnotationDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.TopLogProb))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LogProb))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -31452,6 +32783,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContentItem3), TypeInfoPropertyName = "ContentItem32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.MessageContentItemDiscriminatorType), TypeInfoPropertyName = "MessageContentItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClickButtonType), TypeInfoPropertyName = "ClickButtonType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ClickParamType), TypeInfoPropertyName = "ClickParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DoubleClickActionType), TypeInfoPropertyName = "DoubleClickActionType2")] @@ -31479,14 +32811,17 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType), TypeInfoPropertyName = "AutoCodeInterpreterToolParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy2), TypeInfoPropertyName = "NetworkPolicy22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType), TypeInfoPropertyName = "AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalShellToolParamType), TypeInfoPropertyName = "LocalShellToolParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamType), TypeInfoPropertyName = "ContainerAutoParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NetworkPolicy3), TypeInfoPropertyName = "NetworkPolicy32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType), TypeInfoPropertyName = "ContainerAutoParamNetworkPolicyDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.SkillsItem2), TypeInfoPropertyName = "SkillsItem22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType), TypeInfoPropertyName = "ContainerAutoParamSkillDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalSkillParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.LocalEnvironmentParamType), TypeInfoPropertyName = "LocalEnvironmentParamType2")] @@ -31496,6 +32831,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellToolParamType), TypeInfoPropertyName = "FunctionShellToolParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType), TypeInfoPropertyName = "FunctionShellToolParamEnvironmentVariant1DiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomTextFormatParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomTextFormatParamType), TypeInfoPropertyName = "CustomTextFormatParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.GrammarSyntax1), TypeInfoPropertyName = "GrammarSyntax12")] @@ -31504,6 +32840,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolParamType), TypeInfoPropertyName = "CustomToolParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Format2), TypeInfoPropertyName = "Format22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType), TypeInfoPropertyName = "CustomToolParamFormatDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EmptyModelParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionToolParamType), TypeInfoPropertyName = "FunctionToolParamType2")] @@ -31511,6 +32848,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolsItem13), TypeInfoPropertyName = "ToolsItem132")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType), TypeInfoPropertyName = "NamespaceToolParamToolDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchToolParamType), TypeInfoPropertyName = "ToolSearchToolParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApproximateLocation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApproximateLocationType), TypeInfoPropertyName = "ApproximateLocationType2")] @@ -31533,6 +32871,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallType), TypeInfoPropertyName = "FunctionShellCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentVariant12))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType), TypeInfoPropertyName = "FunctionShellCallEnvironmentVariant1DiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum), TypeInfoPropertyName = "FunctionShellCallOutputStatusEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType), TypeInfoPropertyName = "FunctionShellCallOutputTimeoutOutcomeType2")] @@ -31541,6 +32880,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Outcome), TypeInfoPropertyName = "Outcome2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType), TypeInfoPropertyName = "FunctionShellCallOutputContentOutcomeDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputType), TypeInfoPropertyName = "FunctionShellCallOutputType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallStatus), TypeInfoPropertyName = "ApplyPatchCallStatus2")] @@ -31553,6 +32893,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallType), TypeInfoPropertyName = "ApplyPatchToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Operation), TypeInfoPropertyName = "Operation2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType), TypeInfoPropertyName = "ApplyPatchToolCallOperationDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallOutputStatus), TypeInfoPropertyName = "ApplyPatchCallOutputStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputType), TypeInfoPropertyName = "ApplyPatchToolCallOutputType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DetailEnum), TypeInfoPropertyName = "DetailEnum2")] @@ -31570,6 +32911,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OutputVariant2Item), TypeInfoPropertyName = "OutputVariant2Item2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType), TypeInfoPropertyName = "FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchCallItemParamType), TypeInfoPropertyName = "ToolSearchCallItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ToolSearchOutputItemParamType), TypeInfoPropertyName = "ToolSearchOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactionSummaryItemParamType), TypeInfoPropertyName = "CompactionSummaryItemParamType2")] @@ -31578,12 +32920,14 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamType), TypeInfoPropertyName = "FunctionShellCallItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.EnvironmentVariant13))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType), TypeInfoPropertyName = "FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType), TypeInfoPropertyName = "FunctionShellCallOutputTimeoutOutcomeParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType), TypeInfoPropertyName = "FunctionShellCallOutputExitOutcomeParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam), TypeInfoPropertyName = "FunctionShellCallOutputOutcomeParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType), TypeInfoPropertyName = "FunctionShellCallOutputOutcomeParamDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputContentParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType), TypeInfoPropertyName = "FunctionShellCallOutputItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -31596,6 +32940,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType), TypeInfoPropertyName = "ApplyPatchUpdateFileOperationParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParam), TypeInfoPropertyName = "ApplyPatchOperationParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType), TypeInfoPropertyName = "ApplyPatchOperationParamDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType), TypeInfoPropertyName = "ApplyPatchToolCallItemParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam), TypeInfoPropertyName = "ApplyPatchCallOutputStatusParam2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType), TypeInfoPropertyName = "ApplyPatchToolCallOutputItemParamType2")] @@ -31646,6 +32991,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactResponseMethodPublicBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemField), TypeInfoPropertyName = "ItemField2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemFieldDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ItemFieldDiscriminatorType), TypeInfoPropertyName = "ItemFieldDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.CompactResourceObject), TypeInfoPropertyName = "CompactResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -31702,6 +33048,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ContentItem4), TypeInfoPropertyName = "ContentItem42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType), TypeInfoPropertyName = "UserMessageItemContentItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotationSource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.FileAnnotationSourceType), TypeInfoPropertyName = "FileAnnotationSourceType2")] @@ -31716,6 +33063,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AnnotationsItem3), TypeInfoPropertyName = "AnnotationsItem32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType), TypeInfoPropertyName = "ResponseOutputTextAnnotationDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantMessageItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantMessageItemObject), TypeInfoPropertyName = "AssistantMessageItemObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.AssistantMessageItemType), TypeInfoPropertyName = "AssistantMessageItemType2")] @@ -31738,6 +33086,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItem), TypeInfoPropertyName = "ThreadItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemDiscriminatorType), TypeInfoPropertyName = "ThreadItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemListResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadItemListResourceObject), TypeInfoPropertyName = "ThreadItemListResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -31751,6 +33100,7 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResourceObject), TypeInfoPropertyName = "ThreadResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Status), TypeInfoPropertyName = "Status2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType), TypeInfoPropertyName = "ThreadResourceStatusDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedThreadResource))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.DeletedThreadResourceObject), TypeInfoPropertyName = "DeletedThreadResourceObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.ThreadListResource))] @@ -31850,60 +33200,6 @@ internal sealed partial class SourceGenerationContextChunk4 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List>>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] internal sealed partial class SourceGenerationContextChunk5 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -32039,6 +33335,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter), @@ -32055,6 +33355,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter), @@ -32063,6 +33367,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter), @@ -32127,6 +33435,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter), @@ -32147,6 +33459,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter), @@ -32155,6 +33471,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter), @@ -32195,6 +33515,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter), @@ -32215,6 +33539,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter), @@ -32255,10 +33583,18 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter), @@ -32487,6 +33823,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter), @@ -32515,6 +33855,14 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter), @@ -32827,6 +34175,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter), @@ -32939,6 +34291,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter), @@ -32979,6 +34335,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter), @@ -33039,6 +34399,14 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter), @@ -33083,6 +34451,14 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter), @@ -33347,6 +34723,14 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter), @@ -33359,6 +34743,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter), @@ -33727,6 +35115,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), @@ -33775,6 +35167,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), @@ -33887,6 +35283,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter), @@ -33959,6 +35359,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), @@ -34307,6 +35711,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter), @@ -34323,6 +35731,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter), @@ -34367,6 +35779,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter), @@ -34635,6 +36051,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter), @@ -34875,6 +36295,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter), @@ -34987,6 +36411,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter), @@ -35135,6 +36563,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter), @@ -35307,6 +36739,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter), @@ -35355,6 +36791,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter), @@ -35447,6 +36887,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter), @@ -35463,6 +36907,14 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullableJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter), @@ -35475,6 +36927,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter), @@ -35491,6 +36947,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter), @@ -35499,6 +36959,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter), @@ -35559,6 +37023,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumNullableJsonConverter), @@ -35571,6 +37039,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter), @@ -35595,6 +37067,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter), @@ -35639,6 +37115,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter), @@ -35659,6 +37139,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter), @@ -35667,6 +37151,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter), @@ -35687,6 +37175,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter), @@ -35767,6 +37259,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.PromptCacheRetentionEnumNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter), @@ -35827,6 +37323,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter), @@ -35847,6 +37347,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter), @@ -35895,6 +37399,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter), @@ -35915,6 +37423,10 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter), typeof(global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter), @@ -36744,6 +38256,60 @@ internal sealed partial class SourceGenerationContextChunk5 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List>>), TypeInfoPropertyName = "CreateModerationRequestInputVariant3ItemVariant2_82fca1e83967e178")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "MessageDeltaContentImageUrlObject_9c7d436e0b6fe539")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "RunStepDeltaStepDetailsToolCallsFunctionObject_5640d9ed7ecfcd45")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.List, global::System.Collections.Generic.List>>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -37049,6 +38615,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallChunkTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionModalitiesVariant1ItemNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceTypeJsonConverter()); @@ -37057,10 +38625,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionNamedToolChoiceCustomTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageRoleNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestDeveloperMessageRoleNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestFunctionMessageRoleNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageContentPartAudioInputAudioFormatJsonConverter()); @@ -37093,6 +38665,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChatCompletionToolChoiceOptionEnumNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterFileOutputTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterTextOutputTypeJsonConverter()); @@ -37103,10 +38677,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallStatusNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ComparisonFilterTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CompoundFilterTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ComputerScreenshotImageTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ComputerToolCallTypeJsonConverter()); @@ -37127,6 +38705,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerResourceMemoryLimitNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerResourceNetworkPolicyTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ConversationItemListObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CostsResultObjectJsonConverter()); @@ -37137,6 +38717,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2FunctionCallJsonConverter()); @@ -37157,8 +38739,12 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateCompletionResponseObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyExpiresAfterAnchorNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyMemoryLimitNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestModelNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateEmbeddingRequestEncodingFormatJsonConverter()); @@ -37273,6 +38859,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestResponseFormatNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateSpeechRequestStreamFormatNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateThreadAndRunRequestModelNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyTypeJsonConverter()); @@ -37287,6 +38875,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionRequestChunkingStrategyVariant1NullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonTaskNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestModelNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CreateTranslationRequestResponseFormatJsonConverter()); @@ -37443,6 +39035,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventLevelNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FineTuningJobEventTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionToolCallStatusJsonConverter()); @@ -37499,6 +39093,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventBackgroundNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageEditPartialImageEventOutputFormatNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenCompletedEventSizeJsonConverter()); @@ -37519,6 +39115,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventBackgroundNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenPartialImageEventOutputFormatNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenToolTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenToolModelJsonConverter()); @@ -37549,6 +39147,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputAudioTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputAudioInputAudio1FormatNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputMessageTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputMessageTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputMessageRoleJsonConverter()); @@ -37571,6 +39173,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InviteRequestRoleNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InviteRequestProjectRoleNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ListAuditLogsResponseObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ListBatchesResponseObjectJsonConverter()); @@ -37703,12 +39309,18 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OtherChunkingStrategyResponseParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputAudioTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputMessageTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputMessageRoleNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputMessageStatusNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.PredictionContentTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ProjectObjectJsonConverter()); @@ -37893,6 +39505,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionCreatedTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeBetaServerEventTranscriptionSessionUpdatedTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventConversationItemDeleteTypeJsonConverter()); @@ -37917,6 +39531,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventSessionUpdateTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemFunctionCallTypeJsonConverter()); @@ -37973,6 +39589,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemWithReferenceContentItemTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretRequestExpiresAfterAnchorNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeFunctionToolTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeMCPApprovalRequestTypeJsonConverter()); @@ -38009,6 +39627,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsMaxOutputTokensNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventConversationItemAddedTypeJsonConverter()); @@ -38183,6 +39803,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGATypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranscriptionSessionCreateResponseGAIncludeItemNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventInputAudioBufferAppendTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionCloseTypeJsonConverter()); @@ -38191,6 +39813,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventSessionUpdateTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchorNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionClosedTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventSessionCreatedTypeJsonConverter()); @@ -38213,6 +39837,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTruncationEnumTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2JsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ReasoningSummary2NullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ReasoningGenerateSummary2JsonConverter()); @@ -38347,6 +39973,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDeltaEventTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseRefusalDoneEventTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseTextDeltaEventTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseTextDoneEventTypeJsonConverter()); @@ -38467,6 +40095,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadObjectObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadStreamEventVariant1EventNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolChoiceAllowedModeJsonConverter()); @@ -38523,6 +40153,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UsageResponseObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketObjectNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UsageVectorStoresResultObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UserObjectJsonConverter()); @@ -38597,6 +40229,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallStatusNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.WebhookBatchCancelledTypeJsonConverter()); @@ -38683,6 +40317,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UrlCitationBodyTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerFileCitationBodyTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.OutputTextContentTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.TextContentTypeJsonConverter()); @@ -38707,6 +40343,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MessagePhase2NullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MessageTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MessageTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionCallStatusNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputStatusEnumJsonConverter()); @@ -38753,6 +40391,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerMemoryLimitNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputFidelityJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputFidelityNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ImageGenActionEnumJsonConverter()); @@ -38761,12 +40401,18 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.LocalShellToolParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.LocalEnvironmentParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CustomTextFormatParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.GrammarSyntax1JsonConverter()); @@ -38775,10 +40421,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CustomGrammarFormatParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CustomToolParamTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolSearchToolParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApproximateLocationTypeJsonConverter()); @@ -38809,12 +40459,16 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ContainerReferenceResourceTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputStatusEnumNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusJsonConverter()); @@ -38827,6 +40481,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOutputTypeJsonConverter()); @@ -38849,6 +40505,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.InputFileContentParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolSearchCallItemParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ToolSearchOutputItemParamTypeJsonConverter()); @@ -38859,10 +40517,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemStatusNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputTimeoutOutcomeParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputExitOutcomeParamTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputItemParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallStatusParamJsonConverter()); @@ -38873,6 +40535,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchDeleteFileOperationParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchUpdateFileOperationParamTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallItemParamTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ApplyPatchCallOutputStatusParamJsonConverter()); @@ -38913,6 +40577,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.TokenCountsResourceObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.PromptCacheRetentionEnumJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.PromptCacheRetentionEnumNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.CompactResourceObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.SkillResourceObjectJsonConverter()); @@ -38943,6 +40609,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UserMessageItemObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UserMessageItemTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FileAnnotationSourceTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.FileAnnotationTypeJsonConverter()); @@ -38953,6 +40621,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.UrlAnnotationTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.AssistantMessageItemTypeJsonConverter()); @@ -38977,6 +40647,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.TaskGroupItemTypeNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadItemListResourceObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ActiveStatusTypeJsonConverter()); @@ -38987,6 +40659,8 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ClosedStatusTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadResourceObjectNullableJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.DeletedThreadResourceObjectNullableJsonConverter()); options.Converters.Add(new global::tryAGI.OpenAI.JsonConverters.ThreadListResourceObjectJsonConverter()); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs index c281fc73..b34ff166 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs @@ -804,10411 +804,10627 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type194 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType? Type194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionModalitiesVariant1Item? Type195 { get; set; } + public global::System.Collections.Generic.IList? Type195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type196 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionModalitiesVariant1Item? Type196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type197 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoice? Type197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type198 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceType? Type198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom? Type199 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceFunction? Type199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType? Type200 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustom? Type200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom? Type201 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomType? Type201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type202 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionNamedToolChoiceCustomCustom? Type202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type203 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessage? Type203 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type204 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type205 { get; set; } + public global::System.Collections.Generic.IList? Type205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type206 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPart? Type206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio2? Type207 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageRole? Type207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall2? Type208 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageAudio2? Type208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type209 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageFunctionCall2? Type209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? Type210 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? Type210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type211 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminator? Type211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type212 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? Type213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type214 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type215 { get; set; } + public global::System.Collections.Generic.IList? Type215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type216 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessageRole? Type216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type217 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? Type217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type218 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessageRole? Type218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type219 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessage? Type219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type220 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? Type220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? Type221 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? Type221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type222 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessage? Type222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type223 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminator? Type223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type224 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole? Type224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type225 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudio? Type225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type226 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioType? Type226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type227 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudio? Type227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type228 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartAudioInputAudioFormat? Type228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type229 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFile? Type229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type230 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileType? Type230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type231 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartFileFile? Type231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type232 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageType? Type232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type233 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrl? Type233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type234 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartImageImageUrlDetail? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusalType? Type235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type236 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartTextType? Type236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type237 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type239 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageContentPart? Type239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestSystemMessageRole? Type240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type241 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageRole? Type241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type242 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type244 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestToolMessageContentPart? Type244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type245 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type247 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageContentPart? Type247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type248 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRequestUserMessageRole? Type248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type250 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotation? Type250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type251 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationType? Type251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio2? Type252 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAnnotationUrlCitation? Type252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionRole? Type253 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageRole? Type253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamOptionsVariant1? Type254 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageFunctionCall? Type254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type255 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionResponseMessageAudio2? Type255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type256 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionRole? Type256 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type257 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamOptionsVariant1? Type257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type258 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDelta? Type258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type259 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaFunctionCall? Type259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type260 { get; set; } + public global::System.Collections.Generic.IList? Type260 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type261 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionStreamResponseDeltaRole? Type261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type262 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTokenLogprob? Type262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionTool? Type263 { get; set; } + public global::System.Collections.Generic.IList? Type263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolType? Type264 { get; set; } + public global::System.Collections.Generic.IList? Type264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type265 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTokenLogprobTopLogprob? Type265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type266 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionTool? Type266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type267 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolType? Type267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type268 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? Type268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? Type269 { get; set; } + public global::tryAGI.OpenAI.ChatCompletionToolChoiceOptionEnum? Type269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type270 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParam? Type270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type271 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminator? Type272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type273 { get; set; } + public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType? Type273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type274 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutput? Type274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type275 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutputType? Type275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterTool? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolType? Type277 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterFileOutputFile? Type277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type278 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTextOutput? Type278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParam? Type279 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTextOutputType? Type279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type280 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterTool? Type280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type281 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolType? Type281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type282 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParam? Type283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputsVariant1Item? Type284 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCall? Type284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type285 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallType? Type285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type286 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallStatus? Type286 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type287 { get; set; } + public global::System.Collections.Generic.IList? Type287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComparisonFilter? Type288 { get; set; } + public global::tryAGI.OpenAI.OutputsVariant1Item? Type288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComparisonFilterType? Type289 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogs? Type289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>>? Type290 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImage? Type290 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type291 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator? Type291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type292 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompleteUploadRequest? Type293 { get; set; } + public global::tryAGI.OpenAI.ComparisonFilter? Type293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsage? Type294 { get; set; } + public global::tryAGI.OpenAI.ComparisonFilterType? Type294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type295 { get; set; } + public global::tryAGI.OpenAI.OneOf>>? Type295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type296 { get; set; } + public global::System.Collections.Generic.IList>? Type296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilter? Type297 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilterType? Type298 { get; set; } + public global::tryAGI.OpenAI.CompleteUploadRequest? Type298 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type299 { get; set; } + public global::tryAGI.OpenAI.CompletionUsage? Type299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FiltersItem? Type300 { get; set; } + public global::tryAGI.OpenAI.CompletionUsageCompletionTokensDetails? Type300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompoundFilterFilterDiscriminator? Type301 { get; set; } + public global::tryAGI.OpenAI.CompletionUsagePromptTokensDetails? Type301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerAction? Type302 { get; set; } + public global::tryAGI.OpenAI.CompoundFilter? Type302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickParam? Type303 { get; set; } + public global::tryAGI.OpenAI.CompoundFilterType? Type303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClickAction? Type304 { get; set; } + public global::System.Collections.Generic.IList? Type304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragParam? Type305 { get; set; } + public global::tryAGI.OpenAI.FiltersItem? Type305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPressAction? Type306 { get; set; } + public global::tryAGI.OpenAI.CompoundFilterFilterDiscriminator? Type306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MoveParam? Type307 { get; set; } + public global::tryAGI.OpenAI.ComputerAction? Type307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScreenshotParam? Type308 { get; set; } + public global::tryAGI.OpenAI.ClickParam? Type308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScrollParam? Type309 { get; set; } + public global::tryAGI.OpenAI.DoubleClickAction? Type309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TypeParam? Type310 { get; set; } + public global::tryAGI.OpenAI.DragParam? Type310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitParam? Type311 { get; set; } + public global::tryAGI.OpenAI.KeyPressAction? Type311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerActionDiscriminator? Type312 { get; set; } + public global::tryAGI.OpenAI.MoveParam? Type312 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type313 { get; set; } + public global::tryAGI.OpenAI.ScreenshotParam? Type313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotImage? Type314 { get; set; } + public global::tryAGI.OpenAI.ScrollParam? Type314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type315 { get; set; } + public global::tryAGI.OpenAI.TypeParam? Type315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCall? Type316 { get; set; } + public global::tryAGI.OpenAI.WaitParam? Type316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallType? Type317 { get; set; } + public global::tryAGI.OpenAI.ComputerActionDiscriminator? Type317 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type318 { get; set; } + public global::tryAGI.OpenAI.ComputerActionDiscriminatorType? Type318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type319 { get; set; } + public global::System.Collections.Generic.IList? Type319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallStatus? Type320 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotImage? Type320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutput? Type321 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotImageType? Type321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type322 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCall? Type322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type323 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallType? Type323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type324 { get; set; } + public global::System.Collections.Generic.IList? Type324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type325 { get; set; } + public global::tryAGI.OpenAI.ComputerCallSafetyCheckParam? Type325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputStatus? Type326 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallStatus? Type326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileListResource? Type327 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutput? Type327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type328 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputType? Type328 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type329 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputStatus? Type329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileResource? Type330 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResource? Type330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerListResource? Type331 { get; set; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Type331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerListResourceObject? Type332 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputStatus? Type332 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type333 { get; set; } + public global::tryAGI.OpenAI.ContainerFileListResource? Type333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResource? Type334 { get; set; } + public global::tryAGI.OpenAI.ContainerFileListResourceObject? Type334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type335 { get; set; } + public global::System.Collections.Generic.IList? Type335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type336 { get; set; } + public global::tryAGI.OpenAI.ContainerFileResource? Type336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceMemoryLimit? Type337 { get; set; } + public global::tryAGI.OpenAI.ContainerListResource? Type337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceNetworkPolicy? Type338 { get; set; } + public global::tryAGI.OpenAI.ContainerListResourceObject? Type338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerResourceNetworkPolicyType? Type339 { get; set; } + public global::System.Collections.Generic.IList? Type339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Content5? Type340 { get; set; } + public global::tryAGI.OpenAI.ContainerResource? Type340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContent? Type341 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceExpiresAfter? Type341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContent? Type342 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceExpiresAfterAnchor? Type342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItem? Type343 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceMemoryLimit? Type343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Message? Type344 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceNetworkPolicy? Type344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResource? Type345 { get; set; } + public global::tryAGI.OpenAI.ContainerResourceNetworkPolicyType? Type345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type346 { get; set; } + public global::tryAGI.OpenAI.Content5? Type346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCall? Type347 { get; set; } + public global::tryAGI.OpenAI.InputContent? Type347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCall? Type348 { get; set; } + public global::tryAGI.OpenAI.OutputContent? Type348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCall? Type349 { get; set; } + public global::tryAGI.OpenAI.ConversationItem? Type349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCall? Type350 { get; set; } + public global::tryAGI.OpenAI.Message? Type350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutput? Type351 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallResource? Type351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItem? Type352 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResource? Type352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionBody? Type353 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCall? Type353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCall? Type354 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCall? Type354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type355 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCall? Type355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCall? Type356 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCall? Type356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutput? Type357 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutput? Type357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCall? Type358 { get; set; } + public global::tryAGI.OpenAI.ReasoningItem? Type358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutput? Type359 { get; set; } + public global::tryAGI.OpenAI.CompactionBody? Type359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListTools? Type360 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCall? Type360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequest? Type361 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutput? Type361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type362 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCall? Type362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCall? Type363 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutput? Type363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCall? Type364 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCall? Type364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutput? Type365 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutput? Type365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemDiscriminator? Type366 { get; set; } + public global::tryAGI.OpenAI.MCPListTools? Type366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemList? Type367 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalRequest? Type367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationItemListObject? Type368 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseResource? Type368 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type369 { get; set; } + public global::tryAGI.OpenAI.MCPToolCall? Type369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationParam? Type370 { get; set; } + public global::tryAGI.OpenAI.CustomToolCall? Type370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationParam2? Type371 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutput? Type371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResult? Type372 { get; set; } + public global::tryAGI.OpenAI.ConversationItemDiscriminator? Type372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResultObject? Type373 { get; set; } + public global::tryAGI.OpenAI.ConversationItemDiscriminatorType? Type373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CostsResultAmount? Type374 { get; set; } + public global::tryAGI.OpenAI.ConversationItemList? Type374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequest? Type375 { get; set; } + public global::tryAGI.OpenAI.ConversationItemListObject? Type375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type376 { get; set; } + public global::System.Collections.Generic.IList? Type376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningEffortEnum? Type377 { get; set; } + public global::tryAGI.OpenAI.ConversationParam? Type377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResources2? Type378 { get; set; } + public global::tryAGI.OpenAI.ConversationParam2? Type378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type379 { get; set; } + public global::tryAGI.OpenAI.CostsResult? Type379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type380 { get; set; } + public global::tryAGI.OpenAI.CostsResultObject? Type380 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type381 { get; set; } + public global::tryAGI.OpenAI.CostsResultAmount? Type381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type382 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequest? Type382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type383 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type384 { get; set; } + public global::tryAGI.OpenAI.ReasoningEffortEnum? Type384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type385 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResources2? Type385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type386 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesCodeInterpreter? Type386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type387 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearch? Type387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type388 { get; set; } + public global::System.Collections.Generic.IList? Type388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModelResponseProperties? Type389 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStore? Type389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type390 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type390 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type391 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsShared? Type392 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type392 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type393 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VerbosityEnum? Type394 { get; set; } + public global::tryAGI.OpenAI.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type395 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequest? Type395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type396 { get; set; } + public global::tryAGI.OpenAI.CreateModelResponseProperties? Type396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type397 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchLocation? Type398 { get; set; } + public global::System.Collections.Generic.IList? Type398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchContextSize? Type399 { get; set; } + public global::tryAGI.OpenAI.ModelIdsShared? Type399 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormat? Type400 { get; set; } + public global::System.Collections.Generic.IList? Type400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator? Type401 { get; set; } + public global::tryAGI.OpenAI.VerbosityEnum? Type401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type402 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? Type402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoice? Type403 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocation? Type403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type404 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationType? Type404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StopConfiguration? Type405 { get; set; } + public global::tryAGI.OpenAI.WebSearchLocation? Type405 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type406 { get; set; } + public global::tryAGI.OpenAI.WebSearchContextSize? Type406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PredictionContent? Type407 { get; set; } + public global::tryAGI.OpenAI.ResponseFormat? Type407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type408 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator? Type408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type409 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? Type409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletions? Type410 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type411 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoice? Type411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type412 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type412 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type413 { get; set; } + public global::tryAGI.OpenAI.StopConfiguration? Type413 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type414 { get; set; } + public global::System.Collections.Generic.Dictionary? Type414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type415 { get; set; } + public global::tryAGI.OpenAI.PredictionContent? Type415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type416 { get; set; } + public global::System.Collections.Generic.IList>? Type416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs2? Type417 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type417 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type418 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletions? Type418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ServiceTierEnum? Type419 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type420 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type421 { get; set; } + public global::System.Collections.Generic.IList? Type421 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type422 { get; set; } + public global::System.Collections.Generic.IList? Type422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type423 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoice? Type423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type424 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceFinishReason? Type424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type425 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseChoiceLogprobs2? Type425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type426 { get; set; } + public global::System.Collections.Generic.IList? Type426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionRequest? Type427 { get; set; } + public global::tryAGI.OpenAI.ServiceTierEnum? Type427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type428 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionResponseObject? Type428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type429 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponse? Type429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type430 { get; set; } + public global::System.Collections.Generic.IList? Type430 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type431 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoice? Type431 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type432 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceLogprobs? Type432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponse? Type433 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseChoiceFinishReason? Type433 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type434 { get; set; } + public global::tryAGI.OpenAI.CreateChatCompletionStreamResponseObject? Type434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type435 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionRequest? Type435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type436 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs2? Type437 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionRequestModel? Type437 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type438 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::System.Collections.Generic.IList, global::System.Collections.Generic.IList>>? Type438 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type439 { get; set; } + public global::System.Collections.Generic.IList? Type439 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type440 { get; set; } + public global::System.Collections.Generic.IList>? Type440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type441 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponse? Type441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBody? Type442 { get; set; } + public global::System.Collections.Generic.IList? Type442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type443 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoice? Type443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type444 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceFinishReason? Type444 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type445 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseChoiceLogprobs2? Type445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem? Type446 { get; set; } + public global::System.Collections.Generic.IList? Type446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillReferenceParam? Type447 { get; set; } + public global::System.Collections.Generic.IList>? Type447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillParam? Type448 { get; set; } + public global::System.Collections.Generic.Dictionary? Type448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator? Type449 { get; set; } + public global::tryAGI.OpenAI.CreateCompletionResponseObject? Type449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyMemoryLimit? Type450 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBody? Type450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy? Type451 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfter? Type451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Type452 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyExpiresAfterAnchor? Type452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? Type453 { get; set; } + public global::System.Collections.Generic.IList? Type453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator? Type454 { get; set; } + public global::tryAGI.OpenAI.SkillsItem? Type454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateContainerFileBody? Type455 { get; set; } + public global::tryAGI.OpenAI.SkillReferenceParam? Type455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type456 { get; set; } + public global::tryAGI.OpenAI.InlineSkillParam? Type456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type457 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminator? Type457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type458 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType? Type458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type459 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyMemoryLimit? Type459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type460 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy? Type460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type461 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Type461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Embedding? Type462 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? Type462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type463 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminator? Type463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type464 { get; set; } + public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType? Type464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type465 { get; set; } + public global::tryAGI.OpenAI.CreateContainerFileBody? Type465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type466 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequest? Type466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages? Type467 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType? Type468 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequestModel? Type468 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type469 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingRequestEncodingFormat? Type469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type470 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponse? Type470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessage? Type471 { get; set; } + public global::System.Collections.Generic.IList? Type471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItem? Type472 { get; set; } + public global::tryAGI.OpenAI.Embedding? Type472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages? Type473 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponseObject? Type473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType? Type474 { get; set; } + public global::tryAGI.OpenAI.CreateEmbeddingResponseUsage? Type474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type475 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSource? Type475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type476 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceType? Type476 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type477 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessages? Type477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type478 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesTemplateInputMessagesType? Type478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type479 { get; set; } + public global::System.Collections.Generic.IList>? Type479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type480 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type481 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessage? Type481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type482 { get; set; } + public global::tryAGI.OpenAI.EvalItem? Type482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type483 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessages? Type483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalItem? Type484 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceInputMessagesItemReferenceInputMessagesType? Type484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage? Type485 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCompletionsRunDataSourceSamplingParams? Type485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type486 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type487 { get; set; } + public global::System.Collections.Generic.IList? Type487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type488 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type489 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSource? Type489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type490 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileIdSource? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsSource? Type491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type492 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfig? Type492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type493 { get; set; } + public global::tryAGI.OpenAI.CreateEvalCustomDataSourceConfigType? Type493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRequest? Type494 { get; set; } + public global::tryAGI.OpenAI.CreateEvalItem? Type494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type495 { get; set; } + public global::tryAGI.OpenAI.CreateEvalItemSimpleInputMessage? Type495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type496 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSource? Type496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type497 { get; set; } + public global::tryAGI.OpenAI.CreateEvalJsonlRunDataSourceType? Type497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderStringCheck? Type498 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type499 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLabelModelGrader? Type499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderPython? Type500 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLabelModelGraderType? Type500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModel? Type501 { get; set; } + public global::System.Collections.Generic.IList? Type501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type502 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfig? Type502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type503 { get; set; } + public global::tryAGI.OpenAI.CreateEvalLogsDataSourceConfigType? Type503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplate? Type504 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRequest? Type504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType? Type505 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type505 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type506 { get; set; } + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfig? Type506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type507 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItem? Type508 { get; set; } + public global::tryAGI.OpenAI.EvalGraderStringCheck? Type508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference? Type509 { get; set; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarity? Type509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType? Type510 { get; set; } + public global::tryAGI.OpenAI.EvalGraderPython? Type510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type511 { get; set; } + public global::tryAGI.OpenAI.EvalGraderScoreModel? Type511 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type512 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSource? Type512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Tool? Type513 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceType? Type513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type514 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplate? Type514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type515 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateType? Type515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type516 { get; set; } + public global::System.Collections.Generic.IList>? Type516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalResponsesSource? Type517 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalRunRequest? Type518 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesTemplateTemplateItem? Type518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type519 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReference? Type519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type520 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceInputMessagesInputMessagesItemReferenceType? Type520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFileRequest? Type521 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParams? Type521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFileRequestPurpose? Type522 { get; set; } + public global::System.Collections.Generic.IList? Type522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileExpirationAfter? Type523 { get; set; } + public global::tryAGI.OpenAI.Tool? Type523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type524 { get; set; } + public global::tryAGI.OpenAI.CreateEvalResponsesRunDataSourceSamplingParamsText? Type524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type525 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Type525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type526 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type527 { get; set; } + public global::tryAGI.OpenAI.EvalResponsesSource? Type527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type528 { get; set; } + public global::tryAGI.OpenAI.CreateEvalRunRequest? Type528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type529 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type530 { get; set; } + public global::tryAGI.OpenAI.CreateEvalStoredCompletionsDataSourceConfigType? Type530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type531 { get; set; } + public global::tryAGI.OpenAI.CreateFileRequest? Type531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type532 { get; set; } + public global::tryAGI.OpenAI.CreateFileRequestPurpose? Type532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type533 { get; set; } + public global::tryAGI.OpenAI.FileExpirationAfter? Type533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type534 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningCheckpointPermissionRequest? Type534 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type535 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequest? Type535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type536 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type537 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestModel? Type537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type538 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparameters? Type538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneMethod? Type539 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateGroupBody? Type540 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersBatchSize? Type540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateGroupUserBody? Type541 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequest? Type542 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersLearningRateMultiplier? Type542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf>? Type543 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type543 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type544 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestHyperparametersNEpochs? Type544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type545 { get; set; } + public global::System.Collections.Generic.IList? Type545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type546 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegration? Type546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type547 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationType? Type547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type548 { get; set; } + public global::tryAGI.OpenAI.CreateFineTuningJobRequestIntegrationWandb? Type548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type549 { get; set; } + public global::tryAGI.OpenAI.FineTuneMethod? Type549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type550 { get; set; } + public global::tryAGI.OpenAI.CreateGroupBody? Type550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type551 { get; set; } + public global::tryAGI.OpenAI.CreateGroupUserBody? Type551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFidelity? Type552 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequest? Type552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type553 { get; set; } + public global::tryAGI.OpenAI.AnyOf>? Type553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequest? Type554 { get; set; } + public global::System.Collections.Generic.IList? Type554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type555 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestBackground? Type555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestModel? Type556 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestQuality? Type557 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestModel? Type557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type558 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type559 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestSize? Type559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type560 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestResponseFormat? Type560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestSize? Type561 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestOutputFormat? Type561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestModeration? Type562 { get; set; } + public global::tryAGI.OpenAI.InputFidelity? Type562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestBackground? Type563 { get; set; } + public global::tryAGI.OpenAI.CreateImageEditRequestQuality? Type563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageRequestStyle? Type564 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequest? Type564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequest? Type565 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type566 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestModel? Type566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type567 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestQuality? Type567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type568 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestResponseFormat? Type568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type569 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestOutputFormat? Type569 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequest? Type570 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestRole? Type571 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestSize? Type571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>>? Type572 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestModeration? Type572 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type573 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestBackground? Type573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type574 { get; set; } + public global::tryAGI.OpenAI.CreateImageRequestStyle? Type574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObject? Type575 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequest? Type575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObject? Type576 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type577 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestModel? Type577 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type578 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestResponseFormat? Type578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateMessageRequestAttachmentsVariant1Item? Type579 { get; set; } + public global::tryAGI.OpenAI.CreateImageVariationRequestSize? Type579 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type580 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequest? Type580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type581 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestRole? Type581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelResponseProperties? Type582 { get; set; } + public global::tryAGI.OpenAI.OneOf>>? Type582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type583 { get; set; } + public global::System.Collections.Generic.IList>? Type583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequest? Type584 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type584 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type585 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObject? Type585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type586 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObject? Type586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type587 { get; set; } + public global::tryAGI.OpenAI.MessageRequestContentTextObject? Type587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type588 { get; set; } + public global::System.Collections.Generic.IList? Type588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type589 { get; set; } + public global::tryAGI.OpenAI.CreateMessageRequestAttachmentsVariant1Item? Type589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type590 { get; set; } + public global::System.Collections.Generic.IList>? Type590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type591 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type592 { get; set; } + public global::tryAGI.OpenAI.ModelResponseProperties? Type592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationRequestModel? Type593 { get; set; } + public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponse? Type594 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequest? Type594 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type595 { get; set; } + public global::System.Collections.Generic.IList>? Type595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResult? Type596 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type597 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1? Type597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type598 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1Type? Type598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type599 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant1ImageUrl? Type599 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type600 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2? Type600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type601 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestInputVariant3ItemVariant2Type? Type601 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type602 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type603 { get; set; } + public global::tryAGI.OpenAI.CreateModerationRequestModel? Type603 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type604 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponse? Type604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type605 { get; set; } + public global::System.Collections.Generic.IList? Type605 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type606 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResult? Type606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type607 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategories? Type607 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type608 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryScores? Type608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type609 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypes? Type609 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type610 { get; set; } + public global::System.Collections.Generic.IList? Type610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type611 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateItem? Type611 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type612 { get; set; } + public global::System.Collections.Generic.IList? Type612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type613 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHateThreateningItem? Type613 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type614 { get; set; } + public global::System.Collections.Generic.IList? Type614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type615 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentItem? Type615 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type616 { get; set; } + public global::System.Collections.Generic.IList? Type616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type617 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesHarassmentThreateningItem? Type617 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type618 { get; set; } + public global::System.Collections.Generic.IList? Type618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type619 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitItem? Type619 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type620 { get; set; } + public global::System.Collections.Generic.IList? Type620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type621 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesIllicitViolentItem? Type621 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type622 { get; set; } + public global::System.Collections.Generic.IList? Type622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type623 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmItem? Type623 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type624 { get; set; } + public global::System.Collections.Generic.IList? Type624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type625 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmIntentItem? Type625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateResponse? Type626 { get; set; } + public global::System.Collections.Generic.IList? Type626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseProperties? Type627 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSelfHarmInstruction? Type627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateResponseVariant3? Type628 { get; set; } + public global::System.Collections.Generic.IList? Type628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputParam? Type629 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualItem? Type629 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type630 { get; set; } + public global::System.Collections.Generic.IList? Type630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.IncludeEnum? Type631 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesSexualMinor? Type631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamOptionsVariant1? Type632 { get; set; } + public global::System.Collections.Generic.IList? Type632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type633 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceItem? Type633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContextManagementParam? Type634 { get; set; } + public global::System.Collections.Generic.IList? Type634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunRequest? Type635 { get; set; } + public global::tryAGI.OpenAI.CreateModerationResponseResultCategoryAppliedInputTypesViolenceGraphicItem? Type635 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type636 { get; set; } + public global::tryAGI.OpenAI.CreateResponse? Type636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type637 { get; set; } + public global::tryAGI.OpenAI.ResponseProperties? Type637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationObject? Type638 { get; set; } + public global::tryAGI.OpenAI.CreateResponseVariant3? Type638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type639 { get; set; } + public global::tryAGI.OpenAI.InputParam? Type639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequest? Type640 { get; set; } + public global::System.Collections.Generic.IList? Type640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type641 { get; set; } + public global::tryAGI.OpenAI.IncludeEnum? Type641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type642 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamOptionsVariant1? Type642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type643 { get; set; } + public global::System.Collections.Generic.IList? Type643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type644 { get; set; } + public global::tryAGI.OpenAI.ContextManagementParam? Type644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type645 { get; set; } + public global::tryAGI.OpenAI.CreateRunRequest? Type645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type646 { get; set; } + public global::System.Collections.Generic.IList? Type646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type647 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type648 { get; set; } + public global::tryAGI.OpenAI.TruncationObject? Type648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type649 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequest? Type650 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequest? Type650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type651 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type652 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestModel? Type652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type653 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestResponseFormat? Type653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type654 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechRequestStreamFormat? Type654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type655 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEvent? Type655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResources2? Type656 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEvent? Type656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type657 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEvent? Type657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type658 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminator? Type658 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type659 { get; set; } + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? Type659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type660 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequest? Type660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type661 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequest? Type661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type662 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type663 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestModel? Type663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type664 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResources? Type664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type665 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesCodeInterpreter? Type665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type666 { get; set; } + public global::tryAGI.OpenAI.CreateThreadAndRunRequestToolResourcesFileSearch? Type666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type667 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResources2? Type667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type668 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesCodeInterpreter? Type668 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type669 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearch? Type669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionInclude? Type670 { get; set; } + public global::System.Collections.Generic.IList? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type671 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStore? Type671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type672 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategy? Type672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type673 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyAutoChunkingStrategyType? Type673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1? Type674 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategy? Type674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfig? Type675 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyType? Type675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson? Type676 { get; set; } + public global::tryAGI.OpenAI.CreateThreadRequestToolResourcesFileSearchVectorStoreChunkingStrategyStaticChunkingStrategyStatic? Type676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask? Type677 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequest? Type677 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type678 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegment? Type679 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestModel? Type679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage? Type680 { get; set; } + public global::System.Collections.Generic.IList? Type680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type681 { get; set; } + public global::tryAGI.OpenAI.TranscriptionInclude? Type681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type682 { get; set; } + public global::System.Collections.Generic.IList? Type682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator? Type683 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestTimestampGranularitie? Type683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type684 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type685 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionRequestChunkingStrategyVariant1? Type685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type686 { get; set; } + public global::tryAGI.OpenAI.VadConfig? Type686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type687 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJson? Type687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type688 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonTask? Type688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEvent? Type689 { get; set; } + public global::System.Collections.Generic.IList? Type689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type690 { get; set; } + public global::tryAGI.OpenAI.TranscriptionDiarizedSegment? Type690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type691 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsage? Type691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type692 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokens? Type692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type693 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDuration? Type693 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type694 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator? Type694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionWord? Type695 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? Type695 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type696 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJson? Type696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionSegment? Type697 { get; set; } + public global::System.Collections.Generic.IList? Type697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequest? Type698 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseJsonLogprob? Type698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type699 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type700 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEvent? Type700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type701 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextSegmentEvent? Type701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type702 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEvent? Type702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type703 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEvent? Type703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequest? Type704 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminator? Type704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type705 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? Type705 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type706 { get; set; } + public global::tryAGI.OpenAI.CreateTranscriptionResponseVerboseJson? Type706 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type707 { get; set; } + public global::System.Collections.Generic.IList? Type707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type708 { get; set; } + public global::tryAGI.OpenAI.TranscriptionWord? Type708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type709 { get; set; } + public global::System.Collections.Generic.IList? Type709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type710 { get; set; } + public global::tryAGI.OpenAI.TranscriptionSegment? Type710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type711 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequest? Type711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVoiceConsentRequest? Type712 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVoiceRequest? Type713 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestModel? Type713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallType? Type714 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationRequestResponseFormat? Type714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputType? Type715 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseJson? Type715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type716 { get; set; } + public global::tryAGI.OpenAI.CreateTranslationResponseVerboseJson? Type716 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type717 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequest? Type717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput? Type718 { get; set; } + public global::tryAGI.OpenAI.CreateUploadRequestPurpose? Type718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputResource? Type719 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileBatchRequest? Type719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Type720 { get; set; } + public global::System.Collections.Generic.IList? Type720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputStatusEnum? Type721 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreFileRequest? Type721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallResource? Type722 { get; set; } + public global::tryAGI.OpenAI.CreateVectorStoreRequest? Type722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Type723 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfter? Type723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallStatus? Type724 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type725 { get; set; } + public global::tryAGI.OpenAI.CreateVoiceConsentRequest? Type725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type726 { get; set; } + public global::tryAGI.OpenAI.CreateVoiceRequest? Type726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type727 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallType? Type727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat? Type728 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputType? Type728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType? Type729 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat? Type730 { get; set; } + public global::System.Collections.Generic.IList? Type730 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType? Type731 { get; set; } + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutput? Type731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar? Type732 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputResource? Type732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax? Type733 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Type733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponse? Type734 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputStatusEnum? Type734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type735 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallResource? Type735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponse? Type736 { get; set; } + public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Type736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type737 { get; set; } + public global::tryAGI.OpenAI.FunctionCallStatus? Type737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponse? Type738 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFileResponseObject? Type739 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type740 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type741 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormat? Type741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponse? Type742 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatTextFormatType? Type742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type743 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormat? Type743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteModelResponse? Type744 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatType? Type744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponse? Type745 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammar? Type745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type746 { get; set; } + public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatGrammarFormatGrammarSyntax? Type746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type747 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponse? Type747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type748 { get; set; } + public global::tryAGI.OpenAI.DeleteAssistantResponseObject? Type748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type749 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponse? Type749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type750 { get; set; } + public global::tryAGI.OpenAI.DeleteCertificateResponseObject? Type750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversation? Type751 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponse? Type751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResource? Type752 { get; set; } + public global::tryAGI.OpenAI.DeleteFileResponseObject? Type752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedRoleAssignmentResource? Type753 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponse? Type753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventEvent? Type754 { get; set; } + public global::tryAGI.OpenAI.DeleteFineTuningCheckpointPermissionResponseObject? Type754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoneEventData? Type755 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponse? Type755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageRole? Type756 { get; set; } + public global::tryAGI.OpenAI.DeleteMessageResponseObject? Type756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type757 { get; set; } + public global::tryAGI.OpenAI.DeleteModelResponse? Type757 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type758 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponse? Type758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhase? Type759 { get; set; } + public global::tryAGI.OpenAI.DeleteThreadResponseObject? Type759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EasyInputMessageType? Type760 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponse? Type760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParam? Type761 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreFileResponseObject? Type761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type762 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponse? Type762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamModel? Type763 { get; set; } + public global::tryAGI.OpenAI.DeleteVectorStoreResponseObject? Type763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type764 { get; set; } + public global::tryAGI.OpenAI.DeletedConversation? Type764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageRefParam? Type765 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResource? Type765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamQuality2? Type766 { get; set; } + public global::tryAGI.OpenAI.DeletedRoleAssignmentResource? Type766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity2? Type767 { get; set; } + public global::tryAGI.OpenAI.DoneEventEvent? Type767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamSize2? Type768 { get; set; } + public global::tryAGI.OpenAI.DoneEventData? Type768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat2? Type769 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageRole? Type769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamModeration2? Type770 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EditImageBodyJsonParamBackground2? Type771 { get; set; } + public global::System.Collections.Generic.IList? Type771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type772 { get; set; } + public global::tryAGI.OpenAI.MessagePhase? Type772 { get; set; } /// /// /// - public float? Type773 { get; set; } + public global::tryAGI.OpenAI.EasyInputMessageType? Type773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmbeddingObject? Type774 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParam? Type774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error? Type775 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorEventEvent? Type776 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamModel? Type776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ErrorResponse? Type777 { get; set; } + public global::System.Collections.Generic.IList? Type777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Eval? Type778 { get; set; } + public global::tryAGI.OpenAI.ImageRefParam? Type778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalObject? Type779 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamQuality2? Type779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type780 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamInputFidelity2? Type780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type781 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamSize2? Type781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type782 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamOutputFormat2? Type782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type783 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamModeration2? Type783 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type784 { get; set; } + public global::tryAGI.OpenAI.EditImageBodyJsonParamBackground2? Type784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type785 { get; set; } + public global::System.Collections.Generic.IList? Type785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderLabelModel? Type786 { get; set; } + public float? Type786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalApiError? Type787 { get; set; } + public global::tryAGI.OpenAI.EmbeddingObject? Type787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type788 { get; set; } + public global::tryAGI.OpenAI.Error? Type788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModel? Type789 { get; set; } + public global::tryAGI.OpenAI.ErrorEventEvent? Type789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPython? Type790 { get; set; } + public global::tryAGI.OpenAI.ErrorResponse? Type790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type791 { get; set; } + public global::tryAGI.OpenAI.Eval? Type791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModel? Type792 { get; set; } + public global::tryAGI.OpenAI.EvalObject? Type792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type793 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheck? Type794 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfig? Type794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarity? Type795 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfig? Type795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type796 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfig? Type796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemRole? Type797 { get; set; } + public global::System.Collections.Generic.IList>? Type797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContent? Type798 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemType? Type799 { get; set; } + public global::tryAGI.OpenAI.EvalGraderLabelModel? Type799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentItem? Type800 { get; set; } + public global::tryAGI.OpenAI.EvalApiError? Type800 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type801 { get; set; } + public global::tryAGI.OpenAI.EvalCustomDataSourceConfigType? Type801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContent? Type802 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModel? Type802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentOutputText? Type803 { get; set; } + public global::tryAGI.OpenAI.GraderPython? Type803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemInputImage? Type804 { get; set; } + public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Type804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudio? Type805 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModel? Type805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemContentOutputTextType? Type806 { get; set; } + public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Type806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalItemInputImageType? Type807 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheck? Type807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type808 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarity? Type808 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type809 { get; set; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Type809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type810 { get; set; } + public global::tryAGI.OpenAI.EvalItemRole? Type810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type811 { get; set; } + public global::tryAGI.OpenAI.EvalItemContent? Type811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalList? Type812 { get; set; } + public global::tryAGI.OpenAI.EvalItemType? Type812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalListObject? Type813 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentItem? Type813 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type814 { get; set; } + public global::System.Collections.Generic.IList? Type814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type815 { get; set; } + public global::tryAGI.OpenAI.InputTextContent? Type815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalResponsesSourceType? Type816 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentOutputText? Type816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRun? Type817 { get; set; } + public global::tryAGI.OpenAI.EvalItemInputImage? Type817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunObject? Type818 { get; set; } + public global::tryAGI.OpenAI.InputAudio? Type818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunResultCounts? Type819 { get; set; } + public global::tryAGI.OpenAI.EvalItemContentOutputTextType? Type819 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type820 { get; set; } + public global::tryAGI.OpenAI.EvalItemInputImageType? Type820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type821 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceType? Type821 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type822 { get; set; } + public global::System.Collections.Generic.IList? Type822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type823 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileContentSourceContentItem? Type823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunList? Type824 { get; set; } + public global::tryAGI.OpenAI.EvalJsonlFileIdSourceType? Type824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunListObject? Type825 { get; set; } + public global::tryAGI.OpenAI.EvalList? Type825 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type826 { get; set; } + public global::tryAGI.OpenAI.EvalListObject? Type826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItem? Type827 { get; set; } + public global::System.Collections.Generic.IList? Type827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type828 { get; set; } + public global::tryAGI.OpenAI.EvalLogsDataSourceConfigType? Type828 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type829 { get; set; } + public global::tryAGI.OpenAI.EvalResponsesSourceType? Type829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemResult? Type830 { get; set; } + public global::tryAGI.OpenAI.EvalRun? Type830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type831 { get; set; } + public global::tryAGI.OpenAI.EvalRunObject? Type831 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type832 { get; set; } + public global::tryAGI.OpenAI.EvalRunResultCounts? Type832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type833 { get; set; } + public global::System.Collections.Generic.IList? Type833 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type834 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerModelUsageItem? Type834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type835 { get; set; } + public global::System.Collections.Generic.IList? Type835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type836 { get; set; } + public global::tryAGI.OpenAI.EvalRunPerTestingCriteriaResult? Type836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemList? Type837 { get; set; } + public global::tryAGI.OpenAI.EvalRunList? Type837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type838 { get; set; } + public global::tryAGI.OpenAI.EvalRunListObject? Type838 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type839 { get; set; } + public global::System.Collections.Generic.IList? Type839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type840 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItem? Type840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type841 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemObject? Type841 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type842 { get; set; } + public global::System.Collections.Generic.IList? Type842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type843 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemResult? Type843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FilePath? Type844 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSample? Type844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FilePathType? Type845 { get; set; } + public global::System.Collections.Generic.IList? Type845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchRanker? Type846 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleInputItem? Type846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallType? Type847 { get; set; } + public global::System.Collections.Generic.IList? Type847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type848 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleOutputItem? Type848 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type849 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemSampleUsage? Type849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item? Type850 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemList? Type850 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type851 { get; set; } + public global::tryAGI.OpenAI.EvalRunOutputItemListObject? Type851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage? Type852 { get; set; } + public global::System.Collections.Generic.IList? Type852 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type853 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsDataSourceConfigType? Type853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type854 { get; set; } + public global::tryAGI.OpenAI.EvalStoredCompletionsSourceType? Type854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type855 { get; set; } + public global::System.DateTimeOffset? Type855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type856 { get; set; } + public global::tryAGI.OpenAI.FileExpirationAfterAnchor? Type856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type857 { get; set; } + public global::tryAGI.OpenAI.FilePath? Type857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type858 { get; set; } + public global::tryAGI.OpenAI.FilePathType? Type858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type859 { get; set; } + public global::tryAGI.OpenAI.FileSearchRanker? Type859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type860 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallType? Type860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type861 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallStatus? Type861 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneDPOMethod? Type862 { get; set; } + public global::System.Collections.Generic.IList? Type862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneMethodType? Type863 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolCallResultsVariant1Item? Type863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type864 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessage? Type864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type865 { get; set; } + public global::tryAGI.OpenAI.FineTuneChatCompletionRequestAssistantMessageAssistantMessage? Type865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type866 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparameters? Type866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type867 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type868 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBeta? Type868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type869 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type870 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersBatchSize? Type870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type871 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type872 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersLearningRateMultiplier? Type872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type873 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type874 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOHyperparametersNEpochs? Type874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type875 { get; set; } + public global::tryAGI.OpenAI.FineTuneDPOMethod? Type875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type876 { get; set; } + public global::tryAGI.OpenAI.FineTuneMethodType? Type876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type877 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedMethod? Type877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type878 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementMethod? Type878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type879 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparameters? Type879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type880 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMulti? Type881 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersBatchSize? Type881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type882 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type883 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersLearningRateMultiplier? Type883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type884 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type885 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersNEpochs? Type885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type886 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersReasoningEffort? Type886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type887 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type888 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersComputeMultiplier? Type888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type889 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type890 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalInterval? Type890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegration? Type891 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationType? Type892 { get; set; } + public global::tryAGI.OpenAI.FineTuneReinforcementHyperparametersEvalSamples? Type892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type893 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJob? Type894 { get; set; } + public global::tryAGI.OpenAI.GraderMulti? Type894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobError2? Type895 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparameters? Type895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type896 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type897 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersBatchSize? Type897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1? Type898 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type899 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersLearningRateMultiplier? Type899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type900 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type901 { get; set; } + public global::tryAGI.OpenAI.FineTuneSupervisedHyperparametersNEpochs? Type901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type902 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermission? Type902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobObject? Type903 { get; set; } + public global::tryAGI.OpenAI.FineTuningCheckpointPermissionObject? Type903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobStatus? Type904 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegration? Type904 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type905 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationType? Type905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type906 { get; set; } + public global::tryAGI.OpenAI.FineTuningIntegrationWandb? Type906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type907 { get; set; } + public global::tryAGI.OpenAI.FineTuningJob? Type907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type908 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobError2? Type908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEvent? Type909 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparameters? Type909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventObject? Type910 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type911 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersBatchSizeVariant1? Type911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FineTuningJobEventType? Type912 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContent? Type913 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersLearningRateMultiplier? Type913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContent? Type914 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator? Type915 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobHyperparametersNEpochs? Type915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCall? Type916 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobObject? Type916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallType? Type917 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobStatus? Type917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallStatus? Type918 { get; set; } + public global::System.Collections.Generic.IList? Type918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutput? Type919 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpoint? Type919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type920 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointMetrics? Type920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type921 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobCheckpointObject? Type921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type922 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEvent? Type922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type923 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventObject? Type923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderLabelModelType? Type924 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventLevel? Type924 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type925 { get; set; } + public global::tryAGI.OpenAI.FineTuningJobEventType? Type925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderMultiType? Type926 { get; set; } + public global::tryAGI.OpenAI.InputImageContent? Type926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type927 { get; set; } + public global::tryAGI.OpenAI.InputFileContent? Type927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderPythonType? Type928 { get; set; } + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminator? Type928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModelType? Type929 { get; set; } + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? Type929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderScoreModelSamplingParams? Type930 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCall? Type930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckType? Type931 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallType? Type931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderStringCheckOperation? Type932 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallStatus? Type932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityType? Type933 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutput? Type933 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type934 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputType? Type934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Group? Type935 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputStatus? Type935 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupObject? Type936 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Type936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupDeletedResource? Type937 { get; set; } + public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Type937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupDeletedResourceObject? Type938 { get; set; } + public global::tryAGI.OpenAI.GraderLabelModelType? Type938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupListResource? Type939 { get; set; } + public global::System.Collections.Generic.IList? Type939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupListResourceObject? Type940 { get; set; } + public global::tryAGI.OpenAI.GraderMultiType? Type940 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type941 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupResponse? Type942 { get; set; } + public global::tryAGI.OpenAI.GraderPythonType? Type942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupResourceWithSuccess? Type943 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModelType? Type943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupRoleAssignment? Type944 { get; set; } + public global::tryAGI.OpenAI.GraderScoreModelSamplingParams? Type944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupRoleAssignmentObject? Type945 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckType? Type945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Role? Type946 { get; set; } + public global::tryAGI.OpenAI.GraderStringCheckOperation? Type946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUser? Type947 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityType? Type947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserAssignment? Type948 { get; set; } + public global::tryAGI.OpenAI.GraderTextSimilarityEvaluationMetric? Type948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserAssignmentObject? Type949 { get; set; } + public global::tryAGI.OpenAI.Group? Type949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserDeletedResource? Type950 { get; set; } + public global::tryAGI.OpenAI.GroupObject? Type950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GroupUserDeletedResourceObject? Type951 { get; set; } + public global::tryAGI.OpenAI.GroupDeletedResource? Type951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Image2? Type952 { get; set; } + public global::tryAGI.OpenAI.GroupDeletedResourceObject? Type952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type953 { get; set; } + public global::tryAGI.OpenAI.GroupListResource? Type953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type954 { get; set; } + public global::tryAGI.OpenAI.GroupListResourceObject? Type954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type955 { get; set; } + public global::System.Collections.Generic.IList? Type955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type956 { get; set; } + public global::tryAGI.OpenAI.GroupResponse? Type956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type957 { get; set; } + public global::tryAGI.OpenAI.GroupResourceWithSuccess? Type957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type958 { get; set; } + public global::tryAGI.OpenAI.GroupRoleAssignment? Type958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsage? Type959 { get; set; } + public global::tryAGI.OpenAI.GroupRoleAssignmentObject? Type959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type960 { get; set; } + public global::tryAGI.OpenAI.Role? Type960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type961 { get; set; } + public global::tryAGI.OpenAI.GroupUser? Type961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type962 { get; set; } + public global::tryAGI.OpenAI.GroupUserAssignment? Type962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type963 { get; set; } + public global::tryAGI.OpenAI.GroupUserAssignmentObject? Type963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type964 { get; set; } + public global::tryAGI.OpenAI.GroupUserDeletedResource? Type964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type965 { get; set; } + public global::tryAGI.OpenAI.GroupUserDeletedResourceObject? Type965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEvent? Type966 { get; set; } + public global::tryAGI.OpenAI.Image2? Type966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type967 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEvent? Type967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type968 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventType? Type968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type969 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventSize? Type969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type970 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventQuality? Type970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type971 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventBackground? Type971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type972 { get; set; } + public global::tryAGI.OpenAI.ImageEditCompletedEventOutputFormat? Type972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type973 { get; set; } + public global::tryAGI.OpenAI.ImagesUsage? Type973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type974 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEvent? Type974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type975 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventType? Type975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type976 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventSize? Type976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type977 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventQuality? Type977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type978 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventBackground? Type978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type979 { get; set; } + public global::tryAGI.OpenAI.ImageEditPartialImageEventOutputFormat? Type979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEvent? Type980 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEvent? Type980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type981 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminator? Type981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenTool? Type982 { get; set; } + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? Type982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolType? Type983 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEvent? Type983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type984 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventType? Type984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModel? Type985 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventSize? Type985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolQuality? Type986 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventQuality? Type986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type987 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventBackground? Type987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolSize? Type988 { get; set; } + public global::tryAGI.OpenAI.ImageGenCompletedEventOutputFormat? Type988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type989 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEvent? Type989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolModeration? Type990 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventType? Type990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolBackground? Type991 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventSize? Type991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type992 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventQuality? Type992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenActionEnum? Type993 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventBackground? Type993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallType? Type994 { get; set; } + public global::tryAGI.OpenAI.ImageGenPartialImageEventOutputFormat? Type994 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type995 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEvent? Type995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponse? Type996 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminator? Type996 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type997 { get; set; } + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? Type997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseBackground? Type998 { get; set; } + public global::tryAGI.OpenAI.ImageGenTool? Type998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type999 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolType? Type999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseSize? Type1000 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesResponseQuality? Type1001 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModel? Type1001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenUsage? Type1002 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolQuality? Type1002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1003 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioType? Type1004 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolSize? Type1004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioInputAudio1? Type1005 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolOutputFormat? Type1005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type1006 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolModeration? Type1006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputContentDiscriminator? Type1007 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolBackground? Type1007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItem? Type1008 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolInputImageMask? Type1008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Item? Type1009 { get; set; } + public global::tryAGI.OpenAI.ImageGenActionEnum? Type1009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParam? Type1010 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallType? Type1010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputItemDiscriminator? Type1011 { get; set; } + public global::tryAGI.OpenAI.ImageGenToolCallStatus? Type1011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessage? Type1012 { get; set; } + public global::tryAGI.OpenAI.ImagesResponse? Type1012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageType? Type1013 { get; set; } + public global::System.Collections.Generic.IList? Type1013 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageRole? Type1014 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseBackground? Type1014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageStatus? Type1015 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseOutputFormat? Type1015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResource? Type1016 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseSize? Type1016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1017 { get; set; } + public global::tryAGI.OpenAI.ImagesResponseQuality? Type1017 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1018 { get; set; } + public global::tryAGI.OpenAI.ImageGenUsage? Type1018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Invite? Type1019 { get; set; } + public global::tryAGI.OpenAI.ImagesUsageInputTokensDetails? Type1019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteObject? Type1020 { get; set; } + public global::tryAGI.OpenAI.InputAudioType? Type1020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRole? Type1021 { get; set; } + public global::tryAGI.OpenAI.InputAudioInputAudio1? Type1021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteStatus? Type1022 { get; set; } + public global::tryAGI.OpenAI.InputAudioInputAudio1Format? Type1022 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1023 { get; set; } + public global::tryAGI.OpenAI.InputContentDiscriminator? Type1023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProject? Type1024 { get; set; } + public global::tryAGI.OpenAI.InputContentDiscriminatorType? Type1024 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProjectRole? Type1025 { get; set; } + public global::tryAGI.OpenAI.InputItem? Type1025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponse? Type1026 { get; set; } + public global::tryAGI.OpenAI.Item? Type1026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1027 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParam? Type1027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponse? Type1028 { get; set; } + public global::tryAGI.OpenAI.InputItemDiscriminator? Type1028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteListResponseObject? Type1029 { get; set; } + public global::tryAGI.OpenAI.InputItemDiscriminatorType? Type1029 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1030 { get; set; } + public global::tryAGI.OpenAI.InputMessage? Type1030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteProjectGroupBody? Type1031 { get; set; } + public global::tryAGI.OpenAI.InputMessageType? Type1031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequest? Type1032 { get; set; } + public global::tryAGI.OpenAI.InputMessageRole? Type1032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestRole? Type1033 { get; set; } + public global::tryAGI.OpenAI.InputMessageStatus? Type1033 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1034 { get; set; } + public global::tryAGI.OpenAI.InputMessageResource? Type1034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProject? Type1035 { get; set; } + public global::tryAGI.OpenAI.InputMessageResourceVariant2? Type1035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1036 { get; set; } + public global::System.Collections.Generic.IList? Type1036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessage? Type1037 { get; set; } + public global::tryAGI.OpenAI.Invite? Type1037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type1038 { get; set; } + public global::tryAGI.OpenAI.InviteObject? Type1038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type1039 { get; set; } + public global::tryAGI.OpenAI.InviteRole? Type1039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallItemParam? Type1040 { get; set; } + public global::tryAGI.OpenAI.InviteStatus? Type1040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParam? Type1041 { get; set; } + public global::System.Collections.Generic.IList? Type1041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionSummaryItemParam? Type1042 { get; set; } + public global::tryAGI.OpenAI.InviteProject? Type1042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParam? Type1043 { get; set; } + public global::tryAGI.OpenAI.InviteProjectRole? Type1043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? Type1044 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponse? Type1044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? Type1045 { get; set; } + public global::tryAGI.OpenAI.InviteDeleteResponseObject? Type1045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? Type1046 { get; set; } + public global::tryAGI.OpenAI.InviteListResponse? Type1046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponse? Type1047 { get; set; } + public global::tryAGI.OpenAI.InviteListResponseObject? Type1047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemDiscriminator? Type1048 { get; set; } + public global::System.Collections.Generic.IList? Type1048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResource? Type1049 { get; set; } + public global::tryAGI.OpenAI.InviteProjectGroupBody? Type1049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1050 { get; set; } + public global::tryAGI.OpenAI.InviteRequest? Type1050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsResponse? Type1051 { get; set; } + public global::tryAGI.OpenAI.InviteRequestRole? Type1051 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1052 { get; set; } + public global::System.Collections.Generic.IList? Type1052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1053 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProject? Type1053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1054 { get; set; } + public global::tryAGI.OpenAI.InviteRequestProjectRole? Type1054 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1055 { get; set; } + public global::tryAGI.OpenAI.OutputMessage? Type1055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponse? Type1056 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParam? Type1056 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1057 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParam? Type1057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1058 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallItemParam? Type1058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponse? Type1059 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputItemParam? Type1059 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1060 { get; set; } + public global::tryAGI.OpenAI.CompactionSummaryItemParam? Type1060 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificate? Type1061 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParam? Type1061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1062 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParam? Type1062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesResponse? Type1063 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParam? Type1063 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1064 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParam? Type1064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFile? Type1065 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponse? Type1065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1066 { get; set; } + public global::tryAGI.OpenAI.ItemDiscriminator? Type1066 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1067 { get; set; } + public global::tryAGI.OpenAI.ItemDiscriminatorType? Type1067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1068 { get; set; } + public global::tryAGI.OpenAI.ItemResource? Type1068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1069 { get; set; } + public global::tryAGI.OpenAI.ItemResourceDiscriminator? Type1069 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1070 { get; set; } + public global::tryAGI.OpenAI.ItemResourceDiscriminatorType? Type1070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1071 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsResponse? Type1071 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1072 { get; set; } + public global::System.Collections.Generic.IList? Type1072 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1073 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponse? Type1073 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1074 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsResponseObject? Type1074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesResponse? Type1075 { get; set; } + public global::System.Collections.Generic.IList? Type1075 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1076 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponse? Type1076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObject? Type1077 { get; set; } + public global::System.Collections.Generic.IList? Type1077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponse? Type1078 { get; set; } + public global::tryAGI.OpenAI.ListBatchesResponseObject? Type1078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListModelsResponseObject? Type1079 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponse? Type1079 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1080 { get; set; } + public global::System.Collections.Generic.IList? Type1080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Model18? Type1081 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificate? Type1081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1082 { get; set; } + public global::tryAGI.OpenAI.ListCertificatesResponseObject? Type1082 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1083 { get; set; } + public global::tryAGI.OpenAI.ListFilesResponse? Type1083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1084 { get; set; } + public global::System.Collections.Generic.IList? Type1084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesResponse? Type1085 { get; set; } + public global::tryAGI.OpenAI.OpenAIFile? Type1085 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1086 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponse? Type1086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificate? Type1087 { get; set; } + public global::System.Collections.Generic.IList? Type1087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesResponseObject? Type1088 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionResponseObject? Type1088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsResponse? Type1089 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponse? Type1089 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1090 { get; set; } + public global::System.Collections.Generic.IList? Type1090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObject? Type1091 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobCheckpointsResponseObject? Type1091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsResponse? Type1092 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponse? Type1092 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1093 { get; set; } + public global::System.Collections.Generic.IList? Type1093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObject? Type1094 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningJobEventsResponseObject? Type1094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1095 { get; set; } + public global::tryAGI.OpenAI.ListMessagesResponse? Type1095 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1096 { get; set; } + public global::System.Collections.Generic.IList? Type1096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObject? Type1097 { get; set; } + public global::tryAGI.OpenAI.MessageObject? Type1097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1098 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponse? Type1098 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1099 { get; set; } + public global::tryAGI.OpenAI.ListModelsResponseObject? Type1099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObject? Type1100 { get; set; } + public global::System.Collections.Generic.IList? Type1100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallType? Type1101 { get; set; } + public global::tryAGI.OpenAI.Model18? Type1101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecAction? Type1102 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponse? Type1102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type1103 { get; set; } + public global::System.Collections.Generic.IList? Type1103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type1104 { get; set; } + public global::tryAGI.OpenAI.ListPaginatedFineTuningJobsResponseObject? Type1104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus2? Type1105 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesResponse? Type1105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProbProperties? Type1106 { get; set; } + public global::System.Collections.Generic.IList? Type1106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalRequestType? Type1107 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificate? Type1107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseType? Type1108 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesResponseObject? Type1108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1109 { get; set; } + public global::tryAGI.OpenAI.ListRunStepsResponse? Type1109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsType? Type1110 { get; set; } + public global::System.Collections.Generic.IList? Type1110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1111 { get; set; } + public global::tryAGI.OpenAI.RunStepObject? Type1111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPListToolsTool? Type1112 { get; set; } + public global::tryAGI.OpenAI.ListRunsResponse? Type1112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPTool? Type1113 { get; set; } + public global::System.Collections.Generic.IList? Type1113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolType? Type1114 { get; set; } + public global::tryAGI.OpenAI.RunObject? Type1114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolConnectorId? Type1115 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoreFilesResponse? Type1115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? Type1116 { get; set; } + public global::System.Collections.Generic.IList? Type1116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolFilter? Type1117 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObject? Type1117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1118 { get; set; } + public global::tryAGI.OpenAI.ListVectorStoresResponse? Type1118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum? Type1119 { get; set; } + public global::System.Collections.Generic.IList? Type1119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2? Type1120 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObject? Type1120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallType? Type1121 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallType? Type1121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MCPToolCallStatus? Type1122 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecAction? Type1122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type1123 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallStatus? Type1123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type1124 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputType? Type1124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type1125 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolCallOutputStatus2? Type1125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type1126 { get; set; } + public global::tryAGI.OpenAI.LogProbProperties? Type1126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type1127 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalRequestType? Type1127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type1128 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseType? Type1128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentRefusalObject? Type1129 { get; set; } + public global::tryAGI.OpenAI.MCPApprovalResponseResourceType? Type1129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type1130 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsType? Type1130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type1131 { get; set; } + public global::System.Collections.Generic.IList? Type1131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type1132 { get; set; } + public global::tryAGI.OpenAI.MCPListToolsTool? Type1132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type1133 { get; set; } + public global::tryAGI.OpenAI.MCPTool? Type1133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type1134 { get; set; } + public global::tryAGI.OpenAI.MCPToolType? Type1134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type1135 { get; set; } + public global::tryAGI.OpenAI.MCPToolConnectorId? Type1135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type1136 { get; set; } + public global::tryAGI.OpenAI.OneOf, global::tryAGI.OpenAI.MCPToolFilter>? Type1136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObject? Type1137 { get; set; } + public global::tryAGI.OpenAI.MCPToolFilter? Type1137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObjectType? Type1138 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentTextObjectText? Type1139 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum? Type1139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1140 { get; set; } + public global::tryAGI.OpenAI.MCPToolRequireApprovalVariant1Enum2? Type1140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1141 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallType? Type1141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type1142 { get; set; } + public global::tryAGI.OpenAI.MCPToolCallStatus? Type1142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type1143 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectType? Type1143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type1144 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFile? Type1144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type1145 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageFileObjectImageFileDetail? Type1145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type1146 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectType? Type1146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type1147 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrl? Type1147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type1148 { get; set; } + public global::tryAGI.OpenAI.MessageContentImageUrlObjectImageUrlDetail? Type1148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type1149 { get; set; } + public global::tryAGI.OpenAI.MessageContentRefusalObject? Type1149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type1150 { get; set; } + public global::tryAGI.OpenAI.MessageContentRefusalObjectType? Type1150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type1151 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObject? Type1151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type1152 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectType? Type1152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type1153 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFileCitationObjectFileCitation? Type1153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type1154 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObject? Type1154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type1155 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectType? Type1155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type1156 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextAnnotationsFilePathObjectFilePath? Type1156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type1157 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObject? Type1157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type1158 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObjectType? Type1158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type1159 { get; set; } + public global::tryAGI.OpenAI.MessageContentTextObjectText? Type1159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type1160 { get; set; } + public global::System.Collections.Generic.IList>? Type1160 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1161 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1162 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObject? Type1162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObject? Type1163 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectType? Type1163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type1164 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFile? Type1164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type1165 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageFileObjectImageFileDetail? Type1165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type1166 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObject? Type1166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectObject? Type1167 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectType? Type1167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectStatus? Type1168 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrl? Type1168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetails2? Type1169 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentImageUrlObjectImageUrlDetail? Type1169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type1170 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObject? Type1170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectRole? Type1171 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentRefusalObjectType? Type1171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1172 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObject? Type1172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item? Type1173 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectType? Type1173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1174 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation? Type1174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type1175 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObject? Type1175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type1176 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectType? Type1176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type1177 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextAnnotationsFilePathObjectFilePath? Type1177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type1178 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObject? Type1178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type1179 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectType? Type1179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type1180 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaContentTextObjectText? Type1180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type1181 { get; set; } + public global::System.Collections.Generic.IList>? Type1181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type1182 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type1183 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObject? Type1183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type1184 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectObject? Type1184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelObject? Type1185 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectDelta? Type1185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIds? Type1186 { get; set; } + public global::tryAGI.OpenAI.MessageDeltaObjectDeltaRole? Type1186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponses? Type1187 { get; set; } + public global::tryAGI.OpenAI.MessageObjectObject? Type1187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsCompaction? Type1188 { get; set; } + public global::tryAGI.OpenAI.MessageObjectStatus? Type1188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1189 { get; set; } + public global::tryAGI.OpenAI.MessageObjectIncompleteDetails2? Type1189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelIdsSharedEnum? Type1190 { get; set; } + public global::tryAGI.OpenAI.MessageObjectIncompleteDetailsReason? Type1190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention2? Type1191 { get; set; } + public global::tryAGI.OpenAI.MessageObjectRole? Type1191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1192 { get; set; } + public global::System.Collections.Generic.IList? Type1192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources2? Type1193 { get; set; } + public global::tryAGI.OpenAI.MessageObjectAttachmentsVariant1Item? Type1193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1194 { get; set; } + public global::tryAGI.OpenAI.MessageRequestContentTextObjectType? Type1194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1195 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1? Type1195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1196 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1Event? Type1196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyMessageRequest? Type1197 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2? Type1197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyRunRequest? Type1198 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2Event? Type1198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequest? Type1199 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3? Type1199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResources2? Type1200 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3Event? Type1200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1201 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4? Type1201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1202 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4Event? Type1202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NoiseReductionType? Type1203 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5? Type1203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileObject? Type1204 { get; set; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5Event? Type1204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1205 { get; set; } + public global::tryAGI.OpenAI.ModelObject? Type1205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OpenAIFileStatus? Type1206 { get; set; } + public global::tryAGI.OpenAI.ModelIds? Type1206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateObject? Type1207 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponses? Type1207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateCertificateDetails? Type1208 { get; set; } + public global::tryAGI.OpenAI.ModelIdsCompaction? Type1208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateActivationResponse? Type1209 { get; set; } + public global::tryAGI.OpenAI.ModelIdsResponsesEnum? Type1209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateActivationResponseObject? Type1210 { get; set; } + public global::tryAGI.OpenAI.ModelIdsSharedEnum? Type1210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponse? Type1211 { get; set; } + public global::tryAGI.OpenAI.ModelResponsePropertiesPromptCacheRetention2? Type1211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponseObject? Type1212 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequest? Type1212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateObject? Type1213 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResources2? Type1213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateCertificateDetails? Type1214 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesCodeInterpreter? Type1214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponse? Type1215 { get; set; } + public global::tryAGI.OpenAI.ModifyAssistantRequestToolResourcesFileSearch? Type1215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponseObject? Type1216 { get; set; } + public global::tryAGI.OpenAI.ModifyCertificateRequest? Type1216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponse? Type1217 { get; set; } + public global::tryAGI.OpenAI.ModifyMessageRequest? Type1217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponseObject? Type1218 { get; set; } + public global::tryAGI.OpenAI.ModifyRunRequest? Type1218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type1219 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequest? Type1219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type1220 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResources2? Type1220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudio? Type1221 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesCodeInterpreter? Type1221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputAudioType? Type1222 { get; set; } + public global::tryAGI.OpenAI.ModifyThreadRequestToolResourcesFileSearch? Type1222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContent? Type1223 { get; set; } + public global::tryAGI.OpenAI.NoiseReductionType? Type1223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContent? Type1224 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileObject? Type1224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContent? Type1225 { get; set; } + public global::tryAGI.OpenAI.OpenAIFilePurpose? Type1225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputContentDiscriminator? Type1226 { get; set; } + public global::tryAGI.OpenAI.OpenAIFileStatus? Type1226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItem? Type1227 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateObject? Type1227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1228 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateCertificateDetails? Type1228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageType? Type1229 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateActivationResponse? Type1229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageRole? Type1230 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateActivationResponseObject? Type1230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1231 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponse? Type1231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageContent? Type1232 { get; set; } + public global::tryAGI.OpenAI.OrganizationCertificateDeactivationResponseObject? Type1232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageStatus? Type1233 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateObject? Type1233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputMessageContentDiscriminator? Type1234 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateCertificateDetails? Type1234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PredictionContentType? Type1235 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponse? Type1235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Project? Type1236 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateActivationResponseObject? Type1236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectObject? Type1237 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponse? Type1237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKey? Type1238 { get; set; } + public global::tryAGI.OpenAI.OrganizationProjectCertificateDeactivationResponseObject? Type1238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1239 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParam? Type1239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1240 { get; set; } + public global::tryAGI.OpenAI.OtherChunkingStrategyResponseParamType? Type1240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1241 { get; set; } + public global::tryAGI.OpenAI.OutputAudio? Type1241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerUser? Type1242 { get; set; } + public global::tryAGI.OpenAI.OutputAudioType? Type1242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyOwnerServiceAccount? Type1243 { get; set; } + public global::tryAGI.OpenAI.OutputTextContent? Type1243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1244 { get; set; } + public global::tryAGI.OpenAI.RefusalContent? Type1244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1245 { get; set; } + public global::tryAGI.OpenAI.ReasoningTextContent? Type1245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1246 { get; set; } + public global::tryAGI.OpenAI.OutputContentDiscriminator? Type1246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1247 { get; set; } + public global::tryAGI.OpenAI.OutputContentDiscriminatorType? Type1247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1248 { get; set; } + public global::tryAGI.OpenAI.OutputItem? Type1248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectCreateRequest? Type1249 { get; set; } + public global::tryAGI.OpenAI.OutputItemDiscriminator? Type1249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroup? Type1250 { get; set; } + public global::tryAGI.OpenAI.OutputItemDiscriminatorType? Type1250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupObject? Type1251 { get; set; } + public global::tryAGI.OpenAI.OutputMessageType? Type1251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupDeletedResource? Type1252 { get; set; } + public global::tryAGI.OpenAI.OutputMessageRole? Type1252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject? Type1253 { get; set; } + public global::System.Collections.Generic.IList? Type1253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupListResource? Type1254 { get; set; } + public global::tryAGI.OpenAI.OutputMessageContent? Type1254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectGroupListResourceObject? Type1255 { get; set; } + public global::tryAGI.OpenAI.OutputMessageStatus? Type1255 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1256 { get; set; } + public global::tryAGI.OpenAI.OutputMessageContentDiscriminator? Type1256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponse? Type1257 { get; set; } + public global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? Type1257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectListResponseObject? Type1258 { get; set; } + public global::tryAGI.OpenAI.PredictionContentType? Type1258 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1259 { get; set; } + public global::tryAGI.OpenAI.Project? Type1259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimit? Type1260 { get; set; } + public global::tryAGI.OpenAI.ProjectObject? Type1260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1261 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKey? Type1261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1262 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyObject? Type1262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1263 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwner? Type1263 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1264 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerType? Type1264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1265 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerUser? Type1265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccount? Type1266 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyOwnerServiceAccount? Type1266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1267 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponse? Type1267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1268 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyDeleteResponseObject? Type1268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1269 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponse? Type1269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1270 { get; set; } + public global::tryAGI.OpenAI.ProjectApiKeyListResponseObject? Type1270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1271 { get; set; } + public global::System.Collections.Generic.IList? Type1271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1272 { get; set; } + public global::tryAGI.OpenAI.ProjectCreateRequest? Type1272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1273 { get; set; } + public global::tryAGI.OpenAI.ProjectGroup? Type1273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1274 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupObject? Type1274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1275 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupDeletedResource? Type1275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1276 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupDeletedResourceObject? Type1276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1277 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupListResource? Type1277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1278 { get; set; } + public global::tryAGI.OpenAI.ProjectGroupListResourceObject? Type1278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1279 { get; set; } + public global::System.Collections.Generic.IList? Type1279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1280 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponse? Type1280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUser? Type1281 { get; set; } + public global::tryAGI.OpenAI.ProjectListResponseObject? Type1281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserObject? Type1282 { get; set; } + public global::System.Collections.Generic.IList? Type1282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1283 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimit? Type1283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1284 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitObject? Type1284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1285 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponse? Type1285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserListResponse? Type1286 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitListResponseObject? Type1286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1287 { get; set; } + public global::System.Collections.Generic.IList? Type1287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1288 { get; set; } + public global::tryAGI.OpenAI.ProjectRateLimitUpdateRequest? Type1288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptVariant1? Type1289 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccount? Type1289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody? Type1290 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountObject? Type1290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody? Type1291 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountRole? Type1291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicRoleListResource? Type1292 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKey? Type1292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicRoleListResourceObject? Type1293 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountApiKeyObject? Type1293 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1294 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateRequest? Type1294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody? Type1295 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponse? Type1295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1296 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseObject? Type1296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat? Type1297 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountCreateResponseRole? Type1297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType? Type1298 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponse? Type1298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat? Type1299 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountDeleteResponseObject? Type1299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType? Type1300 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponse? Type1300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat? Type1301 { get; set; } + public global::tryAGI.OpenAI.ProjectServiceAccountListResponseObject? Type1301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType? Type1302 { get; set; } + public global::System.Collections.Generic.IList? Type1302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? Type1303 { get; set; } + public global::tryAGI.OpenAI.ProjectUpdateRequest? Type1303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? Type1304 { get; set; } + public global::tryAGI.OpenAI.ProjectUser? Type1304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItem? Type1305 { get; set; } + public global::tryAGI.OpenAI.ProjectUserObject? Type1305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? Type1306 { get; set; } + public global::tryAGI.OpenAI.ProjectUserCreateRequest? Type1306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? Type1307 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponse? Type1307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? Type1308 { get; set; } + public global::tryAGI.OpenAI.ProjectUserDeleteResponseObject? Type1308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? Type1309 { get; set; } + public global::tryAGI.OpenAI.ProjectUserListResponse? Type1309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? Type1310 { get; set; } + public global::System.Collections.Generic.IList? Type1310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? Type1311 { get; set; } + public global::tryAGI.OpenAI.ProjectUserUpdateRequest? Type1311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? Type1312 { get; set; } + public global::tryAGI.OpenAI.PromptVariant1? Type1312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? Type1313 { get; set; } + public global::tryAGI.OpenAI.PublicAssignOrganizationGroupRoleBody? Type1313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? Type1314 { get; set; } + public global::tryAGI.OpenAI.PublicCreateOrganizationRoleBody? Type1314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? Type1315 { get; set; } + public global::tryAGI.OpenAI.PublicRoleListResource? Type1315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? Type1316 { get; set; } + public global::tryAGI.OpenAI.PublicRoleListResourceObject? Type1316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? Type1317 { get; set; } + public global::System.Collections.Generic.IList? Type1317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? Type1318 { get; set; } + public global::tryAGI.OpenAI.PublicUpdateOrganizationRoleBody? Type1318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? Type1319 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormats? Type1319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? Type1320 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormat? Type1320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? Type1321 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmAudioFormatType? Type1321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? Type1322 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormat? Type1322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? Type1323 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmuAudioFormatType? Type1323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Type1324 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormat? Type1324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? Type1325 { get; set; } + public global::tryAGI.OpenAI.RealtimeAudioFormatsPcmaAudioFormatType? Type1325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? Type1326 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreate? Type1326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1327 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemCreateType? Type1327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? Type1328 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItem? Type1328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? Type1329 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDelete? Type1329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1330 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemDeleteType? Type1330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponse? Type1331 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieve? Type1331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Type1332 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemRetrieveType? Type1332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Type1333 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncate? Type1333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? Type1334 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventConversationItemTruncateType? Type1334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type1335 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppend? Type1335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Type1336 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferAppendType? Type1336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Type1337 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClear? Type1337 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1338 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferClearType? Type1338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Type1339 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommit? Type1339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? Type1340 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventInputAudioBufferCommitType? Type1340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? Type1341 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClear? Type1341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? Type1342 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventOutputAudioBufferClearType? Type1342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsShared? Type1343 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancel? Type1343 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1344 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCancelType? Type1344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? Type1345 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreate? Type1345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Type1346 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventResponseCreateType? Type1346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1347 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParams? Type1347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Type1348 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdate? Type1348 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1349 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventSessionUpdateType? Type1349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? Type1350 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequest? Type1350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? Type1351 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdate? Type1351 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1352 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaClientEventTranscriptionSessionUpdateType? Type1352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? Type1353 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequest? Type1353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type1354 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponse? Type1354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1355 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseObject? Type1355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceOptions? Type1356 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatus? Type1356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunction? Type1357 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetails? Type1357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCP? Type1358 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsType? Type1358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1359 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsReason? Type1359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? Type1360 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseStatusDetailsError? Type1360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1361 { get; set; } + public global::System.Collections.Generic.IList? Type1361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? Type1362 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsage? Type1362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? Type1363 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetails? Type1363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? Type1364 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageInputTokenDetailsCachedTokensDetails? Type1364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? Type1365 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseUsageOutputTokenDetails? Type1365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? Type1366 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsShared? Type1366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? Type1367 { get; set; } + public global::System.Collections.Generic.IList? Type1367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? Type1368 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseModalitie? Type1368 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1369 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseOutputAudioFormat? Type1369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? Type1370 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? Type1371 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseMaxOutputTokens? Type1371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? Type1372 { get; set; } + public global::System.Collections.Generic.IList? Type1372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? Type1373 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsModalitie? Type1373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? Type1374 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsOutputAudioFormat? Type1374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? Type1375 { get; set; } + public global::System.Collections.Generic.IList? Type1375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? Type1376 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsTool? Type1376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? Type1377 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsToolType? Type1377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? Type1378 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? Type1379 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceOptions? Type1379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? Type1380 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunction? Type1380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventError? Type1381 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCP? Type1381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? Type1382 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1382 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? Type1383 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsMaxOutputTokens? Type1383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? Type1384 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1384 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? Type1385 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaResponseCreateParamsConversation? Type1385 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? Type1386 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreated? Type1386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? Type1387 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemCreatedType? Type1387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? Type1388 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeleted? Type1388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? Type1389 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemDeletedType? Type1389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? Type1390 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompleted? Type1390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? Type1391 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionCompletedType? Type1391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? Type1392 { get; set; } + public global::System.Collections.Generic.IList? Type1392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? Type1393 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDelta? Type1393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? Type1394 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionDeltaType? Type1394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? Type1395 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailed? Type1395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? Type1396 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedType? Type1396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? Type1397 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionFailedError? Type1397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? Type1398 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegment? Type1398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? Type1399 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemInputAudioTranscriptionSegmentType? Type1399 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1400 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrieved? Type1400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? Type1401 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemRetrievedType? Type1401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Type1402 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncated? Type1402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? Type1403 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventConversationItemTruncatedType? Type1403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? Type1404 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventError? Type1404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? Type1405 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorType? Type1405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? Type1406 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventErrorError? Type1406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? Type1407 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCleared? Type1407 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Type1408 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferClearedType? Type1408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? Type1409 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommitted? Type1409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? Type1410 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferCommittedType? Type1410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? Type1411 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStarted? Type1411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? Type1412 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStartedType? Type1412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? Type1413 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStopped? Type1413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type1414 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventInputAudioBufferSpeechStoppedType? Type1414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? Type1415 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompleted? Type1415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? Type1416 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsCompletedType? Type1416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? Type1417 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailed? Type1417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type1418 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsFailedType? Type1418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? Type1419 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgress? Type1419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? Type1420 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventMCPListToolsInProgressType? Type1420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? Type1421 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdated? Type1421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? Type1422 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedType? Type1422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? Type1423 { get; set; } + public global::System.Collections.Generic.IList? Type1423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? Type1424 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimit? Type1424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? Type1425 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventRateLimitsUpdatedRateLimitName? Type1425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? Type1426 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDelta? Type1426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? Type1427 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDeltaType? Type1427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? Type1428 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDone? Type1428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? Type1429 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioDoneType? Type1429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? Type1430 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDelta? Type1430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? Type1431 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDeltaType? Type1431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? Type1432 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDone? Type1432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? Type1433 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseAudioTranscriptDoneType? Type1433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? Type1434 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAdded? Type1434 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? Type1435 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedType? Type1435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? Type1436 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPart? Type1436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? Type1437 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartAddedPartType? Type1437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? Type1438 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDone? Type1438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? Type1439 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDoneType? Type1439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? Type1440 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePart? Type1440 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? Type1441 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseContentPartDonePartType? Type1441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? Type1442 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreated? Type1442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? Type1443 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseCreatedType? Type1443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Type1444 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDone? Type1444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? Type1445 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseDoneType? Type1445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? Type1446 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDelta? Type1446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSession? Type1447 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDeltaType? Type1447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? Type1448 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDone? Type1448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? Type1449 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseFunctionCallArgumentsDoneType? Type1449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? Type1450 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDelta? Type1450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? Type1451 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDeltaType? Type1451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1452 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDone? Type1452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? Type1453 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallArgumentsDoneType? Type1453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? Type1454 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompleted? Type1454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCallCreateRequest? Type1455 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallCompletedType? Type1455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? Type1456 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailed? Type1456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCallReferRequest? Type1457 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallFailedType? Type1457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCallRejectRequest? Type1458 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgress? Type1458 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEvent? Type1459 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseMCPCallInProgressType? Type1459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1460 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAdded? Type1460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1461 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemAddedType? Type1461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1462 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDone? Type1462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1463 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseOutputItemDoneType? Type1463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1464 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDelta? Type1464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1465 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDeltaType? Type1465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1466 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDone? Type1466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1467 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventResponseTextDoneType? Type1467 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1468 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreated? Type1468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1469 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionCreatedType? Type1469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1470 { get; set; } + public global::tryAGI.OpenAI.RealtimeSession? Type1470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1471 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdated? Type1471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1472 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventSessionUpdatedType? Type1472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1473 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreated? Type1473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1474 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionCreatedType? Type1474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1475 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse? Type1475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1476 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdated? Type1476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1477 { get; set; } + public global::tryAGI.OpenAI.RealtimeBetaServerEventTranscriptionSessionUpdatedType? Type1477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1478 { get; set; } + public global::tryAGI.OpenAI.RealtimeCallCreateRequest? Type1478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1479 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGA? Type1479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1480 { get; set; } + public global::tryAGI.OpenAI.RealtimeCallReferRequest? Type1480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1481 { get; set; } + public global::tryAGI.OpenAI.RealtimeCallRejectRequest? Type1481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1482 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEvent? Type1482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1483 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? Type1483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1484 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? Type1484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? Type1485 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? Type1485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1486 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncate? Type1486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1487 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppend? Type1487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1488 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClear? Type1488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1489 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClear? Type1489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1490 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommit? Type1490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1491 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancel? Type1491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1492 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreate? Type1492 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1493 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? Type1493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1494 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminator? Type1494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1495 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? Type1495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1496 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreateType? Type1496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator? Type1497 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemDeleteType? Type1497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1498 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieveType? Type1498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1499 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventConversationItemTruncateType? Type1499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1500 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferAppendType? Type1500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1501 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferClearType? Type1501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1502 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventInputAudioBufferCommitType? Type1502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1503 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventOutputAudioBufferClearType? Type1503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1504 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCancelType? Type1504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1505 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventResponseCreateType? Type1505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1506 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParams? Type1506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1507 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventSessionUpdateType? Type1507 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1508 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1509 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGA? Type1509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1510 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdate? Type1510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1511 { get; set; } + public global::tryAGI.OpenAI.RealtimeClientEventTranscriptionSessionUpdateType? Type1511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1512 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? Type1512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1513 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? Type1513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1514 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? Type1514 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1515 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCall? Type1515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1516 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutput? Type1516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1517 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponse? Type1517 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1518 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPListTools? Type1518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1519 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolCall? Type1519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1520 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? Type1520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1521 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminator? Type1521 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1522 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? Type1522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1523 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallObject? Type1523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1524 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallType? Type1524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Type1525 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallStatus? Type1525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1526 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputObject? Type1526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1527 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputType? Type1527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1528 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemFunctionCallOutputStatus? Type1528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1529 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantObject? Type1529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1530 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantType? Type1530 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1531 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantStatus? Type1531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1532 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantRole? Type1532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1533 { get; set; } + public global::System.Collections.Generic.IList? Type1533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1534 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItem? Type1534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1535 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistantContentItemType? Type1535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1536 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemObject? Type1536 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1537 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemType? Type1537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Session2? Type1538 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemStatus? Type1538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? Type1539 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemRole? Type1539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? Type1540 { get; set; } + public global::System.Collections.Generic.IList? Type1540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? Type1541 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItem? Type1541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeFunctionTool? Type1542 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageSystemContentItemType? Type1542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type1543 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserObject? Type1543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1544 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserType? Type1544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1545 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserStatus? Type1545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1546 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserRole? Type1546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1547 { get; set; } + public global::System.Collections.Generic.IList? Type1547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1548 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItem? Type1548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1549 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemType? Type1549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1550 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemMessageUserContentItemDetail? Type1550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1551 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReference? Type1551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1552 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceType? Type1552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1553 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceObject? Type1553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1554 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceStatus? Type1554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeReasoning? Type1555 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceRole? Type1555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeReasoningEffort? Type1556 { get; set; } + public global::System.Collections.Generic.IList? Type1556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponse? Type1557 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItem? Type1557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseObject? Type1558 { get; set; } + public global::tryAGI.OpenAI.RealtimeConversationItemWithReferenceContentItemType? Type1558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1559 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequest? Type1559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetails? Type1560 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfter? Type1560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType? Type1561 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretRequestExpiresAfterAnchor? Type1561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason? Type1562 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponse? Type1562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError? Type1563 { get; set; } + public global::tryAGI.OpenAI.Session2? Type1563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudio? Type1564 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? Type1564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseAudioOutput? Type1565 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? Type1565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1566 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminator? Type1566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails? Type1567 { get; set; } + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? Type1567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type1568 { get; set; } + public global::tryAGI.OpenAI.RealtimeFunctionTool? Type1568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails? Type1569 { get; set; } + public global::tryAGI.OpenAI.RealtimeFunctionToolType? Type1569 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1570 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalRequestType? Type1570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseOutputModalitie? Type1571 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPApprovalResponseType? Type1571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1572 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPHTTPError? Type1572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens? Type1573 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPHTTPErrorType? Type1573 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1574 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPListToolsType? Type1574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Type1575 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPProtocolError? Type1575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Type1576 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPProtocolErrorType? Type1576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Type1577 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolCallType? Type1577 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type1578 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1579 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionError? Type1579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1580 { get; set; } + public global::tryAGI.OpenAI.RealtimeMCPToolExecutionErrorType? Type1580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1581 { get; set; } + public global::tryAGI.OpenAI.RealtimeReasoning? Type1581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1582 { get; set; } + public global::tryAGI.OpenAI.RealtimeReasoningEffort? Type1582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1583 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponse? Type1583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEvent? Type1584 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseObject? Type1584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1585 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatus? Type1585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1586 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetails? Type1586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1587 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsType? Type1587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1588 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsReason? Type1588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1589 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseStatusDetailsError? Type1589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1590 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudio? Type1590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1591 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseAudioOutput? Type1591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1592 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsage? Type1592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventError? Type1593 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetails? Type1593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1594 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type1594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1595 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseUsageOutputTokenDetails? Type1595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type1596 { get; set; } + public global::System.Collections.Generic.IList? Type1596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1597 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseOutputModalitie? Type1597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1598 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1598 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1599 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseMaxOutputTokens? Type1599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1600 { get; set; } + public global::System.Collections.Generic.IList? Type1600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1601 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsOutputModalitie? Type1601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1602 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudio? Type1602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1603 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsAudioOutput? Type1603 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1604 { get; set; } + public global::System.Collections.Generic.IList>? Type1604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1605 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1606 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1607 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsMaxOutputTokens? Type1607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1608 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1609 { get; set; } + public global::tryAGI.OpenAI.RealtimeResponseCreateParamsConversation? Type1609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1610 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEvent? Type1610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1611 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? Type1611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1612 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? Type1612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1613 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? Type1613 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1614 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type1614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1615 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type1615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1616 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type1616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1617 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrieved? Type1617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1618 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncated? Type1618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1619 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventError? Type1619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1620 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCleared? Type1620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1621 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommitted? Type1621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1622 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type1622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1623 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted? Type1623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1624 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped? Type1624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1625 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdated? Type1625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type1626 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDelta? Type1626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type1627 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDone? Type1627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type1628 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDelta? Type1628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type1629 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDone? Type1629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type1630 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAdded? Type1630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventDiscriminator? Type1631 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDone? Type1631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1632 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreated? Type1632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1633 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDone? Type1633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1634 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type1634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1635 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone? Type1635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1636 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAdded? Type1636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1637 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDone? Type1637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1638 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDelta? Type1638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1639 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDone? Type1639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1640 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreated? Type1640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1641 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdated? Type1641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1642 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStarted? Type1642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1643 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStopped? Type1643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1644 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferCleared? Type1644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1645 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAdded? Type1645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1646 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDone? Type1646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1647 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type1647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1648 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type1648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type1649 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgress? Type1649 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1650 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompleted? Type1650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1651 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailed? Type1651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1652 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta? Type1652 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1653 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone? Type1653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1654 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgress? Type1654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1655 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompleted? Type1655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1656 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? Type1656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1657 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventDiscriminator? Type1657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1658 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? Type1658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1659 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedType? Type1659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1660 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationCreatedConversation? Type1660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1661 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemAddedType? Type1661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1662 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreatedType? Type1662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1663 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeletedType? Type1663 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1664 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemDoneType? Type1664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1665 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type1665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1666 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type1666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1667 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type1667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1668 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type1668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1669 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type1669 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1670 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemRetrievedType? Type1670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1671 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventConversationItemTruncatedType? Type1671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1672 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorType? Type1672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1673 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventErrorError? Type1673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1674 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferClearedType? Type1674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1675 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferCommittedType? Type1675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1676 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type1676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type1677 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStartedType? Type1677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type1678 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type1678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type1679 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type1679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type1680 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsCompletedType? Type1680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type1681 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsFailedType? Type1681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1682 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventMCPListToolsInProgressType? Type1682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1683 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferClearedType? Type1683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1684 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStartedType? Type1684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1685 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventOutputAudioBufferStoppedType? Type1685 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1686 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedType? Type1686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1687 { get; set; } + public global::System.Collections.Generic.IList? Type1687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1688 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimit? Type1688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1689 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type1689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1690 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDeltaType? Type1690 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionObject? Type1691 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioDoneType? Type1691 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1692 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDeltaType? Type1692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionModalitie? Type1693 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseAudioTranscriptDoneType? Type1693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1694 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedType? Type1694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionModel? Type1695 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPart? Type1695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat? Type1696 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartAddedPartType? Type1696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat? Type1697 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDoneType? Type1697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1? Type1698 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePart? Type1698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction? Type1699 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseContentPartDonePartType? Type1699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1700 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseCreatedType? Type1700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum? Type1701 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseDoneType? Type1701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2? Type1702 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type1702 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1703 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type1703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1704 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type1704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens? Type1705 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type1705 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1706 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallCompletedType? Type1706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item? Type1707 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailedType? Type1707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1708 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallInProgressType? Type1708 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1709 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemAddedType? Type1709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1710 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseOutputItemDoneType? Type1710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1711 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDeltaType? Type1711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1712 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventResponseTextDoneType? Type1712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1713 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionCreatedType? Type1713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1714 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1715 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventSessionUpdatedType? Type1715 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1716 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdated? Type1716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1717 { get; set; } + public global::tryAGI.OpenAI.RealtimeServerEventTranscriptionSessionUpdatedType? Type1717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1718 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionObject? Type1718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1719 { get; set; } + public global::System.Collections.Generic.IList? Type1719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1720 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionModalitie? Type1720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncation? Type1721 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Type1722 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionModel? Type1722 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1723 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionInputAudioFormat? Type1723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Type1724 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionOutputAudioFormat? Type1724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1725 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1? Type1725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Type1726 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionInputAudioNoiseReduction? Type1726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Type1727 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Type1728 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum? Type1728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type1729 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionTracingTracingConfigurationEnum2? Type1729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Type1730 { get; set; } + public global::System.Collections.Generic.IList? Type1730 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1731 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? Type1732 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionMaxResponseOutputTokens? Type1732 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1733 { get; set; } + public global::System.Collections.Generic.IList? Type1733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? Type1734 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionIncludeVariant1Item? Type1734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? Type1735 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestClientSecret? Type1735 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1736 { get; set; } + public global::System.Collections.Generic.IList? Type1736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Type1737 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestModalitie? Type1737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1738 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestInputAudioTranscription? Type1738 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1739 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1740 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum? Type1740 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1741 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTracingEnum2? Type1741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1742 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTurnDetection? Type1742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1743 { get; set; } + public global::System.Collections.Generic.IList? Type1743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1744 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestTool? Type1744 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1745 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestToolType? Type1745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1746 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1747 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestMaxResponseOutputTokens? Type1747 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1748 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncation? Type1748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1749 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAType? Type1749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1750 { get; set; } + public global::System.Collections.Generic.IList? Type1750 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1751 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAOutputModalitie? Type1751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1752 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1753 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAModel? Type1753 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType? Type1754 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudio? Type1754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAObject? Type1755 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInput? Type1755 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1756 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type1756 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie? Type1757 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAAudioOutput? Type1757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnyOf? Type1758 { get; set; } + public global::System.Collections.Generic.IList? Type1758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel? Type1759 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAIncludeItem? Type1759 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio? Type1760 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput? Type1761 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum? Type1761 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type1762 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGATracingEnum2? Type1762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput? Type1763 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1764 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateRequestGAMaxOutputTokens? Type1764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem? Type1765 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponse? Type1765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type1766 { get; set; } + public global::System.Collections.Generic.IList? Type1766 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type1767 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseIncludeItem? Type1767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1768 { get; set; } + public global::System.Collections.Generic.IList? Type1768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens? Type1769 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseOutputModalitie? Type1769 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1770 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudio? Type1770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1771 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInput? Type1771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1772 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputNoiseReduction? Type1772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1773 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioInputTurnDetection? Type1773 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1774 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseAudioOutput? Type1774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1775 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Type1776 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum? Type1776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Type1777 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTracingEnum2? Type1777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type1778 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseTurnDetection? Type1778 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type1779 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1779 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1780 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseMaxOutputTokens? Type1780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type1781 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAType? Type1781 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1782 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAObject? Type1782 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1783 { get; set; } + public global::System.Collections.Generic.IList? Type1783 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1784 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAOutputModalitie? Type1784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1785 { get; set; } + public global::tryAGI.OpenAI.AnyOf? Type1785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType? Type1786 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAModel? Type1786 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1787 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudio? Type1787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type1788 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInput? Type1788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio? Type1789 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type1789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type1790 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAAudioOutput? Type1790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type1791 { get; set; } + public global::System.Collections.Generic.IList? Type1791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection2? Type1792 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAIncludeItem? Type1792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEvent? Type1793 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type1793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? Type1794 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type1794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? Type1795 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1795 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? Type1796 { get; set; } + public global::tryAGI.OpenAI.RealtimeSessionCreateResponseGAMaxOutputTokens? Type1796 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator? Type1797 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type1797 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType? Type1798 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type1798 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType? Type1799 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type1799 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType? Type1800 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type1800 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest? Type1801 { get; set; } + public global::System.Collections.Generic.IList? Type1801 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest? Type1802 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type1802 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? Type1803 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAType? Type1803 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? Type1804 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio? Type1804 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest? Type1805 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type1805 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse? Type1806 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type1806 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSession? Type1807 { get; set; } + public global::System.Collections.Generic.IList? Type1807 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEvent? Type1808 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type1808 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? Type1809 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseClientSecret? Type1809 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? Type1810 { get; set; } + public global::System.Collections.Generic.IList? Type1810 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? Type1811 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseModalitie? Type1811 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? Type1812 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type1812 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? Type1813 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAType? Type1813 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? Type1814 { get; set; } + public global::System.Collections.Generic.IList? Type1814 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator? Type1815 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type1815 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType? Type1816 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudio? Type1816 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType? Type1817 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type1817 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType? Type1818 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type1818 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType? Type1819 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection2? Type1819 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? Type1820 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEvent? Type1820 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? Type1821 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? Type1821 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType? Type1822 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? Type1822 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionType? Type1823 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? Type1823 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudio? Type1824 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminator? Type1824 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? Type1825 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? Type1825 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2? Type1826 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppendType? Type1826 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2? Type1827 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionCloseType? Type1827 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? Type1828 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdateType? Type1828 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? Type1829 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequest? Type1829 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? Type1830 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequest? Type1830 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2? Type1831 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfter? Type1831 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2? Type1832 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateRequestExpiresAfterAnchor? Type1832 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? Type1833 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequest? Type1833 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? Type1834 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationClientSecretCreateResponse? Type1834 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? Type1835 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSession? Type1835 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2? Type1836 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEvent? Type1836 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2? Type1837 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? Type1837 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? Type1838 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? Type1838 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type1839 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosed? Type1839 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type1840 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDelta? Type1840 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type1841 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDelta? Type1841 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type1842 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? Type1842 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type1843 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminator? Type1843 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type1844 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? Type1844 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type1845 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionClosedType? Type1845 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type1846 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreatedType? Type1846 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Reasoning? Type1847 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionInputTranscriptDeltaType? Type1847 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningSummary2? Type1848 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaType? Type1848 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningGenerateSummary2? Type1849 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDeltaFormat? Type1849 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemType? Type1850 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputTranscriptDeltaType? Type1850 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1851 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdatedType? Type1851 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContent? Type1852 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionType? Type1852 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1853 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudio? Type1853 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningItemStatus? Type1854 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInput? Type1854 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Response? Type1855 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputTranscription2? Type1855 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3? Type1856 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioInputNoiseReduction2? Type1856 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Object? Type1857 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionAudioOutput? Type1857 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3Status? Type1858 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudio? Type1858 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorVariant1? Type1859 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInput? Type1859 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails2? Type1860 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputTranscription2? Type1860 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type1861 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioInputNoiseReduction2? Type1861 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1862 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionCreateRequestAudioOutput? Type1862 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type1863 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudio? Type1863 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsage? Type1864 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInput? Type1864 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Conversation22? Type1865 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputTranscription2? Type1865 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type1866 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioInputNoiseReduction2? Type1866 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type1867 { get; set; } + public global::tryAGI.OpenAI.RealtimeTranslationSessionUpdateRequestAudioOutput? Type1867 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type1868 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum? Type1868 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type1869 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum2? Type1869 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type1870 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnumType? Type1870 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type1871 { get; set; } + public global::tryAGI.OpenAI.RealtimeTruncationEnumTokenLimits? Type1871 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type1872 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type1872 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type1873 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type1873 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type1874 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type1874 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type1875 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type1875 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type1876 { get; set; } + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type1876 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type1877 { get; set; } + public global::tryAGI.OpenAI.Reasoning? Type1877 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type1878 { get; set; } + public global::tryAGI.OpenAI.ReasoningSummary2? Type1878 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type1879 { get; set; } + public global::tryAGI.OpenAI.ReasoningGenerateSummary2? Type1879 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type1880 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemType? Type1880 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type1881 { get; set; } + public global::System.Collections.Generic.IList? Type1881 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type1882 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContent? Type1882 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type1883 { get; set; } + public global::System.Collections.Generic.IList? Type1883 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEvent? Type1884 { get; set; } + public global::tryAGI.OpenAI.ReasoningItemStatus? Type1884 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCompletedEventType? Type1885 { get; set; } + public global::tryAGI.OpenAI.Response? Type1885 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type1886 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3? Type1886 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type1887 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Object? Type1887 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type1888 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3Status? Type1888 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type1889 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorVariant1? Type1889 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEvent? Type1890 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetails2? Type1890 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCreatedEventType? Type1891 { get; set; } + public global::tryAGI.OpenAI.ResponseVariant3IncompleteDetailsReason? Type1891 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type1892 { get; set; } + public global::System.Collections.Generic.IList? Type1892 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type1893 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type1893 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type1894 { get; set; } + public global::tryAGI.OpenAI.ResponseUsage? Type1894 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type1895 { get; set; } + public global::tryAGI.OpenAI.Conversation22? Type1895 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorCode? Type1896 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEvent? Type1896 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEvent? Type1897 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDeltaEventType? Type1897 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseErrorEventType? Type1898 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEvent? Type1898 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEvent? Type1899 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioDoneEventType? Type1899 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFailedEventType? Type1900 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? Type1900 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type1901 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEventType? Type1901 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type1902 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEvent? Type1902 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type1903 { get; set; } + public global::tryAGI.OpenAI.ResponseAudioTranscriptDoneEventType? Type1903 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type1904 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEvent? Type1904 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type1905 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDeltaEventType? Type1905 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type1906 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEvent? Type1906 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type1907 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCodeDoneEventType? Type1907 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type1908 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEvent? Type1908 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type1909 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallCompletedEventType? Type1909 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type1910 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEvent? Type1910 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextType? Type1911 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInProgressEventType? Type1911 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type1912 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEvent? Type1912 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type1913 { get; set; } + public global::tryAGI.OpenAI.ResponseCodeInterpreterCallInterpretingEventType? Type1913 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPython? Type1914 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEvent? Type1914 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type1915 { get; set; } + public global::tryAGI.OpenAI.ResponseCompletedEventType? Type1915 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type1916 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEvent? Type1916 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type1917 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartAddedEventType? Type1917 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type1918 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEvent? Type1918 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type1919 { get; set; } + public global::tryAGI.OpenAI.ResponseContentPartDoneEventType? Type1919 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type1920 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEvent? Type1920 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type1921 { get; set; } + public global::tryAGI.OpenAI.ResponseCreatedEventType? Type1921 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type1922 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEvent? Type1922 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type1923 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDeltaEventType? Type1923 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type1924 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? Type1924 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type1925 { get; set; } + public global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEventType? Type1925 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type1926 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorCode? Type1926 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type1927 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEvent? Type1927 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEvent? Type1928 { get; set; } + public global::tryAGI.OpenAI.ResponseErrorEventType? Type1928 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseInProgressEventType? Type1929 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEvent? Type1929 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type1930 { get; set; } + public global::tryAGI.OpenAI.ResponseFailedEventType? Type1930 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type1931 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEvent? Type1931 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemList? Type1932 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallCompletedEventType? Type1932 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseItemListObject? Type1933 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEvent? Type1933 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1934 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallInProgressEventType? Type1934 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProb? Type1935 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEvent? Type1935 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1936 { get; set; } + public global::tryAGI.OpenAI.ResponseFileSearchCallSearchingEventType? Type1936 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type1937 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonObjectType? Type1937 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type1938 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaType? Type1938 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type1939 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaJsonSchema? Type1939 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type1940 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatJsonSchemaSchema? Type1940 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type1941 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextType? Type1941 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type1942 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammar? Type1942 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type1943 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextGrammarType? Type1943 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type1944 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPython? Type1944 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type1945 { get; set; } + public global::tryAGI.OpenAI.ResponseFormatTextPythonType? Type1945 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type1946 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEvent? Type1946 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type1947 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDeltaEventType? Type1947 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type1948 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEvent? Type1948 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type1949 { get; set; } + public global::tryAGI.OpenAI.ResponseFunctionCallArgumentsDoneEventType? Type1949 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type1950 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEvent? Type1950 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type1951 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallCompletedEventType? Type1951 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type1952 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEvent? Type1952 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type1953 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallGeneratingEventType? Type1953 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type1954 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEvent? Type1954 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type1955 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallInProgressEventType? Type1955 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type1956 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEvent? Type1956 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type1957 { get; set; } + public global::tryAGI.OpenAI.ResponseImageGenCallPartialImageEventType? Type1957 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type1958 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEvent? Type1958 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type1959 { get; set; } + public global::tryAGI.OpenAI.ResponseInProgressEventType? Type1959 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type1960 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEvent? Type1960 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type1961 { get; set; } + public global::tryAGI.OpenAI.ResponseIncompleteEventType? Type1961 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextParam? Type1962 { get; set; } + public global::tryAGI.OpenAI.ResponseItemList? Type1962 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceParam? Type1963 { get; set; } + public global::tryAGI.OpenAI.ResponseItemListObject? Type1963 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsePropertiesTruncation2? Type1964 { get; set; } + public global::System.Collections.Generic.IList? Type1964 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEvent? Type1965 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProb? Type1965 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseQueuedEventType? Type1966 { get; set; } + public global::System.Collections.Generic.IList? Type1966 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type1967 { get; set; } + public global::tryAGI.OpenAI.ResponseLogProbTopLogprob? Type1967 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type1968 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEvent? Type1968 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type1969 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDeltaEventType? Type1969 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type1970 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEvent? Type1970 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type1971 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallArgumentsDoneEventType? Type1971 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type1972 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEvent? Type1972 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type1973 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallCompletedEventType? Type1973 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type1974 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEvent? Type1974 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type1975 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallFailedEventType? Type1975 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type1976 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEvent? Type1976 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type1977 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPCallInProgressEventType? Type1977 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type1978 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEvent? Type1978 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type1979 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsCompletedEventType? Type1979 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type1980 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEvent? Type1980 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type1981 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsFailedEventType? Type1981 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type1982 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEvent? Type1982 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type1983 { get; set; } + public global::tryAGI.OpenAI.ResponseMCPListToolsInProgressEventType? Type1983 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type1984 { get; set; } + public global::tryAGI.OpenAI.ResponseModalitiesVariant1Item? Type1984 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type1985 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEvent? Type1985 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type1986 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemAddedEventType? Type1986 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEvent? Type1987 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEvent? Type1987 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type1988 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputItemDoneEventType? Type1988 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type1989 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEvent? Type1989 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type1990 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationAddedEventType? Type1990 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type1991 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type1991 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type1992 { get; set; } + public global::tryAGI.OpenAI.ResponseTextParam? Type1992 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type1993 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceParam? Type1993 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type1994 { get; set; } + public global::tryAGI.OpenAI.ResponsePropertiesTruncation2? Type1994 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1995 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEvent? Type1995 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type1996 { get; set; } + public global::tryAGI.OpenAI.ResponseQueuedEventType? Type1996 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type1997 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEvent? Type1997 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type1998 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventType? Type1998 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type1999 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPart? Type1999 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type2000 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartAddedEventPartType? Type2000 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type2001 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEvent? Type2001 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEvent? Type2002 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventType? Type2002 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type2003 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPart? Type2003 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type2004 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryPartDoneEventPartType? Type2004 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type2005 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEvent? Type2005 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type2006 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDeltaEventType? Type2006 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEvent? Type2007 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEvent? Type2007 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type2008 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningSummaryTextDoneEventType? Type2008 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleObject? Type2009 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEvent? Type2009 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleDeletedResource? Type2010 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDeltaEventType? Type2010 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type2011 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEvent? Type2011 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleListResource? Type2012 { get; set; } + public global::tryAGI.OpenAI.ResponseReasoningTextDoneEventType? Type2012 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RoleListResourceObject? Type2013 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEvent? Type2013 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2014 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDeltaEventType? Type2014 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type2015 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEvent? Type2015 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderRequest? Type2016 { get; set; } + public global::tryAGI.OpenAI.ResponseRefusalDoneEventType? Type2016 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponse? Type2017 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEvent? Type2017 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type2018 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEvent? Type2018 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type2019 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEvent? Type2019 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectObject? Type2020 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEvent? Type2020 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectStatus? Type2021 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEvent? Type2021 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredAction? Type2022 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEvent? Type2022 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type2023 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminator? Type2023 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type2024 { get; set; } + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? Type2024 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2025 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDeltaEventType? Type2025 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObject? Type2026 { get; set; } + public global::System.Collections.Generic.IList? Type2026 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastError? Type2027 { get; set; } + public global::tryAGI.OpenAI.ResponseTextDoneEventType? Type2027 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type2028 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageInputTokensDetails? Type2028 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type2029 { get; set; } + public global::tryAGI.OpenAI.ResponseUsageOutputTokensDetails? Type2029 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type2030 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallCompletedEventType? Type2030 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type2031 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallInProgressEventType? Type2031 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObject? Type2032 { get; set; } + public global::tryAGI.OpenAI.ResponseWebSearchCallSearchingEventType? Type2032 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type2033 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEvent? Type2033 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type2034 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreate? Type2034 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2035 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventDiscriminator? Type2035 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type2036 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Type2036 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type2037 { get; set; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1Type? Type2037 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type2038 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEvent? Type2038 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type2039 { get; set; } + public global::tryAGI.OpenAI.ResponsesServerEventDiscriminator? Type2039 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type2040 { get; set; } + public global::tryAGI.OpenAI.RoleObject? Type2040 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type2041 { get; set; } + public global::tryAGI.OpenAI.RoleDeletedResource? Type2041 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type2042 { get; set; } + public global::tryAGI.OpenAI.RoleDeletedResourceObject? Type2042 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2043 { get; set; } + public global::tryAGI.OpenAI.RoleListResource? Type2043 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type2044 { get; set; } + public global::tryAGI.OpenAI.RoleListResourceObject? Type2044 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type2045 { get; set; } + public global::System.Collections.Generic.IList? Type2045 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type2046 { get; set; } + public global::tryAGI.OpenAI.RunCompletionUsageVariant1? Type2046 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type2047 { get; set; } + public global::tryAGI.OpenAI.RunGraderRequest? Type2047 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type2048 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponse? Type2048 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type2049 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadata? Type2049 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type2050 { get; set; } + public global::tryAGI.OpenAI.RunGraderResponseMetadataErrors? Type2050 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type2051 { get; set; } + public global::tryAGI.OpenAI.RunObjectObject? Type2051 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type2052 { get; set; } + public global::tryAGI.OpenAI.RunObjectStatus? Type2052 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type2053 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredAction? Type2053 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type2054 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionType? Type2054 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type2055 { get; set; } + public global::tryAGI.OpenAI.RunObjectRequiredActionSubmitToolOutputs? Type2055 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type2056 { get; set; } + public global::System.Collections.Generic.IList? Type2056 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type2057 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObject? Type2057 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type2058 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastError? Type2058 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type2059 { get; set; } + public global::tryAGI.OpenAI.RunObjectLastErrorCode? Type2059 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type2060 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetails? Type2060 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type2061 { get; set; } + public global::tryAGI.OpenAI.RunObjectIncompleteDetailsReason? Type2061 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2062 { get; set; } + public global::tryAGI.OpenAI.RunStepCompletionUsageVariant1? Type2062 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type2063 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObject? Type2063 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type2064 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectObject? Type2064 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type2065 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaObjectDelta? Type2065 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type2066 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2066 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type2067 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObject? Type2067 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type2068 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObject? Type2068 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type2069 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectType? Type2069 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type2070 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsMessageCreationObjectMessageCreation? Type2070 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type2071 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObject? Type2071 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2072 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectType? Type2072 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type2073 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter? Type2073 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2074 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2074 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2075 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject? Type2075 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2076 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObject? Type2076 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2077 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectType? Type2077 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2078 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage? Type2078 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2079 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsCodeOutputLogsObjectType? Type2079 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2080 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObject? Type2080 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2081 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFileSearchObjectType? Type2081 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectObject? Type2082 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObject? Type2082 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectType? Type2083 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectType? Type2083 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectStatus? Type2084 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsFunctionObjectFunction? Type2084 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2085 { get; set; } + public global::tryAGI.OpenAI.RunStepDeltaStepDetailsToolCallsObjectType? Type2085 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastError2? Type2086 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObject? Type2086 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2087 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectType? Type2087 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2088 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsMessageCreationObjectMessageCreation? Type2088 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2089 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObject? Type2089 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2090 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectType? Type2090 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2091 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeObjectCodeInterpreter? Type2091 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2092 { get; set; } + public global::System.Collections.Generic.IList>? Type2092 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2093 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2093 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2094 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObject? Type2094 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2095 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObject? Type2095 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2096 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectType? Type2096 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2097 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputImageObjectImage? Type2097 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2098 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsCodeOutputLogsObjectType? Type2098 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2099 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObject? Type2099 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2100 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectType? Type2100 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2101 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchObjectFileSearch? Type2101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2102 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchRankingOptionsObject? Type2102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2103 { get; set; } + public global::System.Collections.Generic.IList? Type2103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2104 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObject? Type2104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2105 { get; set; } + public global::System.Collections.Generic.IList? Type2105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2106 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItem? Type2106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2107 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFileSearchResultObjectContentItemType? Type2107 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2108 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObject? Type2108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2109 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectType? Type2109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2110 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsFunctionObjectFunction? Type2110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2111 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObject? Type2111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2112 { get; set; } + public global::tryAGI.OpenAI.RunStepDetailsToolCallsObjectType? Type2112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2113 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectObject? Type2113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2114 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectType? Type2114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2115 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectStatus? Type2115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2116 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2117 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastError2? Type2117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2118 { get; set; } + public global::tryAGI.OpenAI.RunStepObjectLastErrorCode? Type2118 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2119 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Type2119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2120 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1Event? Type2120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2121 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Type2121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectType? Type2122 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2Event? Type2122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2123 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Type2123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2124 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3Event? Type2124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2125 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Type2125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2126 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4Event? Type2126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2127 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Type2127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2128 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5Event? Type2128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2129 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Type2129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2130 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6Event? Type2130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2131 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Type2131 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2132 { get; set; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7Event? Type2132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2133 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1? Type2133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2134 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant1Event? Type2134 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2135 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2? Type2135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObject? Type2136 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant2Event? Type2136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectObject? Type2137 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3? Type2137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResources2? Type2138 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant3Event? Type2138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2139 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4? Type2139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2140 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant4Event? Type2140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2141 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5? Type2141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2142 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant5Event? Type2142 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2143 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6? Type2143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionTool? Type2144 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant6Event? Type2144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchTool? Type2145 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7? Type2145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerTool? Type2146 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant7Event? Type2146 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2147 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8? Type2147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchTool? Type2148 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant8Event? Type2148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParam? Type2149 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9? Type2149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParam? Type2150 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant9Event? Type2150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParam? Type2151 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10? Type2151 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParam? Type2152 { get; set; } + public global::tryAGI.OpenAI.RunStreamEventVariant10Event? Type2152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParam? Type2153 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectType? Type2153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2154 { get; set; } + public global::tryAGI.OpenAI.RunToolCallObjectFunction? Type2154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2155 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDeltaEventType? Type2155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolDiscriminator? Type2156 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventType? Type2156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2157 { get; set; } + public global::tryAGI.OpenAI.SpeechAudioDoneEventUsage? Type2157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2158 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategy? Type2158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2159 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyRequestParamType? Type2159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustom? Type2160 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParam? Type2160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2161 { get; set; } + public global::tryAGI.OpenAI.StaticChunkingStrategyResponseParamType? Type2161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2162 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequest? Type2162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2163 { get; set; } + public global::System.Collections.Generic.IList? Type2163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypes? Type2164 { get; set; } + public global::tryAGI.OpenAI.SubmitToolOutputsRunRequestToolOutput? Type2164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2165 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchema? Type2165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2166 { get; set; } + public global::tryAGI.OpenAI.TextResponseFormatJsonSchemaType? Type2166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2167 { get; set; } + public global::tryAGI.OpenAI.ThreadObject? Type2167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2168 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectObject? Type2168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2169 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResources2? Type2169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2170 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesCodeInterpreter? Type2170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2171 { get; set; } + public global::tryAGI.OpenAI.ThreadObjectToolResourcesFileSearch? Type2171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2172 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Type2172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2173 { get; set; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1Event? Type2173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2174 { get; set; } + public global::tryAGI.OpenAI.ToggleCertificatesRequest? Type2174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2175 { get; set; } + public global::tryAGI.OpenAI.FunctionTool? Type2175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2176 { get; set; } + public global::tryAGI.OpenAI.FileSearchTool? Type2176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2177 { get; set; } + public global::tryAGI.OpenAI.ComputerTool? Type2177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2178 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewTool? Type2178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2179 { get; set; } + public global::tryAGI.OpenAI.WebSearchTool? Type2179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2180 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolParam? Type2180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationObjectType? Type2181 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParam? Type2181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateGroupBody? Type2182 { get; set; } + public global::tryAGI.OpenAI.CustomToolParam? Type2182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2183 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParam? Type2183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2184 { get; set; } + public global::tryAGI.OpenAI.ToolSearchToolParam? Type2184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2185 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewTool? Type2185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2186 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolParam? Type2186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Upload? Type2187 { get; set; } + public global::tryAGI.OpenAI.ToolDiscriminator? Type2187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadStatus? Type2188 { get; set; } + public global::tryAGI.OpenAI.ToolDiscriminatorType? Type2188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadObject? Type2189 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowed? Type2189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AllOf? Type2190 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedType? Type2190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadCertificateRequest? Type2191 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceAllowedMode? Type2191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPart? Type2192 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustom? Type2192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UploadPartObject? Type2193 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceCustomType? Type2193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2194 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceFunctionType? Type2194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2195 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceMCPType? Type2195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2196 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypes? Type2196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2197 { get; set; } + public global::tryAGI.OpenAI.SpecificApplyPatchParam? Type2197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2198 { get; set; } + public global::tryAGI.OpenAI.SpecificFunctionShellParam? Type2198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2199 { get; set; } + public global::tryAGI.OpenAI.ToolChoiceTypesType? Type2199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResult? Type2200 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventType? Type2200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2201 { get; set; } + public global::System.Collections.Generic.IList? Type2201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2202 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDeltaEventLogprob? Type2202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2203 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventType? Type2203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResult? Type2204 { get; set; } + public global::System.Collections.Generic.IList? Type2204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesResultObject? Type2205 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextDoneEventLogprob? Type2205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResult? Type2206 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextSegmentEventType? Type2206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2207 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageDurationType? Type2207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponse? Type2208 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensType? Type2208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageResponseObject? Type2209 { get; set; } + public global::tryAGI.OpenAI.TranscriptTextUsageTokensInputTokenDetails? Type2209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2210 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategy? Type2210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucket? Type2211 { get; set; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Type2211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2212 { get; set; } + public global::tryAGI.OpenAI.TranscriptionDiarizedSegmentType? Type2212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2213 { get; set; } + public global::tryAGI.OpenAI.TruncationObjectType? Type2213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResultsItem? Type2214 { get; set; } + public global::tryAGI.OpenAI.UpdateGroupBody? Type2214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2215 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreFileAttributesRequest? Type2215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2216 { get; set; } + public global::tryAGI.OpenAI.UpdateVectorStoreRequest? Type2216 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2217 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.User? Type2218 { get; set; } + public global::tryAGI.OpenAI.UpdateVoiceConsentRequest? Type2218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserObject? Type2219 { get; set; } + public global::tryAGI.OpenAI.Upload? Type2219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1? Type2220 { get; set; } + public global::tryAGI.OpenAI.UploadStatus? Type2220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserUser1Object? Type2221 { get; set; } + public global::tryAGI.OpenAI.UploadObject? Type2221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjects2? Type2222 { get; set; } + public global::tryAGI.OpenAI.AllOf? Type2222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsObject? Type2223 { get; set; } + public global::tryAGI.OpenAI.UploadCertificateRequest? Type2223 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2224 { get; set; } + public global::tryAGI.OpenAI.UploadPart? Type2224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserProjectsDataItem? Type2225 { get; set; } + public global::tryAGI.OpenAI.UploadPartObject? Type2225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponse? Type2226 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResult? Type2226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2227 { get; set; } + public global::tryAGI.OpenAI.UsageAudioSpeechesResultObject? Type2227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResource? Type2228 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResult? Type2228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResourceObject? Type2229 { get; set; } + public global::tryAGI.OpenAI.UsageAudioTranscriptionsResultObject? Type2229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2230 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResult? Type2230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponse? Type2231 { get; set; } + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsResultObject? Type2231 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserListResponseObject? Type2232 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResult? Type2232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2233 { get; set; } + public global::tryAGI.OpenAI.UsageCompletionsResultObject? Type2233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignment? Type2234 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResult? Type2234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2235 { get; set; } + public global::tryAGI.OpenAI.UsageEmbeddingsResultObject? Type2235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2236 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResult? Type2236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VadConfigType? Type2237 { get; set; } + public global::tryAGI.OpenAI.UsageImagesResultObject? Type2237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderRequest? Type2238 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResult? Type2238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ValidateGraderResponse? Type2239 { get; set; } + public global::tryAGI.OpenAI.UsageModerationsResultObject? Type2239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2240 { get; set; } + public global::tryAGI.OpenAI.UsageResponse? Type2240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2241 { get; set; } + public global::tryAGI.OpenAI.UsageResponseObject? Type2241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2242 { get; set; } + public global::System.Collections.Generic.IList? Type2242 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2243 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucket? Type2243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2244 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketObject? Type2244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2245 { get; set; } + public global::System.Collections.Generic.IList? Type2245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2246 { get; set; } + public global::tryAGI.OpenAI.ResultsItem? Type2246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2247 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResult? Type2247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2248 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminator? Type2248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2249 { get; set; } + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Type2249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2250 { get; set; } + public global::tryAGI.OpenAI.UsageVectorStoresResultObject? Type2250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2251 { get; set; } + public global::tryAGI.OpenAI.User? Type2251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastError2? Type2252 { get; set; } + public global::tryAGI.OpenAI.UserObject? Type2252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2253 { get; set; } + public global::tryAGI.OpenAI.UserUser1? Type2253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2254 { get; set; } + public global::tryAGI.OpenAI.UserUser1Object? Type2254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2255 { get; set; } + public global::tryAGI.OpenAI.UserProjects2? Type2255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2256 { get; set; } + public global::tryAGI.OpenAI.UserProjectsObject? Type2256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2257 { get; set; } + public global::System.Collections.Generic.IList? Type2257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2258 { get; set; } + public global::tryAGI.OpenAI.UserProjectsDataItem? Type2258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2259 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponse? Type2259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2260 { get; set; } + public global::tryAGI.OpenAI.UserDeleteResponseObject? Type2260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2261 { get; set; } + public global::tryAGI.OpenAI.UserListResource? Type2261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2262 { get; set; } + public global::tryAGI.OpenAI.UserListResourceObject? Type2262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2263 { get; set; } + public global::System.Collections.Generic.IList? Type2263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2264 { get; set; } + public global::tryAGI.OpenAI.UserListResponse? Type2264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2265 { get; set; } + public global::tryAGI.OpenAI.UserListResponseObject? Type2265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2266 { get; set; } + public global::System.Collections.Generic.IList? Type2266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2267 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignment? Type2267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2268 { get; set; } + public global::tryAGI.OpenAI.UserRoleAssignmentObject? Type2268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2269 { get; set; } + public global::tryAGI.OpenAI.UserRoleUpdateRequest? Type2269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2270 { get; set; } + public global::tryAGI.OpenAI.VadConfigType? Type2270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2271 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderRequest? Type2271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResource? Type2272 { get; set; } + public global::tryAGI.OpenAI.ValidateGraderResponse? Type2272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2273 { get; set; } + public global::tryAGI.OpenAI.VectorStoreExpirationAfterAnchor? Type2273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2274 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResource? Type2275 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObject? Type2275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2276 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectObject? Type2276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2277 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectStatus? Type2277 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2278 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileBatchObjectFileCounts? Type2278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResource? Type2279 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponse? Type2279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VoiceResourceObject? Type2280 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseObject? Type2280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFind? Type2281 { get; set; } + public global::System.Collections.Generic.IList? Type2281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionFindType? Type2282 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileContentResponseDataItem? Type2282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2283 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectObject? Type2283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2284 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectStatus? Type2284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearch? Type2285 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastError2? Type2285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2286 { get; set; } + public global::tryAGI.OpenAI.VectorStoreFileObjectLastErrorCode? Type2286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2287 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2288 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectObject? Type2288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2289 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectFileCounts? Type2289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2290 { get; set; } + public global::tryAGI.OpenAI.VectorStoreObjectStatus? Type2290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2291 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequest? Type2291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolType? Type2292 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolFilters2? Type2293 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2294 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptions? Type2294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallType? Type2295 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchRequestRankingOptionsRanker? Type2295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type2296 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObject? Type2296 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2297 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultContentObjectType? Type2297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2298 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultItem? Type2298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2299 { get; set; } + public global::System.Collections.Generic.IList? Type2299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2300 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPage? Type2300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2301 { get; set; } + public global::tryAGI.OpenAI.VectorStoreSearchResultsPageObject? Type2301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2302 { get; set; } + public global::System.Collections.Generic.IList? Type2302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2303 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResource? Type2303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2304 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentDeletedResourceObject? Type2304 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2305 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResource? Type2305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2306 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentListResourceObject? Type2306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpired? Type2307 { get; set; } + public global::System.Collections.Generic.IList? Type2307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2308 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResource? Type2308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2309 { get; set; } + public global::tryAGI.OpenAI.VoiceConsentResourceObject? Type2309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2310 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Type2310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailed? Type2311 { get; set; } + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type2311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2312 { get; set; } + public global::tryAGI.OpenAI.VoiceResource? Type2312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2313 { get; set; } + public global::tryAGI.OpenAI.VoiceResourceObject? Type2313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2314 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFind? Type2314 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2315 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionFindType? Type2315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2316 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPage? Type2316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2317 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionOpenPageType? Type2317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2318 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearch? Type2318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2319 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchType? Type2319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2320 { get; set; } + public global::System.Collections.Generic.IList? Type2320 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2321 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSource? Type2321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2322 { get; set; } + public global::tryAGI.OpenAI.WebSearchActionSearchSourceType? Type2322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2323 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1? Type2323 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2324 { get; set; } + public global::tryAGI.OpenAI.WebSearchApproximateLocationWebSearchApproximateLocation1Type? Type2324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2325 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolType? Type2325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2326 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolFilters2? Type2326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2327 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolSearchContextSize? Type2327 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2328 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallType? Type2328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2329 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallStatus? Type2329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2330 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallAction? Type2330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2331 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminator? Type2331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2332 { get; set; } + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Type2332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2333 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelled? Type2333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2334 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledData? Type2334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2335 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledObject? Type2335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2336 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCancelledType? Type2336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2337 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompleted? Type2337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2338 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedData? Type2338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2339 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedObject? Type2339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2340 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchCompletedType? Type2340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2341 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpired? Type2341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2342 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredData? Type2342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2343 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredObject? Type2343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2344 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchExpiredType? Type2344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2345 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailed? Type2345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2346 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedData? Type2346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2347 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedObject? Type2347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2348 { get; set; } + public global::tryAGI.OpenAI.WebhookBatchFailedType? Type2348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2349 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceled? Type2349 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2350 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledData? Type2350 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2351 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledObject? Type2351 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2352 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunCanceledType? Type2352 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailed? Type2353 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailed? Type2353 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2354 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedData? Type2354 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2355 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedObject? Type2355 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2356 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunFailedType? Type2356 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2357 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceeded? Type2357 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2358 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededData? Type2358 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2359 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededObject? Type2359 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2360 { get; set; } + public global::tryAGI.OpenAI.WebhookEvalRunSucceededType? Type2360 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillReferenceParamType? Type2361 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelled? Type2361 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2362 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledData? Type2362 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2363 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledObject? Type2363 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2364 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobCancelledType? Type2364 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InlineSkillParamType? Type2365 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailed? Type2365 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2366 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedData? Type2366 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2367 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedObject? Type2367 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2368 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobFailedType? Type2368 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2369 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceeded? Type2369 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageStatus? Type2370 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededData? Type2370 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageRole? Type2371 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededObject? Type2371 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentType? Type2372 { get; set; } + public global::tryAGI.OpenAI.WebhookFineTuningJobSucceededType? Type2372 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBody? Type2373 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncoming? Type2373 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileCitationBodyType? Type2374 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingData? Type2374 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBody? Type2375 { get; set; } + public global::System.Collections.Generic.IList? Type2375 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlCitationBodyType? Type2376 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingDataSipHeader? Type2376 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2377 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingObject? Type2377 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2378 { get; set; } + public global::tryAGI.OpenAI.WebhookRealtimeCallIncomingType? Type2378 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Annotation? Type2379 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelled? Type2379 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2380 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledData? Type2380 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TopLogProb? Type2381 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledObject? Type2381 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LogProb? Type2382 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCancelledType? Type2382 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2383 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompleted? Type2383 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputTextContentType? Type2384 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedData? Type2384 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2385 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedObject? Type2385 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2386 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseCompletedType? Type2386 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContent? Type2387 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailed? Type2387 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TextContentType? Type2388 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedData? Type2388 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SummaryTextContentType? Type2389 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedObject? Type2389 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ReasoningTextContentType? Type2390 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseFailedType? Type2390 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RefusalContentType? Type2391 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncomplete? Type2391 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageDetail? Type2392 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteData? Type2392 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentType? Type2393 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteObject? Type2393 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2394 { get; set; } + public global::tryAGI.OpenAI.WebhookResponseIncompleteType? Type2394 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2395 { get; set; } + public global::tryAGI.OpenAI.SkillReferenceParamType? Type2395 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileInputDetail? Type2396 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParam? Type2396 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentType? Type2397 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamType? Type2397 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessagePhase2? Type2398 { get; set; } + public global::tryAGI.OpenAI.InlineSkillSourceParamMediaType? Type2398 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageType? Type2399 { get; set; } + public global::tryAGI.OpenAI.InlineSkillParamType? Type2399 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2400 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParamType? Type2400 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem3? Type2401 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyDomainSecretParam? Type2401 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2402 { get; set; } + public global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParamType? Type2402 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickButtonType? Type2403 { get; set; } + public global::System.Collections.Generic.IList? Type2403 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClickParamType? Type2404 { get; set; } + public global::tryAGI.OpenAI.MessageStatus? Type2404 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DoubleClickActionType? Type2405 { get; set; } + public global::tryAGI.OpenAI.MessageRole? Type2405 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CoordParam? Type2406 { get; set; } + public global::tryAGI.OpenAI.InputTextContentType? Type2406 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragParamType? Type2407 { get; set; } + public global::tryAGI.OpenAI.FileCitationBody? Type2407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2408 { get; set; } + public global::tryAGI.OpenAI.FileCitationBodyType? Type2408 { get; set; } /// /// /// - public global::tryAGI.OpenAI.KeyPressActionType? Type2409 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBody? Type2409 { get; set; } /// /// /// - public global::tryAGI.OpenAI.MoveParamType? Type2410 { get; set; } + public global::tryAGI.OpenAI.UrlCitationBodyType? Type2410 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScreenshotParamType? Type2411 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBody? Type2411 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ScrollParamType? Type2412 { get; set; } + public global::tryAGI.OpenAI.ContainerFileCitationBodyType? Type2412 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TypeParamType? Type2413 { get; set; } + public global::tryAGI.OpenAI.Annotation? Type2413 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WaitParamType? Type2414 { get; set; } + public global::tryAGI.OpenAI.AnnotationDiscriminator? Type2414 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2415 { get; set; } + public global::tryAGI.OpenAI.AnnotationDiscriminatorType? Type2415 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallType? Type2416 { get; set; } + public global::tryAGI.OpenAI.TopLogProb? Type2416 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolType? Type2417 { get; set; } + public global::tryAGI.OpenAI.LogProb? Type2417 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankerVersionType? Type2418 { get; set; } + public global::System.Collections.Generic.IList? Type2418 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HybridSearchOptions? Type2419 { get; set; } + public global::tryAGI.OpenAI.OutputTextContentType? Type2419 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RankingOptions? Type2420 { get; set; } + public global::System.Collections.Generic.IList? Type2420 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Filters2? Type2421 { get; set; } + public global::System.Collections.Generic.IList? Type2421 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileSearchToolType? Type2422 { get; set; } + public global::tryAGI.OpenAI.TextContent? Type2422 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerToolType? Type2423 { get; set; } + public global::tryAGI.OpenAI.TextContentType? Type2423 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerEnvironment? Type2424 { get; set; } + public global::tryAGI.OpenAI.SummaryTextContentType? Type2424 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2425 { get; set; } + public global::tryAGI.OpenAI.ReasoningTextContentType? Type2425 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2426 { get; set; } + public global::tryAGI.OpenAI.RefusalContentType? Type2426 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2427 { get; set; } + public global::tryAGI.OpenAI.ImageDetail? Type2427 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy2? Type2428 { get; set; } + public global::tryAGI.OpenAI.InputImageContentType? Type2428 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2429 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContent? Type2429 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellToolParamType? Type2430 { get; set; } + public global::tryAGI.OpenAI.ComputerScreenshotContentType? Type2430 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParam? Type2431 { get; set; } + public global::tryAGI.OpenAI.FileInputDetail? Type2431 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamType? Type2432 { get; set; } + public global::tryAGI.OpenAI.InputFileContentType? Type2432 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NetworkPolicy3? Type2433 { get; set; } + public global::tryAGI.OpenAI.MessagePhase2? Type2433 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2434 { get; set; } + public global::tryAGI.OpenAI.MessageType? Type2434 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2435 { get; set; } + public global::System.Collections.Generic.IList? Type2435 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillsItem2? Type2436 { get; set; } + public global::tryAGI.OpenAI.ContentItem3? Type2436 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2437 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminator? Type2437 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalSkillParam? Type2438 { get; set; } + public global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Type2438 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2439 { get; set; } + public global::tryAGI.OpenAI.ClickButtonType? Type2439 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2440 { get; set; } + public global::tryAGI.OpenAI.ClickParamType? Type2440 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2441 { get; set; } + public global::tryAGI.OpenAI.DoubleClickActionType? Type2441 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParam? Type2442 { get; set; } + public global::tryAGI.OpenAI.CoordParam? Type2442 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2443 { get; set; } + public global::tryAGI.OpenAI.DragParamType? Type2443 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2444 { get; set; } + public global::System.Collections.Generic.IList? Type2444 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant1? Type2445 { get; set; } + public global::tryAGI.OpenAI.KeyPressActionType? Type2445 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2446 { get; set; } + public global::tryAGI.OpenAI.MoveParamType? Type2446 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParam? Type2447 { get; set; } + public global::tryAGI.OpenAI.ScreenshotParamType? Type2447 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2448 { get; set; } + public global::tryAGI.OpenAI.ScrollParamType? Type2448 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GrammarSyntax1? Type2449 { get; set; } + public global::tryAGI.OpenAI.TypeParamType? Type2449 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2450 { get; set; } + public global::tryAGI.OpenAI.WaitParamType? Type2450 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2451 { get; set; } + public global::tryAGI.OpenAI.ToolSearchExecutionType? Type2451 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamType? Type2452 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallType? Type2452 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Format2? Type2453 { get; set; } + public global::tryAGI.OpenAI.FunctionToolType? Type2453 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2454 { get; set; } + public global::tryAGI.OpenAI.RankerVersionType? Type2454 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EmptyModelParam? Type2455 { get; set; } + public global::tryAGI.OpenAI.HybridSearchOptions? Type2455 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParam? Type2456 { get; set; } + public global::tryAGI.OpenAI.RankingOptions? Type2456 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionToolParamType? Type2457 { get; set; } + public global::tryAGI.OpenAI.Filters2? Type2457 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamType? Type2458 { get; set; } + public global::tryAGI.OpenAI.FileSearchToolType? Type2458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2459 { get; set; } + public global::tryAGI.OpenAI.ComputerToolType? Type2459 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolsItem13? Type2460 { get; set; } + public global::tryAGI.OpenAI.ComputerEnvironment? Type2460 { get; set; } /// /// /// - public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2461 { get; set; } + public global::tryAGI.OpenAI.ComputerUsePreviewToolType? Type2461 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2462 { get; set; } + public global::tryAGI.OpenAI.ContainerMemoryLimit? Type2462 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocation? Type2463 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamType? Type2463 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApproximateLocationType? Type2464 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy2? Type2464 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContextSize? Type2465 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator? Type2465 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SearchContentType? Type2466 { get; set; } + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type2466 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2467 { get; set; } + public global::tryAGI.OpenAI.LocalShellToolParamType? Type2467 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2468 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParam? Type2468 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2469 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamType? Type2469 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputType? Type2470 { get; set; } + public global::tryAGI.OpenAI.NetworkPolicy3? Type2470 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionBodyType? Type2471 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminator? Type2471 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2472 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Type2472 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2473 { get; set; } + public global::System.Collections.Generic.IList? Type2473 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalShellExecActionType? Type2474 { get; set; } + public global::tryAGI.OpenAI.SkillsItem2? Type2474 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellAction? Type2475 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminator? Type2475 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallStatus? Type2476 { get; set; } + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Type2476 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2477 { get; set; } + public global::tryAGI.OpenAI.LocalSkillParam? Type2477 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2478 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParam? Type2478 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResource? Type2479 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentParamType? Type2479 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2480 { get; set; } + public global::System.Collections.Generic.IList? Type2480 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallType? Type2481 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParam? Type2481 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant12? Type2482 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceParamType? Type2482 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2483 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamType? Type2483 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type2484 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant1? Type2484 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2485 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1Discriminator? Type2485 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2486 { get; set; } + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type2486 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2487 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParam? Type2487 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2488 { get; set; } + public global::tryAGI.OpenAI.CustomTextFormatParamType? Type2488 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2489 { get; set; } + public global::tryAGI.OpenAI.GrammarSyntax1? Type2489 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Outcome? Type2490 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParam? Type2490 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2491 { get; set; } + public global::tryAGI.OpenAI.CustomGrammarFormatParamType? Type2491 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2492 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamType? Type2492 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2493 { get; set; } + public global::tryAGI.OpenAI.Format2? Type2493 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type2494 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminator? Type2494 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type2495 { get; set; } + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Type2495 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type2496 { get; set; } + public global::tryAGI.OpenAI.EmptyModelParam? Type2496 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type2497 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParam? Type2497 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type2498 { get; set; } + public global::tryAGI.OpenAI.FunctionToolParamType? Type2498 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type2499 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamType? Type2499 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type2500 { get; set; } + public global::System.Collections.Generic.IList? Type2500 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type2501 { get; set; } + public global::tryAGI.OpenAI.ToolsItem13? Type2501 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Operation? Type2502 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminator? Type2502 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type2503 { get; set; } + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Type2503 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type2504 { get; set; } + public global::tryAGI.OpenAI.ToolSearchToolParamType? Type2504 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type2505 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocation? Type2505 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DetailEnum? Type2506 { get; set; } + public global::tryAGI.OpenAI.ApproximateLocationType? Type2506 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallItemStatus? Type2507 { get; set; } + public global::tryAGI.OpenAI.SearchContextSize? Type2507 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type2508 { get; set; } + public global::tryAGI.OpenAI.SearchContentType? Type2508 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParam? Type2509 { get; set; } + public global::tryAGI.OpenAI.WebSearchPreviewToolType? Type2509 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputTextContentParamType? Type2510 { get; set; } + public global::System.Collections.Generic.IList? Type2510 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type2511 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolParamType? Type2511 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type2512 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputType? Type2512 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileDetailEnum? Type2513 { get; set; } + public global::tryAGI.OpenAI.CompactionBodyType? Type2513 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParam? Type2514 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputLogsType? Type2514 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InputFileContentParamType? Type2515 { get; set; } + public global::tryAGI.OpenAI.CodeInterpreterOutputImageType? Type2515 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type2516 { get; set; } + public global::tryAGI.OpenAI.LocalShellExecActionType? Type2516 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf>? Type2517 { get; set; } + public global::tryAGI.OpenAI.FunctionShellAction? Type2517 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2518 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallStatus? Type2518 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OutputVariant2Item? Type2519 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResource? Type2519 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type2520 { get; set; } + public global::tryAGI.OpenAI.LocalEnvironmentResourceType? Type2520 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type2521 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResource? Type2521 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type2522 { get; set; } + public global::tryAGI.OpenAI.ContainerReferenceResourceType? Type2522 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type2523 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallType? Type2523 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellActionParam? Type2524 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant12? Type2524 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type2525 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1Discriminator? Type2525 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type2526 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Type2526 { get; set; } /// /// /// - public global::tryAGI.OpenAI.EnvironmentVariant13? Type2527 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputStatusEnum? Type2527 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type2528 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? Type2528 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type2529 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeType? Type2529 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type2530 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? Type2530 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type2531 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeType? Type2531 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type2532 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContent? Type2532 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type2533 { get; set; } + public global::tryAGI.OpenAI.Outcome? Type2533 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type2534 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminator? Type2534 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type2535 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Type2535 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type2536 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputType? Type2536 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2537 { get; set; } + public global::System.Collections.Generic.IList? Type2537 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type2538 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatus? Type2538 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type2539 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? Type2539 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type2540 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType? Type2540 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type2541 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? Type2541 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type2542 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationType? Type2542 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type2543 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? Type2543 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type2544 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationType? Type2544 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type2545 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallType? Type2545 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type2546 { get; set; } + public global::tryAGI.OpenAI.Operation? Type2546 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type2547 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminator? Type2547 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type2548 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Type2548 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type2549 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatus? Type2549 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemReferenceParamType2? Type2550 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputType? Type2550 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResource? Type2551 { get; set; } + public global::tryAGI.OpenAI.DetailEnum? Type2551 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ConversationResourceObject? Type2552 { get; set; } + public global::tryAGI.OpenAI.FunctionCallItemStatus? Type2552 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type2553 { get; set; } + public global::tryAGI.OpenAI.ComputerCallOutputItemParamType? Type2553 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type2554 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParam? Type2554 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type2555 { get; set; } + public global::tryAGI.OpenAI.InputTextContentParamType? Type2555 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type2556 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParam? Type2556 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationBody? Type2557 { get; set; } + public global::tryAGI.OpenAI.InputImageContentParamAutoParamType? Type2557 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateConversationBody? Type2558 { get; set; } + public global::tryAGI.OpenAI.FileDetailEnum? Type2558 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type2559 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParam? Type2559 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OrderEnum? Type2560 { get; set; } + public global::tryAGI.OpenAI.InputFileContentParamType? Type2560 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModel? Type2561 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamType? Type2561 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoModelEnum? Type2562 { get; set; } + public global::tryAGI.OpenAI.OneOf>? Type2562 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoStatus? Type2563 { get; set; } + public global::System.Collections.Generic.IList? Type2563 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSize? Type2564 { get; set; } + public global::tryAGI.OpenAI.OutputVariant2Item? Type2564 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Error2? Type2565 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator? Type2565 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResource? Type2566 { get; set; } + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type2566 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoResourceObject? Type2567 { get; set; } + public global::tryAGI.OpenAI.ToolSearchCallItemParamType? Type2567 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResource? Type2568 { get; set; } + public global::tryAGI.OpenAI.ToolSearchOutputItemParamType? Type2568 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoListResourceObject? Type2569 { get; set; } + public global::tryAGI.OpenAI.CompactionSummaryItemParamType? Type2569 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2570 { get; set; } + public global::tryAGI.OpenAI.FunctionShellActionParam? Type2570 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ImageRefParam2? Type2571 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemStatus? Type2571 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoSeconds? Type2572 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamType? Type2572 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type2573 { get; set; } + public global::tryAGI.OpenAI.EnvironmentVariant13? Type2573 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2574 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1Discriminator? Type2574 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoJsonBody? Type2575 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type2575 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type2576 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? Type2576 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoCharacterResource? Type2577 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParamType? Type2577 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoReferenceInputParam? Type2578 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? Type2578 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type2579 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParamType? Type2579 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2580 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParam? Type2580 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type2581 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminator? Type2581 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type2582 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Type2582 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2583 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputContentParam? Type2583 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type2584 { get; set; } + public global::tryAGI.OpenAI.FunctionShellCallOutputItemParamType? Type2584 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResource? Type2585 { get; set; } + public global::System.Collections.Generic.IList? Type2585 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type2586 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallStatusParam? Type2586 { get; set; } /// /// /// - public global::tryAGI.OpenAI.VideoContentVariant? Type2587 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? Type2587 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateVideoRemixBody? Type2588 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParamType? Type2588 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TruncationEnum? Type2589 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? Type2589 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsBody? Type2590 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParamType? Type2590 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResource? Type2591 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? Type2591 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TokenCountsResourceObject? Type2592 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParamType? Type2592 { get; set; } /// /// /// - public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type2593 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParam? Type2593 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type2594 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminator? Type2594 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemField? Type2595 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Type2595 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type2596 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallItemParamType? Type2596 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResource? Type2597 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchCallOutputStatusParam? Type2597 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CompactResourceObject? Type2598 { get; set; } + public global::tryAGI.OpenAI.ApplyPatchToolCallOutputItemParamType? Type2598 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2599 { get; set; } + public global::tryAGI.OpenAI.ItemReferenceParamType2? Type2599 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResource? Type2600 { get; set; } + public global::tryAGI.OpenAI.ConversationResource? Type2600 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillResourceObject? Type2601 { get; set; } + public global::tryAGI.OpenAI.ConversationResourceObject? Type2601 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResource? Type2602 { get; set; } + public global::tryAGI.OpenAI.ImageGenOutputTokensDetails? Type2602 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillListResourceObject? Type2603 { get; set; } + public global::tryAGI.OpenAI.ImageGenInputUsageDetails? Type2603 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2604 { get; set; } + public global::tryAGI.OpenAI.SpecificApplyPatchParamType? Type2604 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillBody? Type2605 { get; set; } + public global::tryAGI.OpenAI.SpecificFunctionShellParamType? Type2605 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf, byte[]>? Type2606 { get; set; } + public global::tryAGI.OpenAI.CreateConversationBody? Type2606 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type2607 { get; set; } + public global::tryAGI.OpenAI.UpdateConversationBody? Type2607 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResource? Type2608 { get; set; } + public global::tryAGI.OpenAI.DeletedConversationResourceObject? Type2608 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type2609 { get; set; } + public global::tryAGI.OpenAI.OrderEnum? Type2609 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResource? Type2610 { get; set; } + public global::tryAGI.OpenAI.VideoModel? Type2610 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionResourceObject? Type2611 { get; set; } + public global::tryAGI.OpenAI.VideoModelEnum? Type2611 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResource? Type2612 { get; set; } + public global::tryAGI.OpenAI.VideoStatus? Type2612 { get; set; } /// /// /// - public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type2613 { get; set; } + public global::tryAGI.OpenAI.VideoSize? Type2613 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2614 { get; set; } + public global::tryAGI.OpenAI.Error2? Type2614 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateSkillVersionBody? Type2615 { get; set; } + public global::tryAGI.OpenAI.VideoResource? Type2615 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type2616 { get; set; } + public global::tryAGI.OpenAI.VideoResourceObject? Type2616 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type2617 { get; set; } + public global::tryAGI.OpenAI.VideoListResource? Type2617 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type2618 { get; set; } + public global::tryAGI.OpenAI.VideoListResourceObject? Type2618 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitWorkflow? Type2619 { get; set; } + public global::System.Collections.Generic.IList? Type2619 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2620 { get; set; } + public global::tryAGI.OpenAI.ImageRefParam2? Type2620 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionRateLimits? Type2621 { get; set; } + public global::tryAGI.OpenAI.VideoSeconds? Type2621 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionStatus? Type2622 { get; set; } + public global::tryAGI.OpenAI.CreateVideoMultipartBody? Type2622 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type2623 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2623 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionFileUpload? Type2624 { get; set; } + public global::tryAGI.OpenAI.CreateVideoJsonBody? Type2624 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionHistory? Type2625 { get; set; } + public global::tryAGI.OpenAI.CreateVideoCharacterBody? Type2625 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type2626 { get; set; } + public global::tryAGI.OpenAI.VideoCharacterResource? Type2626 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResource? Type2627 { get; set; } + public global::tryAGI.OpenAI.VideoReferenceInputParam? Type2627 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatSessionResourceObject? Type2628 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditMultipartBody? Type2628 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowTracingParam? Type2629 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2629 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WorkflowParam? Type2630 { get; set; } + public global::tryAGI.OpenAI.CreateVideoEditJsonBody? Type2630 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParam? Type2631 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendMultipartBody? Type2631 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type2632 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2632 { get; set; } /// /// /// - public global::tryAGI.OpenAI.RateLimitsParam? Type2633 { get; set; } + public global::tryAGI.OpenAI.CreateVideoExtendJsonBody? Type2633 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type2634 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResource? Type2634 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileUploadParam? Type2635 { get; set; } + public global::tryAGI.OpenAI.DeletedVideoResourceObject? Type2635 { get; set; } /// /// /// - public global::tryAGI.OpenAI.HistoryParam? Type2636 { get; set; } + public global::tryAGI.OpenAI.VideoContentVariant? Type2636 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type2637 { get; set; } + public global::tryAGI.OpenAI.CreateVideoRemixBody? Type2637 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateChatSessionBody? Type2638 { get; set; } + public global::tryAGI.OpenAI.TruncationEnum? Type2638 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputText? Type2639 { get; set; } + public global::tryAGI.OpenAI.TokenCountsBody? Type2639 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageInputTextType? Type2640 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResource? Type2640 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedText? Type2641 { get; set; } + public global::tryAGI.OpenAI.TokenCountsResourceObject? Type2641 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type2642 { get; set; } + public global::tryAGI.OpenAI.PromptCacheRetentionEnum? Type2642 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AttachmentType? Type2643 { get; set; } + public global::tryAGI.OpenAI.CompactResponseMethodPublicBody? Type2643 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Attachment? Type2644 { get; set; } + public global::tryAGI.OpenAI.ItemField? Type2644 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ToolChoice8? Type2645 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminator? Type2645 { get; set; } /// /// /// - public global::tryAGI.OpenAI.InferenceOptions? Type2646 { get; set; } + public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type2646 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItem? Type2647 { get; set; } + public global::tryAGI.OpenAI.CompactResource? Type2647 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemObject? Type2648 { get; set; } + public global::tryAGI.OpenAI.CompactResourceObject? Type2648 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemType? Type2649 { get; set; } + public global::System.Collections.Generic.IList? Type2649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2650 { get; set; } + public global::tryAGI.OpenAI.SkillResource? Type2650 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ContentItem4? Type2651 { get; set; } + public global::tryAGI.OpenAI.SkillResourceObject? Type2651 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type2652 { get; set; } + public global::tryAGI.OpenAI.SkillListResource? Type2652 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2653 { get; set; } + public global::tryAGI.OpenAI.SkillListResourceObject? Type2653 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSource? Type2654 { get; set; } + public global::System.Collections.Generic.IList? Type2654 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationSourceType? Type2655 { get; set; } + public global::tryAGI.OpenAI.CreateSkillBody? Type2655 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotation? Type2656 { get; set; } + public global::tryAGI.OpenAI.OneOf, byte[]>? Type2656 { get; set; } /// /// /// - public global::tryAGI.OpenAI.FileAnnotationType? Type2657 { get; set; } + public global::tryAGI.OpenAI.SetDefaultSkillVersionBody? Type2657 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSource? Type2658 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResource? Type2658 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type2659 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillResourceObject? Type2659 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotation? Type2660 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResource? Type2660 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UrlAnnotationType? Type2661 { get; set; } + public global::tryAGI.OpenAI.SkillVersionResourceObject? Type2661 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputText? Type2662 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResource? Type2662 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextType? Type2663 { get; set; } + public global::tryAGI.OpenAI.SkillVersionListResourceObject? Type2663 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2664 { get; set; } + public global::System.Collections.Generic.IList? Type2664 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AnnotationsItem3? Type2665 { get; set; } + public global::tryAGI.OpenAI.CreateSkillVersionBody? Type2665 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type2666 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResource? Type2666 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItem? Type2667 { get; set; } + public global::tryAGI.OpenAI.DeletedSkillVersionResourceObject? Type2667 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemObject? Type2668 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflowTracing? Type2668 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AssistantMessageItemType? Type2669 { get; set; } + public global::tryAGI.OpenAI.ChatkitWorkflow? Type2669 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2670 { get; set; } + public global::tryAGI.OpenAI.OneOf? Type2670 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItem? Type2671 { get; set; } + public global::tryAGI.OpenAI.ChatSessionRateLimits? Type2671 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemObject? Type2672 { get; set; } + public global::tryAGI.OpenAI.ChatSessionStatus? Type2672 { get; set; } /// /// /// - public global::tryAGI.OpenAI.WidgetMessageItemType? Type2673 { get; set; } + public global::tryAGI.OpenAI.ChatSessionAutomaticThreadTitling? Type2673 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallStatus? Type2674 { get; set; } + public global::tryAGI.OpenAI.ChatSessionFileUpload? Type2674 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItem? Type2675 { get; set; } + public global::tryAGI.OpenAI.ChatSessionHistory? Type2675 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemObject? Type2676 { get; set; } + public global::tryAGI.OpenAI.ChatSessionChatkitConfiguration? Type2676 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClientToolCallItemType? Type2677 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResource? Type2677 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskType? Type2678 { get; set; } + public global::tryAGI.OpenAI.ChatSessionResourceObject? Type2678 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItem? Type2679 { get; set; } + public global::tryAGI.OpenAI.WorkflowTracingParam? Type2679 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemObject? Type2680 { get; set; } + public global::tryAGI.OpenAI.WorkflowParam? Type2680 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskItemType? Type2681 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParam? Type2681 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupTask? Type2682 { get; set; } + public global::tryAGI.OpenAI.ExpiresAfterParamAnchor? Type2682 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItem? Type2683 { get; set; } + public global::tryAGI.OpenAI.RateLimitsParam? Type2683 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemObject? Type2684 { get; set; } + public global::tryAGI.OpenAI.AutomaticThreadTitlingParam? Type2684 { get; set; } /// /// /// - public global::tryAGI.OpenAI.TaskGroupItemType? Type2685 { get; set; } + public global::tryAGI.OpenAI.FileUploadParam? Type2685 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2686 { get; set; } + public global::tryAGI.OpenAI.HistoryParam? Type2686 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItem? Type2687 { get; set; } + public global::tryAGI.OpenAI.ChatkitConfigurationParam? Type2687 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type2688 { get; set; } + public global::tryAGI.OpenAI.CreateChatSessionBody? Type2688 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResource? Type2689 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputText? Type2689 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type2690 { get; set; } + public global::tryAGI.OpenAI.UserMessageInputTextType? Type2690 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2691 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedText? Type2691 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatus? Type2692 { get; set; } + public global::tryAGI.OpenAI.UserMessageQuotedTextType? Type2692 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ActiveStatusType? Type2693 { get; set; } + public global::tryAGI.OpenAI.AttachmentType? Type2693 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatus? Type2694 { get; set; } + public global::tryAGI.OpenAI.Attachment? Type2694 { get; set; } /// /// /// - public global::tryAGI.OpenAI.LockedStatusType? Type2695 { get; set; } + public global::tryAGI.OpenAI.ToolChoice8? Type2695 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatus? Type2696 { get; set; } + public global::tryAGI.OpenAI.InferenceOptions? Type2696 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ClosedStatusType? Type2697 { get; set; } + public global::tryAGI.OpenAI.UserMessageItem? Type2697 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResource? Type2698 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemObject? Type2698 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceObject? Type2699 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemType? Type2699 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Status? Type2700 { get; set; } + public global::System.Collections.Generic.IList? Type2700 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type2701 { get; set; } + public global::tryAGI.OpenAI.ContentItem4? Type2701 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResource? Type2702 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminator? Type2702 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type2703 { get; set; } + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type2703 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResource? Type2704 { get; set; } + public global::System.Collections.Generic.IList? Type2704 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ThreadListResourceObject? Type2705 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSource? Type2705 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2706 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationSourceType? Type2706 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DragPoint? Type2707 { get; set; } + public global::tryAGI.OpenAI.FileAnnotation? Type2707 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequest? Type2708 { get; set; } + public global::tryAGI.OpenAI.FileAnnotationType? Type2708 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type2709 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSource? Type2709 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type2710 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationSourceType? Type2710 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type2711 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotation? Type2711 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type2712 { get; set; } + public global::tryAGI.OpenAI.UrlAnnotationType? Type2712 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UpdateEvalRequest? Type2713 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputText? Type2713 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type2714 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextType? Type2714 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAssistantsOrder? Type2715 { get; set; } + public global::System.Collections.Generic.IList? Type2715 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type2716 { get; set; } + public global::tryAGI.OpenAI.AnnotationsItem3? Type2716 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type2717 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminator? Type2717 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainersOrder? Type2718 { get; set; } + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type2718 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListContainerFilesOrder? Type2719 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItem? Type2719 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListConversationItemsOrder? Type2720 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemObject? Type2720 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrder? Type2721 { get; set; } + public global::tryAGI.OpenAI.AssistantMessageItemType? Type2721 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListEvalsOrderBy? Type2722 { get; set; } + public global::System.Collections.Generic.IList? Type2722 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsOrder? Type2723 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItem? Type2723 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunsStatus? Type2724 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemObject? Type2724 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type2725 { get; set; } + public global::tryAGI.OpenAI.WidgetMessageItemType? Type2725 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type2726 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallStatus? Type2726 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesOrder? Type2727 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItem? Type2727 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type2728 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemObject? Type2728 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type2729 { get; set; } + public global::tryAGI.OpenAI.ClientToolCallItemType? Type2729 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type2730 { get; set; } + public global::tryAGI.OpenAI.TaskType? Type2730 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2731 { get; set; } + public global::tryAGI.OpenAI.TaskItem? Type2731 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type2732 { get; set; } + public global::tryAGI.OpenAI.TaskItemObject? Type2732 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2733 { get; set; } + public global::tryAGI.OpenAI.TaskItemType? Type2733 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type2734 { get; set; } + public global::tryAGI.OpenAI.TaskGroupTask? Type2734 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type2735 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItem? Type2735 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2736 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemObject? Type2736 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type2737 { get; set; } + public global::tryAGI.OpenAI.TaskGroupItemType? Type2737 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupsOrder? Type2738 { get; set; } + public global::System.Collections.Generic.IList? Type2738 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type2739 { get; set; } + public global::tryAGI.OpenAI.ThreadItem? Type2739 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListGroupUsersOrder? Type2740 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminator? Type2740 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type2741 { get; set; } + public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type2741 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type2742 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResource? Type2742 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRolesOrder? Type2743 { get; set; } + public global::tryAGI.OpenAI.ThreadItemListResourceObject? Type2743 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type2744 { get; set; } + public global::System.Collections.Generic.IList? Type2744 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2745 { get; set; } + public global::tryAGI.OpenAI.ActiveStatus? Type2745 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type2746 { get; set; } + public global::tryAGI.OpenAI.ActiveStatusType? Type2746 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type2747 { get; set; } + public global::tryAGI.OpenAI.LockedStatus? Type2747 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2748 { get; set; } + public global::tryAGI.OpenAI.LockedStatusType? Type2748 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type2749 { get; set; } + public global::tryAGI.OpenAI.ClosedStatus? Type2749 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type2750 { get; set; } + public global::tryAGI.OpenAI.ClosedStatusType? Type2750 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2751 { get; set; } + public global::tryAGI.OpenAI.ThreadResource? Type2751 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type2752 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceObject? Type2752 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type2753 { get; set; } + public global::tryAGI.OpenAI.Status? Type2753 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2754 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminator? Type2754 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type2755 { get; set; } + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type2755 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type2756 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResource? Type2756 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2757 { get; set; } + public global::tryAGI.OpenAI.DeletedThreadResourceObject? Type2757 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type2758 { get; set; } + public global::tryAGI.OpenAI.ThreadListResource? Type2758 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type2759 { get; set; } + public global::tryAGI.OpenAI.ThreadListResourceObject? Type2759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2760 { get; set; } + public global::System.Collections.Generic.IList? Type2760 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSource? Type2761 { get; set; } + public global::tryAGI.OpenAI.DragPoint? Type2761 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2762 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequest? Type2762 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesSize? Type2763 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequestEndpoint? Type2763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2764 { get; set; } + public global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow? Type2764 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type2765 { get; set; } + public global::tryAGI.OpenAI.UpdateChatCompletionRequest? Type2765 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type2766 { get; set; } + public global::tryAGI.OpenAI.CreateConversationItemsRequest? Type2766 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2767 { get; set; } + public global::tryAGI.OpenAI.UpdateEvalRequest? Type2767 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type2768 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysCreateRequest? Type2768 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type2769 { get; set; } + public global::tryAGI.OpenAI.ListAssistantsOrder? Type2769 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2770 { get; set; } + public global::tryAGI.OpenAI.ListChatCompletionsOrder? Type2770 { get; set; } /// /// /// - public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type2771 { get; set; } + public global::tryAGI.OpenAI.GetChatCompletionMessagesOrder? Type2771 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type2772 { get; set; } + public global::tryAGI.OpenAI.ListContainersOrder? Type2772 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type2773 { get; set; } + public global::tryAGI.OpenAI.ListContainerFilesOrder? Type2773 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectRolesOrder? Type2774 { get; set; } + public global::tryAGI.OpenAI.ListConversationItemsOrder? Type2774 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type2775 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrder? Type2775 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListInputItemsOrder? Type2776 { get; set; } + public global::tryAGI.OpenAI.ListEvalsOrderBy? Type2776 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListMessagesOrder? Type2777 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsOrder? Type2777 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunsOrder? Type2778 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunsStatus? Type2778 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2779 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsStatus? Type2779 { get; set; } /// /// /// - public global::tryAGI.OpenAI.CreateRunIncludeItem? Type2780 { get; set; } + public global::tryAGI.OpenAI.GetEvalRunOutputItemsOrder? Type2780 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsOrder? Type2781 { get; set; } + public global::tryAGI.OpenAI.ListFilesOrder? Type2781 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2782 { get; set; } + public global::tryAGI.OpenAI.ListFineTuningCheckpointPermissionsOrder? Type2782 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type2783 { get; set; } + public global::tryAGI.OpenAI.AdminApiKeysListOrder? Type2783 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type2784 { get; set; } + public global::tryAGI.OpenAI.ListAuditLogsEffectiveAt? Type2784 { get; set; } /// /// /// - public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type2785 { get; set; } + public global::System.Collections.Generic.IList? Type2785 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoresOrder? Type2786 { get; set; } + public global::tryAGI.OpenAI.ListOrganizationCertificatesOrder? Type2786 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type2787 { get; set; } + public global::System.Collections.Generic.IList? Type2787 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type2788 { get; set; } + public global::tryAGI.OpenAI.GetCertificateIncludeItem? Type2788 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type2789 { get; set; } + public global::tryAGI.OpenAI.UsageCostsBucketWidth? Type2789 { get; set; } /// /// /// - public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type2790 { get; set; } + public global::System.Collections.Generic.IList? Type2790 { get; set; } /// /// /// - public global::tryAGI.OpenAI.OneOf? Type2791 { get; set; } + public global::tryAGI.OpenAI.UsageCostsGroupByItem? Type2791 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalResponse? Type2792 { get; set; } + public global::tryAGI.OpenAI.ListGroupsOrder? Type2792 { get; set; } /// /// /// - public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type2793 { get; set; } + public global::tryAGI.OpenAI.ListGroupRoleAssignmentsOrder? Type2793 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type2794 { get; set; } + public global::tryAGI.OpenAI.ListGroupUsersOrder? Type2794 { get; set; } /// /// /// - public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type2795 { get; set; } + public global::tryAGI.OpenAI.ListProjectCertificatesOrder? Type2795 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectGroupsOrder? Type2796 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRolesOrder? Type2797 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesBucketWidth? Type2798 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2799 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioSpeechesGroupByItem? Type2800 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsBucketWidth? Type2801 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2802 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageAudioTranscriptionsGroupByItem? Type2803 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsBucketWidth? Type2804 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2805 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCodeInterpreterSessionsGroupByItem? Type2806 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsBucketWidth? Type2807 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2808 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageCompletionsGroupByItem? Type2809 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsBucketWidth? Type2810 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2811 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageEmbeddingsGroupByItem? Type2812 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesBucketWidth? Type2813 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2814 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSource? Type2815 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2816 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesSize? Type2817 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2818 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageImagesGroupByItem? Type2819 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsBucketWidth? Type2820 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2821 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageModerationsGroupByItem? Type2822 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresBucketWidth? Type2823 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2824 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.UsageVectorStoresGroupByItem? Type2825 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListUserRoleAssignmentsOrder? Type2826 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectGroupRoleAssignmentsOrder? Type2827 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectRolesOrder? Type2828 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListProjectUserRoleAssignmentsOrder? Type2829 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListInputItemsOrder? Type2830 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListMessagesOrder? Type2831 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunsOrder? Type2832 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2833 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.CreateRunIncludeItem? Type2834 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsOrder? Type2835 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2836 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListRunStepsIncludeItem? Type2837 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type2838 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.GetRunStepIncludeItem? Type2839 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoresOrder? Type2840 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchOrder? Type2841 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListFilesInVectorStoreBatchFilter? Type2842 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesOrder? Type2843 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.ListVectorStoreFilesFilter? Type2844 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.OneOf? Type2845 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalResponse? Type2846 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.DeleteEvalRunResponse? Type2847 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponse? Type2848 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.AdminApiKeysDeleteResponseObject? Type2849 { get; set; } /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs index f450c2d8..7d8c39f7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Annotation.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct Annotation : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.AnnotationDiscriminatorType? Type { get; } + /// /// A citation to a file. /// @@ -204,12 +209,15 @@ public Annotation(global::tryAGI.OpenAI.FilePath? value) /// /// public Annotation( + global::tryAGI.OpenAI.AnnotationDiscriminatorType? type, global::tryAGI.OpenAI.FileCitationBody? fileCitation, global::tryAGI.OpenAI.UrlCitationBody? urlCitation, global::tryAGI.OpenAI.ContainerFileCitationBody? containerFileCitation, global::tryAGI.OpenAI.FilePath? filePath ) { + Type = type; + FileCitation = fileCitation; UrlCitation = urlCitation; ContainerFileCitation = containerFileCitation; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationDiscriminator.g.cs index 68a57e17..d77aa2fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class AnnotationDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AnnotationDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.AnnotationDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class AnnotationDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AnnotationDiscriminator( - string? type) + global::tryAGI.OpenAI.AnnotationDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationDiscriminatorType.g.cs new file mode 100644 index 00000000..622790ea --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationDiscriminatorType.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum AnnotationDiscriminatorType + { + /// + /// + /// + ContainerFileCitation, + /// + /// + /// + FileCitation, + /// + /// + /// + FilePath, + /// + /// + /// + UrlCitation, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AnnotationDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AnnotationDiscriminatorType value) + { + return value switch + { + AnnotationDiscriminatorType.ContainerFileCitation => "container_file_citation", + AnnotationDiscriminatorType.FileCitation => "file_citation", + AnnotationDiscriminatorType.FilePath => "file_path", + AnnotationDiscriminatorType.UrlCitation => "url_citation", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AnnotationDiscriminatorType? ToEnum(string value) + { + return value switch + { + "container_file_citation" => AnnotationDiscriminatorType.ContainerFileCitation, + "file_citation" => AnnotationDiscriminatorType.FileCitation, + "file_path" => AnnotationDiscriminatorType.FilePath, + "url_citation" => AnnotationDiscriminatorType.UrlCitation, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs index 06d61c2c..e54cd964 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AnnotationsItem3.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct AnnotationsItem3 : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type { get; } + /// /// Annotation that references an uploaded file. /// @@ -108,10 +113,13 @@ public AnnotationsItem3(global::tryAGI.OpenAI.UrlAnnotation? value) /// /// public AnnotationsItem3( + global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? type, global::tryAGI.OpenAI.FileAnnotation? file, global::tryAGI.OpenAI.UrlAnnotation? url ) { + Type = type; + File = file; Url = url; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs index 1031a365..18fd064e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParam.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ApplyPatchOperationParam : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Type { get; } + /// /// Instruction for creating a new file via the apply_patch tool. /// @@ -156,11 +161,14 @@ public ApplyPatchOperationParam(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperat /// /// public ApplyPatchOperationParam( + global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? type, global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? createFile, global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? deleteFile, global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? updateFile ) { + Type = type; + CreateFile = createFile; DeleteFile = deleteFile; UpdateFile = updateFile; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParamDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParamDiscriminator.g.cs index e1c4d126..ab1f2ad0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParamDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParamDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ApplyPatchOperationParamDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchOperationParamDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ApplyPatchOperationParamDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ApplyPatchOperationParamDiscriminator( - string? type) + global::tryAGI.OpenAI.ApplyPatchOperationParamDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParamDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParamDiscriminatorType.g.cs new file mode 100644 index 00000000..ae6a711e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchOperationParamDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ApplyPatchOperationParamDiscriminatorType + { + /// + /// + /// + CreateFile, + /// + /// + /// + DeleteFile, + /// + /// + /// + UpdateFile, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApplyPatchOperationParamDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApplyPatchOperationParamDiscriminatorType value) + { + return value switch + { + ApplyPatchOperationParamDiscriminatorType.CreateFile => "create_file", + ApplyPatchOperationParamDiscriminatorType.DeleteFile => "delete_file", + ApplyPatchOperationParamDiscriminatorType.UpdateFile => "update_file", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApplyPatchOperationParamDiscriminatorType? ToEnum(string value) + { + return value switch + { + "create_file" => ApplyPatchOperationParamDiscriminatorType.CreateFile, + "delete_file" => ApplyPatchOperationParamDiscriminatorType.DeleteFile, + "update_file" => ApplyPatchOperationParamDiscriminatorType.UpdateFile, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchToolCallOperationDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchToolCallOperationDiscriminator.g.cs index e2934077..22333f81 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchToolCallOperationDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchToolCallOperationDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ApplyPatchToolCallOperationDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchToolCallOperationDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ApplyPatchToolCallOperationDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ApplyPatchToolCallOperationDiscriminator( - string? type) + global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchToolCallOperationDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchToolCallOperationDiscriminatorType.g.cs new file mode 100644 index 00000000..6266e004 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ApplyPatchToolCallOperationDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ApplyPatchToolCallOperationDiscriminatorType + { + /// + /// + /// + CreateFile, + /// + /// + /// + DeleteFile, + /// + /// + /// + UpdateFile, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ApplyPatchToolCallOperationDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ApplyPatchToolCallOperationDiscriminatorType value) + { + return value switch + { + ApplyPatchToolCallOperationDiscriminatorType.CreateFile => "create_file", + ApplyPatchToolCallOperationDiscriminatorType.DeleteFile => "delete_file", + ApplyPatchToolCallOperationDiscriminatorType.UpdateFile => "update_file", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ApplyPatchToolCallOperationDiscriminatorType? ToEnum(string value) + { + return value switch + { + "create_file" => ApplyPatchToolCallOperationDiscriminatorType.CreateFile, + "delete_file" => ApplyPatchToolCallOperationDiscriminatorType.DeleteFile, + "update_file" => ApplyPatchToolCallOperationDiscriminatorType.UpdateFile, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator.g.cs index 3c8456ce..3a5232d1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AutoCodeInterpreterToolParamNetworkPolicyDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class AutoCodeInterpreterToolParamNetworkPolicyDiscriminat /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class AutoCodeInterpreterToolParamNetworkPolicyDiscriminat [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AutoCodeInterpreterToolParamNetworkPolicyDiscriminator( - string? type) + global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.g.cs new file mode 100644 index 00000000..dd46336b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType + { + /// + /// + /// + Allowlist, + /// + /// + /// + Disabled, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType value) + { + return value switch + { + AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.Allowlist => "allowlist", + AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.Disabled => "disabled", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? ToEnum(string value) + { + return value switch + { + "allowlist" => AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.Allowlist, + "disabled" => AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType.Disabled, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallDiscriminator.g.cs index 59e68700..15ba356a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ChatCompletionMessageToolCallDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionMessageToolCallDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ChatCompletionMessageToolCallDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionMessageToolCallDiscriminator( - string? type) + global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallDiscriminatorType.g.cs new file mode 100644 index 00000000..c611d213 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ChatCompletionMessageToolCallDiscriminatorType + { + /// + /// + /// + Custom, + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatCompletionMessageToolCallDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatCompletionMessageToolCallDiscriminatorType value) + { + return value switch + { + ChatCompletionMessageToolCallDiscriminatorType.Custom => "custom", + ChatCompletionMessageToolCallDiscriminatorType.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatCompletionMessageToolCallDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom" => ChatCompletionMessageToolCallDiscriminatorType.Custom, + "function" => ChatCompletionMessageToolCallDiscriminatorType.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs index e6929ed7..511e5365 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionMessageToolCallsItem.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ChatCompletionMessageToolCallsItem : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType? Type { get; } + /// /// A call to a function tool created by the model. /// @@ -108,10 +113,13 @@ public ChatCompletionMessageToolCallsItem(global::tryAGI.OpenAI.ChatCompletionMe /// /// public ChatCompletionMessageToolCallsItem( + global::tryAGI.OpenAI.ChatCompletionMessageToolCallDiscriminatorType? type, global::tryAGI.OpenAI.ChatCompletionMessageToolCall? function, global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall? custom ) { + Type = type; + Function = function; Custom = custom; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs index 0f747202..bf19b82a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPart.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ChatCompletionRequestAssistantMessageContentPart : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? Type { get; } + /// /// Learn about [text inputs](/docs/guides/text-generation). /// @@ -108,10 +113,13 @@ public ChatCompletionRequestAssistantMessageContentPart(global::tryAGI.OpenAI.Ch /// /// public ChatCompletionRequestAssistantMessageContentPart( + global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? type, global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartText? text, global::tryAGI.OpenAI.ChatCompletionRequestMessageContentPartRefusal? refusal ) { + Type = type; + Text = text; Refusal = refusal; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.g.cs index bda86d5f..7d26aa2e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ChatCompletionRequestAssistantMessageContentPartDisc /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ChatCompletionRequestAssistantMessageContentPartDisc [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionRequestAssistantMessageContentPartDiscriminator( - string? type) + global::tryAGI.OpenAI.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.g.cs new file mode 100644 index 00000000..fb314686 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ChatCompletionRequestAssistantMessageContentPartDiscriminatorType + { + /// + /// + /// + Refusal, + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatCompletionRequestAssistantMessageContentPartDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatCompletionRequestAssistantMessageContentPartDiscriminatorType value) + { + return value switch + { + ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.Refusal => "refusal", + ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatCompletionRequestAssistantMessageContentPartDiscriminatorType? ToEnum(string value) + { + return value switch + { + "refusal" => ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.Refusal, + "text" => ChatCompletionRequestAssistantMessageContentPartDiscriminatorType.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs index 54419005..21d57bb6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessage.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ChatCompletionRequestMessage : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole? Role { get; } + /// /// Developer-provided instructions that the model should follow, regardless of
/// messages sent by the user. With o1 models and newer, `developer` messages
@@ -305,6 +310,7 @@ public ChatCompletionRequestMessage(global::tryAGI.OpenAI.ChatCompletionRequestF /// ///
public ChatCompletionRequestMessage( + global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole? role, global::tryAGI.OpenAI.ChatCompletionRequestDeveloperMessage? developer, global::tryAGI.OpenAI.ChatCompletionRequestSystemMessage? system, global::tryAGI.OpenAI.ChatCompletionRequestUserMessage? user, @@ -313,6 +319,8 @@ public ChatCompletionRequestMessage( global::tryAGI.OpenAI.ChatCompletionRequestFunctionMessage? function ) { + Role = role; + Developer = developer; System = system; User = user; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.g.cs index 58ccedd7..5acb2473 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ChatCompletionRequestMessageDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("role")] - public string? Role { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChatCompletionRequestMessageDiscriminatorRoleJsonConverter))] + public global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole? Role { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ChatCompletionRequestMessageDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionRequestMessageDiscriminator( - string? role) + global::tryAGI.OpenAI.ChatCompletionRequestMessageDiscriminatorRole? role) { this.Role = role; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminatorRole.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminatorRole.g.cs new file mode 100644 index 00000000..726021bc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChatCompletionRequestMessageDiscriminatorRole.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ChatCompletionRequestMessageDiscriminatorRole + { + /// + /// + /// + Assistant, + /// + /// + /// + Developer, + /// + /// + /// + Function, + /// + /// + /// + System, + /// + /// + /// + Tool, + /// + /// + /// + User, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatCompletionRequestMessageDiscriminatorRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatCompletionRequestMessageDiscriminatorRole value) + { + return value switch + { + ChatCompletionRequestMessageDiscriminatorRole.Assistant => "assistant", + ChatCompletionRequestMessageDiscriminatorRole.Developer => "developer", + ChatCompletionRequestMessageDiscriminatorRole.Function => "function", + ChatCompletionRequestMessageDiscriminatorRole.System => "system", + ChatCompletionRequestMessageDiscriminatorRole.Tool => "tool", + ChatCompletionRequestMessageDiscriminatorRole.User => "user", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatCompletionRequestMessageDiscriminatorRole? ToEnum(string value) + { + return value switch + { + "assistant" => ChatCompletionRequestMessageDiscriminatorRole.Assistant, + "developer" => ChatCompletionRequestMessageDiscriminatorRole.Developer, + "function" => ChatCompletionRequestMessageDiscriminatorRole.Function, + "system" => ChatCompletionRequestMessageDiscriminatorRole.System, + "tool" => ChatCompletionRequestMessageDiscriminatorRole.Tool, + "user" => ChatCompletionRequestMessageDiscriminatorRole.User, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs index f435a706..72010f95 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParam.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ChunkingStrategyRequestParam : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType? Type { get; } + /// /// The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`. /// @@ -108,10 +113,13 @@ public ChunkingStrategyRequestParam(global::tryAGI.OpenAI.StaticChunkingStrategy /// /// public ChunkingStrategyRequestParam( + global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType? type, global::tryAGI.OpenAI.AutoChunkingStrategyRequestParam? auto, global::tryAGI.OpenAI.StaticChunkingStrategyRequestParam? @static ) { + Type = type; + Auto = auto; Static = @static; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.g.cs index 93b851ba..1ea30bb9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ChunkingStrategyRequestParamDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ChunkingStrategyRequestParamDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ChunkingStrategyRequestParamDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChunkingStrategyRequestParamDiscriminator( - string? type) + global::tryAGI.OpenAI.ChunkingStrategyRequestParamDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminatorType.g.cs new file mode 100644 index 00000000..06ce4ab0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ChunkingStrategyRequestParamDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ChunkingStrategyRequestParamDiscriminatorType + { + /// + /// + /// + Auto, + /// + /// + /// + Static, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChunkingStrategyRequestParamDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChunkingStrategyRequestParamDiscriminatorType value) + { + return value switch + { + ChunkingStrategyRequestParamDiscriminatorType.Auto => "auto", + ChunkingStrategyRequestParamDiscriminatorType.Static => "static", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChunkingStrategyRequestParamDiscriminatorType? ToEnum(string value) + { + return value switch + { + "auto" => ChunkingStrategyRequestParamDiscriminatorType.Auto, + "static" => ChunkingStrategyRequestParamDiscriminatorType.Static, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator.g.cs index 9cdb81e4..4234a7dd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputsVariant1ItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class CodeInterpreterToolCallOutputsVariant1ItemDiscrimina /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class CodeInterpreterToolCallOutputsVariant1ItemDiscrimina [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CodeInterpreterToolCallOutputsVariant1ItemDiscriminator( - string? type) + global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.g.cs new file mode 100644 index 00000000..db5906ba --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType + { + /// + /// + /// + Image, + /// + /// + /// + Logs, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType value) + { + return value switch + { + CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.Image => "image", + CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.Logs => "logs", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "image" => CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.Image, + "logs" => CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType.Logs, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs index a6848f39..c119a6ee 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerAction.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ComputerAction : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ComputerActionDiscriminatorType? Type { get; } + /// /// A click action. /// @@ -444,6 +449,7 @@ public ComputerAction(global::tryAGI.OpenAI.WaitParam? value) /// /// public ComputerAction( + global::tryAGI.OpenAI.ComputerActionDiscriminatorType? type, global::tryAGI.OpenAI.ClickParam? click, global::tryAGI.OpenAI.DoubleClickAction? doubleClick, global::tryAGI.OpenAI.DragParam? drag, @@ -455,6 +461,8 @@ public ComputerAction( global::tryAGI.OpenAI.WaitParam? wait ) { + Type = type; + Click = click; DoubleClick = doubleClick; Drag = drag; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.g.cs index 531273f4..997ec449 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ComputerActionDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ComputerActionDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ComputerActionDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ComputerActionDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ComputerActionDiscriminator( - string? type) + global::tryAGI.OpenAI.ComputerActionDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminatorType.g.cs new file mode 100644 index 00000000..d7bdd380 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerActionDiscriminatorType.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ComputerActionDiscriminatorType + { + /// + /// + /// + Click, + /// + /// + /// + DoubleClick, + /// + /// + /// + Drag, + /// + /// + /// + Keypress, + /// + /// + /// + Move, + /// + /// + /// + Screenshot, + /// + /// + /// + Scroll, + /// + /// + /// + Type, + /// + /// + /// + Wait, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ComputerActionDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ComputerActionDiscriminatorType value) + { + return value switch + { + ComputerActionDiscriminatorType.Click => "click", + ComputerActionDiscriminatorType.DoubleClick => "double_click", + ComputerActionDiscriminatorType.Drag => "drag", + ComputerActionDiscriminatorType.Keypress => "keypress", + ComputerActionDiscriminatorType.Move => "move", + ComputerActionDiscriminatorType.Screenshot => "screenshot", + ComputerActionDiscriminatorType.Scroll => "scroll", + ComputerActionDiscriminatorType.Type => "type", + ComputerActionDiscriminatorType.Wait => "wait", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ComputerActionDiscriminatorType? ToEnum(string value) + { + return value switch + { + "click" => ComputerActionDiscriminatorType.Click, + "double_click" => ComputerActionDiscriminatorType.DoubleClick, + "drag" => ComputerActionDiscriminatorType.Drag, + "keypress" => ComputerActionDiscriminatorType.Keypress, + "move" => ComputerActionDiscriminatorType.Move, + "screenshot" => ComputerActionDiscriminatorType.Screenshot, + "scroll" => ComputerActionDiscriminatorType.Scroll, + "type" => ComputerActionDiscriminatorType.Type, + "wait" => ComputerActionDiscriminatorType.Wait, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamNetworkPolicyDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamNetworkPolicyDiscriminator.g.cs index ad1d173a..1d237703 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamNetworkPolicyDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamNetworkPolicyDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ContainerAutoParamNetworkPolicyDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamNetworkPolicyDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ContainerAutoParamNetworkPolicyDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ContainerAutoParamNetworkPolicyDiscriminator( - string? type) + global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamNetworkPolicyDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamNetworkPolicyDiscriminatorType.g.cs new file mode 100644 index 00000000..e6164122 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamNetworkPolicyDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ContainerAutoParamNetworkPolicyDiscriminatorType + { + /// + /// + /// + Allowlist, + /// + /// + /// + Disabled, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ContainerAutoParamNetworkPolicyDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ContainerAutoParamNetworkPolicyDiscriminatorType value) + { + return value switch + { + ContainerAutoParamNetworkPolicyDiscriminatorType.Allowlist => "allowlist", + ContainerAutoParamNetworkPolicyDiscriminatorType.Disabled => "disabled", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ContainerAutoParamNetworkPolicyDiscriminatorType? ToEnum(string value) + { + return value switch + { + "allowlist" => ContainerAutoParamNetworkPolicyDiscriminatorType.Allowlist, + "disabled" => ContainerAutoParamNetworkPolicyDiscriminatorType.Disabled, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamSkillDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamSkillDiscriminator.g.cs index 205bd8a9..03534233 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamSkillDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamSkillDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ContainerAutoParamSkillDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ContainerAutoParamSkillDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ContainerAutoParamSkillDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ContainerAutoParamSkillDiscriminator( - string? type) + global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamSkillDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamSkillDiscriminatorType.g.cs new file mode 100644 index 00000000..de6e83ea --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContainerAutoParamSkillDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ContainerAutoParamSkillDiscriminatorType + { + /// + /// + /// + Inline, + /// + /// + /// + SkillReference, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ContainerAutoParamSkillDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ContainerAutoParamSkillDiscriminatorType value) + { + return value switch + { + ContainerAutoParamSkillDiscriminatorType.Inline => "inline", + ContainerAutoParamSkillDiscriminatorType.SkillReference => "skill_reference", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ContainerAutoParamSkillDiscriminatorType? ToEnum(string value) + { + return value switch + { + "inline" => ContainerAutoParamSkillDiscriminatorType.Inline, + "skill_reference" => ContainerAutoParamSkillDiscriminatorType.SkillReference, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs index 29b66257..93ae20de 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem3.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ContentItem3 : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Type { get; } + /// /// A text input to the model. /// @@ -444,6 +449,7 @@ public ContentItem3(global::tryAGI.OpenAI.InputFileContent? value) /// /// public ContentItem3( + global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? type, global::tryAGI.OpenAI.InputTextContent? inputText, global::tryAGI.OpenAI.OutputTextContent? outputText, global::tryAGI.OpenAI.TextContent? text, @@ -455,6 +461,8 @@ public ContentItem3( global::tryAGI.OpenAI.InputFileContent? inputFile ) { + Type = type; + InputText = inputText; OutputText = outputText; Text = text; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs index 1b54ef64..237d2f2e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ContentItem4.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ContentItem4 : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type { get; } + /// /// Text block that a user contributed to the thread. /// @@ -108,10 +113,13 @@ public ContentItem4(global::tryAGI.OpenAI.UserMessageQuotedText? value) /// /// public ContentItem4( + global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? type, global::tryAGI.OpenAI.UserMessageInputText? inputText, global::tryAGI.OpenAI.UserMessageQuotedText? quotedText ) { + Type = type; + InputText = inputText; QuotedText = quotedText; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItemDiscriminator.g.cs index afe08bc8..dd41db3b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ConversationItemDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ConversationItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ConversationItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ConversationItemDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ConversationItemDiscriminator( - string? type) + global::tryAGI.OpenAI.ConversationItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItemDiscriminatorType.g.cs new file mode 100644 index 00000000..32c69722 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ConversationItemDiscriminatorType.g.cs @@ -0,0 +1,171 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ConversationItemDiscriminatorType + { + /// + /// + /// + ApplyPatchCall, + /// + /// + /// + ApplyPatchCallOutput, + /// + /// + /// + CodeInterpreterCall, + /// + /// + /// + Compaction, + /// + /// + /// + ComputerCall, + /// + /// + /// + CustomToolCall, + /// + /// + /// + CustomToolCallOutput, + /// + /// + /// + FileSearchCall, + /// + /// + /// + ImageGenerationCall, + /// + /// + /// + LocalShellCall, + /// + /// + /// + LocalShellCallOutput, + /// + /// + /// + McpApprovalRequest, + /// + /// + /// + McpApprovalResponse, + /// + /// + /// + McpCall, + /// + /// + /// + McpListTools, + /// + /// + /// + Message, + /// + /// + /// + Reasoning, + /// + /// + /// + ShellCall, + /// + /// + /// + ShellCallOutput, + /// + /// + /// + ToolSearchCall, + /// + /// + /// + ToolSearchOutput, + /// + /// + /// + WebSearchCall, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ConversationItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ConversationItemDiscriminatorType value) + { + return value switch + { + ConversationItemDiscriminatorType.ApplyPatchCall => "apply_patch_call", + ConversationItemDiscriminatorType.ApplyPatchCallOutput => "apply_patch_call_output", + ConversationItemDiscriminatorType.CodeInterpreterCall => "code_interpreter_call", + ConversationItemDiscriminatorType.Compaction => "compaction", + ConversationItemDiscriminatorType.ComputerCall => "computer_call", + ConversationItemDiscriminatorType.CustomToolCall => "custom_tool_call", + ConversationItemDiscriminatorType.CustomToolCallOutput => "custom_tool_call_output", + ConversationItemDiscriminatorType.FileSearchCall => "file_search_call", + ConversationItemDiscriminatorType.ImageGenerationCall => "image_generation_call", + ConversationItemDiscriminatorType.LocalShellCall => "local_shell_call", + ConversationItemDiscriminatorType.LocalShellCallOutput => "local_shell_call_output", + ConversationItemDiscriminatorType.McpApprovalRequest => "mcp_approval_request", + ConversationItemDiscriminatorType.McpApprovalResponse => "mcp_approval_response", + ConversationItemDiscriminatorType.McpCall => "mcp_call", + ConversationItemDiscriminatorType.McpListTools => "mcp_list_tools", + ConversationItemDiscriminatorType.Message => "message", + ConversationItemDiscriminatorType.Reasoning => "reasoning", + ConversationItemDiscriminatorType.ShellCall => "shell_call", + ConversationItemDiscriminatorType.ShellCallOutput => "shell_call_output", + ConversationItemDiscriminatorType.ToolSearchCall => "tool_search_call", + ConversationItemDiscriminatorType.ToolSearchOutput => "tool_search_output", + ConversationItemDiscriminatorType.WebSearchCall => "web_search_call", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ConversationItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "apply_patch_call" => ConversationItemDiscriminatorType.ApplyPatchCall, + "apply_patch_call_output" => ConversationItemDiscriminatorType.ApplyPatchCallOutput, + "code_interpreter_call" => ConversationItemDiscriminatorType.CodeInterpreterCall, + "compaction" => ConversationItemDiscriminatorType.Compaction, + "computer_call" => ConversationItemDiscriminatorType.ComputerCall, + "custom_tool_call" => ConversationItemDiscriminatorType.CustomToolCall, + "custom_tool_call_output" => ConversationItemDiscriminatorType.CustomToolCallOutput, + "file_search_call" => ConversationItemDiscriminatorType.FileSearchCall, + "image_generation_call" => ConversationItemDiscriminatorType.ImageGenerationCall, + "local_shell_call" => ConversationItemDiscriminatorType.LocalShellCall, + "local_shell_call_output" => ConversationItemDiscriminatorType.LocalShellCallOutput, + "mcp_approval_request" => ConversationItemDiscriminatorType.McpApprovalRequest, + "mcp_approval_response" => ConversationItemDiscriminatorType.McpApprovalResponse, + "mcp_call" => ConversationItemDiscriminatorType.McpCall, + "mcp_list_tools" => ConversationItemDiscriminatorType.McpListTools, + "message" => ConversationItemDiscriminatorType.Message, + "reasoning" => ConversationItemDiscriminatorType.Reasoning, + "shell_call" => ConversationItemDiscriminatorType.ShellCall, + "shell_call_output" => ConversationItemDiscriminatorType.ShellCallOutput, + "tool_search_call" => ConversationItemDiscriminatorType.ToolSearchCall, + "tool_search_output" => ConversationItemDiscriminatorType.ToolSearchOutput, + "web_search_call" => ConversationItemDiscriminatorType.WebSearchCall, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator.g.cs index bb6b9fcb..c9a4c02f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2ResponseFormatDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class CreateChatCompletionRequestVariant2ResponseFormatDis /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class CreateChatCompletionRequestVariant2ResponseFormatDis [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateChatCompletionRequestVariant2ResponseFormatDiscriminator( - string? type) + global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.g.cs new file mode 100644 index 00000000..6a976457 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType + { + /// + /// + /// + JsonObject, + /// + /// + /// + JsonSchema, + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType value) + { + return value switch + { + CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.JsonObject => "json_object", + CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.JsonSchema => "json_schema", + CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? ToEnum(string value) + { + return value switch + { + "json_object" => CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.JsonObject, + "json_schema" => CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.JsonSchema, + "text" => CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodyNetworkPolicyDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodyNetworkPolicyDiscriminator.g.cs index ab5d5f6f..32806f83 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodyNetworkPolicyDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodyNetworkPolicyDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class CreateContainerBodyNetworkPolicyDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodyNetworkPolicyDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class CreateContainerBodyNetworkPolicyDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateContainerBodyNetworkPolicyDiscriminator( - string? type) + global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodyNetworkPolicyDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodyNetworkPolicyDiscriminatorType.g.cs new file mode 100644 index 00000000..5c6aa1f6 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodyNetworkPolicyDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CreateContainerBodyNetworkPolicyDiscriminatorType + { + /// + /// + /// + Allowlist, + /// + /// + /// + Disabled, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateContainerBodyNetworkPolicyDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateContainerBodyNetworkPolicyDiscriminatorType value) + { + return value switch + { + CreateContainerBodyNetworkPolicyDiscriminatorType.Allowlist => "allowlist", + CreateContainerBodyNetworkPolicyDiscriminatorType.Disabled => "disabled", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateContainerBodyNetworkPolicyDiscriminatorType? ToEnum(string value) + { + return value switch + { + "allowlist" => CreateContainerBodyNetworkPolicyDiscriminatorType.Allowlist, + "disabled" => CreateContainerBodyNetworkPolicyDiscriminatorType.Disabled, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodySkillDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodySkillDiscriminator.g.cs index 908ad9aa..56f3ff08 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodySkillDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodySkillDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class CreateContainerBodySkillDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateContainerBodySkillDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class CreateContainerBodySkillDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateContainerBodySkillDiscriminator( - string? type) + global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodySkillDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodySkillDiscriminatorType.g.cs new file mode 100644 index 00000000..4a71bc08 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateContainerBodySkillDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CreateContainerBodySkillDiscriminatorType + { + /// + /// + /// + Inline, + /// + /// + /// + SkillReference, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateContainerBodySkillDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateContainerBodySkillDiscriminatorType value) + { + return value switch + { + CreateContainerBodySkillDiscriminatorType.Inline => "inline", + CreateContainerBodySkillDiscriminatorType.SkillReference => "skill_reference", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateContainerBodySkillDiscriminatorType? ToEnum(string value) + { + return value switch + { + "inline" => CreateContainerBodySkillDiscriminatorType.Inline, + "skill_reference" => CreateContainerBodySkillDiscriminatorType.SkillReference, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs index f5f324ac..14f390e6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct CreateSpeechResponseStreamEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? Type { get; } + /// /// Emitted for each chunk of audio data generated during speech synthesis. /// @@ -108,10 +113,13 @@ public CreateSpeechResponseStreamEvent(global::tryAGI.OpenAI.SpeechAudioDoneEven /// /// public CreateSpeechResponseStreamEvent( + global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? type, global::tryAGI.OpenAI.SpeechAudioDeltaEvent? speechAudioDelta, global::tryAGI.OpenAI.SpeechAudioDoneEvent? speechAudioDone ) { + Type = type; + SpeechAudioDelta = speechAudioDelta; SpeechAudioDone = speechAudioDone; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEventDiscriminator.g.cs index 69a341f1..6ed87321 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class CreateSpeechResponseStreamEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateSpeechResponseStreamEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class CreateSpeechResponseStreamEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateSpeechResponseStreamEventDiscriminator( - string? type) + global::tryAGI.OpenAI.CreateSpeechResponseStreamEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..3897252b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateSpeechResponseStreamEventDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CreateSpeechResponseStreamEventDiscriminatorType + { + /// + /// + /// + SpeechAudioDelta, + /// + /// + /// + SpeechAudioDone, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateSpeechResponseStreamEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateSpeechResponseStreamEventDiscriminatorType value) + { + return value switch + { + CreateSpeechResponseStreamEventDiscriminatorType.SpeechAudioDelta => "speech.audio.delta", + CreateSpeechResponseStreamEventDiscriminatorType.SpeechAudioDone => "speech.audio.done", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateSpeechResponseStreamEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "speech.audio.delta" => CreateSpeechResponseStreamEventDiscriminatorType.SpeechAudioDelta, + "speech.audio.done" => CreateSpeechResponseStreamEventDiscriminatorType.SpeechAudioDone, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs index 3c8fe9a4..29cb298b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsage.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct CreateTranscriptionResponseDiarizedJsonUsage : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? Type { get; } + /// /// Usage statistics for models billed by token usage. /// @@ -108,10 +113,13 @@ public CreateTranscriptionResponseDiarizedJsonUsage(global::tryAGI.OpenAI.Transc /// /// public CreateTranscriptionResponseDiarizedJsonUsage( + global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? type, global::tryAGI.OpenAI.TranscriptTextUsageTokens? tokens, global::tryAGI.OpenAI.TranscriptTextUsageDuration? duration ) { + Type = type; + Tokens = tokens; Duration = duration; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator.g.cs index 2b1ab9e5..cbb16fd3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsageDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class CreateTranscriptionResponseDiarizedJsonUsageDiscrimi /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class CreateTranscriptionResponseDiarizedJsonUsageDiscrimi [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateTranscriptionResponseDiarizedJsonUsageDiscriminator( - string? type) + global::tryAGI.OpenAI.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.g.cs new file mode 100644 index 00000000..b3d6b401 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType + { + /// + /// + /// + Duration, + /// + /// + /// + Tokens, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType value) + { + return value switch + { + CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.Duration => "duration", + CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.Tokens => "tokens", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType? ToEnum(string value) + { + return value switch + { + "duration" => CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.Duration, + "tokens" => CreateTranscriptionResponseDiarizedJsonUsageDiscriminatorType.Tokens, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs index 9089f747..34c0425b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct CreateTranscriptionResponseStreamEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? Type { get; } + /// /// Emitted when a diarized transcription returns a completed segment with speaker information. Only emitted when you [create a transcription](/docs/api-reference/audio/create-transcription) with `stream` set to `true` and `response_format` set to `diarized_json`. /// @@ -156,11 +161,14 @@ public CreateTranscriptionResponseStreamEvent(global::tryAGI.OpenAI.TranscriptTe /// /// public CreateTranscriptionResponseStreamEvent( + global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? type, global::tryAGI.OpenAI.TranscriptTextSegmentEvent? transcriptTextSegment, global::tryAGI.OpenAI.TranscriptTextDeltaEvent? transcriptTextDelta, global::tryAGI.OpenAI.TranscriptTextDoneEvent? transcriptTextDone ) { + Type = type; + TranscriptTextSegment = transcriptTextSegment; TranscriptTextDelta = transcriptTextDelta; TranscriptTextDone = transcriptTextDone; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEventDiscriminator.g.cs index b1ef9a01..369313de 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class CreateTranscriptionResponseStreamEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateTranscriptionResponseStreamEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class CreateTranscriptionResponseStreamEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateTranscriptionResponseStreamEventDiscriminator( - string? type) + global::tryAGI.OpenAI.CreateTranscriptionResponseStreamEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..53e637e4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateTranscriptionResponseStreamEventDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CreateTranscriptionResponseStreamEventDiscriminatorType + { + /// + /// + /// + TranscriptTextDelta, + /// + /// + /// + TranscriptTextDone, + /// + /// + /// + TranscriptTextSegment, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateTranscriptionResponseStreamEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateTranscriptionResponseStreamEventDiscriminatorType value) + { + return value switch + { + CreateTranscriptionResponseStreamEventDiscriminatorType.TranscriptTextDelta => "transcript.text.delta", + CreateTranscriptionResponseStreamEventDiscriminatorType.TranscriptTextDone => "transcript.text.done", + CreateTranscriptionResponseStreamEventDiscriminatorType.TranscriptTextSegment => "transcript.text.segment", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateTranscriptionResponseStreamEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "transcript.text.delta" => CreateTranscriptionResponseStreamEventDiscriminatorType.TranscriptTextDelta, + "transcript.text.done" => CreateTranscriptionResponseStreamEventDiscriminatorType.TranscriptTextDone, + "transcript.text.segment" => CreateTranscriptionResponseStreamEventDiscriminatorType.TranscriptTextSegment, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolParamFormatDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolParamFormatDiscriminator.g.cs index e80bfeea..7505829c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolParamFormatDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolParamFormatDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class CustomToolParamFormatDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolParamFormatDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class CustomToolParamFormatDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CustomToolParamFormatDiscriminator( - string? type) + global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolParamFormatDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolParamFormatDiscriminatorType.g.cs new file mode 100644 index 00000000..a86744ef --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolParamFormatDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum CustomToolParamFormatDiscriminatorType + { + /// + /// + /// + Grammar, + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CustomToolParamFormatDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CustomToolParamFormatDiscriminatorType value) + { + return value switch + { + CustomToolParamFormatDiscriminatorType.Grammar => "grammar", + CustomToolParamFormatDiscriminatorType.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CustomToolParamFormatDiscriminatorType? ToEnum(string value) + { + return value switch + { + "grammar" => CustomToolParamFormatDiscriminatorType.Grammar, + "text" => CustomToolParamFormatDiscriminatorType.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs index fc500a10..6aedaafc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant1.g.cs @@ -12,6 +12,11 @@ namespace tryAGI.OpenAI /// /// /// + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ContainerAutoParam? ContainerAuto { get; init; } #else @@ -156,11 +161,14 @@ public EnvironmentVariant1(global::tryAGI.OpenAI.ContainerReferenceParam? value) /// /// public EnvironmentVariant1( + global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? type, global::tryAGI.OpenAI.ContainerAutoParam? containerAuto, global::tryAGI.OpenAI.LocalEnvironmentParam? local, global::tryAGI.OpenAI.ContainerReferenceParam? containerReference ) { + Type = type; + ContainerAuto = containerAuto; Local = local; ContainerReference = containerReference; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs index 93b258b9..317ff1f8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant12.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct EnvironmentVariant12 : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Type { get; } + /// /// Represents the use of a local environment to perform shell actions. /// @@ -108,10 +113,13 @@ public EnvironmentVariant12(global::tryAGI.OpenAI.ContainerReferenceResource? va /// /// public EnvironmentVariant12( + global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? type, global::tryAGI.OpenAI.LocalEnvironmentResource? local, global::tryAGI.OpenAI.ContainerReferenceResource? containerReference ) { + Type = type; + Local = local; ContainerReference = containerReference; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs index fde2cfb6..aadc4cd4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EnvironmentVariant13.g.cs @@ -12,6 +12,11 @@ namespace tryAGI.OpenAI /// /// /// + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.LocalEnvironmentParam? Local { get; init; } #else @@ -108,10 +113,13 @@ public EnvironmentVariant13(global::tryAGI.OpenAI.ContainerReferenceParam? value /// /// public EnvironmentVariant13( + global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? type, global::tryAGI.OpenAI.LocalEnvironmentParam? local, global::tryAGI.OpenAI.ContainerReferenceParam? containerReference ) { + Type = type; + Local = local; ContainerReference = containerReference; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs index ac2dcb89..8181a83c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Format2.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct Format2 : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? Type { get; } + /// /// Unconstrained free-form text. /// @@ -108,10 +113,13 @@ public Format2(global::tryAGI.OpenAI.CustomGrammarFormatParam? value) /// /// public Format2( + global::tryAGI.OpenAI.CustomToolParamFormatDiscriminatorType? type, global::tryAGI.OpenAI.CustomTextFormatParam? text, global::tryAGI.OpenAI.CustomGrammarFormatParam? grammar ) { + Type = type; + Text = text; Grammar = grammar; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs index f2695b7c..5ce13b19 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutput.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct FunctionAndCustomToolCallOutput : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? Type { get; } + /// /// A text input to the model. /// @@ -156,11 +161,14 @@ public FunctionAndCustomToolCallOutput(global::tryAGI.OpenAI.InputFileContent? v /// /// public FunctionAndCustomToolCallOutput( + global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? type, global::tryAGI.OpenAI.InputTextContent? inputText, global::tryAGI.OpenAI.InputImageContent? inputImage, global::tryAGI.OpenAI.InputFileContent? inputFile ) { + Type = type; + InputText = inputText; InputImage = inputImage; InputFile = inputFile; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutputDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutputDiscriminator.g.cs index a6598ce7..a2f00b63 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutputDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutputDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class FunctionAndCustomToolCallOutputDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FunctionAndCustomToolCallOutputDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class FunctionAndCustomToolCallOutputDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionAndCustomToolCallOutputDiscriminator( - string? type) + global::tryAGI.OpenAI.FunctionAndCustomToolCallOutputDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutputDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutputDiscriminatorType.g.cs new file mode 100644 index 00000000..77bd74fc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionAndCustomToolCallOutputDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum FunctionAndCustomToolCallOutputDiscriminatorType + { + /// + /// + /// + InputFile, + /// + /// + /// + InputImage, + /// + /// + /// + InputText, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FunctionAndCustomToolCallOutputDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FunctionAndCustomToolCallOutputDiscriminatorType value) + { + return value switch + { + FunctionAndCustomToolCallOutputDiscriminatorType.InputFile => "input_file", + FunctionAndCustomToolCallOutputDiscriminatorType.InputImage => "input_image", + FunctionAndCustomToolCallOutputDiscriminatorType.InputText => "input_text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FunctionAndCustomToolCallOutputDiscriminatorType? ToEnum(string value) + { + return value switch + { + "input_file" => FunctionAndCustomToolCallOutputDiscriminatorType.InputFile, + "input_image" => FunctionAndCustomToolCallOutputDiscriminatorType.InputImage, + "input_text" => FunctionAndCustomToolCallOutputDiscriminatorType.InputText, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator.g.cs index 74c645d6..d83274fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputItemParamOutputVariant2ItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class FunctionCallOutputItemParamOutputVariant2ItemDiscrim /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class FunctionCallOutputItemParamOutputVariant2ItemDiscrim [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionCallOutputItemParamOutputVariant2ItemDiscriminator( - string? type) + global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.g.cs new file mode 100644 index 00000000..ba921992 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType + { + /// + /// + /// + InputFile, + /// + /// + /// + InputImage, + /// + /// + /// + InputText, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType value) + { + return value switch + { + FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.InputFile => "input_file", + FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.InputImage => "input_image", + FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.InputText => "input_text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "input_file" => FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.InputFile, + "input_image" => FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.InputImage, + "input_text" => FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType.InputText, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallEnvironmentVariant1Discriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallEnvironmentVariant1Discriminator.g.cs index db230c6a..4baff898 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallEnvironmentVariant1Discriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallEnvironmentVariant1Discriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class FunctionShellCallEnvironmentVariant1Discriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallEnvironmentVariant1DiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class FunctionShellCallEnvironmentVariant1Discriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionShellCallEnvironmentVariant1Discriminator( - string? type) + global::tryAGI.OpenAI.FunctionShellCallEnvironmentVariant1DiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallEnvironmentVariant1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallEnvironmentVariant1DiscriminatorType.g.cs new file mode 100644 index 00000000..032e8994 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallEnvironmentVariant1DiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum FunctionShellCallEnvironmentVariant1DiscriminatorType + { + /// + /// + /// + ContainerReference, + /// + /// + /// + Local, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FunctionShellCallEnvironmentVariant1DiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FunctionShellCallEnvironmentVariant1DiscriminatorType value) + { + return value switch + { + FunctionShellCallEnvironmentVariant1DiscriminatorType.ContainerReference => "container_reference", + FunctionShellCallEnvironmentVariant1DiscriminatorType.Local => "local", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FunctionShellCallEnvironmentVariant1DiscriminatorType? ToEnum(string value) + { + return value switch + { + "container_reference" => FunctionShellCallEnvironmentVariant1DiscriminatorType.ContainerReference, + "local" => FunctionShellCallEnvironmentVariant1DiscriminatorType.Local, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallItemParamEnvironmentVariant1Discriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallItemParamEnvironmentVariant1Discriminator.g.cs index 26394e33..8f2f12b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallItemParamEnvironmentVariant1Discriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallItemParamEnvironmentVariant1Discriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class FunctionShellCallItemParamEnvironmentVariant1Discrim /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class FunctionShellCallItemParamEnvironmentVariant1Discrim [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionShellCallItemParamEnvironmentVariant1Discriminator( - string? type) + global::tryAGI.OpenAI.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.g.cs new file mode 100644 index 00000000..c64b66c4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType + { + /// + /// + /// + ContainerReference, + /// + /// + /// + Local, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FunctionShellCallItemParamEnvironmentVariant1DiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType value) + { + return value switch + { + FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.ContainerReference => "container_reference", + FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.Local => "local", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType? ToEnum(string value) + { + return value switch + { + "container_reference" => FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.ContainerReference, + "local" => FunctionShellCallItemParamEnvironmentVariant1DiscriminatorType.Local, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputContentOutcomeDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputContentOutcomeDiscriminator.g.cs index 9efcfec2..782f6957 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputContentOutcomeDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputContentOutcomeDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class FunctionShellCallOutputContentOutcomeDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputContentOutcomeDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class FunctionShellCallOutputContentOutcomeDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionShellCallOutputContentOutcomeDiscriminator( - string? type) + global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputContentOutcomeDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputContentOutcomeDiscriminatorType.g.cs new file mode 100644 index 00000000..6268aa83 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputContentOutcomeDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum FunctionShellCallOutputContentOutcomeDiscriminatorType + { + /// + /// + /// + Exit, + /// + /// + /// + Timeout, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FunctionShellCallOutputContentOutcomeDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FunctionShellCallOutputContentOutcomeDiscriminatorType value) + { + return value switch + { + FunctionShellCallOutputContentOutcomeDiscriminatorType.Exit => "exit", + FunctionShellCallOutputContentOutcomeDiscriminatorType.Timeout => "timeout", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FunctionShellCallOutputContentOutcomeDiscriminatorType? ToEnum(string value) + { + return value switch + { + "exit" => FunctionShellCallOutputContentOutcomeDiscriminatorType.Exit, + "timeout" => FunctionShellCallOutputContentOutcomeDiscriminatorType.Timeout, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs index b06667d1..d2e8c4b5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParam.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct FunctionShellCallOutputOutcomeParam : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Type { get; } + /// /// Indicates that the shell call exceeded its configured time limit. /// @@ -108,10 +113,13 @@ public FunctionShellCallOutputOutcomeParam(global::tryAGI.OpenAI.FunctionShellCa /// /// public FunctionShellCallOutputOutcomeParam( + global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? type, global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcomeParam? timeout, global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcomeParam? exit ) { + Type = type; + Timeout = timeout; Exit = exit; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParamDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParamDiscriminator.g.cs index d8122667..2aec8269 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParamDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParamDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class FunctionShellCallOutputOutcomeParamDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellCallOutputOutcomeParamDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class FunctionShellCallOutputOutcomeParamDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionShellCallOutputOutcomeParamDiscriminator( - string? type) + global::tryAGI.OpenAI.FunctionShellCallOutputOutcomeParamDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParamDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParamDiscriminatorType.g.cs new file mode 100644 index 00000000..e4d835b8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellCallOutputOutcomeParamDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum FunctionShellCallOutputOutcomeParamDiscriminatorType + { + /// + /// + /// + Exit, + /// + /// + /// + Timeout, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FunctionShellCallOutputOutcomeParamDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FunctionShellCallOutputOutcomeParamDiscriminatorType value) + { + return value switch + { + FunctionShellCallOutputOutcomeParamDiscriminatorType.Exit => "exit", + FunctionShellCallOutputOutcomeParamDiscriminatorType.Timeout => "timeout", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FunctionShellCallOutputOutcomeParamDiscriminatorType? ToEnum(string value) + { + return value switch + { + "exit" => FunctionShellCallOutputOutcomeParamDiscriminatorType.Exit, + "timeout" => FunctionShellCallOutputOutcomeParamDiscriminatorType.Timeout, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellToolParamEnvironmentVariant1Discriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellToolParamEnvironmentVariant1Discriminator.g.cs index fc545a9b..2e2af0da 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellToolParamEnvironmentVariant1Discriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellToolParamEnvironmentVariant1Discriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class FunctionShellToolParamEnvironmentVariant1Discriminat /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class FunctionShellToolParamEnvironmentVariant1Discriminat [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionShellToolParamEnvironmentVariant1Discriminator( - string? type) + global::tryAGI.OpenAI.FunctionShellToolParamEnvironmentVariant1DiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellToolParamEnvironmentVariant1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellToolParamEnvironmentVariant1DiscriminatorType.g.cs new file mode 100644 index 00000000..4a51b13c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionShellToolParamEnvironmentVariant1DiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum FunctionShellToolParamEnvironmentVariant1DiscriminatorType + { + /// + /// + /// + ContainerAuto, + /// + /// + /// + ContainerReference, + /// + /// + /// + Local, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class FunctionShellToolParamEnvironmentVariant1DiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this FunctionShellToolParamEnvironmentVariant1DiscriminatorType value) + { + return value switch + { + FunctionShellToolParamEnvironmentVariant1DiscriminatorType.ContainerAuto => "container_auto", + FunctionShellToolParamEnvironmentVariant1DiscriminatorType.ContainerReference => "container_reference", + FunctionShellToolParamEnvironmentVariant1DiscriminatorType.Local => "local", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static FunctionShellToolParamEnvironmentVariant1DiscriminatorType? ToEnum(string value) + { + return value switch + { + "container_auto" => FunctionShellToolParamEnvironmentVariant1DiscriminatorType.ContainerAuto, + "container_reference" => FunctionShellToolParamEnvironmentVariant1DiscriminatorType.ContainerReference, + "local" => FunctionShellToolParamEnvironmentVariant1DiscriminatorType.Local, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs index ed4a62b5..d46a729d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ImageEditStreamEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? Type { get; } + /// /// Emitted when a partial image is available during image editing streaming. /// @@ -108,10 +113,13 @@ public ImageEditStreamEvent(global::tryAGI.OpenAI.ImageEditCompletedEvent? value /// /// public ImageEditStreamEvent( + global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? type, global::tryAGI.OpenAI.ImageEditPartialImageEvent? imageEditPartialImage, global::tryAGI.OpenAI.ImageEditCompletedEvent? imageEditCompleted ) { + Type = type; + ImageEditPartialImage = imageEditPartialImage; ImageEditCompleted = imageEditCompleted; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEventDiscriminator.g.cs index fbbd8c53..97404727 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ImageEditStreamEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ImageEditStreamEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ImageEditStreamEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageEditStreamEventDiscriminator( - string? type) + global::tryAGI.OpenAI.ImageEditStreamEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..cc98695c --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageEditStreamEventDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ImageEditStreamEventDiscriminatorType + { + /// + /// + /// + ImageEditCompleted, + /// + /// + /// + ImageEditPartialImage, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageEditStreamEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageEditStreamEventDiscriminatorType value) + { + return value switch + { + ImageEditStreamEventDiscriminatorType.ImageEditCompleted => "image_edit.completed", + ImageEditStreamEventDiscriminatorType.ImageEditPartialImage => "image_edit.partial_image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageEditStreamEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "image_edit.completed" => ImageEditStreamEventDiscriminatorType.ImageEditCompleted, + "image_edit.partial_image" => ImageEditStreamEventDiscriminatorType.ImageEditPartialImage, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs index 98553548..3f79c84b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ImageGenStreamEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? Type { get; } + /// /// Emitted when a partial image is available during image generation streaming. /// @@ -108,10 +113,13 @@ public ImageGenStreamEvent(global::tryAGI.OpenAI.ImageGenCompletedEvent? value) /// /// public ImageGenStreamEvent( + global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? type, global::tryAGI.OpenAI.ImageGenPartialImageEvent? imageGenerationPartialImage, global::tryAGI.OpenAI.ImageGenCompletedEvent? imageGenerationCompleted ) { + Type = type; + ImageGenerationPartialImage = imageGenerationPartialImage; ImageGenerationCompleted = imageGenerationCompleted; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEventDiscriminator.g.cs index 7eea83ae..ac8bae5d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ImageGenStreamEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ImageGenStreamEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ImageGenStreamEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageGenStreamEventDiscriminator( - string? type) + global::tryAGI.OpenAI.ImageGenStreamEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..54ea8db5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ImageGenStreamEventDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ImageGenStreamEventDiscriminatorType + { + /// + /// + /// + ImageGenerationCompleted, + /// + /// + /// + ImageGenerationPartialImage, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageGenStreamEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageGenStreamEventDiscriminatorType value) + { + return value switch + { + ImageGenStreamEventDiscriminatorType.ImageGenerationCompleted => "image_generation.completed", + ImageGenStreamEventDiscriminatorType.ImageGenerationPartialImage => "image_generation.partial_image", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageGenStreamEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "image_generation.completed" => ImageGenStreamEventDiscriminatorType.ImageGenerationCompleted, + "image_generation.partial_image" => ImageGenStreamEventDiscriminatorType.ImageGenerationPartialImage, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs index f4e18dc5..05509192 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct InputContent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.InputContentDiscriminatorType? Type { get; } + /// /// A text input to the model. /// @@ -156,11 +161,14 @@ public InputContent(global::tryAGI.OpenAI.InputFileContent? value) /// /// public InputContent( + global::tryAGI.OpenAI.InputContentDiscriminatorType? type, global::tryAGI.OpenAI.InputTextContent? inputText, global::tryAGI.OpenAI.InputImageContent? inputImage, global::tryAGI.OpenAI.InputFileContent? inputFile ) { + Type = type; + InputText = inputText; InputImage = inputImage; InputFile = inputFile; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.g.cs index 358aabdc..8e0dd735 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class InputContentDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.InputContentDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.InputContentDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class InputContentDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InputContentDiscriminator( - string? type) + global::tryAGI.OpenAI.InputContentDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminatorType.g.cs new file mode 100644 index 00000000..e1400deb --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputContentDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum InputContentDiscriminatorType + { + /// + /// + /// + InputFile, + /// + /// + /// + InputImage, + /// + /// + /// + InputText, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class InputContentDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this InputContentDiscriminatorType value) + { + return value switch + { + InputContentDiscriminatorType.InputFile => "input_file", + InputContentDiscriminatorType.InputImage => "input_image", + InputContentDiscriminatorType.InputText => "input_text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static InputContentDiscriminatorType? ToEnum(string value) + { + return value switch + { + "input_file" => InputContentDiscriminatorType.InputFile, + "input_image" => InputContentDiscriminatorType.InputImage, + "input_text" => InputContentDiscriminatorType.InputText, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItemDiscriminator.g.cs index 123f56a2..47349ae6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class InputItemDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.InputItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.InputItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class InputItemDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InputItemDiscriminator( - string? type) + global::tryAGI.OpenAI.InputItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItemDiscriminatorType.g.cs new file mode 100644 index 00000000..cba8f611 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputItemDiscriminatorType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum InputItemDiscriminatorType + { + /// + /// + /// + Message, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class InputItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this InputItemDiscriminatorType value) + { + return value switch + { + InputItemDiscriminatorType.Message => "message", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static InputItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "message" => InputItemDiscriminatorType.Message, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs index ef0a181d..9eb8595a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Item.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct Item : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ItemDiscriminatorType? Type { get; } + /// /// A message input to the model with a role indicating instruction following
/// hierarchy. Instructions given with the `developer` or `system` role take
@@ -1269,6 +1274,7 @@ public Item(global::tryAGI.OpenAI.CustomToolCall? value) /// ///
public Item( + global::tryAGI.OpenAI.ItemDiscriminatorType? type, global::tryAGI.OpenAI.InputMessage? message1, global::tryAGI.OpenAI.OutputMessage? message2, global::tryAGI.OpenAI.FileSearchToolCall? fileSearchCall, @@ -1297,6 +1303,8 @@ public Item( global::tryAGI.OpenAI.CustomToolCall? customToolCall ) { + Type = type; + Message1 = message1; Message2 = message2; FileSearchCall = fileSearchCall; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemDiscriminator.g.cs index 29b6f8bf..e137901f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ItemDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ItemDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ItemDiscriminator( - string? type) + global::tryAGI.OpenAI.ItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemDiscriminatorType.g.cs new file mode 100644 index 00000000..66ee9ffa --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemDiscriminatorType.g.cs @@ -0,0 +1,189 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ItemDiscriminatorType + { + /// + /// + /// + ApplyPatchCall, + /// + /// + /// + ApplyPatchCallOutput, + /// + /// + /// + CodeInterpreterCall, + /// + /// + /// + Compaction, + /// + /// + /// + ComputerCall, + /// + /// + /// + ComputerCallOutput, + /// + /// + /// + CustomToolCall, + /// + /// + /// + CustomToolCallOutput, + /// + /// + /// + FileSearchCall, + /// + /// + /// + FunctionCall, + /// + /// + /// + FunctionCallOutput, + /// + /// + /// + ImageGenerationCall, + /// + /// + /// + LocalShellCall, + /// + /// + /// + LocalShellCallOutput, + /// + /// + /// + McpApprovalRequest, + /// + /// + /// + McpApprovalResponse, + /// + /// + /// + McpCall, + /// + /// + /// + McpListTools, + /// + /// + /// + Message, + /// + /// + /// + Reasoning, + /// + /// + /// + ShellCall, + /// + /// + /// + ShellCallOutput, + /// + /// + /// + ToolSearchCall, + /// + /// + /// + ToolSearchOutput, + /// + /// + /// + WebSearchCall, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ItemDiscriminatorType value) + { + return value switch + { + ItemDiscriminatorType.ApplyPatchCall => "apply_patch_call", + ItemDiscriminatorType.ApplyPatchCallOutput => "apply_patch_call_output", + ItemDiscriminatorType.CodeInterpreterCall => "code_interpreter_call", + ItemDiscriminatorType.Compaction => "compaction", + ItemDiscriminatorType.ComputerCall => "computer_call", + ItemDiscriminatorType.ComputerCallOutput => "computer_call_output", + ItemDiscriminatorType.CustomToolCall => "custom_tool_call", + ItemDiscriminatorType.CustomToolCallOutput => "custom_tool_call_output", + ItemDiscriminatorType.FileSearchCall => "file_search_call", + ItemDiscriminatorType.FunctionCall => "function_call", + ItemDiscriminatorType.FunctionCallOutput => "function_call_output", + ItemDiscriminatorType.ImageGenerationCall => "image_generation_call", + ItemDiscriminatorType.LocalShellCall => "local_shell_call", + ItemDiscriminatorType.LocalShellCallOutput => "local_shell_call_output", + ItemDiscriminatorType.McpApprovalRequest => "mcp_approval_request", + ItemDiscriminatorType.McpApprovalResponse => "mcp_approval_response", + ItemDiscriminatorType.McpCall => "mcp_call", + ItemDiscriminatorType.McpListTools => "mcp_list_tools", + ItemDiscriminatorType.Message => "message", + ItemDiscriminatorType.Reasoning => "reasoning", + ItemDiscriminatorType.ShellCall => "shell_call", + ItemDiscriminatorType.ShellCallOutput => "shell_call_output", + ItemDiscriminatorType.ToolSearchCall => "tool_search_call", + ItemDiscriminatorType.ToolSearchOutput => "tool_search_output", + ItemDiscriminatorType.WebSearchCall => "web_search_call", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "apply_patch_call" => ItemDiscriminatorType.ApplyPatchCall, + "apply_patch_call_output" => ItemDiscriminatorType.ApplyPatchCallOutput, + "code_interpreter_call" => ItemDiscriminatorType.CodeInterpreterCall, + "compaction" => ItemDiscriminatorType.Compaction, + "computer_call" => ItemDiscriminatorType.ComputerCall, + "computer_call_output" => ItemDiscriminatorType.ComputerCallOutput, + "custom_tool_call" => ItemDiscriminatorType.CustomToolCall, + "custom_tool_call_output" => ItemDiscriminatorType.CustomToolCallOutput, + "file_search_call" => ItemDiscriminatorType.FileSearchCall, + "function_call" => ItemDiscriminatorType.FunctionCall, + "function_call_output" => ItemDiscriminatorType.FunctionCallOutput, + "image_generation_call" => ItemDiscriminatorType.ImageGenerationCall, + "local_shell_call" => ItemDiscriminatorType.LocalShellCall, + "local_shell_call_output" => ItemDiscriminatorType.LocalShellCallOutput, + "mcp_approval_request" => ItemDiscriminatorType.McpApprovalRequest, + "mcp_approval_response" => ItemDiscriminatorType.McpApprovalResponse, + "mcp_call" => ItemDiscriminatorType.McpCall, + "mcp_list_tools" => ItemDiscriminatorType.McpListTools, + "message" => ItemDiscriminatorType.Message, + "reasoning" => ItemDiscriminatorType.Reasoning, + "shell_call" => ItemDiscriminatorType.ShellCall, + "shell_call_output" => ItemDiscriminatorType.ShellCallOutput, + "tool_search_call" => ItemDiscriminatorType.ToolSearchCall, + "tool_search_output" => ItemDiscriminatorType.ToolSearchOutput, + "web_search_call" => ItemDiscriminatorType.WebSearchCall, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemFieldDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemFieldDiscriminator.g.cs index 3aa57cad..f3e1598a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemFieldDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemFieldDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ItemFieldDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ItemFieldDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ItemFieldDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ItemFieldDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ItemFieldDiscriminator( - string? type) + global::tryAGI.OpenAI.ItemFieldDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemFieldDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemFieldDiscriminatorType.g.cs new file mode 100644 index 00000000..e17d3332 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemFieldDiscriminatorType.g.cs @@ -0,0 +1,183 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ItemFieldDiscriminatorType + { + /// + /// + /// + ApplyPatchCall, + /// + /// + /// + ApplyPatchCallOutput, + /// + /// + /// + CodeInterpreterCall, + /// + /// + /// + Compaction, + /// + /// + /// + ComputerCall, + /// + /// + /// + CustomToolCall, + /// + /// + /// + CustomToolCallOutput, + /// + /// + /// + FileSearchCall, + /// + /// + /// + FunctionCall, + /// + /// + /// + FunctionCallOutput, + /// + /// + /// + ImageGenerationCall, + /// + /// + /// + LocalShellCall, + /// + /// + /// + LocalShellCallOutput, + /// + /// + /// + McpApprovalRequest, + /// + /// + /// + McpApprovalResponse, + /// + /// + /// + McpCall, + /// + /// + /// + McpListTools, + /// + /// + /// + Message, + /// + /// + /// + Reasoning, + /// + /// + /// + ShellCall, + /// + /// + /// + ShellCallOutput, + /// + /// + /// + ToolSearchCall, + /// + /// + /// + ToolSearchOutput, + /// + /// + /// + WebSearchCall, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ItemFieldDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ItemFieldDiscriminatorType value) + { + return value switch + { + ItemFieldDiscriminatorType.ApplyPatchCall => "apply_patch_call", + ItemFieldDiscriminatorType.ApplyPatchCallOutput => "apply_patch_call_output", + ItemFieldDiscriminatorType.CodeInterpreterCall => "code_interpreter_call", + ItemFieldDiscriminatorType.Compaction => "compaction", + ItemFieldDiscriminatorType.ComputerCall => "computer_call", + ItemFieldDiscriminatorType.CustomToolCall => "custom_tool_call", + ItemFieldDiscriminatorType.CustomToolCallOutput => "custom_tool_call_output", + ItemFieldDiscriminatorType.FileSearchCall => "file_search_call", + ItemFieldDiscriminatorType.FunctionCall => "function_call", + ItemFieldDiscriminatorType.FunctionCallOutput => "function_call_output", + ItemFieldDiscriminatorType.ImageGenerationCall => "image_generation_call", + ItemFieldDiscriminatorType.LocalShellCall => "local_shell_call", + ItemFieldDiscriminatorType.LocalShellCallOutput => "local_shell_call_output", + ItemFieldDiscriminatorType.McpApprovalRequest => "mcp_approval_request", + ItemFieldDiscriminatorType.McpApprovalResponse => "mcp_approval_response", + ItemFieldDiscriminatorType.McpCall => "mcp_call", + ItemFieldDiscriminatorType.McpListTools => "mcp_list_tools", + ItemFieldDiscriminatorType.Message => "message", + ItemFieldDiscriminatorType.Reasoning => "reasoning", + ItemFieldDiscriminatorType.ShellCall => "shell_call", + ItemFieldDiscriminatorType.ShellCallOutput => "shell_call_output", + ItemFieldDiscriminatorType.ToolSearchCall => "tool_search_call", + ItemFieldDiscriminatorType.ToolSearchOutput => "tool_search_output", + ItemFieldDiscriminatorType.WebSearchCall => "web_search_call", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ItemFieldDiscriminatorType? ToEnum(string value) + { + return value switch + { + "apply_patch_call" => ItemFieldDiscriminatorType.ApplyPatchCall, + "apply_patch_call_output" => ItemFieldDiscriminatorType.ApplyPatchCallOutput, + "code_interpreter_call" => ItemFieldDiscriminatorType.CodeInterpreterCall, + "compaction" => ItemFieldDiscriminatorType.Compaction, + "computer_call" => ItemFieldDiscriminatorType.ComputerCall, + "custom_tool_call" => ItemFieldDiscriminatorType.CustomToolCall, + "custom_tool_call_output" => ItemFieldDiscriminatorType.CustomToolCallOutput, + "file_search_call" => ItemFieldDiscriminatorType.FileSearchCall, + "function_call" => ItemFieldDiscriminatorType.FunctionCall, + "function_call_output" => ItemFieldDiscriminatorType.FunctionCallOutput, + "image_generation_call" => ItemFieldDiscriminatorType.ImageGenerationCall, + "local_shell_call" => ItemFieldDiscriminatorType.LocalShellCall, + "local_shell_call_output" => ItemFieldDiscriminatorType.LocalShellCallOutput, + "mcp_approval_request" => ItemFieldDiscriminatorType.McpApprovalRequest, + "mcp_approval_response" => ItemFieldDiscriminatorType.McpApprovalResponse, + "mcp_call" => ItemFieldDiscriminatorType.McpCall, + "mcp_list_tools" => ItemFieldDiscriminatorType.McpListTools, + "message" => ItemFieldDiscriminatorType.Message, + "reasoning" => ItemFieldDiscriminatorType.Reasoning, + "shell_call" => ItemFieldDiscriminatorType.ShellCall, + "shell_call_output" => ItemFieldDiscriminatorType.ShellCallOutput, + "tool_search_call" => ItemFieldDiscriminatorType.ToolSearchCall, + "tool_search_output" => ItemFieldDiscriminatorType.ToolSearchOutput, + "web_search_call" => ItemFieldDiscriminatorType.WebSearchCall, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResourceDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResourceDiscriminator.g.cs index 2f919b7d..ffc4f89e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResourceDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResourceDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ItemResourceDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ItemResourceDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ItemResourceDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ItemResourceDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ItemResourceDiscriminator( - string? type) + global::tryAGI.OpenAI.ItemResourceDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResourceDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResourceDiscriminatorType.g.cs new file mode 100644 index 00000000..02c73bf4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ItemResourceDiscriminatorType.g.cs @@ -0,0 +1,159 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ItemResourceDiscriminatorType + { + /// + /// + /// + ApplyPatchCall, + /// + /// + /// + ApplyPatchCallOutput, + /// + /// + /// + CodeInterpreterCall, + /// + /// + /// + Compaction, + /// + /// + /// + ComputerCall, + /// + /// + /// + FileSearchCall, + /// + /// + /// + ImageGenerationCall, + /// + /// + /// + LocalShellCall, + /// + /// + /// + LocalShellCallOutput, + /// + /// + /// + McpApprovalRequest, + /// + /// + /// + McpApprovalResponse, + /// + /// + /// + McpCall, + /// + /// + /// + McpListTools, + /// + /// + /// + Message, + /// + /// + /// + Reasoning, + /// + /// + /// + ShellCall, + /// + /// + /// + ShellCallOutput, + /// + /// + /// + ToolSearchCall, + /// + /// + /// + ToolSearchOutput, + /// + /// + /// + WebSearchCall, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ItemResourceDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ItemResourceDiscriminatorType value) + { + return value switch + { + ItemResourceDiscriminatorType.ApplyPatchCall => "apply_patch_call", + ItemResourceDiscriminatorType.ApplyPatchCallOutput => "apply_patch_call_output", + ItemResourceDiscriminatorType.CodeInterpreterCall => "code_interpreter_call", + ItemResourceDiscriminatorType.Compaction => "compaction", + ItemResourceDiscriminatorType.ComputerCall => "computer_call", + ItemResourceDiscriminatorType.FileSearchCall => "file_search_call", + ItemResourceDiscriminatorType.ImageGenerationCall => "image_generation_call", + ItemResourceDiscriminatorType.LocalShellCall => "local_shell_call", + ItemResourceDiscriminatorType.LocalShellCallOutput => "local_shell_call_output", + ItemResourceDiscriminatorType.McpApprovalRequest => "mcp_approval_request", + ItemResourceDiscriminatorType.McpApprovalResponse => "mcp_approval_response", + ItemResourceDiscriminatorType.McpCall => "mcp_call", + ItemResourceDiscriminatorType.McpListTools => "mcp_list_tools", + ItemResourceDiscriminatorType.Message => "message", + ItemResourceDiscriminatorType.Reasoning => "reasoning", + ItemResourceDiscriminatorType.ShellCall => "shell_call", + ItemResourceDiscriminatorType.ShellCallOutput => "shell_call_output", + ItemResourceDiscriminatorType.ToolSearchCall => "tool_search_call", + ItemResourceDiscriminatorType.ToolSearchOutput => "tool_search_output", + ItemResourceDiscriminatorType.WebSearchCall => "web_search_call", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ItemResourceDiscriminatorType? ToEnum(string value) + { + return value switch + { + "apply_patch_call" => ItemResourceDiscriminatorType.ApplyPatchCall, + "apply_patch_call_output" => ItemResourceDiscriminatorType.ApplyPatchCallOutput, + "code_interpreter_call" => ItemResourceDiscriminatorType.CodeInterpreterCall, + "compaction" => ItemResourceDiscriminatorType.Compaction, + "computer_call" => ItemResourceDiscriminatorType.ComputerCall, + "file_search_call" => ItemResourceDiscriminatorType.FileSearchCall, + "image_generation_call" => ItemResourceDiscriminatorType.ImageGenerationCall, + "local_shell_call" => ItemResourceDiscriminatorType.LocalShellCall, + "local_shell_call_output" => ItemResourceDiscriminatorType.LocalShellCallOutput, + "mcp_approval_request" => ItemResourceDiscriminatorType.McpApprovalRequest, + "mcp_approval_response" => ItemResourceDiscriminatorType.McpApprovalResponse, + "mcp_call" => ItemResourceDiscriminatorType.McpCall, + "mcp_list_tools" => ItemResourceDiscriminatorType.McpListTools, + "message" => ItemResourceDiscriminatorType.Message, + "reasoning" => ItemResourceDiscriminatorType.Reasoning, + "shell_call" => ItemResourceDiscriminatorType.ShellCall, + "shell_call_output" => ItemResourceDiscriminatorType.ShellCallOutput, + "tool_search_call" => ItemResourceDiscriminatorType.ToolSearchCall, + "tool_search_output" => ItemResourceDiscriminatorType.ToolSearchOutput, + "web_search_call" => ItemResourceDiscriminatorType.WebSearchCall, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentItemDiscriminator.g.cs index 56c8147d..1bfb1cfb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class MessageContentItemDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.MessageContentItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class MessageContentItemDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MessageContentItemDiscriminator( - string? type) + global::tryAGI.OpenAI.MessageContentItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentItemDiscriminatorType.g.cs new file mode 100644 index 00000000..2deb2262 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageContentItemDiscriminatorType.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum MessageContentItemDiscriminatorType + { + /// + /// + /// + ComputerScreenshot, + /// + /// + /// + InputFile, + /// + /// + /// + InputImage, + /// + /// + /// + InputText, + /// + /// + /// + OutputText, + /// + /// + /// + ReasoningText, + /// + /// + /// + Refusal, + /// + /// + /// + SummaryText, + /// + /// + /// + Text, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class MessageContentItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this MessageContentItemDiscriminatorType value) + { + return value switch + { + MessageContentItemDiscriminatorType.ComputerScreenshot => "computer_screenshot", + MessageContentItemDiscriminatorType.InputFile => "input_file", + MessageContentItemDiscriminatorType.InputImage => "input_image", + MessageContentItemDiscriminatorType.InputText => "input_text", + MessageContentItemDiscriminatorType.OutputText => "output_text", + MessageContentItemDiscriminatorType.ReasoningText => "reasoning_text", + MessageContentItemDiscriminatorType.Refusal => "refusal", + MessageContentItemDiscriminatorType.SummaryText => "summary_text", + MessageContentItemDiscriminatorType.Text => "text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static MessageContentItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "computer_screenshot" => MessageContentItemDiscriminatorType.ComputerScreenshot, + "input_file" => MessageContentItemDiscriminatorType.InputFile, + "input_image" => MessageContentItemDiscriminatorType.InputImage, + "input_text" => MessageContentItemDiscriminatorType.InputText, + "output_text" => MessageContentItemDiscriminatorType.OutputText, + "reasoning_text" => MessageContentItemDiscriminatorType.ReasoningText, + "refusal" => MessageContentItemDiscriminatorType.Refusal, + "summary_text" => MessageContentItemDiscriminatorType.SummaryText, + "text" => MessageContentItemDiscriminatorType.Text, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NamespaceToolParamToolDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NamespaceToolParamToolDiscriminator.g.cs index c2158a68..cfdffa16 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NamespaceToolParamToolDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NamespaceToolParamToolDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class NamespaceToolParamToolDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.NamespaceToolParamToolDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class NamespaceToolParamToolDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public NamespaceToolParamToolDiscriminator( - string? type) + global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NamespaceToolParamToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NamespaceToolParamToolDiscriminatorType.g.cs new file mode 100644 index 00000000..6aea89f9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NamespaceToolParamToolDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum NamespaceToolParamToolDiscriminatorType + { + /// + /// + /// + Custom, + /// + /// + /// + Function, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class NamespaceToolParamToolDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this NamespaceToolParamToolDiscriminatorType value) + { + return value switch + { + NamespaceToolParamToolDiscriminatorType.Custom => "custom", + NamespaceToolParamToolDiscriminatorType.Function => "function", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static NamespaceToolParamToolDiscriminatorType? ToEnum(string value) + { + return value switch + { + "custom" => NamespaceToolParamToolDiscriminatorType.Custom, + "function" => NamespaceToolParamToolDiscriminatorType.Function, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs index 77c6faf1..d92911c6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy.g.cs @@ -12,6 +12,11 @@ namespace tryAGI.OpenAI /// /// /// + public global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Disabled { get; init; } #else @@ -108,10 +113,13 @@ public NetworkPolicy(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? /// /// public NetworkPolicy( + global::tryAGI.OpenAI.CreateContainerBodyNetworkPolicyDiscriminatorType? type, global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? disabled, global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? allowlist ) { + Type = type; + Disabled = disabled; Allowlist = allowlist; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs index 74e75d7c..c148d874 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy2.g.cs @@ -12,6 +12,11 @@ namespace tryAGI.OpenAI /// /// /// + public global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Disabled { get; init; } #else @@ -108,10 +113,13 @@ public NetworkPolicy2(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam /// /// public NetworkPolicy2( + global::tryAGI.OpenAI.AutoCodeInterpreterToolParamNetworkPolicyDiscriminatorType? type, global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? disabled, global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? allowlist ) { + Type = type; + Disabled = disabled; Allowlist = allowlist; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs index 5f34beb5..5dff4aa5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.NetworkPolicy3.g.cs @@ -12,6 +12,11 @@ namespace tryAGI.OpenAI /// /// /// + public global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? Disabled { get; init; } #else @@ -108,10 +113,13 @@ public NetworkPolicy3(global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam /// /// public NetworkPolicy3( + global::tryAGI.OpenAI.ContainerAutoParamNetworkPolicyDiscriminatorType? type, global::tryAGI.OpenAI.ContainerNetworkPolicyDisabledParam? disabled, global::tryAGI.OpenAI.ContainerNetworkPolicyAllowlistParam? allowlist ) { + Type = type; + Disabled = disabled; Allowlist = allowlist; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs index 501d7d3d..380e929b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Operation.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct Operation : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? Type { get; } + /// /// Instruction describing how to create a file via the apply_patch tool. /// @@ -156,11 +161,14 @@ public Operation(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? value) /// /// public Operation( + global::tryAGI.OpenAI.ApplyPatchToolCallOperationDiscriminatorType? type, global::tryAGI.OpenAI.ApplyPatchCreateFileOperation? createFile, global::tryAGI.OpenAI.ApplyPatchDeleteFileOperation? deleteFile, global::tryAGI.OpenAI.ApplyPatchUpdateFileOperation? updateFile ) { + Type = type; + CreateFile = createFile; DeleteFile = deleteFile; UpdateFile = updateFile; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs index be06822e..e41b9c1e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Outcome.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct Outcome : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? Type { get; } + /// /// Indicates that the shell call exceeded its configured time limit. /// @@ -108,10 +113,13 @@ public Outcome(global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? value) /// /// public Outcome( + global::tryAGI.OpenAI.FunctionShellCallOutputContentOutcomeDiscriminatorType? type, global::tryAGI.OpenAI.FunctionShellCallOutputTimeoutOutcome? timeout, global::tryAGI.OpenAI.FunctionShellCallOutputExitOutcome? exit ) { + Type = type; + Timeout = timeout; Exit = exit; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs index 045ddf0f..48f53889 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct OutputContent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.OutputContentDiscriminatorType? Type { get; } + /// /// A text output from the model. /// @@ -156,11 +161,14 @@ public OutputContent(global::tryAGI.OpenAI.ReasoningTextContent? value) /// /// public OutputContent( + global::tryAGI.OpenAI.OutputContentDiscriminatorType? type, global::tryAGI.OpenAI.OutputTextContent? outputText, global::tryAGI.OpenAI.RefusalContent? refusal, global::tryAGI.OpenAI.ReasoningTextContent? reasoningText ) { + Type = type; + OutputText = outputText; Refusal = refusal; ReasoningText = reasoningText; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.g.cs index 04a882b7..2824ca37 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class OutputContentDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OutputContentDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.OutputContentDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class OutputContentDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputContentDiscriminator( - string? type) + global::tryAGI.OpenAI.OutputContentDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminatorType.g.cs new file mode 100644 index 00000000..4af8cbd9 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputContentDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum OutputContentDiscriminatorType + { + /// + /// + /// + OutputText, + /// + /// + /// + ReasoningText, + /// + /// + /// + Refusal, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputContentDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputContentDiscriminatorType value) + { + return value switch + { + OutputContentDiscriminatorType.OutputText => "output_text", + OutputContentDiscriminatorType.ReasoningText => "reasoning_text", + OutputContentDiscriminatorType.Refusal => "refusal", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputContentDiscriminatorType? ToEnum(string value) + { + return value switch + { + "output_text" => OutputContentDiscriminatorType.OutputText, + "reasoning_text" => OutputContentDiscriminatorType.ReasoningText, + "refusal" => OutputContentDiscriminatorType.Refusal, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItemDiscriminator.g.cs index 9106be78..4f06934d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class OutputItemDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OutputItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.OutputItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class OutputItemDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputItemDiscriminator( - string? type) + global::tryAGI.OpenAI.OutputItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItemDiscriminatorType.g.cs new file mode 100644 index 00000000..070e6751 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputItemDiscriminatorType.g.cs @@ -0,0 +1,171 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum OutputItemDiscriminatorType + { + /// + /// + /// + ApplyPatchCall, + /// + /// + /// + ApplyPatchCallOutput, + /// + /// + /// + CodeInterpreterCall, + /// + /// + /// + Compaction, + /// + /// + /// + ComputerCall, + /// + /// + /// + CustomToolCall, + /// + /// + /// + FileSearchCall, + /// + /// + /// + FunctionCall, + /// + /// + /// + ImageGenerationCall, + /// + /// + /// + LocalShellCall, + /// + /// + /// + LocalShellCallOutput, + /// + /// + /// + McpApprovalRequest, + /// + /// + /// + McpApprovalResponse, + /// + /// + /// + McpCall, + /// + /// + /// + McpListTools, + /// + /// + /// + Message, + /// + /// + /// + Reasoning, + /// + /// + /// + ShellCall, + /// + /// + /// + ShellCallOutput, + /// + /// + /// + ToolSearchCall, + /// + /// + /// + ToolSearchOutput, + /// + /// + /// + WebSearchCall, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputItemDiscriminatorType value) + { + return value switch + { + OutputItemDiscriminatorType.ApplyPatchCall => "apply_patch_call", + OutputItemDiscriminatorType.ApplyPatchCallOutput => "apply_patch_call_output", + OutputItemDiscriminatorType.CodeInterpreterCall => "code_interpreter_call", + OutputItemDiscriminatorType.Compaction => "compaction", + OutputItemDiscriminatorType.ComputerCall => "computer_call", + OutputItemDiscriminatorType.CustomToolCall => "custom_tool_call", + OutputItemDiscriminatorType.FileSearchCall => "file_search_call", + OutputItemDiscriminatorType.FunctionCall => "function_call", + OutputItemDiscriminatorType.ImageGenerationCall => "image_generation_call", + OutputItemDiscriminatorType.LocalShellCall => "local_shell_call", + OutputItemDiscriminatorType.LocalShellCallOutput => "local_shell_call_output", + OutputItemDiscriminatorType.McpApprovalRequest => "mcp_approval_request", + OutputItemDiscriminatorType.McpApprovalResponse => "mcp_approval_response", + OutputItemDiscriminatorType.McpCall => "mcp_call", + OutputItemDiscriminatorType.McpListTools => "mcp_list_tools", + OutputItemDiscriminatorType.Message => "message", + OutputItemDiscriminatorType.Reasoning => "reasoning", + OutputItemDiscriminatorType.ShellCall => "shell_call", + OutputItemDiscriminatorType.ShellCallOutput => "shell_call_output", + OutputItemDiscriminatorType.ToolSearchCall => "tool_search_call", + OutputItemDiscriminatorType.ToolSearchOutput => "tool_search_output", + OutputItemDiscriminatorType.WebSearchCall => "web_search_call", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "apply_patch_call" => OutputItemDiscriminatorType.ApplyPatchCall, + "apply_patch_call_output" => OutputItemDiscriminatorType.ApplyPatchCallOutput, + "code_interpreter_call" => OutputItemDiscriminatorType.CodeInterpreterCall, + "compaction" => OutputItemDiscriminatorType.Compaction, + "computer_call" => OutputItemDiscriminatorType.ComputerCall, + "custom_tool_call" => OutputItemDiscriminatorType.CustomToolCall, + "file_search_call" => OutputItemDiscriminatorType.FileSearchCall, + "function_call" => OutputItemDiscriminatorType.FunctionCall, + "image_generation_call" => OutputItemDiscriminatorType.ImageGenerationCall, + "local_shell_call" => OutputItemDiscriminatorType.LocalShellCall, + "local_shell_call_output" => OutputItemDiscriminatorType.LocalShellCallOutput, + "mcp_approval_request" => OutputItemDiscriminatorType.McpApprovalRequest, + "mcp_approval_response" => OutputItemDiscriminatorType.McpApprovalResponse, + "mcp_call" => OutputItemDiscriminatorType.McpCall, + "mcp_list_tools" => OutputItemDiscriminatorType.McpListTools, + "message" => OutputItemDiscriminatorType.Message, + "reasoning" => OutputItemDiscriminatorType.Reasoning, + "shell_call" => OutputItemDiscriminatorType.ShellCall, + "shell_call_output" => OutputItemDiscriminatorType.ShellCallOutput, + "tool_search_call" => OutputItemDiscriminatorType.ToolSearchCall, + "tool_search_output" => OutputItemDiscriminatorType.ToolSearchOutput, + "web_search_call" => OutputItemDiscriminatorType.WebSearchCall, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs index bd2d91ee..8ed270c3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct OutputMessageContent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? Type { get; } + /// /// A text output from the model. /// @@ -108,10 +113,13 @@ public OutputMessageContent(global::tryAGI.OpenAI.RefusalContent? value) /// /// public OutputMessageContent( + global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? type, global::tryAGI.OpenAI.OutputTextContent? outputText, global::tryAGI.OpenAI.RefusalContent? refusal ) { + Type = type; + OutputText = outputText; Refusal = refusal; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContentDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContentDiscriminator.g.cs index 80f91e3d..cd515b92 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContentDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContentDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class OutputMessageContentDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.OutputMessageContentDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class OutputMessageContentDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public OutputMessageContentDiscriminator( - string? type) + global::tryAGI.OpenAI.OutputMessageContentDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContentDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContentDiscriminatorType.g.cs new file mode 100644 index 00000000..a4e132c5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputMessageContentDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum OutputMessageContentDiscriminatorType + { + /// + /// + /// + OutputText, + /// + /// + /// + Refusal, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class OutputMessageContentDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this OutputMessageContentDiscriminatorType value) + { + return value switch + { + OutputMessageContentDiscriminatorType.OutputText => "output_text", + OutputMessageContentDiscriminatorType.Refusal => "refusal", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static OutputMessageContentDiscriminatorType? ToEnum(string value) + { + return value switch + { + "output_text" => OutputMessageContentDiscriminatorType.OutputText, + "refusal" => OutputMessageContentDiscriminatorType.Refusal, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs index fa737878..89acfd63 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputVariant2Item.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct OutputVariant2Item : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? Type { get; } + /// /// A text input to the model. /// @@ -156,11 +161,14 @@ public OutputVariant2Item(global::tryAGI.OpenAI.InputFileContentParam? value) /// /// public OutputVariant2Item( + global::tryAGI.OpenAI.FunctionCallOutputItemParamOutputVariant2ItemDiscriminatorType? type, global::tryAGI.OpenAI.InputTextContentParam? inputText, global::tryAGI.OpenAI.InputImageContentParamAutoParam? inputImage, global::tryAGI.OpenAI.InputFileContentParam? inputFile ) { + Type = type; + InputText = inputText; InputImage = inputImage; InputFile = inputFile; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs index 6b9ecaf2..2d94e419 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.OutputsVariant1Item.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct OutputsVariant1Item : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? Type { get; } + /// /// The logs output from the code interpreter. /// @@ -108,10 +113,13 @@ public OutputsVariant1Item(global::tryAGI.OpenAI.CodeInterpreterOutputImage? val /// /// public OutputsVariant1Item( + global::tryAGI.OpenAI.CodeInterpreterToolCallOutputsVariant1ItemDiscriminatorType? type, global::tryAGI.OpenAI.CodeInterpreterOutputLogs? logs, global::tryAGI.OpenAI.CodeInterpreterOutputImage? image ) { + Type = type; + Logs = logs; Image = image; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs index 3f176ae4..6dae3b01 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct RealtimeClientEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? Type { get; } + /// /// Add a new Item to the Conversation's context, including messages, function
/// calls, and function call responses. This event can be used both to populate a
@@ -605,6 +610,7 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.RealtimeClientEventSessionUpdat /// ///
public RealtimeClientEvent( + global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? type, global::tryAGI.OpenAI.RealtimeClientEventConversationItemCreate? conversationItemCreate, global::tryAGI.OpenAI.RealtimeClientEventConversationItemDelete? conversationItemDelete, global::tryAGI.OpenAI.RealtimeClientEventConversationItemRetrieve? conversationItemRetrieve, @@ -618,6 +624,8 @@ public RealtimeClientEvent( global::tryAGI.OpenAI.RealtimeClientEventSessionUpdate? sessionUpdate ) { + Type = type; + ConversationItemCreate = conversationItemCreate; ConversationItemDelete = conversationItemDelete; ConversationItemRetrieve = conversationItemRetrieve; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventDiscriminator.g.cs index a144809d..ae9dfda3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeClientEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeClientEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeClientEventDiscriminator( - string? type) + global::tryAGI.OpenAI.RealtimeClientEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventDiscriminatorType.g.cs new file mode 100644 index 00000000..b9664b10 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeClientEventDiscriminatorType.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeClientEventDiscriminatorType + { + /// + /// + /// + ConversationItemCreate, + /// + /// + /// + ConversationItemDelete, + /// + /// + /// + ConversationItemRetrieve, + /// + /// + /// + ConversationItemTruncate, + /// + /// + /// + InputAudioBufferAppend, + /// + /// + /// + InputAudioBufferClear, + /// + /// + /// + InputAudioBufferCommit, + /// + /// + /// + OutputAudioBufferClear, + /// + /// + /// + ResponseCancel, + /// + /// + /// + ResponseCreate, + /// + /// + /// + SessionUpdate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeClientEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeClientEventDiscriminatorType value) + { + return value switch + { + RealtimeClientEventDiscriminatorType.ConversationItemCreate => "conversation.item.create", + RealtimeClientEventDiscriminatorType.ConversationItemDelete => "conversation.item.delete", + RealtimeClientEventDiscriminatorType.ConversationItemRetrieve => "conversation.item.retrieve", + RealtimeClientEventDiscriminatorType.ConversationItemTruncate => "conversation.item.truncate", + RealtimeClientEventDiscriminatorType.InputAudioBufferAppend => "input_audio_buffer.append", + RealtimeClientEventDiscriminatorType.InputAudioBufferClear => "input_audio_buffer.clear", + RealtimeClientEventDiscriminatorType.InputAudioBufferCommit => "input_audio_buffer.commit", + RealtimeClientEventDiscriminatorType.OutputAudioBufferClear => "output_audio_buffer.clear", + RealtimeClientEventDiscriminatorType.ResponseCancel => "response.cancel", + RealtimeClientEventDiscriminatorType.ResponseCreate => "response.create", + RealtimeClientEventDiscriminatorType.SessionUpdate => "session.update", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeClientEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "conversation.item.create" => RealtimeClientEventDiscriminatorType.ConversationItemCreate, + "conversation.item.delete" => RealtimeClientEventDiscriminatorType.ConversationItemDelete, + "conversation.item.retrieve" => RealtimeClientEventDiscriminatorType.ConversationItemRetrieve, + "conversation.item.truncate" => RealtimeClientEventDiscriminatorType.ConversationItemTruncate, + "input_audio_buffer.append" => RealtimeClientEventDiscriminatorType.InputAudioBufferAppend, + "input_audio_buffer.clear" => RealtimeClientEventDiscriminatorType.InputAudioBufferClear, + "input_audio_buffer.commit" => RealtimeClientEventDiscriminatorType.InputAudioBufferCommit, + "output_audio_buffer.clear" => RealtimeClientEventDiscriminatorType.OutputAudioBufferClear, + "response.cancel" => RealtimeClientEventDiscriminatorType.ResponseCancel, + "response.create" => RealtimeClientEventDiscriminatorType.ResponseCreate, + "session.update" => RealtimeClientEventDiscriminatorType.SessionUpdate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs index e6d329e9..11e36d70 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItem.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct RealtimeConversationItem : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? Type { get; } + /// /// A system message in a Realtime conversation can be used to provide additional context or instructions to the model. This is similar but distinct from the instruction prompt provided at the start of a conversation, as system messages can be added at any point in the conversation. For major changes to the conversation's behavior, use instructions, but for smaller updates (e.g. "the user is now asking about a different topic"), use system messages. /// @@ -444,6 +449,7 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.RealtimeMCPApprovalRequest /// /// public RealtimeConversationItem( + global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? type, global::tryAGI.OpenAI.RealtimeConversationItemMessageSystem? message1, global::tryAGI.OpenAI.RealtimeConversationItemMessageUser? message2, global::tryAGI.OpenAI.RealtimeConversationItemMessageAssistant? message3, @@ -455,6 +461,8 @@ public RealtimeConversationItem( global::tryAGI.OpenAI.RealtimeMCPApprovalRequest? mcpApprovalRequest ) { + Type = type; + Message1 = message1; Message2 = message2; Message3 = message3; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemDiscriminator.g.cs index 9fef343d..3ed615cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeConversationItemDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeConversationItemDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeConversationItemDiscriminator( - string? type) + global::tryAGI.OpenAI.RealtimeConversationItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemDiscriminatorType.g.cs new file mode 100644 index 00000000..95139c48 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeConversationItemDiscriminatorType.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeConversationItemDiscriminatorType + { + /// + /// + /// + FunctionCall, + /// + /// + /// + FunctionCallOutput, + /// + /// + /// + McpApprovalRequest, + /// + /// + /// + McpApprovalResponse, + /// + /// + /// + McpCall, + /// + /// + /// + McpListTools, + /// + /// + /// + Message, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeConversationItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeConversationItemDiscriminatorType value) + { + return value switch + { + RealtimeConversationItemDiscriminatorType.FunctionCall => "function_call", + RealtimeConversationItemDiscriminatorType.FunctionCallOutput => "function_call_output", + RealtimeConversationItemDiscriminatorType.McpApprovalRequest => "mcp_approval_request", + RealtimeConversationItemDiscriminatorType.McpApprovalResponse => "mcp_approval_response", + RealtimeConversationItemDiscriminatorType.McpCall => "mcp_call", + RealtimeConversationItemDiscriminatorType.McpListTools => "mcp_list_tools", + RealtimeConversationItemDiscriminatorType.Message => "message", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeConversationItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "function_call" => RealtimeConversationItemDiscriminatorType.FunctionCall, + "function_call_output" => RealtimeConversationItemDiscriminatorType.FunctionCallOutput, + "mcp_approval_request" => RealtimeConversationItemDiscriminatorType.McpApprovalRequest, + "mcp_approval_response" => RealtimeConversationItemDiscriminatorType.McpApprovalResponse, + "mcp_call" => RealtimeConversationItemDiscriminatorType.McpCall, + "mcp_list_tools" => RealtimeConversationItemDiscriminatorType.McpListTools, + "message" => RealtimeConversationItemDiscriminatorType.Message, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.g.cs index 3faf980c..3d1b47aa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeCreateClientSecretResponseSessionDiscriminat /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeCreateClientSecretResponseSessionDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeCreateClientSecretResponseSessionDiscriminat [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeCreateClientSecretResponseSessionDiscriminator( - string? type) + global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminatorType.g.cs new file mode 100644 index 00000000..53a284cc --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeCreateClientSecretResponseSessionDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeCreateClientSecretResponseSessionDiscriminatorType + { + /// + /// + /// + Realtime, + /// + /// + /// + Transcription, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeCreateClientSecretResponseSessionDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeCreateClientSecretResponseSessionDiscriminatorType value) + { + return value switch + { + RealtimeCreateClientSecretResponseSessionDiscriminatorType.Realtime => "realtime", + RealtimeCreateClientSecretResponseSessionDiscriminatorType.Transcription => "transcription", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeCreateClientSecretResponseSessionDiscriminatorType? ToEnum(string value) + { + return value switch + { + "realtime" => RealtimeCreateClientSecretResponseSessionDiscriminatorType.Realtime, + "transcription" => RealtimeCreateClientSecretResponseSessionDiscriminatorType.Transcription, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs index bd7d26c9..26d40597 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct RealtimeServerEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? Type { get; } + /// /// Returned when a conversation is created. Emitted right after session creation. /// @@ -2309,6 +2314,7 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.RealtimeServerEventResponseMCPC /// /// public RealtimeServerEvent( + global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? type, global::tryAGI.OpenAI.RealtimeServerEventConversationCreated? conversationCreated, global::tryAGI.OpenAI.RealtimeServerEventConversationItemCreated? conversationItemCreated, global::tryAGI.OpenAI.RealtimeServerEventConversationItemDeleted? conversationItemDeleted, @@ -2357,6 +2363,8 @@ public RealtimeServerEvent( global::tryAGI.OpenAI.RealtimeServerEventResponseMCPCallFailed? responseMcpCallFailed ) { + Type = type; + ConversationCreated = conversationCreated; ConversationItemCreated = conversationItemCreated; ConversationItemDeleted = conversationItemDeleted; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventDiscriminator.g.cs index 76ab6d8f..217e0149 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeServerEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeServerEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeServerEventDiscriminator( - string? type) + global::tryAGI.OpenAI.RealtimeServerEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventDiscriminatorType.g.cs new file mode 100644 index 00000000..9154c723 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeServerEventDiscriminatorType.g.cs @@ -0,0 +1,315 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeServerEventDiscriminatorType + { + /// + /// + /// + ConversationCreated, + /// + /// + /// + ConversationItemAdded, + /// + /// + /// + ConversationItemCreated, + /// + /// + /// + ConversationItemDeleted, + /// + /// + /// + ConversationItemDone, + /// + /// + /// + ConversationItemInputAudioTranscriptionCompleted, + /// + /// + /// + ConversationItemInputAudioTranscriptionDelta, + /// + /// + /// + ConversationItemInputAudioTranscriptionFailed, + /// + /// + /// + ConversationItemInputAudioTranscriptionSegment, + /// + /// + /// + ConversationItemRetrieved, + /// + /// + /// + ConversationItemTruncated, + /// + /// + /// + Error, + /// + /// + /// + InputAudioBufferCleared, + /// + /// + /// + InputAudioBufferCommitted, + /// + /// + /// + InputAudioBufferDtmfEventReceived, + /// + /// + /// + InputAudioBufferSpeechStarted, + /// + /// + /// + InputAudioBufferSpeechStopped, + /// + /// + /// + InputAudioBufferTimeoutTriggered, + /// + /// + /// + McpListToolsCompleted, + /// + /// + /// + McpListToolsFailed, + /// + /// + /// + McpListToolsInProgress, + /// + /// + /// + OutputAudioBufferCleared, + /// + /// + /// + OutputAudioBufferStarted, + /// + /// + /// + OutputAudioBufferStopped, + /// + /// + /// + RateLimitsUpdated, + /// + /// + /// + ResponseContentPartAdded, + /// + /// + /// + ResponseContentPartDone, + /// + /// + /// + ResponseCreated, + /// + /// + /// + ResponseDone, + /// + /// + /// + ResponseFunctionCallArgumentsDelta, + /// + /// + /// + ResponseFunctionCallArgumentsDone, + /// + /// + /// + ResponseMcpCallCompleted, + /// + /// + /// + ResponseMcpCallFailed, + /// + /// + /// + ResponseMcpCallInProgress, + /// + /// + /// + ResponseMcpCallArgumentsDelta, + /// + /// + /// + ResponseMcpCallArgumentsDone, + /// + /// + /// + ResponseOutputAudioDelta, + /// + /// + /// + ResponseOutputAudioDone, + /// + /// + /// + ResponseOutputAudioTranscriptDelta, + /// + /// + /// + ResponseOutputAudioTranscriptDone, + /// + /// + /// + ResponseOutputItemAdded, + /// + /// + /// + ResponseOutputItemDone, + /// + /// + /// + ResponseOutputTextDelta, + /// + /// + /// + ResponseOutputTextDone, + /// + /// + /// + SessionCreated, + /// + /// + /// + SessionUpdated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeServerEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeServerEventDiscriminatorType value) + { + return value switch + { + RealtimeServerEventDiscriminatorType.ConversationCreated => "conversation.created", + RealtimeServerEventDiscriminatorType.ConversationItemAdded => "conversation.item.added", + RealtimeServerEventDiscriminatorType.ConversationItemCreated => "conversation.item.created", + RealtimeServerEventDiscriminatorType.ConversationItemDeleted => "conversation.item.deleted", + RealtimeServerEventDiscriminatorType.ConversationItemDone => "conversation.item.done", + RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionCompleted => "conversation.item.input_audio_transcription.completed", + RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionDelta => "conversation.item.input_audio_transcription.delta", + RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionFailed => "conversation.item.input_audio_transcription.failed", + RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionSegment => "conversation.item.input_audio_transcription.segment", + RealtimeServerEventDiscriminatorType.ConversationItemRetrieved => "conversation.item.retrieved", + RealtimeServerEventDiscriminatorType.ConversationItemTruncated => "conversation.item.truncated", + RealtimeServerEventDiscriminatorType.Error => "error", + RealtimeServerEventDiscriminatorType.InputAudioBufferCleared => "input_audio_buffer.cleared", + RealtimeServerEventDiscriminatorType.InputAudioBufferCommitted => "input_audio_buffer.committed", + RealtimeServerEventDiscriminatorType.InputAudioBufferDtmfEventReceived => "input_audio_buffer.dtmf_event_received", + RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStarted => "input_audio_buffer.speech_started", + RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStopped => "input_audio_buffer.speech_stopped", + RealtimeServerEventDiscriminatorType.InputAudioBufferTimeoutTriggered => "input_audio_buffer.timeout_triggered", + RealtimeServerEventDiscriminatorType.McpListToolsCompleted => "mcp_list_tools.completed", + RealtimeServerEventDiscriminatorType.McpListToolsFailed => "mcp_list_tools.failed", + RealtimeServerEventDiscriminatorType.McpListToolsInProgress => "mcp_list_tools.in_progress", + RealtimeServerEventDiscriminatorType.OutputAudioBufferCleared => "output_audio_buffer.cleared", + RealtimeServerEventDiscriminatorType.OutputAudioBufferStarted => "output_audio_buffer.started", + RealtimeServerEventDiscriminatorType.OutputAudioBufferStopped => "output_audio_buffer.stopped", + RealtimeServerEventDiscriminatorType.RateLimitsUpdated => "rate_limits.updated", + RealtimeServerEventDiscriminatorType.ResponseContentPartAdded => "response.content_part.added", + RealtimeServerEventDiscriminatorType.ResponseContentPartDone => "response.content_part.done", + RealtimeServerEventDiscriminatorType.ResponseCreated => "response.created", + RealtimeServerEventDiscriminatorType.ResponseDone => "response.done", + RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDelta => "response.function_call_arguments.delta", + RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDone => "response.function_call_arguments.done", + RealtimeServerEventDiscriminatorType.ResponseMcpCallCompleted => "response.mcp_call.completed", + RealtimeServerEventDiscriminatorType.ResponseMcpCallFailed => "response.mcp_call.failed", + RealtimeServerEventDiscriminatorType.ResponseMcpCallInProgress => "response.mcp_call.in_progress", + RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDelta => "response.mcp_call_arguments.delta", + RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDone => "response.mcp_call_arguments.done", + RealtimeServerEventDiscriminatorType.ResponseOutputAudioDelta => "response.output_audio.delta", + RealtimeServerEventDiscriminatorType.ResponseOutputAudioDone => "response.output_audio.done", + RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDelta => "response.output_audio_transcript.delta", + RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDone => "response.output_audio_transcript.done", + RealtimeServerEventDiscriminatorType.ResponseOutputItemAdded => "response.output_item.added", + RealtimeServerEventDiscriminatorType.ResponseOutputItemDone => "response.output_item.done", + RealtimeServerEventDiscriminatorType.ResponseOutputTextDelta => "response.output_text.delta", + RealtimeServerEventDiscriminatorType.ResponseOutputTextDone => "response.output_text.done", + RealtimeServerEventDiscriminatorType.SessionCreated => "session.created", + RealtimeServerEventDiscriminatorType.SessionUpdated => "session.updated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeServerEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "conversation.created" => RealtimeServerEventDiscriminatorType.ConversationCreated, + "conversation.item.added" => RealtimeServerEventDiscriminatorType.ConversationItemAdded, + "conversation.item.created" => RealtimeServerEventDiscriminatorType.ConversationItemCreated, + "conversation.item.deleted" => RealtimeServerEventDiscriminatorType.ConversationItemDeleted, + "conversation.item.done" => RealtimeServerEventDiscriminatorType.ConversationItemDone, + "conversation.item.input_audio_transcription.completed" => RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionCompleted, + "conversation.item.input_audio_transcription.delta" => RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionDelta, + "conversation.item.input_audio_transcription.failed" => RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionFailed, + "conversation.item.input_audio_transcription.segment" => RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionSegment, + "conversation.item.retrieved" => RealtimeServerEventDiscriminatorType.ConversationItemRetrieved, + "conversation.item.truncated" => RealtimeServerEventDiscriminatorType.ConversationItemTruncated, + "error" => RealtimeServerEventDiscriminatorType.Error, + "input_audio_buffer.cleared" => RealtimeServerEventDiscriminatorType.InputAudioBufferCleared, + "input_audio_buffer.committed" => RealtimeServerEventDiscriminatorType.InputAudioBufferCommitted, + "input_audio_buffer.dtmf_event_received" => RealtimeServerEventDiscriminatorType.InputAudioBufferDtmfEventReceived, + "input_audio_buffer.speech_started" => RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStarted, + "input_audio_buffer.speech_stopped" => RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStopped, + "input_audio_buffer.timeout_triggered" => RealtimeServerEventDiscriminatorType.InputAudioBufferTimeoutTriggered, + "mcp_list_tools.completed" => RealtimeServerEventDiscriminatorType.McpListToolsCompleted, + "mcp_list_tools.failed" => RealtimeServerEventDiscriminatorType.McpListToolsFailed, + "mcp_list_tools.in_progress" => RealtimeServerEventDiscriminatorType.McpListToolsInProgress, + "output_audio_buffer.cleared" => RealtimeServerEventDiscriminatorType.OutputAudioBufferCleared, + "output_audio_buffer.started" => RealtimeServerEventDiscriminatorType.OutputAudioBufferStarted, + "output_audio_buffer.stopped" => RealtimeServerEventDiscriminatorType.OutputAudioBufferStopped, + "rate_limits.updated" => RealtimeServerEventDiscriminatorType.RateLimitsUpdated, + "response.content_part.added" => RealtimeServerEventDiscriminatorType.ResponseContentPartAdded, + "response.content_part.done" => RealtimeServerEventDiscriminatorType.ResponseContentPartDone, + "response.created" => RealtimeServerEventDiscriminatorType.ResponseCreated, + "response.done" => RealtimeServerEventDiscriminatorType.ResponseDone, + "response.function_call_arguments.delta" => RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDelta, + "response.function_call_arguments.done" => RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDone, + "response.mcp_call.completed" => RealtimeServerEventDiscriminatorType.ResponseMcpCallCompleted, + "response.mcp_call.failed" => RealtimeServerEventDiscriminatorType.ResponseMcpCallFailed, + "response.mcp_call.in_progress" => RealtimeServerEventDiscriminatorType.ResponseMcpCallInProgress, + "response.mcp_call_arguments.delta" => RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDelta, + "response.mcp_call_arguments.done" => RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDone, + "response.output_audio.delta" => RealtimeServerEventDiscriminatorType.ResponseOutputAudioDelta, + "response.output_audio.done" => RealtimeServerEventDiscriminatorType.ResponseOutputAudioDone, + "response.output_audio_transcript.delta" => RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDelta, + "response.output_audio_transcript.done" => RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDone, + "response.output_item.added" => RealtimeServerEventDiscriminatorType.ResponseOutputItemAdded, + "response.output_item.done" => RealtimeServerEventDiscriminatorType.ResponseOutputItemDone, + "response.output_text.delta" => RealtimeServerEventDiscriminatorType.ResponseOutputTextDelta, + "response.output_text.done" => RealtimeServerEventDiscriminatorType.ResponseOutputTextDone, + "session.created" => RealtimeServerEventDiscriminatorType.SessionCreated, + "session.updated" => RealtimeServerEventDiscriminatorType.SessionUpdated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs index bd21c7ce..ff141abc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct RealtimeTranslationClientEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? Type { get; } + /// /// Send this event to update the translation session configuration. Translation
/// sessions support updates to `audio.output.language`, `audio.input.transcription`,
@@ -171,11 +176,14 @@ public RealtimeTranslationClientEvent(global::tryAGI.OpenAI.RealtimeTranslationC /// ///
public RealtimeTranslationClientEvent( + global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? type, global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionUpdate? sessionUpdate, global::tryAGI.OpenAI.RealtimeTranslationClientEventInputAudioBufferAppend? sessionInputAudioBufferAppend, global::tryAGI.OpenAI.RealtimeTranslationClientEventSessionClose? sessionClose ) { + Type = type; + SessionUpdate = sessionUpdate; SessionInputAudioBufferAppend = sessionInputAudioBufferAppend; SessionClose = sessionClose; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.g.cs index 48953956..152a44cc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeTranslationClientEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationClientEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeTranslationClientEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeTranslationClientEventDiscriminator( - string? type) + global::tryAGI.OpenAI.RealtimeTranslationClientEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminatorType.g.cs new file mode 100644 index 00000000..21518894 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationClientEventDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeTranslationClientEventDiscriminatorType + { + /// + /// + /// + SessionClose, + /// + /// + /// + SessionInputAudioBufferAppend, + /// + /// + /// + SessionUpdate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationClientEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationClientEventDiscriminatorType value) + { + return value switch + { + RealtimeTranslationClientEventDiscriminatorType.SessionClose => "session.close", + RealtimeTranslationClientEventDiscriminatorType.SessionInputAudioBufferAppend => "session.input_audio_buffer.append", + RealtimeTranslationClientEventDiscriminatorType.SessionUpdate => "session.update", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationClientEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "session.close" => RealtimeTranslationClientEventDiscriminatorType.SessionClose, + "session.input_audio_buffer.append" => RealtimeTranslationClientEventDiscriminatorType.SessionInputAudioBufferAppend, + "session.update" => RealtimeTranslationClientEventDiscriminatorType.SessionUpdate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs index 89b4cd60..9f7f5829 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct RealtimeTranslationServerEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? Type { get; } + /// /// Returned when an error occurs, which could be a client problem or a server
/// problem. Most errors are recoverable and the session will stay open, we
@@ -359,6 +364,7 @@ public RealtimeTranslationServerEvent(global::tryAGI.OpenAI.RealtimeTranslationS /// ///
public RealtimeTranslationServerEvent( + global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? type, global::tryAGI.OpenAI.RealtimeServerEventError? error, global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionCreated? sessionCreated, global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionUpdated? sessionUpdated, @@ -368,6 +374,8 @@ public RealtimeTranslationServerEvent( global::tryAGI.OpenAI.RealtimeTranslationServerEventSessionOutputAudioDelta? sessionOutputAudioDelta ) { + Type = type; + Error = error; SessionCreated = sessionCreated; SessionUpdated = sessionUpdated; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.g.cs index 560ee2d3..647945b4 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeTranslationServerEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTranslationServerEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeTranslationServerEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeTranslationServerEventDiscriminator( - string? type) + global::tryAGI.OpenAI.RealtimeTranslationServerEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminatorType.g.cs new file mode 100644 index 00000000..57649cc0 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTranslationServerEventDiscriminatorType.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeTranslationServerEventDiscriminatorType + { + /// + /// + /// + Error, + /// + /// + /// + SessionClosed, + /// + /// + /// + SessionCreated, + /// + /// + /// + SessionInputTranscriptDelta, + /// + /// + /// + SessionOutputAudioDelta, + /// + /// + /// + SessionOutputTranscriptDelta, + /// + /// + /// + SessionUpdated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTranslationServerEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTranslationServerEventDiscriminatorType value) + { + return value switch + { + RealtimeTranslationServerEventDiscriminatorType.Error => "error", + RealtimeTranslationServerEventDiscriminatorType.SessionClosed => "session.closed", + RealtimeTranslationServerEventDiscriminatorType.SessionCreated => "session.created", + RealtimeTranslationServerEventDiscriminatorType.SessionInputTranscriptDelta => "session.input_transcript.delta", + RealtimeTranslationServerEventDiscriminatorType.SessionOutputAudioDelta => "session.output_audio.delta", + RealtimeTranslationServerEventDiscriminatorType.SessionOutputTranscriptDelta => "session.output_transcript.delta", + RealtimeTranslationServerEventDiscriminatorType.SessionUpdated => "session.updated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTranslationServerEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "error" => RealtimeTranslationServerEventDiscriminatorType.Error, + "session.closed" => RealtimeTranslationServerEventDiscriminatorType.SessionClosed, + "session.created" => RealtimeTranslationServerEventDiscriminatorType.SessionCreated, + "session.input_transcript.delta" => RealtimeTranslationServerEventDiscriminatorType.SessionInputTranscriptDelta, + "session.output_audio.delta" => RealtimeTranslationServerEventDiscriminatorType.SessionOutputAudioDelta, + "session.output_transcript.delta" => RealtimeTranslationServerEventDiscriminatorType.SessionOutputTranscriptDelta, + "session.updated" => RealtimeTranslationServerEventDiscriminatorType.SessionUpdated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index 5f60e3ca..352df655 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -13,6 +13,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct RealtimeTurnDetectionRealtimeTurnDetection1 : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type { get; } + /// /// Server-side voice activity detection (VAD) which flips on when user speech is detected and off after a period of silence. /// @@ -112,10 +117,13 @@ public RealtimeTurnDetectionRealtimeTurnDetection1(global::tryAGI.OpenAI.Realtim /// /// public RealtimeTurnDetectionRealtimeTurnDetection1( + global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? type, global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? serverVad, global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? semanticVad ) { + Type = type; + ServerVad = serverVad; SemanticVad = semanticVad; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator.g.cs index 0e10c9c1..7634f48f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeTurnDetectionRealtimeTurnDetection1Discrimin /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeTurnDetectionRealtimeTurnDetection1Discrimin [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeTurnDetectionRealtimeTurnDetection1Discriminator( - string? type) + global::tryAGI.OpenAI.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs new file mode 100644 index 00000000..caf9d127 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType + { + /// + /// + /// + SemanticVad, + /// + /// + /// + ServerVad, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType value) + { + return value switch + { + RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.SemanticVad => "semantic_vad", + RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.ServerVad => "server_vad", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? ToEnum(string value) + { + return value switch + { + "semantic_vad" => RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.SemanticVad, + "server_vad" => RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.ServerVad, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs index 0e294199..c3213ad9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseFormat.g.cs @@ -16,6 +16,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ResponseFormat : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? Type { get; } + /// /// Default response format. Used to generate text responses. /// @@ -167,11 +172,14 @@ public ResponseFormat(global::tryAGI.OpenAI.ResponseFormatJsonObject? value) /// /// public ResponseFormat( + global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ResponseFormatDiscriminatorType? type, global::tryAGI.OpenAI.ResponseFormatText? text, global::tryAGI.OpenAI.ResponseFormatJsonSchema? jsonSchema, global::tryAGI.OpenAI.ResponseFormatJsonObject? jsonObject ) { + Type = type; + Text = text; JsonSchema = jsonSchema; JsonObject = jsonObject; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseOutputTextAnnotationDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseOutputTextAnnotationDiscriminator.g.cs index 6bcbd0b9..b2d0e28c 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseOutputTextAnnotationDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseOutputTextAnnotationDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ResponseOutputTextAnnotationDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseOutputTextAnnotationDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ResponseOutputTextAnnotationDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponseOutputTextAnnotationDiscriminator( - string? type) + global::tryAGI.OpenAI.ResponseOutputTextAnnotationDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseOutputTextAnnotationDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseOutputTextAnnotationDiscriminatorType.g.cs new file mode 100644 index 00000000..28963c99 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseOutputTextAnnotationDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ResponseOutputTextAnnotationDiscriminatorType + { + /// + /// + /// + File, + /// + /// + /// + Url, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ResponseOutputTextAnnotationDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ResponseOutputTextAnnotationDiscriminatorType value) + { + return value switch + { + ResponseOutputTextAnnotationDiscriminatorType.File => "file", + ResponseOutputTextAnnotationDiscriminatorType.Url => "url", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ResponseOutputTextAnnotationDiscriminatorType? ToEnum(string value) + { + return value switch + { + "file" => ResponseOutputTextAnnotationDiscriminatorType.File, + "url" => ResponseOutputTextAnnotationDiscriminatorType.Url, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs index 41fdf578..492729d8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ResponseStreamEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? Type { get; } + /// /// Emitted when there is a partial audio response. /// @@ -2556,6 +2561,7 @@ public ResponseStreamEvent(global::tryAGI.OpenAI.ResponseCustomToolCallInputDone /// /// public ResponseStreamEvent( + global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? type, global::tryAGI.OpenAI.ResponseAudioDeltaEvent? responseAudioDelta, global::tryAGI.OpenAI.ResponseAudioDoneEvent? responseAudioDone, global::tryAGI.OpenAI.ResponseAudioTranscriptDeltaEvent? responseAudioTranscriptDelta, @@ -2611,6 +2617,8 @@ public ResponseStreamEvent( global::tryAGI.OpenAI.ResponseCustomToolCallInputDoneEvent? responseCustomToolCallInputDone ) { + Type = type; + ResponseAudioDelta = responseAudioDelta; ResponseAudioDone = responseAudioDone; ResponseAudioTranscriptDelta = responseAudioTranscriptDelta; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEventDiscriminator.g.cs index ed18c534..63849021 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ResponseStreamEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ResponseStreamEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ResponseStreamEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponseStreamEventDiscriminator( - string? type) + global::tryAGI.OpenAI.ResponseStreamEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEventDiscriminatorType.g.cs new file mode 100644 index 00000000..5f0ee31a --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponseStreamEventDiscriminatorType.g.cs @@ -0,0 +1,357 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ResponseStreamEventDiscriminatorType + { + /// + /// + /// + Error, + /// + /// + /// + ResponseAudioDelta, + /// + /// + /// + ResponseAudioDone, + /// + /// + /// + ResponseAudioTranscriptDelta, + /// + /// + /// + ResponseAudioTranscriptDone, + /// + /// + /// + ResponseCodeInterpreterCallCompleted, + /// + /// + /// + ResponseCodeInterpreterCallInProgress, + /// + /// + /// + ResponseCodeInterpreterCallInterpreting, + /// + /// + /// + ResponseCodeInterpreterCallCodeDelta, + /// + /// + /// + ResponseCodeInterpreterCallCodeDone, + /// + /// + /// + ResponseCompleted, + /// + /// + /// + ResponseContentPartAdded, + /// + /// + /// + ResponseContentPartDone, + /// + /// + /// + ResponseCreated, + /// + /// + /// + ResponseCustomToolCallInputDelta, + /// + /// + /// + ResponseCustomToolCallInputDone, + /// + /// + /// + ResponseFailed, + /// + /// + /// + ResponseFileSearchCallCompleted, + /// + /// + /// + ResponseFileSearchCallInProgress, + /// + /// + /// + ResponseFileSearchCallSearching, + /// + /// + /// + ResponseFunctionCallArgumentsDelta, + /// + /// + /// + ResponseFunctionCallArgumentsDone, + /// + /// + /// + ResponseImageGenerationCallCompleted, + /// + /// + /// + ResponseImageGenerationCallGenerating, + /// + /// + /// + ResponseImageGenerationCallInProgress, + /// + /// + /// + ResponseImageGenerationCallPartialImage, + /// + /// + /// + ResponseInProgress, + /// + /// + /// + ResponseIncomplete, + /// + /// + /// + ResponseMcpCallCompleted, + /// + /// + /// + ResponseMcpCallFailed, + /// + /// + /// + ResponseMcpCallInProgress, + /// + /// + /// + ResponseMcpCallArgumentsDelta, + /// + /// + /// + ResponseMcpCallArgumentsDone, + /// + /// + /// + ResponseMcpListToolsCompleted, + /// + /// + /// + ResponseMcpListToolsFailed, + /// + /// + /// + ResponseMcpListToolsInProgress, + /// + /// + /// + ResponseOutputItemAdded, + /// + /// + /// + ResponseOutputItemDone, + /// + /// + /// + ResponseOutputTextAnnotationAdded, + /// + /// + /// + ResponseOutputTextDelta, + /// + /// + /// + ResponseOutputTextDone, + /// + /// + /// + ResponseQueued, + /// + /// + /// + ResponseReasoningSummaryPartAdded, + /// + /// + /// + ResponseReasoningSummaryPartDone, + /// + /// + /// + ResponseReasoningSummaryTextDelta, + /// + /// + /// + ResponseReasoningSummaryTextDone, + /// + /// + /// + ResponseReasoningTextDelta, + /// + /// + /// + ResponseReasoningTextDone, + /// + /// + /// + ResponseRefusalDelta, + /// + /// + /// + ResponseRefusalDone, + /// + /// + /// + ResponseWebSearchCallCompleted, + /// + /// + /// + ResponseWebSearchCallInProgress, + /// + /// + /// + ResponseWebSearchCallSearching, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ResponseStreamEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ResponseStreamEventDiscriminatorType value) + { + return value switch + { + ResponseStreamEventDiscriminatorType.Error => "error", + ResponseStreamEventDiscriminatorType.ResponseAudioDelta => "response.audio.delta", + ResponseStreamEventDiscriminatorType.ResponseAudioDone => "response.audio.done", + ResponseStreamEventDiscriminatorType.ResponseAudioTranscriptDelta => "response.audio.transcript.delta", + ResponseStreamEventDiscriminatorType.ResponseAudioTranscriptDone => "response.audio.transcript.done", + ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallCompleted => "response.code_interpreter_call.completed", + ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallInProgress => "response.code_interpreter_call.in_progress", + ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallInterpreting => "response.code_interpreter_call.interpreting", + ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallCodeDelta => "response.code_interpreter_call_code.delta", + ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallCodeDone => "response.code_interpreter_call_code.done", + ResponseStreamEventDiscriminatorType.ResponseCompleted => "response.completed", + ResponseStreamEventDiscriminatorType.ResponseContentPartAdded => "response.content_part.added", + ResponseStreamEventDiscriminatorType.ResponseContentPartDone => "response.content_part.done", + ResponseStreamEventDiscriminatorType.ResponseCreated => "response.created", + ResponseStreamEventDiscriminatorType.ResponseCustomToolCallInputDelta => "response.custom_tool_call_input.delta", + ResponseStreamEventDiscriminatorType.ResponseCustomToolCallInputDone => "response.custom_tool_call_input.done", + ResponseStreamEventDiscriminatorType.ResponseFailed => "response.failed", + ResponseStreamEventDiscriminatorType.ResponseFileSearchCallCompleted => "response.file_search_call.completed", + ResponseStreamEventDiscriminatorType.ResponseFileSearchCallInProgress => "response.file_search_call.in_progress", + ResponseStreamEventDiscriminatorType.ResponseFileSearchCallSearching => "response.file_search_call.searching", + ResponseStreamEventDiscriminatorType.ResponseFunctionCallArgumentsDelta => "response.function_call_arguments.delta", + ResponseStreamEventDiscriminatorType.ResponseFunctionCallArgumentsDone => "response.function_call_arguments.done", + ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallCompleted => "response.image_generation_call.completed", + ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallGenerating => "response.image_generation_call.generating", + ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallInProgress => "response.image_generation_call.in_progress", + ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallPartialImage => "response.image_generation_call.partial_image", + ResponseStreamEventDiscriminatorType.ResponseInProgress => "response.in_progress", + ResponseStreamEventDiscriminatorType.ResponseIncomplete => "response.incomplete", + ResponseStreamEventDiscriminatorType.ResponseMcpCallCompleted => "response.mcp_call.completed", + ResponseStreamEventDiscriminatorType.ResponseMcpCallFailed => "response.mcp_call.failed", + ResponseStreamEventDiscriminatorType.ResponseMcpCallInProgress => "response.mcp_call.in_progress", + ResponseStreamEventDiscriminatorType.ResponseMcpCallArgumentsDelta => "response.mcp_call_arguments.delta", + ResponseStreamEventDiscriminatorType.ResponseMcpCallArgumentsDone => "response.mcp_call_arguments.done", + ResponseStreamEventDiscriminatorType.ResponseMcpListToolsCompleted => "response.mcp_list_tools.completed", + ResponseStreamEventDiscriminatorType.ResponseMcpListToolsFailed => "response.mcp_list_tools.failed", + ResponseStreamEventDiscriminatorType.ResponseMcpListToolsInProgress => "response.mcp_list_tools.in_progress", + ResponseStreamEventDiscriminatorType.ResponseOutputItemAdded => "response.output_item.added", + ResponseStreamEventDiscriminatorType.ResponseOutputItemDone => "response.output_item.done", + ResponseStreamEventDiscriminatorType.ResponseOutputTextAnnotationAdded => "response.output_text.annotation.added", + ResponseStreamEventDiscriminatorType.ResponseOutputTextDelta => "response.output_text.delta", + ResponseStreamEventDiscriminatorType.ResponseOutputTextDone => "response.output_text.done", + ResponseStreamEventDiscriminatorType.ResponseQueued => "response.queued", + ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryPartAdded => "response.reasoning_summary_part.added", + ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryPartDone => "response.reasoning_summary_part.done", + ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryTextDelta => "response.reasoning_summary_text.delta", + ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryTextDone => "response.reasoning_summary_text.done", + ResponseStreamEventDiscriminatorType.ResponseReasoningTextDelta => "response.reasoning_text.delta", + ResponseStreamEventDiscriminatorType.ResponseReasoningTextDone => "response.reasoning_text.done", + ResponseStreamEventDiscriminatorType.ResponseRefusalDelta => "response.refusal.delta", + ResponseStreamEventDiscriminatorType.ResponseRefusalDone => "response.refusal.done", + ResponseStreamEventDiscriminatorType.ResponseWebSearchCallCompleted => "response.web_search_call.completed", + ResponseStreamEventDiscriminatorType.ResponseWebSearchCallInProgress => "response.web_search_call.in_progress", + ResponseStreamEventDiscriminatorType.ResponseWebSearchCallSearching => "response.web_search_call.searching", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ResponseStreamEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "error" => ResponseStreamEventDiscriminatorType.Error, + "response.audio.delta" => ResponseStreamEventDiscriminatorType.ResponseAudioDelta, + "response.audio.done" => ResponseStreamEventDiscriminatorType.ResponseAudioDone, + "response.audio.transcript.delta" => ResponseStreamEventDiscriminatorType.ResponseAudioTranscriptDelta, + "response.audio.transcript.done" => ResponseStreamEventDiscriminatorType.ResponseAudioTranscriptDone, + "response.code_interpreter_call.completed" => ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallCompleted, + "response.code_interpreter_call.in_progress" => ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallInProgress, + "response.code_interpreter_call.interpreting" => ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallInterpreting, + "response.code_interpreter_call_code.delta" => ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallCodeDelta, + "response.code_interpreter_call_code.done" => ResponseStreamEventDiscriminatorType.ResponseCodeInterpreterCallCodeDone, + "response.completed" => ResponseStreamEventDiscriminatorType.ResponseCompleted, + "response.content_part.added" => ResponseStreamEventDiscriminatorType.ResponseContentPartAdded, + "response.content_part.done" => ResponseStreamEventDiscriminatorType.ResponseContentPartDone, + "response.created" => ResponseStreamEventDiscriminatorType.ResponseCreated, + "response.custom_tool_call_input.delta" => ResponseStreamEventDiscriminatorType.ResponseCustomToolCallInputDelta, + "response.custom_tool_call_input.done" => ResponseStreamEventDiscriminatorType.ResponseCustomToolCallInputDone, + "response.failed" => ResponseStreamEventDiscriminatorType.ResponseFailed, + "response.file_search_call.completed" => ResponseStreamEventDiscriminatorType.ResponseFileSearchCallCompleted, + "response.file_search_call.in_progress" => ResponseStreamEventDiscriminatorType.ResponseFileSearchCallInProgress, + "response.file_search_call.searching" => ResponseStreamEventDiscriminatorType.ResponseFileSearchCallSearching, + "response.function_call_arguments.delta" => ResponseStreamEventDiscriminatorType.ResponseFunctionCallArgumentsDelta, + "response.function_call_arguments.done" => ResponseStreamEventDiscriminatorType.ResponseFunctionCallArgumentsDone, + "response.image_generation_call.completed" => ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallCompleted, + "response.image_generation_call.generating" => ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallGenerating, + "response.image_generation_call.in_progress" => ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallInProgress, + "response.image_generation_call.partial_image" => ResponseStreamEventDiscriminatorType.ResponseImageGenerationCallPartialImage, + "response.in_progress" => ResponseStreamEventDiscriminatorType.ResponseInProgress, + "response.incomplete" => ResponseStreamEventDiscriminatorType.ResponseIncomplete, + "response.mcp_call.completed" => ResponseStreamEventDiscriminatorType.ResponseMcpCallCompleted, + "response.mcp_call.failed" => ResponseStreamEventDiscriminatorType.ResponseMcpCallFailed, + "response.mcp_call.in_progress" => ResponseStreamEventDiscriminatorType.ResponseMcpCallInProgress, + "response.mcp_call_arguments.delta" => ResponseStreamEventDiscriminatorType.ResponseMcpCallArgumentsDelta, + "response.mcp_call_arguments.done" => ResponseStreamEventDiscriminatorType.ResponseMcpCallArgumentsDone, + "response.mcp_list_tools.completed" => ResponseStreamEventDiscriminatorType.ResponseMcpListToolsCompleted, + "response.mcp_list_tools.failed" => ResponseStreamEventDiscriminatorType.ResponseMcpListToolsFailed, + "response.mcp_list_tools.in_progress" => ResponseStreamEventDiscriminatorType.ResponseMcpListToolsInProgress, + "response.output_item.added" => ResponseStreamEventDiscriminatorType.ResponseOutputItemAdded, + "response.output_item.done" => ResponseStreamEventDiscriminatorType.ResponseOutputItemDone, + "response.output_text.annotation.added" => ResponseStreamEventDiscriminatorType.ResponseOutputTextAnnotationAdded, + "response.output_text.delta" => ResponseStreamEventDiscriminatorType.ResponseOutputTextDelta, + "response.output_text.done" => ResponseStreamEventDiscriminatorType.ResponseOutputTextDone, + "response.queued" => ResponseStreamEventDiscriminatorType.ResponseQueued, + "response.reasoning_summary_part.added" => ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryPartAdded, + "response.reasoning_summary_part.done" => ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryPartDone, + "response.reasoning_summary_text.delta" => ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryTextDelta, + "response.reasoning_summary_text.done" => ResponseStreamEventDiscriminatorType.ResponseReasoningSummaryTextDone, + "response.reasoning_text.delta" => ResponseStreamEventDiscriminatorType.ResponseReasoningTextDelta, + "response.reasoning_text.done" => ResponseStreamEventDiscriminatorType.ResponseReasoningTextDone, + "response.refusal.delta" => ResponseStreamEventDiscriminatorType.ResponseRefusalDelta, + "response.refusal.done" => ResponseStreamEventDiscriminatorType.ResponseRefusalDone, + "response.web_search_call.completed" => ResponseStreamEventDiscriminatorType.ResponseWebSearchCallCompleted, + "response.web_search_call.in_progress" => ResponseStreamEventDiscriminatorType.ResponseWebSearchCallInProgress, + "response.web_search_call.searching" => ResponseStreamEventDiscriminatorType.ResponseWebSearchCallSearching, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs index 07418781..b8c80536 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResultsItem.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ResultsItem : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Object { get; } + /// /// The aggregated completions usage details of the specific time bucket. /// @@ -444,6 +449,7 @@ public ResultsItem(global::tryAGI.OpenAI.CostsResult? value) /// /// public ResultsItem( + global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? @object, global::tryAGI.OpenAI.UsageCompletionsResult? organizationUsageCompletionsResult, global::tryAGI.OpenAI.UsageEmbeddingsResult? organizationUsageEmbeddingsResult, global::tryAGI.OpenAI.UsageModerationsResult? organizationUsageModerationsResult, @@ -455,6 +461,8 @@ public ResultsItem( global::tryAGI.OpenAI.CostsResult? organizationCostsResult ) { + Object = @object; + OrganizationUsageCompletionsResult = organizationUsageCompletionsResult; OrganizationUsageEmbeddingsResult = organizationUsageEmbeddingsResult; OrganizationUsageModerationsResult = organizationUsageModerationsResult; @@ -469,7 +477,7 @@ public ResultsItem( /// /// /// - public object? Object => + public object? Object1 => OrganizationCostsResult as object ?? OrganizationUsageCodeInterpreterSessionsResult as object ?? OrganizationUsageVectorStoresResult as object ?? diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs index 5dff6425..f4ee2aea 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Session2.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct Session2 : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? Type { get; } + /// /// A Realtime session configuration object. /// @@ -108,10 +113,13 @@ public Session2(global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponse /// /// public Session2( + global::tryAGI.OpenAI.RealtimeCreateClientSecretResponseSessionDiscriminatorType? type, global::tryAGI.OpenAI.RealtimeSessionCreateResponseGA? realtime, global::tryAGI.OpenAI.RealtimeTranscriptionSessionCreateResponseGA? transcription ) { + Type = type; + Realtime = realtime; Transcription = transcription; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs index e7f7efe0..34e2f01e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem.g.cs @@ -12,6 +12,11 @@ namespace tryAGI.OpenAI /// /// /// + public global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.SkillReferenceParam? SkillReference { get; init; } #else @@ -108,10 +113,13 @@ public SkillsItem(global::tryAGI.OpenAI.InlineSkillParam? value) /// /// public SkillsItem( + global::tryAGI.OpenAI.CreateContainerBodySkillDiscriminatorType? type, global::tryAGI.OpenAI.SkillReferenceParam? skillReference, global::tryAGI.OpenAI.InlineSkillParam? inline ) { + Type = type; + SkillReference = skillReference; Inline = inline; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs index fa865771..252b41aa 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.SkillsItem2.g.cs @@ -12,6 +12,11 @@ namespace tryAGI.OpenAI /// /// /// + public global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.SkillReferenceParam? SkillReference { get; init; } #else @@ -108,10 +113,13 @@ public SkillsItem2(global::tryAGI.OpenAI.InlineSkillParam? value) /// /// public SkillsItem2( + global::tryAGI.OpenAI.ContainerAutoParamSkillDiscriminatorType? type, global::tryAGI.OpenAI.SkillReferenceParam? skillReference, global::tryAGI.OpenAI.InlineSkillParam? inline ) { + Type = type; + SkillReference = skillReference; Inline = inline; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs index dba8a20a..a0cf1520 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Status.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct Status : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type { get; } + /// /// Indicates that a thread is active. /// @@ -156,11 +161,14 @@ public Status(global::tryAGI.OpenAI.ClosedStatus? value) /// /// public Status( + global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? type, global::tryAGI.OpenAI.ActiveStatus? active, global::tryAGI.OpenAI.LockedStatus? locked, global::tryAGI.OpenAI.ClosedStatus? closed ) { + Type = type; + Active = active; Locked = locked; Closed = closed; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs index 713e3701..d77e24b2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItem.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct ThreadItem : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type { get; } + /// /// User-authored messages within a thread. /// @@ -300,6 +305,7 @@ public ThreadItem(global::tryAGI.OpenAI.TaskGroupItem? value) /// /// public ThreadItem( + global::tryAGI.OpenAI.ThreadItemDiscriminatorType? type, global::tryAGI.OpenAI.UserMessageItem? chatkitUserMessage, global::tryAGI.OpenAI.AssistantMessageItem? chatkitAssistantMessage, global::tryAGI.OpenAI.WidgetMessageItem? chatkitWidget, @@ -308,6 +314,8 @@ public ThreadItem( global::tryAGI.OpenAI.TaskGroupItem? chatkitTaskGroup ) { + Type = type; + ChatkitUserMessage = chatkitUserMessage; ChatkitAssistantMessage = chatkitAssistantMessage; ChatkitWidget = chatkitWidget; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItemDiscriminator.g.cs index 8d0facee..f7ab51f7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ThreadItemDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ThreadItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ThreadItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ThreadItemDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ThreadItemDiscriminator( - string? type) + global::tryAGI.OpenAI.ThreadItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItemDiscriminatorType.g.cs new file mode 100644 index 00000000..8ceab979 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadItemDiscriminatorType.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ThreadItemDiscriminatorType + { + /// + /// + /// + ChatkitAssistantMessage, + /// + /// + /// + ChatkitClientToolCall, + /// + /// + /// + ChatkitTask, + /// + /// + /// + ChatkitTaskGroup, + /// + /// + /// + ChatkitUserMessage, + /// + /// + /// + ChatkitWidget, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ThreadItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ThreadItemDiscriminatorType value) + { + return value switch + { + ThreadItemDiscriminatorType.ChatkitAssistantMessage => "chatkit.assistant_message", + ThreadItemDiscriminatorType.ChatkitClientToolCall => "chatkit.client_tool_call", + ThreadItemDiscriminatorType.ChatkitTask => "chatkit.task", + ThreadItemDiscriminatorType.ChatkitTaskGroup => "chatkit.task_group", + ThreadItemDiscriminatorType.ChatkitUserMessage => "chatkit.user_message", + ThreadItemDiscriminatorType.ChatkitWidget => "chatkit.widget", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ThreadItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "chatkit.assistant_message" => ThreadItemDiscriminatorType.ChatkitAssistantMessage, + "chatkit.client_tool_call" => ThreadItemDiscriminatorType.ChatkitClientToolCall, + "chatkit.task" => ThreadItemDiscriminatorType.ChatkitTask, + "chatkit.task_group" => ThreadItemDiscriminatorType.ChatkitTaskGroup, + "chatkit.user_message" => ThreadItemDiscriminatorType.ChatkitUserMessage, + "chatkit.widget" => ThreadItemDiscriminatorType.ChatkitWidget, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadResourceStatusDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadResourceStatusDiscriminator.g.cs index d098cca8..17b20a28 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadResourceStatusDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadResourceStatusDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ThreadResourceStatusDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ThreadResourceStatusDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ThreadResourceStatusDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ThreadResourceStatusDiscriminator( - string? type) + global::tryAGI.OpenAI.ThreadResourceStatusDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadResourceStatusDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadResourceStatusDiscriminatorType.g.cs new file mode 100644 index 00000000..cae3ed55 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadResourceStatusDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ThreadResourceStatusDiscriminatorType + { + /// + /// + /// + Active, + /// + /// + /// + Closed, + /// + /// + /// + Locked, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ThreadResourceStatusDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ThreadResourceStatusDiscriminatorType value) + { + return value switch + { + ThreadResourceStatusDiscriminatorType.Active => "active", + ThreadResourceStatusDiscriminatorType.Closed => "closed", + ThreadResourceStatusDiscriminatorType.Locked => "locked", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ThreadResourceStatusDiscriminatorType? ToEnum(string value) + { + return value switch + { + "active" => ThreadResourceStatusDiscriminatorType.Active, + "closed" => ThreadResourceStatusDiscriminatorType.Closed, + "locked" => ThreadResourceStatusDiscriminatorType.Locked, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolDiscriminator.g.cs index 588ec5ee..747ec621 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class ToolDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ToolDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.ToolDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class ToolDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolDiscriminator( - string? type) + global::tryAGI.OpenAI.ToolDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolDiscriminatorType.g.cs new file mode 100644 index 00000000..4341168d --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolDiscriminatorType.g.cs @@ -0,0 +1,117 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum ToolDiscriminatorType + { + /// + /// + /// + ApplyPatch, + /// + /// + /// + CodeInterpreter, + /// + /// + /// + Computer, + /// + /// + /// + ComputerUsePreview, + /// + /// + /// + Custom, + /// + /// + /// + FileSearch, + /// + /// + /// + Function, + /// + /// + /// + ImageGeneration, + /// + /// + /// + LocalShell, + /// + /// + /// + Mcp, + /// + /// + /// + Namespace, + /// + /// + /// + Shell, + /// + /// + /// + ToolSearch, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ToolDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ToolDiscriminatorType value) + { + return value switch + { + ToolDiscriminatorType.ApplyPatch => "apply_patch", + ToolDiscriminatorType.CodeInterpreter => "code_interpreter", + ToolDiscriminatorType.Computer => "computer", + ToolDiscriminatorType.ComputerUsePreview => "computer_use_preview", + ToolDiscriminatorType.Custom => "custom", + ToolDiscriminatorType.FileSearch => "file_search", + ToolDiscriminatorType.Function => "function", + ToolDiscriminatorType.ImageGeneration => "image_generation", + ToolDiscriminatorType.LocalShell => "local_shell", + ToolDiscriminatorType.Mcp => "mcp", + ToolDiscriminatorType.Namespace => "namespace", + ToolDiscriminatorType.Shell => "shell", + ToolDiscriminatorType.ToolSearch => "tool_search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ToolDiscriminatorType? ToEnum(string value) + { + return value switch + { + "apply_patch" => ToolDiscriminatorType.ApplyPatch, + "code_interpreter" => ToolDiscriminatorType.CodeInterpreter, + "computer" => ToolDiscriminatorType.Computer, + "computer_use_preview" => ToolDiscriminatorType.ComputerUsePreview, + "custom" => ToolDiscriminatorType.Custom, + "file_search" => ToolDiscriminatorType.FileSearch, + "function" => ToolDiscriminatorType.Function, + "image_generation" => ToolDiscriminatorType.ImageGeneration, + "local_shell" => ToolDiscriminatorType.LocalShell, + "mcp" => ToolDiscriminatorType.Mcp, + "namespace" => ToolDiscriminatorType.Namespace, + "shell" => ToolDiscriminatorType.Shell, + "tool_search" => ToolDiscriminatorType.ToolSearch, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs index fce8fbb7..a68467f2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ToolsItem13.g.cs @@ -12,6 +12,11 @@ namespace tryAGI.OpenAI /// /// /// + public global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? Type { get; } + + /// + /// + /// #if NET6_0_OR_GREATER public global::tryAGI.OpenAI.FunctionToolParam? Function { get; init; } #else @@ -108,10 +113,13 @@ public ToolsItem13(global::tryAGI.OpenAI.CustomToolParam? value) /// /// public ToolsItem13( + global::tryAGI.OpenAI.NamespaceToolParamToolDiscriminatorType? type, global::tryAGI.OpenAI.FunctionToolParam? function, global::tryAGI.OpenAI.CustomToolParam? custom ) { + Type = type; + Function = function; Custom = custom; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultDiscriminator.g.cs index 9260df7c..c1223941 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class UsageTimeBucketResultDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("object")] - public string? Object { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UsageTimeBucketResultDiscriminatorObjectJsonConverter))] + public global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class UsageTimeBucketResultDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UsageTimeBucketResultDiscriminator( - string? @object) + global::tryAGI.OpenAI.UsageTimeBucketResultDiscriminatorObject? @object) { this.Object = @object; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultDiscriminatorObject.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultDiscriminatorObject.g.cs new file mode 100644 index 00000000..689550e1 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UsageTimeBucketResultDiscriminatorObject.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum UsageTimeBucketResultDiscriminatorObject + { + /// + /// + /// + OrganizationCostsResult, + /// + /// + /// + OrganizationUsageAudioSpeechesResult, + /// + /// + /// + OrganizationUsageAudioTranscriptionsResult, + /// + /// + /// + OrganizationUsageCodeInterpreterSessionsResult, + /// + /// + /// + OrganizationUsageCompletionsResult, + /// + /// + /// + OrganizationUsageEmbeddingsResult, + /// + /// + /// + OrganizationUsageImagesResult, + /// + /// + /// + OrganizationUsageModerationsResult, + /// + /// + /// + OrganizationUsageVectorStoresResult, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UsageTimeBucketResultDiscriminatorObjectExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UsageTimeBucketResultDiscriminatorObject value) + { + return value switch + { + UsageTimeBucketResultDiscriminatorObject.OrganizationCostsResult => "organization.costs.result", + UsageTimeBucketResultDiscriminatorObject.OrganizationUsageAudioSpeechesResult => "organization.usage.audio_speeches.result", + UsageTimeBucketResultDiscriminatorObject.OrganizationUsageAudioTranscriptionsResult => "organization.usage.audio_transcriptions.result", + UsageTimeBucketResultDiscriminatorObject.OrganizationUsageCodeInterpreterSessionsResult => "organization.usage.code_interpreter_sessions.result", + UsageTimeBucketResultDiscriminatorObject.OrganizationUsageCompletionsResult => "organization.usage.completions.result", + UsageTimeBucketResultDiscriminatorObject.OrganizationUsageEmbeddingsResult => "organization.usage.embeddings.result", + UsageTimeBucketResultDiscriminatorObject.OrganizationUsageImagesResult => "organization.usage.images.result", + UsageTimeBucketResultDiscriminatorObject.OrganizationUsageModerationsResult => "organization.usage.moderations.result", + UsageTimeBucketResultDiscriminatorObject.OrganizationUsageVectorStoresResult => "organization.usage.vector_stores.result", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UsageTimeBucketResultDiscriminatorObject? ToEnum(string value) + { + return value switch + { + "organization.costs.result" => UsageTimeBucketResultDiscriminatorObject.OrganizationCostsResult, + "organization.usage.audio_speeches.result" => UsageTimeBucketResultDiscriminatorObject.OrganizationUsageAudioSpeechesResult, + "organization.usage.audio_transcriptions.result" => UsageTimeBucketResultDiscriminatorObject.OrganizationUsageAudioTranscriptionsResult, + "organization.usage.code_interpreter_sessions.result" => UsageTimeBucketResultDiscriminatorObject.OrganizationUsageCodeInterpreterSessionsResult, + "organization.usage.completions.result" => UsageTimeBucketResultDiscriminatorObject.OrganizationUsageCompletionsResult, + "organization.usage.embeddings.result" => UsageTimeBucketResultDiscriminatorObject.OrganizationUsageEmbeddingsResult, + "organization.usage.images.result" => UsageTimeBucketResultDiscriminatorObject.OrganizationUsageImagesResult, + "organization.usage.moderations.result" => UsageTimeBucketResultDiscriminatorObject.OrganizationUsageModerationsResult, + "organization.usage.vector_stores.result" => UsageTimeBucketResultDiscriminatorObject.OrganizationUsageVectorStoresResult, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UserMessageItemContentItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UserMessageItemContentItemDiscriminator.g.cs index fa6ac39d..848eecd7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UserMessageItemContentItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UserMessageItemContentItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class UserMessageItemContentItemDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.UserMessageItemContentItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class UserMessageItemContentItemDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UserMessageItemContentItemDiscriminator( - string? type) + global::tryAGI.OpenAI.UserMessageItemContentItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UserMessageItemContentItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UserMessageItemContentItemDiscriminatorType.g.cs new file mode 100644 index 00000000..ec430fae --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.UserMessageItemContentItemDiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum UserMessageItemContentItemDiscriminatorType + { + /// + /// + /// + InputText, + /// + /// + /// + QuotedText, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UserMessageItemContentItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UserMessageItemContentItemDiscriminatorType value) + { + return value switch + { + UserMessageItemContentItemDiscriminatorType.InputText => "input_text", + UserMessageItemContentItemDiscriminatorType.QuotedText => "quoted_text", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UserMessageItemContentItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "input_text" => UserMessageItemContentItemDiscriminatorType.InputText, + "quoted_text" => UserMessageItemContentItemDiscriminatorType.QuotedText, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs index c889ba8b..28da9b87 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallAction.g.cs @@ -10,6 +10,11 @@ namespace tryAGI.OpenAI /// public readonly partial struct WebSearchToolCallAction : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Type { get; } + /// /// Action type "search" - Performs a web search query. /// @@ -157,11 +162,14 @@ public WebSearchToolCallAction(global::tryAGI.OpenAI.WebSearchActionFind? value) /// /// public WebSearchToolCallAction( + global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? type, global::tryAGI.OpenAI.WebSearchActionSearch? search, global::tryAGI.OpenAI.WebSearchActionOpenPage? openPage, global::tryAGI.OpenAI.WebSearchActionFind? findInPage ) { + Type = type; + Search = search; OpenPage = openPage; FindInPage = findInPage; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.g.cs index 5ab75bc2..be4cd8c0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class WebSearchToolCallActionDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchToolCallActionDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class WebSearchToolCallActionDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WebSearchToolCallActionDiscriminator( - string? type) + global::tryAGI.OpenAI.WebSearchToolCallActionDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminatorType.g.cs new file mode 100644 index 00000000..b152d29b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.WebSearchToolCallActionDiscriminatorType.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace tryAGI.OpenAI +{ + /// + /// + /// + public enum WebSearchToolCallActionDiscriminatorType + { + /// + /// + /// + FindInPage, + /// + /// + /// + OpenPage, + /// + /// + /// + Search, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WebSearchToolCallActionDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WebSearchToolCallActionDiscriminatorType value) + { + return value switch + { + WebSearchToolCallActionDiscriminatorType.FindInPage => "find_in_page", + WebSearchToolCallActionDiscriminatorType.OpenPage => "open_page", + WebSearchToolCallActionDiscriminatorType.Search => "search", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WebSearchToolCallActionDiscriminatorType? ToEnum(string value) + { + return value switch + { + "find_in_page" => WebSearchToolCallActionDiscriminatorType.FindInPage, + "open_page" => WebSearchToolCallActionDiscriminatorType.OpenPage, + "search" => WebSearchToolCallActionDiscriminatorType.Search, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.AnyOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.AnyOf2.g.cs index 5ed51be9..d12cdb7a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.AnyOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.AnyOf2.g.cs @@ -107,7 +107,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf2.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf2.g.cs index 33098c50..920314b8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf2.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf2.g.cs @@ -107,7 +107,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf3.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf3.g.cs index 970e84bd..a0470765 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf3.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf3.g.cs @@ -137,7 +137,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { @@ -151,7 +154,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf4.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf4.g.cs index c8a16b41..ad097bbd 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf4.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.OneOf4.g.cs @@ -167,7 +167,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { @@ -181,7 +184,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { @@ -195,7 +201,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeAudioFormats.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeAudioFormats.g.cs index 8bb083fa..9bbf5d5b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeAudioFormats.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeAudioFormats.g.cs @@ -96,6 +96,7 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmAudioFormat).Name}"); pcmAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -106,9 +107,13 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (pcmAudioFormat == null && pcmuAudioFormat == null && pcmaAudioFormat == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmuAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmuAudioFormat).Name}"); pcmuAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -119,9 +124,13 @@ public class RealtimeAudioFormatsJsonConverter : global::System.Text.Json.Serial catch (global::System.InvalidOperationException) { } + } + if (pcmAudioFormat == null && pcmuAudioFormat == null && pcmaAudioFormat == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmaAudioFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeAudioFormatsPcmaAudioFormat).Name}"); pcmaAudioFormat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEvent.g.cs index 4c5e92d0..e49b2c6b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEvent.g.cs @@ -15,422 +15,92 @@ public class RealtimeClientEventJsonConverter : global::System.Text.Json.Seriali options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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("event_id")) __score0++; - if (__jsonProps.Contains("item")) __score0++; - if (__jsonProps.Contains("previous_item_id")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("event_id")) __score1++; - if (__jsonProps.Contains("item_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("event_id")) __score2++; - if (__jsonProps.Contains("item_id")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("audio_end_ms")) __score3++; - if (__jsonProps.Contains("content_index")) __score3++; - if (__jsonProps.Contains("event_id")) __score3++; - if (__jsonProps.Contains("item_id")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("audio")) __score4++; - if (__jsonProps.Contains("event_id")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("event_id")) __score5++; - if (__jsonProps.Contains("type")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("event_id")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("event_id")) __score7++; - if (__jsonProps.Contains("type")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("event_id")) __score8++; - if (__jsonProps.Contains("response_id")) __score8++; - if (__jsonProps.Contains("type")) __score8++; - 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.parallel_tool_calls")) __score9++; - if (__jsonProps.Contains("response.prompt")) __score9++; - if (__jsonProps.Contains("response.reasoning")) __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++; - if (__jsonProps.Contains("session")) __score10++; - if (__jsonProps.Contains("type")) __score10++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } - if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } - if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreate? conversationItemCreate = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.ConversationItemCreate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreate)}"); + conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDelete? conversationItemDelete = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.ConversationItemDelete) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDelete)}"); + conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieve? conversationItemRetrieve = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.ConversationItemRetrieve) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieve)}"); + conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncate? conversationItemTruncate = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.ConversationItemTruncate) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncate)}"); + conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppend? inputAudioBufferAppend = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.InputAudioBufferAppend) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppend)}"); + inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClear? inputAudioBufferClear = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.InputAudioBufferClear) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClear)}"); + inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClear? outputAudioBufferClear = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.OutputAudioBufferClear) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClear)}"); + outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommit? inputAudioBufferCommit = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.InputAudioBufferCommit) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommit)}"); + inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancel? responseCancel = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.ResponseCancel) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancel)}"); + responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreate? responseCreate = default; - global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate? sessionUpdate = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.ResponseCreate) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreate).Name}"); - conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDelete).Name}"); - conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieve).Name}"); - conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncate).Name}"); - conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppend).Name}"); - inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClear).Name}"); - inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClear).Name}"); - outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommit).Name}"); - inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancel).Name}"); - responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 9) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreate).Name}"); - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 10) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate).Name}"); - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreate)}"); + responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (conversationItemCreate == null && conversationItemDelete == null && conversationItemRetrieve == null && conversationItemTruncate == null && inputAudioBufferAppend == null && inputAudioBufferClear == null && outputAudioBufferClear == null && inputAudioBufferCommit == null && responseCancel == null && responseCreate == null && sessionUpdate == null) + global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate? sessionUpdate = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType.SessionUpdate) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreate).Name}"); - conversationItemCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDelete), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDelete).Name}"); - conversationItemDelete = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieve), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieve).Name}"); - conversationItemRetrieve = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncate).Name}"); - conversationItemTruncate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppend), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppend).Name}"); - inputAudioBufferAppend = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClear).Name}"); - inputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClear), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClear).Name}"); - outputAudioBufferClear = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommit), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommit).Name}"); - inputAudioBufferCommit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancel).Name}"); - responseCancel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreate).Name}"); - responseCreate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate).Name}"); - sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate)}"); + sessionUpdate = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Realtime.RealtimeClientEvent( + discriminator?.Type, conversationItemCreate, conversationItemDelete, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventDiscriminatorType.g.cs new file mode 100644 index 00000000..5c0e7d89 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.Realtime.JsonConverters +{ + /// + public sealed class RealtimeClientEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..791ebc3b --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.Realtime.JsonConverters +{ + /// + public sealed class RealtimeClientEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItem.g.cs index b683e2fb..c5871b5a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItem.g.cs @@ -15,361 +15,78 @@ public class RealtimeConversationItemJsonConverter : global::System.Text.Json.Se options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("content")) __score0++; - if (__jsonProps.Contains("id")) __score0++; - if (__jsonProps.Contains("object")) __score0++; - if (__jsonProps.Contains("role")) __score0++; - if (__jsonProps.Contains("status")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("content")) __score1++; - if (__jsonProps.Contains("id")) __score1++; - if (__jsonProps.Contains("object")) __score1++; - if (__jsonProps.Contains("role")) __score1++; - if (__jsonProps.Contains("status")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("content")) __score2++; - if (__jsonProps.Contains("id")) __score2++; - if (__jsonProps.Contains("object")) __score2++; - if (__jsonProps.Contains("role")) __score2++; - if (__jsonProps.Contains("status")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("arguments")) __score3++; - if (__jsonProps.Contains("call_id")) __score3++; - if (__jsonProps.Contains("id")) __score3++; - if (__jsonProps.Contains("name")) __score3++; - if (__jsonProps.Contains("object")) __score3++; - if (__jsonProps.Contains("status")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("call_id")) __score4++; - if (__jsonProps.Contains("id")) __score4++; - if (__jsonProps.Contains("object")) __score4++; - if (__jsonProps.Contains("output")) __score4++; - if (__jsonProps.Contains("status")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - var __score5 = 0; - if (__jsonProps.Contains("approval_request_id")) __score5++; - if (__jsonProps.Contains("approve")) __score5++; - if (__jsonProps.Contains("id")) __score5++; - if (__jsonProps.Contains("reason")) __score5++; - if (__jsonProps.Contains("type")) __score5++; - var __score6 = 0; - if (__jsonProps.Contains("id")) __score6++; - if (__jsonProps.Contains("server_label")) __score6++; - if (__jsonProps.Contains("tools")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("approval_request_id")) __score7++; - if (__jsonProps.Contains("arguments")) __score7++; - if (__jsonProps.Contains("error")) __score7++; - if (__jsonProps.Contains("id")) __score7++; - if (__jsonProps.Contains("name")) __score7++; - if (__jsonProps.Contains("output")) __score7++; - if (__jsonProps.Contains("server_label")) __score7++; - if (__jsonProps.Contains("type")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("arguments")) __score8++; - if (__jsonProps.Contains("id")) __score8++; - if (__jsonProps.Contains("name")) __score8++; - if (__jsonProps.Contains("server_label")) __score8++; - if (__jsonProps.Contains("type")) __score8++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem? message1 = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType.Message) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem)}"); + message1 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser? message2 = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType.Message) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser)}"); + message2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant? message3 = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType.Message) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant)}"); + message3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall? functionCall = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType.FunctionCall) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall)}"); + functionCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput? functionCallOutput = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType.FunctionCallOutput) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput)}"); + functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse? mcpApprovalResponse = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType.McpApprovalResponse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse)}"); + mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools? mcpListTools = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType.McpListTools) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools)}"); + mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall? mcpCall = default; - global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest? mcpApprovalRequest = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType.McpCall) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant).Name}"); - message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall)}"); + mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (message1 == null && message2 == null && message3 == null && functionCall == null && functionCallOutput == null && mcpApprovalResponse == null && mcpListTools == null && mcpCall == null && mcpApprovalRequest == null) + global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest? mcpApprovalRequest = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType.McpApprovalRequest) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem).Name}"); - message1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser).Name}"); - message2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant).Name}"); - message3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall).Name}"); - functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput).Name}"); - functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse).Name}"); - mcpApprovalResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools).Name}"); - mcpListTools = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall).Name}"); - mcpCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest).Name}"); - mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest)}"); + mcpApprovalRequest = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Realtime.RealtimeConversationItem( + discriminator?.Type, message1, message2, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemDiscriminatorType.g.cs new file mode 100644 index 00000000..9488b332 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.Realtime.JsonConverters +{ + /// + public sealed class RealtimeConversationItemDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..d6dbe3b4 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.Realtime.JsonConverters +{ + /// + public sealed class RealtimeConversationItemDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEvent.g.cs index 7cc18256..6286f21f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEvent.g.cs @@ -15,1719 +15,337 @@ public class RealtimeServerEventJsonConverter : global::System.Text.Json.Seriali options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - 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; - if (__jsonProps.Contains("event_id")) __score1++; - if (__jsonProps.Contains("item")) __score1++; - if (__jsonProps.Contains("previous_item_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("event_id")) __score2++; - if (__jsonProps.Contains("item_id")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("content_index")) __score3++; - if (__jsonProps.Contains("event_id")) __score3++; - if (__jsonProps.Contains("item_id")) __score3++; - if (__jsonProps.Contains("logprobs")) __score3++; - if (__jsonProps.Contains("transcript")) __score3++; - if (__jsonProps.Contains("type")) __score3++; - if (__jsonProps.Contains("usage")) __score3++; - var __score4 = 0; - if (__jsonProps.Contains("content_index")) __score4++; - if (__jsonProps.Contains("delta")) __score4++; - if (__jsonProps.Contains("event_id")) __score4++; - if (__jsonProps.Contains("item_id")) __score4++; - if (__jsonProps.Contains("logprobs")) __score4++; - if (__jsonProps.Contains("type")) __score4++; - 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++; - var __score6 = 0; - if (__jsonProps.Contains("event_id")) __score6++; - if (__jsonProps.Contains("item")) __score6++; - if (__jsonProps.Contains("type")) __score6++; - var __score7 = 0; - if (__jsonProps.Contains("audio_end_ms")) __score7++; - if (__jsonProps.Contains("content_index")) __score7++; - if (__jsonProps.Contains("event_id")) __score7++; - if (__jsonProps.Contains("item_id")) __score7++; - 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; - if (__jsonProps.Contains("event_id")) __score9++; - if (__jsonProps.Contains("type")) __score9++; - var __score10 = 0; - if (__jsonProps.Contains("event_id")) __score10++; - if (__jsonProps.Contains("item_id")) __score10++; - if (__jsonProps.Contains("previous_item_id")) __score10++; - if (__jsonProps.Contains("type")) __score10++; - var __score11 = 0; - if (__jsonProps.Contains("event")) __score11++; - if (__jsonProps.Contains("received_at")) __score11++; - if (__jsonProps.Contains("type")) __score11++; - var __score12 = 0; - if (__jsonProps.Contains("audio_start_ms")) __score12++; - if (__jsonProps.Contains("event_id")) __score12++; - if (__jsonProps.Contains("item_id")) __score12++; - if (__jsonProps.Contains("type")) __score12++; - var __score13 = 0; - if (__jsonProps.Contains("audio_end_ms")) __score13++; - if (__jsonProps.Contains("event_id")) __score13++; - if (__jsonProps.Contains("item_id")) __score13++; - if (__jsonProps.Contains("type")) __score13++; - var __score14 = 0; - if (__jsonProps.Contains("event_id")) __score14++; - if (__jsonProps.Contains("rate_limits")) __score14++; - if (__jsonProps.Contains("type")) __score14++; - var __score15 = 0; - if (__jsonProps.Contains("content_index")) __score15++; - if (__jsonProps.Contains("delta")) __score15++; - if (__jsonProps.Contains("event_id")) __score15++; - if (__jsonProps.Contains("item_id")) __score15++; - if (__jsonProps.Contains("output_index")) __score15++; - if (__jsonProps.Contains("response_id")) __score15++; - if (__jsonProps.Contains("type")) __score15++; - var __score16 = 0; - if (__jsonProps.Contains("content_index")) __score16++; - if (__jsonProps.Contains("event_id")) __score16++; - if (__jsonProps.Contains("item_id")) __score16++; - if (__jsonProps.Contains("output_index")) __score16++; - if (__jsonProps.Contains("response_id")) __score16++; - if (__jsonProps.Contains("type")) __score16++; - var __score17 = 0; - if (__jsonProps.Contains("content_index")) __score17++; - if (__jsonProps.Contains("delta")) __score17++; - if (__jsonProps.Contains("event_id")) __score17++; - if (__jsonProps.Contains("item_id")) __score17++; - if (__jsonProps.Contains("output_index")) __score17++; - if (__jsonProps.Contains("response_id")) __score17++; - if (__jsonProps.Contains("type")) __score17++; - var __score18 = 0; - if (__jsonProps.Contains("content_index")) __score18++; - if (__jsonProps.Contains("event_id")) __score18++; - if (__jsonProps.Contains("item_id")) __score18++; - if (__jsonProps.Contains("output_index")) __score18++; - if (__jsonProps.Contains("response_id")) __score18++; - if (__jsonProps.Contains("transcript")) __score18++; - if (__jsonProps.Contains("type")) __score18++; - var __score19 = 0; - if (__jsonProps.Contains("content_index")) __score19++; - if (__jsonProps.Contains("event_id")) __score19++; - 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; - if (__jsonProps.Contains("content_index")) __score20++; - if (__jsonProps.Contains("event_id")) __score20++; - 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++; - if (__jsonProps.Contains("delta")) __score23++; - if (__jsonProps.Contains("event_id")) __score23++; - if (__jsonProps.Contains("item_id")) __score23++; - if (__jsonProps.Contains("output_index")) __score23++; - if (__jsonProps.Contains("response_id")) __score23++; - if (__jsonProps.Contains("type")) __score23++; - var __score24 = 0; - if (__jsonProps.Contains("arguments")) __score24++; - if (__jsonProps.Contains("call_id")) __score24++; - if (__jsonProps.Contains("event_id")) __score24++; - if (__jsonProps.Contains("item_id")) __score24++; - if (__jsonProps.Contains("name")) __score24++; - if (__jsonProps.Contains("output_index")) __score24++; - if (__jsonProps.Contains("response_id")) __score24++; - if (__jsonProps.Contains("type")) __score24++; - var __score25 = 0; - if (__jsonProps.Contains("event_id")) __score25++; - if (__jsonProps.Contains("item")) __score25++; - if (__jsonProps.Contains("output_index")) __score25++; - if (__jsonProps.Contains("response_id")) __score25++; - if (__jsonProps.Contains("type")) __score25++; - var __score26 = 0; - if (__jsonProps.Contains("event_id")) __score26++; - if (__jsonProps.Contains("item")) __score26++; - if (__jsonProps.Contains("output_index")) __score26++; - if (__jsonProps.Contains("response_id")) __score26++; - if (__jsonProps.Contains("type")) __score26++; - var __score27 = 0; - if (__jsonProps.Contains("content_index")) __score27++; - if (__jsonProps.Contains("delta")) __score27++; - if (__jsonProps.Contains("event_id")) __score27++; - if (__jsonProps.Contains("item_id")) __score27++; - if (__jsonProps.Contains("output_index")) __score27++; - if (__jsonProps.Contains("response_id")) __score27++; - if (__jsonProps.Contains("type")) __score27++; - var __score28 = 0; - if (__jsonProps.Contains("content_index")) __score28++; - if (__jsonProps.Contains("event_id")) __score28++; - if (__jsonProps.Contains("item_id")) __score28++; - if (__jsonProps.Contains("output_index")) __score28++; - if (__jsonProps.Contains("response_id")) __score28++; - if (__jsonProps.Contains("text")) __score28++; - if (__jsonProps.Contains("type")) __score28++; - var __score29 = 0; - if (__jsonProps.Contains("event_id")) __score29++; - if (__jsonProps.Contains("session")) __score29++; - if (__jsonProps.Contains("type")) __score29++; - var __score30 = 0; - if (__jsonProps.Contains("event_id")) __score30++; - if (__jsonProps.Contains("session")) __score30++; - if (__jsonProps.Contains("type")) __score30++; - var __score31 = 0; - if (__jsonProps.Contains("event_id")) __score31++; - if (__jsonProps.Contains("response_id")) __score31++; - if (__jsonProps.Contains("type")) __score31++; - var __score32 = 0; - if (__jsonProps.Contains("event_id")) __score32++; - if (__jsonProps.Contains("response_id")) __score32++; - if (__jsonProps.Contains("type")) __score32++; - var __score33 = 0; - if (__jsonProps.Contains("event_id")) __score33++; - if (__jsonProps.Contains("response_id")) __score33++; - if (__jsonProps.Contains("type")) __score33++; - var __score34 = 0; - if (__jsonProps.Contains("event_id")) __score34++; - if (__jsonProps.Contains("item")) __score34++; - if (__jsonProps.Contains("previous_item_id")) __score34++; - if (__jsonProps.Contains("type")) __score34++; - var __score35 = 0; - if (__jsonProps.Contains("event_id")) __score35++; - if (__jsonProps.Contains("item")) __score35++; - if (__jsonProps.Contains("previous_item_id")) __score35++; - if (__jsonProps.Contains("type")) __score35++; - var __score36 = 0; - if (__jsonProps.Contains("audio_end_ms")) __score36++; - if (__jsonProps.Contains("audio_start_ms")) __score36++; - if (__jsonProps.Contains("event_id")) __score36++; - if (__jsonProps.Contains("item_id")) __score36++; - if (__jsonProps.Contains("type")) __score36++; - var __score37 = 0; - if (__jsonProps.Contains("content_index")) __score37++; - if (__jsonProps.Contains("end")) __score37++; - if (__jsonProps.Contains("event_id")) __score37++; - if (__jsonProps.Contains("id")) __score37++; - if (__jsonProps.Contains("item_id")) __score37++; - if (__jsonProps.Contains("speaker")) __score37++; - if (__jsonProps.Contains("start")) __score37++; - if (__jsonProps.Contains("text")) __score37++; - if (__jsonProps.Contains("type")) __score37++; - var __score38 = 0; - if (__jsonProps.Contains("event_id")) __score38++; - if (__jsonProps.Contains("item_id")) __score38++; - if (__jsonProps.Contains("type")) __score38++; - var __score39 = 0; - if (__jsonProps.Contains("event_id")) __score39++; - if (__jsonProps.Contains("item_id")) __score39++; - if (__jsonProps.Contains("type")) __score39++; - var __score40 = 0; - if (__jsonProps.Contains("event_id")) __score40++; - if (__jsonProps.Contains("item_id")) __score40++; - if (__jsonProps.Contains("type")) __score40++; - var __score41 = 0; - if (__jsonProps.Contains("delta")) __score41++; - if (__jsonProps.Contains("event_id")) __score41++; - if (__jsonProps.Contains("item_id")) __score41++; - if (__jsonProps.Contains("obfuscation")) __score41++; - if (__jsonProps.Contains("output_index")) __score41++; - if (__jsonProps.Contains("response_id")) __score41++; - if (__jsonProps.Contains("type")) __score41++; - var __score42 = 0; - if (__jsonProps.Contains("arguments")) __score42++; - if (__jsonProps.Contains("event_id")) __score42++; - if (__jsonProps.Contains("item_id")) __score42++; - if (__jsonProps.Contains("output_index")) __score42++; - if (__jsonProps.Contains("response_id")) __score42++; - if (__jsonProps.Contains("type")) __score42++; - var __score43 = 0; - if (__jsonProps.Contains("event_id")) __score43++; - if (__jsonProps.Contains("item_id")) __score43++; - if (__jsonProps.Contains("output_index")) __score43++; - if (__jsonProps.Contains("type")) __score43++; - var __score44 = 0; - if (__jsonProps.Contains("event_id")) __score44++; - if (__jsonProps.Contains("item_id")) __score44++; - if (__jsonProps.Contains("output_index")) __score44++; - if (__jsonProps.Contains("type")) __score44++; - var __score45 = 0; - if (__jsonProps.Contains("event_id")) __score45++; - if (__jsonProps.Contains("item_id")) __score45++; - if (__jsonProps.Contains("output_index")) __score45++; - if (__jsonProps.Contains("type")) __score45++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } - if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } - if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } - if (__score10 > __bestScore) { __bestScore = __score10; __bestIndex = 10; } - if (__score11 > __bestScore) { __bestScore = __score11; __bestIndex = 11; } - if (__score12 > __bestScore) { __bestScore = __score12; __bestIndex = 12; } - if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } - if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } - if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } - if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } - if (__score17 > __bestScore) { __bestScore = __score17; __bestIndex = 17; } - if (__score18 > __bestScore) { __bestScore = __score18; __bestIndex = 18; } - if (__score19 > __bestScore) { __bestScore = __score19; __bestIndex = 19; } - if (__score20 > __bestScore) { __bestScore = __score20; __bestIndex = 20; } - if (__score21 > __bestScore) { __bestScore = __score21; __bestIndex = 21; } - if (__score22 > __bestScore) { __bestScore = __score22; __bestIndex = 22; } - if (__score23 > __bestScore) { __bestScore = __score23; __bestIndex = 23; } - if (__score24 > __bestScore) { __bestScore = __score24; __bestIndex = 24; } - if (__score25 > __bestScore) { __bestScore = __score25; __bestIndex = 25; } - if (__score26 > __bestScore) { __bestScore = __score26; __bestIndex = 26; } - if (__score27 > __bestScore) { __bestScore = __score27; __bestIndex = 27; } - if (__score28 > __bestScore) { __bestScore = __score28; __bestIndex = 28; } - if (__score29 > __bestScore) { __bestScore = __score29; __bestIndex = 29; } - if (__score30 > __bestScore) { __bestScore = __score30; __bestIndex = 30; } - if (__score31 > __bestScore) { __bestScore = __score31; __bestIndex = 31; } - if (__score32 > __bestScore) { __bestScore = __score32; __bestIndex = 32; } - if (__score33 > __bestScore) { __bestScore = __score33; __bestIndex = 33; } - if (__score34 > __bestScore) { __bestScore = __score34; __bestIndex = 34; } - if (__score35 > __bestScore) { __bestScore = __score35; __bestIndex = 35; } - if (__score36 > __bestScore) { __bestScore = __score36; __bestIndex = 36; } - if (__score37 > __bestScore) { __bestScore = __score37; __bestIndex = 37; } - if (__score38 > __bestScore) { __bestScore = __score38; __bestIndex = 38; } - if (__score39 > __bestScore) { __bestScore = __score39; __bestIndex = 39; } - if (__score40 > __bestScore) { __bestScore = __score40; __bestIndex = 40; } - if (__score41 > __bestScore) { __bestScore = __score41; __bestIndex = 41; } - if (__score42 > __bestScore) { __bestScore = __score42; __bestIndex = 42; } - if (__score43 > __bestScore) { __bestScore = __score43; __bestIndex = 43; } - if (__score44 > __bestScore) { __bestScore = __score44; __bestIndex = 44; } - if (__score45 > __bestScore) { __bestScore = __score45; __bestIndex = 45; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated? conversationCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated)}"); + conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated? conversationItemCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated)}"); + conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted? conversationItemDeleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemDeleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted)}"); + conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? conversationItemInputAudioTranscriptionCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted)}"); + conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? conversationItemInputAudioTranscriptionDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta)}"); + conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? conversationItemInputAudioTranscriptionFailed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionFailed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed)}"); + conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved? conversationItemRetrieved = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemRetrieved) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved)}"); + conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated? conversationItemTruncated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemTruncated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated)}"); + conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventError? error = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.Error) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventError)}"); + error = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared? inputAudioBufferCleared = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.InputAudioBufferCleared) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared)}"); + inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted? inputAudioBufferCommitted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.InputAudioBufferCommitted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted)}"); + inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived? inputAudioBufferDtmfEventReceived = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.InputAudioBufferDtmfEventReceived) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived)}"); + inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted? inputAudioBufferSpeechStarted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStarted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted)}"); + inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped? inputAudioBufferSpeechStopped = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStopped) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped)}"); + inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated? rateLimitsUpdated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.RateLimitsUpdated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated)}"); + rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta? responseOutputAudioDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseOutputAudioDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta)}"); + responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone? responseOutputAudioDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseOutputAudioDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone)}"); + responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta? responseOutputAudioTranscriptDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta)}"); + responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone? responseOutputAudioTranscriptDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone)}"); + responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded? responseContentPartAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseContentPartAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded)}"); + responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone? responseContentPartDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseContentPartDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone)}"); + responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated? responseCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated)}"); + responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone? responseDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone)}"); + responseDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta? responseFunctionCallArgumentsDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta)}"); + responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone? responseFunctionCallArgumentsDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone)}"); + responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded? responseOutputItemAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseOutputItemAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded)}"); + responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone? responseOutputItemDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseOutputItemDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone)}"); + responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta? responseOutputTextDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseOutputTextDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta)}"); + responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone? responseOutputTextDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseOutputTextDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone)}"); + responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated? sessionCreated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.SessionCreated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated)}"); + sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated? sessionUpdated = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.SessionUpdated) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated)}"); + sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted? outputAudioBufferStarted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.OutputAudioBufferStarted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted)}"); + outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped? outputAudioBufferStopped = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.OutputAudioBufferStopped) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped)}"); + outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared? outputAudioBufferCleared = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.OutputAudioBufferCleared) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared)}"); + outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded? conversationItemAdded = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemAdded) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded)}"); + conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone? conversationItemDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone)}"); + conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered? inputAudioBufferTimeoutTriggered = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.InputAudioBufferTimeoutTriggered) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered)}"); + inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? conversationItemInputAudioTranscriptionSegment = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionSegment) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment)}"); + conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress? mcpListToolsInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.McpListToolsInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress)}"); + mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted? mcpListToolsCompleted = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.McpListToolsCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted)}"); + mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed? mcpListToolsFailed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.McpListToolsFailed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed)}"); + mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta? responseMcpCallArgumentsDelta = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDelta) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta)}"); + responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone? responseMcpCallArgumentsDone = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDone) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone)}"); + responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress? responseMcpCallInProgress = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseMcpCallInProgress) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress)}"); + responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted? responseMcpCallCompleted = default; - global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed? responseMcpCallFailed = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated).Name}"); - conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated).Name}"); - conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted).Name}"); - conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); - conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 4) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); - conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 5) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); - conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 6) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved).Name}"); - conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated).Name}"); - conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 8) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventError).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 9) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared).Name}"); - inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 10) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted).Name}"); - inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 11) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); - inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 12) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); - inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 13) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); - inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 14) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated).Name}"); - rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 15) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta).Name}"); - responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 16) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone).Name}"); - responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 17) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); - responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 18) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone).Name}"); - responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 19) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 20) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 21) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 22) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone).Name}"); - responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 23) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 24) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 25) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 26) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 27) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 28) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 29) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated).Name}"); - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 30) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated).Name}"); - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 31) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted).Name}"); - outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 32) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped).Name}"); - outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 33) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared).Name}"); - outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 34) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded).Name}"); - conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 35) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone).Name}"); - conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 36) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); - inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 37) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); - conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 38) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress).Name}"); - mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 39) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted).Name}"); - mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 40) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed).Name}"); - mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 41) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 42) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 43) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 44) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 45) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseMcpCallCompleted) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted)}"); + responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (conversationCreated == null && conversationItemCreated == null && conversationItemDeleted == null && conversationItemInputAudioTranscriptionCompleted == null && conversationItemInputAudioTranscriptionDelta == null && conversationItemInputAudioTranscriptionFailed == null && conversationItemRetrieved == null && conversationItemTruncated == null && error == null && inputAudioBufferCleared == null && inputAudioBufferCommitted == null && inputAudioBufferDtmfEventReceived == null && inputAudioBufferSpeechStarted == null && inputAudioBufferSpeechStopped == null && rateLimitsUpdated == null && responseOutputAudioDelta == null && responseOutputAudioDone == null && responseOutputAudioTranscriptDelta == null && responseOutputAudioTranscriptDone == null && responseContentPartAdded == null && responseContentPartDone == null && responseCreated == null && responseDone == null && responseFunctionCallArgumentsDelta == null && responseFunctionCallArgumentsDone == null && responseOutputItemAdded == null && responseOutputItemDone == null && responseOutputTextDelta == null && responseOutputTextDone == null && sessionCreated == null && sessionUpdated == null && outputAudioBufferStarted == null && outputAudioBufferStopped == null && outputAudioBufferCleared == null && conversationItemAdded == null && conversationItemDone == null && inputAudioBufferTimeoutTriggered == null && conversationItemInputAudioTranscriptionSegment == null && mcpListToolsInProgress == null && mcpListToolsCompleted == null && mcpListToolsFailed == null && responseMcpCallArgumentsDelta == null && responseMcpCallArgumentsDone == null && responseMcpCallInProgress == null && responseMcpCallCompleted == null && responseMcpCallFailed == null) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated).Name}"); - conversationCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated).Name}"); - conversationItemCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted).Name}"); - conversationItemDeleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted).Name}"); - conversationItemInputAudioTranscriptionCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta).Name}"); - conversationItemInputAudioTranscriptionDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed).Name}"); - conversationItemInputAudioTranscriptionFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved).Name}"); - conversationItemRetrieved = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated).Name}"); - conversationItemTruncated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventError), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventError).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared).Name}"); - inputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted).Name}"); - inputAudioBufferCommitted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived).Name}"); - inputAudioBufferDtmfEventReceived = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted).Name}"); - inputAudioBufferSpeechStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped).Name}"); - inputAudioBufferSpeechStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated).Name}"); - rateLimitsUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta).Name}"); - responseOutputAudioDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone).Name}"); - responseOutputAudioDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta).Name}"); - responseOutputAudioTranscriptDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone).Name}"); - responseOutputAudioTranscriptDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded).Name}"); - responseContentPartAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone).Name}"); - responseContentPartDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated).Name}"); - responseCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone).Name}"); - responseDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta).Name}"); - responseFunctionCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone).Name}"); - responseFunctionCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded).Name}"); - responseOutputItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone).Name}"); - responseOutputItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta).Name}"); - responseOutputTextDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone).Name}"); - responseOutputTextDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated).Name}"); - sessionCreated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated).Name}"); - sessionUpdated = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted).Name}"); - outputAudioBufferStarted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped).Name}"); - outputAudioBufferStopped = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared).Name}"); - outputAudioBufferCleared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded).Name}"); - conversationItemAdded = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone).Name}"); - conversationItemDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered).Name}"); - inputAudioBufferTimeoutTriggered = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment).Name}"); - conversationItemInputAudioTranscriptionSegment = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress).Name}"); - mcpListToolsInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted).Name}"); - mcpListToolsCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed).Name}"); - mcpListToolsFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta).Name}"); - responseMcpCallArgumentsDelta = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone).Name}"); - responseMcpCallArgumentsDone = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress).Name}"); - responseMcpCallInProgress = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted).Name}"); - responseMcpCallCompleted = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed).Name}"); - responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed? responseMcpCallFailed = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType.ResponseMcpCallFailed) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed)}"); + responseMcpCallFailed = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Realtime.RealtimeServerEvent( + discriminator?.Type, conversationCreated, conversationItemCreated, diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventDiscriminatorType.g.cs new file mode 100644 index 00000000..7ef9e5a8 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.Realtime.JsonConverters +{ + /// + public sealed class RealtimeServerEventDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventDiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventDiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..80f8321f --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.Realtime.JsonConverters +{ + /// + public sealed class RealtimeServerEventDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTruncation.g.cs index ed0536cc..9b7b0c11 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTruncation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTruncation.g.cs @@ -85,6 +85,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum).Name}"); @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -95,9 +96,13 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (@enum == null && retentionRatioTruncation == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2).Name}"); retentionRatioTruncation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index c1f2ca11..885032f6 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -15,102 +15,29 @@ public class RealtimeTurnDetectionRealtimeTurnDetection1JsonConverter : global:: options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - var __score0 = 0; - if (__jsonProps.Contains("create_response")) __score0++; - if (__jsonProps.Contains("idle_timeout_ms")) __score0++; - if (__jsonProps.Contains("interrupt_response")) __score0++; - if (__jsonProps.Contains("prefix_padding_ms")) __score0++; - if (__jsonProps.Contains("silence_duration_ms")) __score0++; - if (__jsonProps.Contains("threshold")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("create_response")) __score1++; - if (__jsonProps.Contains("eagerness")) __score1++; - if (__jsonProps.Contains("interrupt_response")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? serverVad = default; - global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? semanticVad = default; - if (__bestIndex >= 0) + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.ServerVad) { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); - serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); - semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad)}"); + serverVad = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - - if (serverVad == null && semanticVad == null) + global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? semanticVad = default; + if (discriminator?.Type == global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.SemanticVad) { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad).Name}"); - serverVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad).Name}"); - semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad)}"); + semanticVad = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } var __value = new global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1( + discriminator?.Type, serverVad, semanticVad diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs new file mode 100644 index 00000000..5a4b1121 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace tryAGI.OpenAI.Realtime.JsonConverters +{ + /// + public sealed class RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullable.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullable.g.cs new file mode 100644 index 00000000..01b51275 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace tryAGI.OpenAI.Realtime.JsonConverters +{ + /// + public sealed class RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsOrCustomVoice.g.cs index 6e3e5c43..d8edf395 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsOrCustomVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsOrCustomVoice.g.cs @@ -75,6 +75,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsShared).Name}"); shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -85,9 +86,13 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (shared == null && voiceIdsOrCustomVoiceVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoiceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoiceVariant2).Name}"); voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsShared.g.cs index 63238671..913cfb1f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonConverters.VoiceIdsShared.g.cs @@ -108,7 +108,10 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio catch (global::System.InvalidOperationException) { } + } + if (voiceIdsSharedVariant1 == null && @enum == null) + { try { diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs index 0fe2bd18..7e47cd18 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContext.g.cs @@ -73,6 +73,10 @@ namespace tryAGI.OpenAI.Realtime typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeAudioFormatsPcmaAudioFormatTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventConversationItemCreateTypeJsonConverter), typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventConversationItemCreateTypeNullableJsonConverter), @@ -121,6 +125,10 @@ namespace tryAGI.OpenAI.Realtime typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventTranscriptionSessionUpdateTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemFunctionCallObjectJsonConverter), typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemFunctionCallObjectNullableJsonConverter), @@ -281,6 +289,10 @@ namespace tryAGI.OpenAI.Realtime typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeResponseCreateParamsConversationNullableJsonConverter), + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventDiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventConversationCreatedTypeJsonConverter), typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventConversationCreatedTypeNullableJsonConverter), @@ -577,6 +589,10 @@ namespace tryAGI.OpenAI.Realtime typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagernessNullableJsonConverter), + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter), + + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeNullableJsonConverter), + typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.ToolChoiceFunctionTypeJsonConverter), typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.ToolChoiceFunctionTypeNullableJsonConverter), @@ -723,6 +739,7 @@ namespace tryAGI.OpenAI.Realtime [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType), TypeInfoPropertyName = "RealtimeClientEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreateType), TypeInfoPropertyName = "RealtimeClientEventConversationItemCreateType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItem), TypeInfoPropertyName = "RealtimeConversationItem2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDeleteType), TypeInfoPropertyName = "RealtimeClientEventConversationItemDeleteType2")] @@ -752,6 +769,7 @@ namespace tryAGI.OpenAI.Realtime [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType), TypeInfoPropertyName = "RealtimeConversationItemDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallObject), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallType), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallStatus), TypeInfoPropertyName = "RealtimeConversationItemFunctionCallStatus2")] @@ -878,6 +896,7 @@ namespace tryAGI.OpenAI.Realtime [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType), TypeInfoPropertyName = "RealtimeServerEventDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreatedType), TypeInfoPropertyName = "RealtimeServerEventConversationCreatedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreatedConversation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAddedType), TypeInfoPropertyName = "RealtimeServerEventConversationItemAddedType2")] @@ -1011,6 +1030,7 @@ namespace tryAGI.OpenAI.Realtime [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness), TypeInfoPropertyName = "RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType), TypeInfoPropertyName = "RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.OneOf), TypeInfoPropertyName = "OneOfStringInputTextContentInputImageContentInputFileContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.ToolChoiceFunctionType), TypeInfoPropertyName = "ToolChoiceFunctionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::tryAGI.OpenAI.Realtime.ToolChoiceMCPType), TypeInfoPropertyName = "ToolChoiceMCPType2")] diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContextTypes.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContextTypes.g.cs index 7b9b8399..0e76aa7f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContextTypes.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.JsonSerializerContextTypes.g.cs @@ -248,1183 +248,1199 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreateType? Type55 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType? Type55 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItem? Type56 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreateType? Type56 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDeleteType? Type57 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItem? Type57 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieveType? Type58 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDeleteType? Type58 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncateType? Type59 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieveType? Type59 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppendType? Type60 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemTruncateType? Type60 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClearType? Type61 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferAppendType? Type61 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommitType? Type62 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferClearType? Type62 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClearType? Type63 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventInputAudioBufferCommitType? Type63 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancelType? Type64 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventOutputAudioBufferClearType? Type64 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreateType? Type65 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCancelType? Type65 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParams? Type66 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventResponseCreateType? Type66 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdateType? Type67 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParams? Type67 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type68 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdateType? Type68 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGA? Type69 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type69 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGA? Type70 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGA? Type70 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventTranscriptionSessionUpdate? Type71 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGA? Type71 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeClientEventTranscriptionSessionUpdateType? Type72 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventTranscriptionSessionUpdate? Type72 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequest? Type73 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventTranscriptionSessionUpdateType? Type73 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem? Type74 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequest? Type74 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser? Type75 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem? Type75 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant? Type76 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser? Type76 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall? Type77 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant? Type77 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput? Type78 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCall? Type78 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse? Type79 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutput? Type79 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools? Type80 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponse? Type80 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall? Type81 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPListTools? Type81 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest? Type82 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCall? Type82 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminator? Type83 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest? Type83 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallObject? Type84 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminator? Type84 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallType? Type85 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType? Type85 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallStatus? Type86 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallObject? Type86 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutputObject? Type87 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallType? Type87 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutputType? Type88 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallStatus? Type88 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutputStatus? Type89 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutputObject? Type89 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantObject? Type90 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutputType? Type90 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantType? Type91 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemFunctionCallOutputStatus? Type91 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantStatus? Type92 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantObject? Type92 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantRole? Type93 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantType? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type94 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantStatus? Type94 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantContentItem? Type95 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantRole? Type95 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantContentItemType? Type96 { get; set; } + public global::System.Collections.Generic.IList? Type96 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemObject? Type97 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantContentItem? Type97 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemType? Type98 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistantContentItemType? Type98 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemStatus? Type99 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemObject? Type99 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemRole? Type100 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemType? Type100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type101 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemStatus? Type101 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemContentItem? Type102 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemRole? Type102 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemContentItemType? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserObject? Type104 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemContentItem? Type104 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserType? Type105 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystemContentItemType? Type105 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserStatus? Type106 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserObject? Type106 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserRole? Type107 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserType? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type108 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserStatus? Type108 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserContentItem? Type109 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserRole? Type109 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserContentItemType? Type110 { get; set; } + public global::System.Collections.Generic.IList? Type110 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserContentItemDetail? Type111 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserContentItem? Type111 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeFunctionTool? Type112 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserContentItemType? Type112 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeFunctionToolType? Type113 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUserContentItemDetail? Type113 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequestType? Type114 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeFunctionTool? Type114 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponseType? Type115 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeFunctionToolType? Type115 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPHTTPError? Type116 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequestType? Type116 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPHTTPErrorType? Type117 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalResponseType? Type117 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPListToolsType? Type118 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPHTTPError? Type118 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type119 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPHTTPErrorType? Type119 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPProtocolError? Type120 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPListToolsType? Type120 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPProtocolErrorType? Type121 { get; set; } + public global::System.Collections.Generic.IList? Type121 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCallType? Type122 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPProtocolError? Type122 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type123 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPProtocolErrorType? Type123 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolExecutionError? Type124 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolCallType? Type124 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolExecutionErrorType? Type125 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type125 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeReasoning? Type126 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolExecutionError? Type126 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeReasoningEffort? Type127 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeMCPToolExecutionErrorType? Type127 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponse? Type128 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeReasoning? Type128 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseObject? Type129 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeReasoningEffort? Type129 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatus? Type130 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponse? Type130 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatusDetails? Type131 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseObject? Type131 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatusDetailsType? Type132 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatus? Type132 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatusDetailsReason? Type133 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatusDetails? Type133 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatusDetailsError? Type134 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatusDetailsType? Type134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type135 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatusDetailsReason? Type135 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseAudio? Type136 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseStatusDetailsError? Type136 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseAudioOutput? Type137 { get; set; } + public global::System.Collections.Generic.IList? Type137 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.VoiceIdsShared? Type138 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseAudio? Type138 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseUsage? Type139 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseAudioOutput? Type139 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseUsageInputTokenDetails? Type140 { get; set; } + public global::tryAGI.OpenAI.Realtime.VoiceIdsShared? Type140 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type141 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseUsage? Type141 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseUsageOutputTokenDetails? Type142 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseUsageInputTokenDetails? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type143 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseUsageInputTokenDetailsCachedTokensDetails? Type143 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseOutputModalitie? Type144 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseUsageOutputTokenDetails? Type144 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type145 { get; set; } + public global::System.Collections.Generic.IList? Type145 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseMaxOutputTokens? Type146 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseOutputModalitie? Type146 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type147 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type147 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsOutputModalitie? Type148 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseMaxOutputTokens? Type148 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsAudio? Type149 { get; set; } + public global::System.Collections.Generic.IList? Type149 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsAudioOutput? Type150 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsOutputModalitie? Type150 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoice? Type151 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsAudio? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type152 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsAudioOutput? Type152 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type153 { get; set; } + public global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoice? Type153 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type154 { get; set; } + public global::System.Collections.Generic.IList>? Type154 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.ToolChoiceOptions? Type155 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type155 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.ToolChoiceFunction? Type156 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type156 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.ToolChoiceMCP? Type157 { get; set; } + public global::tryAGI.OpenAI.Realtime.ToolChoiceOptions? Type157 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type158 { get; set; } + public global::tryAGI.OpenAI.Realtime.ToolChoiceFunction? Type158 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsMaxOutputTokens? Type159 { get; set; } + public global::tryAGI.OpenAI.Realtime.ToolChoiceMCP? Type159 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type160 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type160 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsConversation? Type161 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsMaxOutputTokens? Type161 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEvent? Type162 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type162 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated? Type163 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeResponseCreateParamsConversation? Type163 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated? Type164 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEvent? Type164 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted? Type165 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated? Type165 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type166 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated? Type166 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type167 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted? Type167 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type168 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted? Type168 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved? Type169 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDelta? Type169 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated? Type170 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailed? Type170 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventError? Type171 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrieved? Type171 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared? Type172 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncated? Type172 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted? Type173 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventError? Type173 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type174 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCleared? Type174 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted? Type175 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommitted? Type175 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped? Type176 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceived? Type176 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated? Type177 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStarted? Type177 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta? Type178 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStopped? Type178 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone? Type179 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdated? Type179 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta? Type180 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDelta? Type180 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone? Type181 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDone? Type181 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded? Type182 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDelta? Type182 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone? Type183 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDone? Type183 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated? Type184 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAdded? Type184 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone? Type185 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDone? Type185 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type186 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreated? Type186 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone? Type187 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDone? Type187 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded? Type188 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDelta? Type188 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone? Type189 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDone? Type189 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta? Type190 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAdded? Type190 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone? Type191 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDone? Type191 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated? Type192 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDelta? Type192 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated? Type193 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDone? Type193 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted? Type194 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreated? Type194 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped? Type195 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdated? Type195 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared? Type196 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStarted? Type196 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded? Type197 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStopped? Type197 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone? Type198 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferCleared? Type198 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type199 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAdded? Type199 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type200 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDone? Type200 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress? Type201 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggered? Type201 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted? Type202 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegment? Type202 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed? Type203 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgress? Type203 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta? Type204 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompleted? Type204 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone? Type205 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailed? Type205 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress? Type206 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDelta? Type206 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted? Type207 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDone? Type207 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed? Type208 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgress? Type208 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminator? Type209 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompleted? Type209 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreatedType? Type210 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed? Type210 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreatedConversation? Type211 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminator? Type211 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAddedType? Type212 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType? Type212 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreatedType? Type213 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreatedType? Type213 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeletedType? Type214 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreatedConversation? Type214 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDoneType? Type215 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemAddedType? Type215 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type216 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreatedType? Type216 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type217 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeletedType? Type217 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type218 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDoneType? Type218 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageTokens? Type219 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionCompletedType? Type219 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageDuration? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type221 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type221 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type222 { get; set; } + public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageTokens? Type222 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type223 { get; set; } + public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageDuration? Type223 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type224 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionDeltaType? Type224 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrievedType? Type225 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailedType? Type225 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncatedType? Type226 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionFailedError? Type226 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventErrorType? Type227 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemInputAudioTranscriptionSegmentType? Type227 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventErrorError? Type228 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemRetrievedType? Type228 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferClearedType? Type229 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemTruncatedType? Type229 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommittedType? Type230 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventErrorType? Type230 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type231 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventErrorError? Type231 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type232 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferClearedType? Type232 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStartedType? Type233 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferCommittedType? Type233 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type234 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferDtmfEventReceivedType? Type234 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type235 { get; set; } + public global::System.DateTimeOffset? Type235 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompletedType? Type236 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStartedType? Type236 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailedType? Type237 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferSpeechStoppedType? Type237 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgressType? Type238 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventInputAudioBufferTimeoutTriggeredType? Type238 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferClearedType? Type239 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsCompletedType? Type239 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStartedType? Type240 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsFailedType? Type240 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStoppedType? Type241 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventMCPListToolsInProgressType? Type241 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdatedType? Type242 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferClearedType? Type242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type243 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStartedType? Type243 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdatedRateLimit? Type244 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventOutputAudioBufferStoppedType? Type244 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type245 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdatedType? Type245 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDeltaType? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDoneType? Type247 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdatedRateLimit? Type247 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDeltaType? Type248 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventRateLimitsUpdatedRateLimitName? Type248 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDoneType? Type249 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDeltaType? Type249 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAddedType? Type250 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioDoneType? Type250 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAddedPart? Type251 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDeltaType? Type251 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAddedPartType? Type252 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseAudioTranscriptDoneType? Type252 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDoneType? Type253 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAddedType? Type253 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDonePart? Type254 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAddedPart? Type254 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDonePartType? Type255 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartAddedPartType? Type255 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreatedType? Type256 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDoneType? Type256 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDoneType? Type257 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDonePart? Type257 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type258 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseContentPartDonePartType? Type258 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type259 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseCreatedType? Type259 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type260 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseDoneType? Type260 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type261 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDeltaType? Type261 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompletedType? Type262 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseFunctionCallArgumentsDoneType? Type262 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailedType? Type263 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDeltaType? Type263 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgressType? Type264 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallArgumentsDoneType? Type264 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAddedType? Type265 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallCompletedType? Type265 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDoneType? Type266 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailedType? Type266 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDeltaType? Type267 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallInProgressType? Type267 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDoneType? Type268 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemAddedType? Type268 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreatedType? Type269 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseOutputItemDoneType? Type269 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type270 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDeltaType? Type270 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGA? Type271 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseTextDoneType? Type271 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGA? Type272 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionCreatedType? Type272 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdatedType? Type273 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type273 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventTranscriptionSessionUpdated? Type274 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGA? Type274 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeServerEventTranscriptionSessionUpdatedType? Type275 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGA? Type275 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponse? Type276 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventSessionUpdatedType? Type276 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAType? Type277 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventTranscriptionSessionUpdated? Type277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type278 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventTranscriptionSessionUpdatedType? Type278 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAOutputModalitie? Type279 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponse? Type279 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.AnyOf? Type280 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAType? Type280 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAModel? Type281 { get; set; } + public global::System.Collections.Generic.IList? Type281 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAAudio? Type282 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAOutputModalitie? Type282 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAAudioInput? Type283 { get; set; } + public global::tryAGI.OpenAI.Realtime.AnyOf? Type283 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type284 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAModel? Type284 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1? Type285 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAAudio? Type285 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAAudioOutput? Type286 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAAudioInput? Type286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type287 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAAudioInputNoiseReduction? Type287 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAIncludeItem? Type288 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1? Type288 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type289 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAAudioOutput? Type289 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGATracingEnum? Type290 { get; set; } + public global::System.Collections.Generic.IList? Type290 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGATracingEnum2? Type291 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAIncludeItem? Type291 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type292 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type292 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAMaxOutputTokens? Type293 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGATracingEnum? Type293 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTruncation? Type294 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGATracingEnum2? Type294 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAType? Type295 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type295 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAObject? Type296 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateRequestGAMaxOutputTokens? Type296 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type297 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTruncation? Type297 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAOutputModalitie? Type298 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAType? Type298 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.AnyOf? Type299 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAObject? Type299 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAModel? Type300 { get; set; } + public global::System.Collections.Generic.IList? Type300 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAAudio? Type301 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAOutputModalitie? Type301 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAAudioInput? Type302 { get; set; } + public global::tryAGI.OpenAI.Realtime.AnyOf? Type302 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type303 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAModel? Type303 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAAudioOutput? Type304 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAAudio? Type304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type305 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAAudioInput? Type305 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAIncludeItem? Type306 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAAudioInputNoiseReduction? Type306 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type307 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAAudioOutput? Type307 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type308 { get; set; } + public global::System.Collections.Generic.IList? Type308 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type309 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAIncludeItem? Type309 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAMaxOutputTokens? Type310 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum? Type310 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type311 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGATracingTracingConfigurationEnum2? Type311 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type312 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type312 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type313 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeSessionCreateResponseGAMaxOutputTokens? Type313 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type314 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestTurnDetection? Type314 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type315 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestTurnDetectionType? Type315 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type316 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction? Type316 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAType? Type317 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestInputAudioFormat? Type317 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAAudio? Type318 { get; set; } + public global::System.Collections.Generic.IList? Type318 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type319 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestIncludeItem? Type319 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type320 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAType? Type320 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type321 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAAudio? Type321 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type322 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAAudioInput? Type322 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseClientSecret? Type323 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAAudioInputNoiseReduction? Type323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type324 { get; set; } + public global::System.Collections.Generic.IList? Type324 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseModalitie? Type325 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateRequestGAIncludeItem? Type325 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type326 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseClientSecret? Type326 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAType? Type327 { get; set; } + public global::System.Collections.Generic.IList? Type327 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type328 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseModalitie? Type328 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type329 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseTurnDetection? Type329 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAAudio? Type330 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAType? Type330 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type331 { get; set; } + public global::System.Collections.Generic.IList? Type331 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type332 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAIncludeItem? Type332 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection2? Type333 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAAudio? Type333 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum? Type334 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAAudioInput? Type334 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2? Type335 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAAudioInputNoiseReduction? Type335 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnumType? Type336 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTranscriptionSessionCreateResponseGAAudioInputTurnDetection2? Type336 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnumTokenLimits? Type337 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum? Type337 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type338 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnum2? Type338 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type339 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnumType? Type339 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type340 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTruncationEnumTokenLimits? Type340 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type341 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? Type341 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.OneOf? Type342 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? Type342 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.ToolChoiceFunctionType? Type343 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVadEagerness? Type343 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.ToolChoiceMCPType? Type344 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator? Type344 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageDurationType? Type345 { get; set; } + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type345 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageTokensType? Type346 { get; set; } + public global::tryAGI.OpenAI.Realtime.OneOf? Type346 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageTokensInputTokenDetails? Type347 { get; set; } + public global::tryAGI.OpenAI.Realtime.ToolChoiceFunctionType? Type347 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoiceVariant2? Type348 { get; set; } + public global::tryAGI.OpenAI.Realtime.ToolChoiceMCPType? Type348 { get; set; } /// /// /// - public global::tryAGI.OpenAI.Realtime.VoiceIdsSharedEnum? Type349 { get; set; } + public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageDurationType? Type349 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageTokensType? Type350 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Realtime.TranscriptTextUsageTokensInputTokenDetails? Type351 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Realtime.VoiceIdsOrCustomVoiceVariant2? Type352 { get; set; } + /// + /// + /// + public global::tryAGI.OpenAI.Realtime.VoiceIdsSharedEnum? Type353 { get; set; } /// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEvent.g.cs index f2891a8d..88a24a9b 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI.Realtime /// public readonly partial struct RealtimeClientEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType? Type { get; } + /// /// Add a new Item to the Conversation's context, including messages, function
/// calls, and function call responses. This event can be used both to populate a
@@ -605,6 +610,7 @@ public RealtimeClientEvent(global::tryAGI.OpenAI.Realtime.RealtimeClientEventSes /// ///
public RealtimeClientEvent( + global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType? type, global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemCreate? conversationItemCreate, global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemDelete? conversationItemDelete, global::tryAGI.OpenAI.Realtime.RealtimeClientEventConversationItemRetrieve? conversationItemRetrieve, @@ -618,6 +624,8 @@ public RealtimeClientEvent( global::tryAGI.OpenAI.Realtime.RealtimeClientEventSessionUpdate? sessionUpdate ) { + Type = type; + ConversationItemCreate = conversationItemCreate; ConversationItemDelete = conversationItemDelete; ConversationItemRetrieve = conversationItemRetrieve; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventDiscriminator.g.cs index ec0680bc..40ecefe2 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeClientEventDiscriminator /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeClientEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeClientEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeClientEventDiscriminator( - string? type) + global::tryAGI.OpenAI.Realtime.RealtimeClientEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventDiscriminatorType.g.cs new file mode 100644 index 00000000..7298fc86 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeClientEventDiscriminatorType.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace tryAGI.OpenAI.Realtime +{ + /// + /// + /// + public enum RealtimeClientEventDiscriminatorType + { + /// + /// + /// + ConversationItemCreate, + /// + /// + /// + ConversationItemDelete, + /// + /// + /// + ConversationItemRetrieve, + /// + /// + /// + ConversationItemTruncate, + /// + /// + /// + InputAudioBufferAppend, + /// + /// + /// + InputAudioBufferClear, + /// + /// + /// + InputAudioBufferCommit, + /// + /// + /// + OutputAudioBufferClear, + /// + /// + /// + ResponseCancel, + /// + /// + /// + ResponseCreate, + /// + /// + /// + SessionUpdate, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeClientEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeClientEventDiscriminatorType value) + { + return value switch + { + RealtimeClientEventDiscriminatorType.ConversationItemCreate => "conversation.item.create", + RealtimeClientEventDiscriminatorType.ConversationItemDelete => "conversation.item.delete", + RealtimeClientEventDiscriminatorType.ConversationItemRetrieve => "conversation.item.retrieve", + RealtimeClientEventDiscriminatorType.ConversationItemTruncate => "conversation.item.truncate", + RealtimeClientEventDiscriminatorType.InputAudioBufferAppend => "input_audio_buffer.append", + RealtimeClientEventDiscriminatorType.InputAudioBufferClear => "input_audio_buffer.clear", + RealtimeClientEventDiscriminatorType.InputAudioBufferCommit => "input_audio_buffer.commit", + RealtimeClientEventDiscriminatorType.OutputAudioBufferClear => "output_audio_buffer.clear", + RealtimeClientEventDiscriminatorType.ResponseCancel => "response.cancel", + RealtimeClientEventDiscriminatorType.ResponseCreate => "response.create", + RealtimeClientEventDiscriminatorType.SessionUpdate => "session.update", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeClientEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "conversation.item.create" => RealtimeClientEventDiscriminatorType.ConversationItemCreate, + "conversation.item.delete" => RealtimeClientEventDiscriminatorType.ConversationItemDelete, + "conversation.item.retrieve" => RealtimeClientEventDiscriminatorType.ConversationItemRetrieve, + "conversation.item.truncate" => RealtimeClientEventDiscriminatorType.ConversationItemTruncate, + "input_audio_buffer.append" => RealtimeClientEventDiscriminatorType.InputAudioBufferAppend, + "input_audio_buffer.clear" => RealtimeClientEventDiscriminatorType.InputAudioBufferClear, + "input_audio_buffer.commit" => RealtimeClientEventDiscriminatorType.InputAudioBufferCommit, + "output_audio_buffer.clear" => RealtimeClientEventDiscriminatorType.OutputAudioBufferClear, + "response.cancel" => RealtimeClientEventDiscriminatorType.ResponseCancel, + "response.create" => RealtimeClientEventDiscriminatorType.ResponseCreate, + "session.update" => RealtimeClientEventDiscriminatorType.SessionUpdate, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs index fb368cad..da3bdff7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItem.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI.Realtime /// public readonly partial struct RealtimeConversationItem : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType? Type { get; } + /// /// A system message in a Realtime conversation can be used to provide additional context or instructions to the model. This is similar but distinct from the instruction prompt provided at the start of a conversation, as system messages can be added at any point in the conversation. For major changes to the conversation's behavior, use instructions, but for smaller updates (e.g. "the user is now asking about a different topic"), use system messages. /// @@ -444,6 +449,7 @@ public RealtimeConversationItem(global::tryAGI.OpenAI.Realtime.RealtimeMCPApprov /// /// public RealtimeConversationItem( + global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType? type, global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageSystem? message1, global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageUser? message2, global::tryAGI.OpenAI.Realtime.RealtimeConversationItemMessageAssistant? message3, @@ -455,6 +461,8 @@ public RealtimeConversationItem( global::tryAGI.OpenAI.Realtime.RealtimeMCPApprovalRequest? mcpApprovalRequest ) { + Type = type; + Message1 = message1; Message2 = message2; Message3 = message3; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItemDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItemDiscriminator.g.cs index 110fa1cd..1251f481 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItemDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItemDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeConversationItemDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeConversationItemDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeConversationItemDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeConversationItemDiscriminator( - string? type) + global::tryAGI.OpenAI.Realtime.RealtimeConversationItemDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItemDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItemDiscriminatorType.g.cs new file mode 100644 index 00000000..284ed557 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeConversationItemDiscriminatorType.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace tryAGI.OpenAI.Realtime +{ + /// + /// + /// + public enum RealtimeConversationItemDiscriminatorType + { + /// + /// + /// + FunctionCall, + /// + /// + /// + FunctionCallOutput, + /// + /// + /// + McpApprovalRequest, + /// + /// + /// + McpApprovalResponse, + /// + /// + /// + McpCall, + /// + /// + /// + McpListTools, + /// + /// + /// + Message, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeConversationItemDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeConversationItemDiscriminatorType value) + { + return value switch + { + RealtimeConversationItemDiscriminatorType.FunctionCall => "function_call", + RealtimeConversationItemDiscriminatorType.FunctionCallOutput => "function_call_output", + RealtimeConversationItemDiscriminatorType.McpApprovalRequest => "mcp_approval_request", + RealtimeConversationItemDiscriminatorType.McpApprovalResponse => "mcp_approval_response", + RealtimeConversationItemDiscriminatorType.McpCall => "mcp_call", + RealtimeConversationItemDiscriminatorType.McpListTools => "mcp_list_tools", + RealtimeConversationItemDiscriminatorType.Message => "message", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeConversationItemDiscriminatorType? ToEnum(string value) + { + return value switch + { + "function_call" => RealtimeConversationItemDiscriminatorType.FunctionCall, + "function_call_output" => RealtimeConversationItemDiscriminatorType.FunctionCallOutput, + "mcp_approval_request" => RealtimeConversationItemDiscriminatorType.McpApprovalRequest, + "mcp_approval_response" => RealtimeConversationItemDiscriminatorType.McpApprovalResponse, + "mcp_call" => RealtimeConversationItemDiscriminatorType.McpCall, + "mcp_list_tools" => RealtimeConversationItemDiscriminatorType.McpListTools, + "message" => RealtimeConversationItemDiscriminatorType.Message, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEvent.g.cs index 312165a6..a2b4f3ac 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEvent.g.cs @@ -9,6 +9,11 @@ namespace tryAGI.OpenAI.Realtime /// public readonly partial struct RealtimeServerEvent : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType? Type { get; } + /// /// Returned when a conversation is created. Emitted right after session creation. /// @@ -2309,6 +2314,7 @@ public RealtimeServerEvent(global::tryAGI.OpenAI.Realtime.RealtimeServerEventRes /// /// public RealtimeServerEvent( + global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType? type, global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationCreated? conversationCreated, global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemCreated? conversationItemCreated, global::tryAGI.OpenAI.Realtime.RealtimeServerEventConversationItemDeleted? conversationItemDeleted, @@ -2357,6 +2363,8 @@ public RealtimeServerEvent( global::tryAGI.OpenAI.Realtime.RealtimeServerEventResponseMCPCallFailed? responseMcpCallFailed ) { + Type = type; + ConversationCreated = conversationCreated; ConversationItemCreated = conversationItemCreated; ConversationItemDeleted = conversationItemDeleted; diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEventDiscriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEventDiscriminator.g.cs index 3d45430c..90097cfc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEventDiscriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEventDiscriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeServerEventDiscriminator /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeServerEventDiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeServerEventDiscriminator [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeServerEventDiscriminator( - string? type) + global::tryAGI.OpenAI.Realtime.RealtimeServerEventDiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEventDiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEventDiscriminatorType.g.cs new file mode 100644 index 00000000..0696d30e --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeServerEventDiscriminatorType.g.cs @@ -0,0 +1,315 @@ + +#nullable enable + +namespace tryAGI.OpenAI.Realtime +{ + /// + /// + /// + public enum RealtimeServerEventDiscriminatorType + { + /// + /// + /// + ConversationCreated, + /// + /// + /// + ConversationItemAdded, + /// + /// + /// + ConversationItemCreated, + /// + /// + /// + ConversationItemDeleted, + /// + /// + /// + ConversationItemDone, + /// + /// + /// + ConversationItemInputAudioTranscriptionCompleted, + /// + /// + /// + ConversationItemInputAudioTranscriptionDelta, + /// + /// + /// + ConversationItemInputAudioTranscriptionFailed, + /// + /// + /// + ConversationItemInputAudioTranscriptionSegment, + /// + /// + /// + ConversationItemRetrieved, + /// + /// + /// + ConversationItemTruncated, + /// + /// + /// + Error, + /// + /// + /// + InputAudioBufferCleared, + /// + /// + /// + InputAudioBufferCommitted, + /// + /// + /// + InputAudioBufferDtmfEventReceived, + /// + /// + /// + InputAudioBufferSpeechStarted, + /// + /// + /// + InputAudioBufferSpeechStopped, + /// + /// + /// + InputAudioBufferTimeoutTriggered, + /// + /// + /// + McpListToolsCompleted, + /// + /// + /// + McpListToolsFailed, + /// + /// + /// + McpListToolsInProgress, + /// + /// + /// + OutputAudioBufferCleared, + /// + /// + /// + OutputAudioBufferStarted, + /// + /// + /// + OutputAudioBufferStopped, + /// + /// + /// + RateLimitsUpdated, + /// + /// + /// + ResponseContentPartAdded, + /// + /// + /// + ResponseContentPartDone, + /// + /// + /// + ResponseCreated, + /// + /// + /// + ResponseDone, + /// + /// + /// + ResponseFunctionCallArgumentsDelta, + /// + /// + /// + ResponseFunctionCallArgumentsDone, + /// + /// + /// + ResponseMcpCallCompleted, + /// + /// + /// + ResponseMcpCallFailed, + /// + /// + /// + ResponseMcpCallInProgress, + /// + /// + /// + ResponseMcpCallArgumentsDelta, + /// + /// + /// + ResponseMcpCallArgumentsDone, + /// + /// + /// + ResponseOutputAudioDelta, + /// + /// + /// + ResponseOutputAudioDone, + /// + /// + /// + ResponseOutputAudioTranscriptDelta, + /// + /// + /// + ResponseOutputAudioTranscriptDone, + /// + /// + /// + ResponseOutputItemAdded, + /// + /// + /// + ResponseOutputItemDone, + /// + /// + /// + ResponseOutputTextDelta, + /// + /// + /// + ResponseOutputTextDone, + /// + /// + /// + SessionCreated, + /// + /// + /// + SessionUpdated, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeServerEventDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeServerEventDiscriminatorType value) + { + return value switch + { + RealtimeServerEventDiscriminatorType.ConversationCreated => "conversation.created", + RealtimeServerEventDiscriminatorType.ConversationItemAdded => "conversation.item.added", + RealtimeServerEventDiscriminatorType.ConversationItemCreated => "conversation.item.created", + RealtimeServerEventDiscriminatorType.ConversationItemDeleted => "conversation.item.deleted", + RealtimeServerEventDiscriminatorType.ConversationItemDone => "conversation.item.done", + RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionCompleted => "conversation.item.input_audio_transcription.completed", + RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionDelta => "conversation.item.input_audio_transcription.delta", + RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionFailed => "conversation.item.input_audio_transcription.failed", + RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionSegment => "conversation.item.input_audio_transcription.segment", + RealtimeServerEventDiscriminatorType.ConversationItemRetrieved => "conversation.item.retrieved", + RealtimeServerEventDiscriminatorType.ConversationItemTruncated => "conversation.item.truncated", + RealtimeServerEventDiscriminatorType.Error => "error", + RealtimeServerEventDiscriminatorType.InputAudioBufferCleared => "input_audio_buffer.cleared", + RealtimeServerEventDiscriminatorType.InputAudioBufferCommitted => "input_audio_buffer.committed", + RealtimeServerEventDiscriminatorType.InputAudioBufferDtmfEventReceived => "input_audio_buffer.dtmf_event_received", + RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStarted => "input_audio_buffer.speech_started", + RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStopped => "input_audio_buffer.speech_stopped", + RealtimeServerEventDiscriminatorType.InputAudioBufferTimeoutTriggered => "input_audio_buffer.timeout_triggered", + RealtimeServerEventDiscriminatorType.McpListToolsCompleted => "mcp_list_tools.completed", + RealtimeServerEventDiscriminatorType.McpListToolsFailed => "mcp_list_tools.failed", + RealtimeServerEventDiscriminatorType.McpListToolsInProgress => "mcp_list_tools.in_progress", + RealtimeServerEventDiscriminatorType.OutputAudioBufferCleared => "output_audio_buffer.cleared", + RealtimeServerEventDiscriminatorType.OutputAudioBufferStarted => "output_audio_buffer.started", + RealtimeServerEventDiscriminatorType.OutputAudioBufferStopped => "output_audio_buffer.stopped", + RealtimeServerEventDiscriminatorType.RateLimitsUpdated => "rate_limits.updated", + RealtimeServerEventDiscriminatorType.ResponseContentPartAdded => "response.content_part.added", + RealtimeServerEventDiscriminatorType.ResponseContentPartDone => "response.content_part.done", + RealtimeServerEventDiscriminatorType.ResponseCreated => "response.created", + RealtimeServerEventDiscriminatorType.ResponseDone => "response.done", + RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDelta => "response.function_call_arguments.delta", + RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDone => "response.function_call_arguments.done", + RealtimeServerEventDiscriminatorType.ResponseMcpCallCompleted => "response.mcp_call.completed", + RealtimeServerEventDiscriminatorType.ResponseMcpCallFailed => "response.mcp_call.failed", + RealtimeServerEventDiscriminatorType.ResponseMcpCallInProgress => "response.mcp_call.in_progress", + RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDelta => "response.mcp_call_arguments.delta", + RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDone => "response.mcp_call_arguments.done", + RealtimeServerEventDiscriminatorType.ResponseOutputAudioDelta => "response.output_audio.delta", + RealtimeServerEventDiscriminatorType.ResponseOutputAudioDone => "response.output_audio.done", + RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDelta => "response.output_audio_transcript.delta", + RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDone => "response.output_audio_transcript.done", + RealtimeServerEventDiscriminatorType.ResponseOutputItemAdded => "response.output_item.added", + RealtimeServerEventDiscriminatorType.ResponseOutputItemDone => "response.output_item.done", + RealtimeServerEventDiscriminatorType.ResponseOutputTextDelta => "response.output_text.delta", + RealtimeServerEventDiscriminatorType.ResponseOutputTextDone => "response.output_text.done", + RealtimeServerEventDiscriminatorType.SessionCreated => "session.created", + RealtimeServerEventDiscriminatorType.SessionUpdated => "session.updated", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeServerEventDiscriminatorType? ToEnum(string value) + { + return value switch + { + "conversation.created" => RealtimeServerEventDiscriminatorType.ConversationCreated, + "conversation.item.added" => RealtimeServerEventDiscriminatorType.ConversationItemAdded, + "conversation.item.created" => RealtimeServerEventDiscriminatorType.ConversationItemCreated, + "conversation.item.deleted" => RealtimeServerEventDiscriminatorType.ConversationItemDeleted, + "conversation.item.done" => RealtimeServerEventDiscriminatorType.ConversationItemDone, + "conversation.item.input_audio_transcription.completed" => RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionCompleted, + "conversation.item.input_audio_transcription.delta" => RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionDelta, + "conversation.item.input_audio_transcription.failed" => RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionFailed, + "conversation.item.input_audio_transcription.segment" => RealtimeServerEventDiscriminatorType.ConversationItemInputAudioTranscriptionSegment, + "conversation.item.retrieved" => RealtimeServerEventDiscriminatorType.ConversationItemRetrieved, + "conversation.item.truncated" => RealtimeServerEventDiscriminatorType.ConversationItemTruncated, + "error" => RealtimeServerEventDiscriminatorType.Error, + "input_audio_buffer.cleared" => RealtimeServerEventDiscriminatorType.InputAudioBufferCleared, + "input_audio_buffer.committed" => RealtimeServerEventDiscriminatorType.InputAudioBufferCommitted, + "input_audio_buffer.dtmf_event_received" => RealtimeServerEventDiscriminatorType.InputAudioBufferDtmfEventReceived, + "input_audio_buffer.speech_started" => RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStarted, + "input_audio_buffer.speech_stopped" => RealtimeServerEventDiscriminatorType.InputAudioBufferSpeechStopped, + "input_audio_buffer.timeout_triggered" => RealtimeServerEventDiscriminatorType.InputAudioBufferTimeoutTriggered, + "mcp_list_tools.completed" => RealtimeServerEventDiscriminatorType.McpListToolsCompleted, + "mcp_list_tools.failed" => RealtimeServerEventDiscriminatorType.McpListToolsFailed, + "mcp_list_tools.in_progress" => RealtimeServerEventDiscriminatorType.McpListToolsInProgress, + "output_audio_buffer.cleared" => RealtimeServerEventDiscriminatorType.OutputAudioBufferCleared, + "output_audio_buffer.started" => RealtimeServerEventDiscriminatorType.OutputAudioBufferStarted, + "output_audio_buffer.stopped" => RealtimeServerEventDiscriminatorType.OutputAudioBufferStopped, + "rate_limits.updated" => RealtimeServerEventDiscriminatorType.RateLimitsUpdated, + "response.content_part.added" => RealtimeServerEventDiscriminatorType.ResponseContentPartAdded, + "response.content_part.done" => RealtimeServerEventDiscriminatorType.ResponseContentPartDone, + "response.created" => RealtimeServerEventDiscriminatorType.ResponseCreated, + "response.done" => RealtimeServerEventDiscriminatorType.ResponseDone, + "response.function_call_arguments.delta" => RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDelta, + "response.function_call_arguments.done" => RealtimeServerEventDiscriminatorType.ResponseFunctionCallArgumentsDone, + "response.mcp_call.completed" => RealtimeServerEventDiscriminatorType.ResponseMcpCallCompleted, + "response.mcp_call.failed" => RealtimeServerEventDiscriminatorType.ResponseMcpCallFailed, + "response.mcp_call.in_progress" => RealtimeServerEventDiscriminatorType.ResponseMcpCallInProgress, + "response.mcp_call_arguments.delta" => RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDelta, + "response.mcp_call_arguments.done" => RealtimeServerEventDiscriminatorType.ResponseMcpCallArgumentsDone, + "response.output_audio.delta" => RealtimeServerEventDiscriminatorType.ResponseOutputAudioDelta, + "response.output_audio.done" => RealtimeServerEventDiscriminatorType.ResponseOutputAudioDone, + "response.output_audio_transcript.delta" => RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDelta, + "response.output_audio_transcript.done" => RealtimeServerEventDiscriminatorType.ResponseOutputAudioTranscriptDone, + "response.output_item.added" => RealtimeServerEventDiscriminatorType.ResponseOutputItemAdded, + "response.output_item.done" => RealtimeServerEventDiscriminatorType.ResponseOutputItemDone, + "response.output_text.delta" => RealtimeServerEventDiscriminatorType.ResponseOutputTextDelta, + "response.output_text.done" => RealtimeServerEventDiscriminatorType.ResponseOutputTextDone, + "session.created" => RealtimeServerEventDiscriminatorType.SessionCreated, + "session.updated" => RealtimeServerEventDiscriminatorType.SessionUpdated, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs index 573c4e2f..d5d8f7b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1.g.cs @@ -13,6 +13,11 @@ namespace tryAGI.OpenAI.Realtime /// public readonly partial struct RealtimeTurnDetectionRealtimeTurnDetection1 : global::System.IEquatable { + /// + /// + /// + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type { get; } + /// /// Server-side voice activity detection (VAD) which flips on when user speech is detected and off after a period of silence. /// @@ -112,10 +117,13 @@ public RealtimeTurnDetectionRealtimeTurnDetection1(global::tryAGI.OpenAI.Realtim /// /// public RealtimeTurnDetectionRealtimeTurnDetection1( + global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? type, global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1ServerVad? serverVad, global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1SemanticVad? semanticVad ) { + Type = type; + ServerVad = serverVad; SemanticVad = semanticVad; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator.g.cs index 36273622..60eda86d 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1Discriminator.g.cs @@ -12,7 +12,8 @@ public sealed partial class RealtimeTurnDetectionRealtimeTurnDetection1Discrimin /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.Realtime.JsonConverters.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeJsonConverter))] + public global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -28,7 +29,7 @@ public sealed partial class RealtimeTurnDetectionRealtimeTurnDetection1Discrimin [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeTurnDetectionRealtimeTurnDetection1Discriminator( - string? type) + global::tryAGI.OpenAI.Realtime.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? type) { this.Type = type; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs new file mode 100644 index 00000000..5488fed5 --- /dev/null +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Realtime.Models.RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace tryAGI.OpenAI.Realtime +{ + /// + /// + /// + public enum RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType + { + /// + /// + /// + SemanticVad, + /// + /// + /// + ServerVad, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType value) + { + return value switch + { + RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.SemanticVad => "semantic_vad", + RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.ServerVad => "server_vad", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType? ToEnum(string value) + { + return value switch + { + "semantic_vad" => RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.SemanticVad, + "server_vad" => RealtimeTurnDetectionRealtimeTurnDetection1DiscriminatorType.ServerVad, + _ => null, + }; + } + } +} \ No newline at end of file