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 2f93fdda..6f25b14d 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 @@ -41,7 +41,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? value1 = default; + global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? @enum = default; global::tryAGI.OpenAI.ResponseFormatText? text = default; global::tryAGI.OpenAI.ResponseFormatJsonObject? jsonObject = default; global::tryAGI.OpenAI.ResponseFormatJsonSchema? jsonSchema = default; @@ -53,7 +53,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,13 +109,13 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex } } - if (value1 == null && text == null && jsonObject == null && jsonSchema == null) + if (@enum == null && text == null && jsonObject == null && jsonSchema == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -165,7 +165,7 @@ public class AssistantsApiResponseFormatOptionJsonConverter : global::System.Tex } var __value = new global::tryAGI.OpenAI.AssistantsApiResponseFormatOption( - value1, + @enum, text, @@ -186,11 +186,11 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsEnum) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } else if (value.IsText) { 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 c32a0670..18fd6235 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 @@ -35,8 +35,8 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? value1 = default; - global::tryAGI.OpenAI.AssistantsNamedToolChoice? value2 = default; + global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? @enum = default; + global::tryAGI.OpenAI.AssistantsNamedToolChoice? named = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -45,7 +45,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +60,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,13 +71,13 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js } } - if (value1 == null && value2 == null) + if (@enum == null && named == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -90,7 +90,7 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -101,9 +101,9 @@ public class AssistantsApiToolChoiceOptionJsonConverter : global::System.Text.Js } var __value = new global::tryAGI.OpenAI.AssistantsApiToolChoiceOption( - value1, + @enum, - value2 + named ); return __value; @@ -118,17 +118,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsEnum) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsNamed) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Named!, typeInfo); } } } 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 e6115c27..d76a7dd0 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 @@ -43,7 +43,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.ComputerToolCallOutput? computerToolCallOutput = default; - global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? value2 = default; + global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? computerToolCallOutputResourceVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -67,7 +67,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,7 +78,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J } } - if (computerToolCallOutput == null && value2 == null) + if (computerToolCallOutput == null && computerToolCallOutputResourceVariant2 == null) { try { @@ -97,7 +97,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + computerToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +110,7 @@ public class ComputerToolCallOutputResourceJsonConverter : global::System.Text.J var __value = new global::tryAGI.OpenAI.ComputerToolCallOutputResource( computerToolCallOutput, - value2 + computerToolCallOutputResourceVariant2 ); return __value; @@ -131,11 +131,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComputerToolCallOutput).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutput!, typeInfo); } - else if (value.IsValue2) + else if (value.IsComputerToolCallOutputResourceVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerToolCallOutputResourceVariant2!, 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 b0282a55..9248c800 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 @@ -60,8 +60,8 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::tryAGI.OpenAI.CreateModelResponseProperties? value1 = default; - global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? value2 = default; + global::tryAGI.OpenAI.CreateModelResponseProperties? modelResponseProperties = default; + global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? createChatCompletionRequestVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -70,7 +70,7 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +85,7 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -96,13 +96,13 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json } } - if (value1 == null && value2 == null) + if (modelResponseProperties == null && createChatCompletionRequestVariant2 == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -115,7 +115,7 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createChatCompletionRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -126,9 +126,9 @@ public class CreateChatCompletionRequestJsonConverter : global::System.Text.Json } var __value = new global::tryAGI.OpenAI.CreateChatCompletionRequest( - value1, + modelResponseProperties, - value2 + createChatCompletionRequestVariant2 ); return __value; @@ -143,17 +143,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsModelResponseProperties) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsCreateChatCompletionRequestVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateChatCompletionRequestVariant2!, 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 747292b6..a6cc9224 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 @@ -43,8 +43,8 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::tryAGI.OpenAI.ModelResponseProperties? value1 = default; - global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? value2 = default; + global::tryAGI.OpenAI.ModelResponseProperties? modelResponseProperties = default; + global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? createModelResponsePropertiesVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -53,7 +53,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -68,7 +68,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -79,13 +79,13 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js } } - if (value1 == null && value2 == null) + if (modelResponseProperties == null && createModelResponsePropertiesVariant2 == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelResponseProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,7 +98,7 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createModelResponsePropertiesVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,9 +109,9 @@ public class CreateModelResponsePropertiesJsonConverter : global::System.Text.Js } var __value = new global::tryAGI.OpenAI.CreateModelResponseProperties( - value1, + modelResponseProperties, - value2 + createModelResponsePropertiesVariant2 ); return __value; @@ -126,17 +126,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsModelResponseProperties) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelResponseProperties!, typeInfo); } - else if (value.IsValue2) + else if (value.IsCreateModelResponsePropertiesVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateModelResponsePropertiesVariant2!, 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 50cb4424..7f02d5d3 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 @@ -55,9 +55,9 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::tryAGI.OpenAI.CreateModelResponseProperties? value1 = default; - global::tryAGI.OpenAI.ResponseProperties? value2 = default; - global::tryAGI.OpenAI.CreateResponseVariant3? value3 = default; + global::tryAGI.OpenAI.CreateModelResponseProperties? modelProperties = default; + global::tryAGI.OpenAI.ResponseProperties? properties = default; + global::tryAGI.OpenAI.CreateResponseVariant3? createResponseVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -66,7 +66,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -81,7 +81,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -96,7 +96,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,13 +107,13 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio } } - if (value1 == null && value2 == null && value3 == null) + if (modelProperties == null && properties == null && createResponseVariant3 == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -126,7 +126,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -139,7 +139,7 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -150,11 +150,11 @@ public class CreateResponseJsonConverter : global::System.Text.Json.Serializatio } var __value = new global::tryAGI.OpenAI.CreateResponse( - value1, + modelProperties, - value2, + properties, - value3 + createResponseVariant3 ); return __value; @@ -169,23 +169,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsModelProperties) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsProperties) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties!, typeInfo); } - else if (value.IsValue3) + else if (value.IsCreateResponseVariant3) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponseVariant3!, typeInfo); } } } 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 f667d355..17bb774a 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 @@ -41,7 +41,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.CustomToolCallOutput? customToolCallOutput = default; - global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? value2 = default; + global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? customToolCallOutputResourceVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -65,7 +65,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -76,7 +76,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso } } - if (customToolCallOutput == null && value2 == null) + if (customToolCallOutput == null && customToolCallOutputResourceVariant2 == null) { try { @@ -95,7 +95,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,7 +108,7 @@ public class CustomToolCallOutputResourceJsonConverter : global::System.Text.Jso var __value = new global::tryAGI.OpenAI.CustomToolCallOutputResource( customToolCallOutput, - value2 + customToolCallOutputResourceVariant2 ); return __value; @@ -129,11 +129,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCallOutput).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutput!, typeInfo); } - else if (value.IsValue2) + else if (value.IsCustomToolCallOutputResourceVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallOutputResourceVariant2!, 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 43c7729c..489412fc 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 @@ -43,7 +43,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.CustomToolCall? customToolCall = default; - global::tryAGI.OpenAI.CustomToolCallResourceVariant2? value2 = default; + global::tryAGI.OpenAI.CustomToolCallResourceVariant2? customToolCallResourceVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -67,7 +67,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,7 +78,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri } } - if (customToolCall == null && value2 == null) + if (customToolCall == null && customToolCallResourceVariant2 == null) { try { @@ -97,7 +97,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +110,7 @@ public class CustomToolCallResourceJsonConverter : global::System.Text.Json.Seri var __value = new global::tryAGI.OpenAI.CustomToolCallResource( customToolCall, - value2 + customToolCallResourceVariant2 ); return __value; @@ -131,11 +131,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.CustomToolCall).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCall!, typeInfo); } - else if (value.IsValue2) + else if (value.IsCustomToolCallResourceVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomToolCallResourceVariant2!, 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 60a03469..fc6ef2c5 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 @@ -39,7 +39,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.GraderPython? pythonGrader = default; - global::tryAGI.OpenAI.EvalGraderPythonVariant2? value2 = default; + global::tryAGI.OpenAI.EvalGraderPythonVariant2? evalGraderPythonVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -63,7 +63,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,7 +74,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat } } - if (pythonGrader == null && value2 == null) + if (pythonGrader == null && evalGraderPythonVariant2 == null) { try { @@ -93,7 +93,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderPythonVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -106,7 +106,7 @@ public class EvalGraderPythonJsonConverter : global::System.Text.Json.Serializat var __value = new global::tryAGI.OpenAI.EvalGraderPython( pythonGrader, - value2 + evalGraderPythonVariant2 ); return __value; @@ -127,11 +127,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderPython).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PythonGrader!, typeInfo); } - else if (value.IsValue2) + else if (value.IsEvalGraderPythonVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderPythonVariant2!, 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 8804dade..eb1f7c21 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 @@ -41,7 +41,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.GraderScoreModel? scoreModelGrader = default; - global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? value2 = default; + global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? evalGraderScoreModelVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -65,7 +65,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -76,7 +76,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial } } - if (scoreModelGrader == null && value2 == null) + if (scoreModelGrader == null && evalGraderScoreModelVariant2 == null) { try { @@ -95,7 +95,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderScoreModelVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,7 +108,7 @@ public class EvalGraderScoreModelJsonConverter : global::System.Text.Json.Serial var __value = new global::tryAGI.OpenAI.EvalGraderScoreModel( scoreModelGrader, - value2 + evalGraderScoreModelVariant2 ); return __value; @@ -129,11 +129,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderScoreModel).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ScoreModelGrader!, typeInfo); } - else if (value.IsValue2) + else if (value.IsEvalGraderScoreModelVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderScoreModelVariant2!, 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 3638a6fb..32e16153 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 @@ -40,7 +40,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.GraderTextSimilarity? textSimilarityGrader = default; - global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? value2 = default; + global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? evalGraderTextSimilarityVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -64,7 +64,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +75,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se } } - if (textSimilarityGrader == null && value2 == null) + if (textSimilarityGrader == null && evalGraderTextSimilarityVariant2 == null) { try { @@ -94,7 +94,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evalGraderTextSimilarityVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,7 +107,7 @@ public class EvalGraderTextSimilarityJsonConverter : global::System.Text.Json.Se var __value = new global::tryAGI.OpenAI.EvalGraderTextSimilarity( textSimilarityGrader, - value2 + evalGraderTextSimilarityVariant2 ); return __value; @@ -128,11 +128,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.GraderTextSimilarity).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextSimilarityGrader!, typeInfo); } - else if (value.IsValue2) + else if (value.IsEvalGraderTextSimilarityVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvalGraderTextSimilarityVariant2!, 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 17479741..0fbc5bd3 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 @@ -37,7 +37,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.ComparisonFilter? comparisonFilter = default; - object? value2 = default; + object? compoundFilterVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -61,7 +61,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +72,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J } } - if (comparisonFilter == null && value2 == null) + if (comparisonFilter == null && compoundFilterVariant2 == null) { try { @@ -91,7 +91,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + compoundFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,7 +104,7 @@ public class FiltersItemJsonConverter : global::System.Text.Json.Serialization.J var __value = new global::tryAGI.OpenAI.FiltersItem( comparisonFilter, - value2 + compoundFilterVariant2 ); return __value; @@ -125,11 +125,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ComparisonFilter).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComparisonFilter!, typeInfo); } - else if (value.IsValue2) + else if (value.IsCompoundFilterVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CompoundFilterVariant2!, typeInfo); } } } 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 05d58321..e9e03f5f 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 @@ -42,7 +42,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.FunctionToolCallOutput? functionToolCallOutput = default; - global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? value2 = default; + global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? functionToolCallOutputResourceVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -66,7 +66,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +77,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J } } - if (functionToolCallOutput == null && value2 == null) + if (functionToolCallOutput == null && functionToolCallOutputResourceVariant2 == null) { try { @@ -96,7 +96,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallOutputResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,7 +109,7 @@ public class FunctionToolCallOutputResourceJsonConverter : global::System.Text.J var __value = new global::tryAGI.OpenAI.FunctionToolCallOutputResource( functionToolCallOutput, - value2 + functionToolCallOutputResourceVariant2 ); return __value; @@ -130,11 +130,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCallOutput).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutput!, typeInfo); } - else if (value.IsValue2) + else if (value.IsFunctionToolCallOutputResourceVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallOutputResourceVariant2!, 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 3abb5b54..4a06d7af 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 @@ -44,7 +44,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.FunctionToolCall? functionToolCall = default; - global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? value2 = default; + global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? functionToolCallResourceVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -68,7 +68,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -79,7 +79,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se } } - if (functionToolCall == null && value2 == null) + if (functionToolCall == null && functionToolCallResourceVariant2 == null) { try { @@ -98,7 +98,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionToolCallResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -111,7 +111,7 @@ public class FunctionToolCallResourceJsonConverter : global::System.Text.Json.Se var __value = new global::tryAGI.OpenAI.FunctionToolCallResource( functionToolCall, - value2 + functionToolCallResourceVariant2 ); return __value; @@ -132,11 +132,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.FunctionToolCall).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCall!, typeInfo); } - else if (value.IsValue2) + else if (value.IsFunctionToolCallResourceVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionToolCallResourceVariant2!, typeInfo); } } } 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 e9eef35f..d161ba9c 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 @@ -39,7 +39,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } global::tryAGI.OpenAI.InputMessage? inputMessage = default; - global::tryAGI.OpenAI.InputMessageResourceVariant2? value2 = default; + global::tryAGI.OpenAI.InputMessageResourceVariant2? inputMessageResourceVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -63,7 +63,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,7 +74,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial } } - if (inputMessage == null && value2 == null) + if (inputMessage == null && inputMessageResourceVariant2 == null) { try { @@ -93,7 +93,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + inputMessageResourceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -106,7 +106,7 @@ public class InputMessageResourceJsonConverter : global::System.Text.Json.Serial var __value = new global::tryAGI.OpenAI.InputMessageResource( inputMessage, - value2 + inputMessageResourceVariant2 ); return __value; @@ -127,11 +127,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.InputMessage).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessage!, typeInfo); } - else if (value.IsValue2) + else if (value.IsInputMessageResourceVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.InputMessageResourceVariant2!, typeInfo); } } } 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 0ff25dd5..f6266cd7 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 @@ -49,11 +49,11 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - global::tryAGI.OpenAI.MessageStreamEventVariant1? value1 = default; - global::tryAGI.OpenAI.MessageStreamEventVariant2? value2 = default; - global::tryAGI.OpenAI.MessageStreamEventVariant3? value3 = default; - global::tryAGI.OpenAI.MessageStreamEventVariant4? value4 = default; - global::tryAGI.OpenAI.MessageStreamEventVariant5? value5 = default; + global::tryAGI.OpenAI.MessageStreamEventVariant1? messageStreamEventVariant1 = default; + global::tryAGI.OpenAI.MessageStreamEventVariant2? messageStreamEventVariant2 = default; + global::tryAGI.OpenAI.MessageStreamEventVariant3? messageStreamEventVariant3 = default; + global::tryAGI.OpenAI.MessageStreamEventVariant4? messageStreamEventVariant4 = default; + global::tryAGI.OpenAI.MessageStreamEventVariant5? messageStreamEventVariant5 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -62,7 +62,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,7 +77,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,7 +107,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -122,7 +122,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -133,13 +133,13 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + if (messageStreamEventVariant1 == null && messageStreamEventVariant2 == null && messageStreamEventVariant3 == null && messageStreamEventVariant4 == null && messageStreamEventVariant5 == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -152,7 +152,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -165,7 +165,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -178,7 +178,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -191,7 +191,7 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + messageStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -202,15 +202,15 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ } var __value = new global::tryAGI.OpenAI.MessageStreamEvent( - value1, + messageStreamEventVariant1, - value2, + messageStreamEventVariant2, - value3, + messageStreamEventVariant3, - value4, + messageStreamEventVariant4, - value5 + messageStreamEventVariant5 ); return __value; @@ -225,35 +225,35 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsMessageStreamEventVariant1) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsMessageStreamEventVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant2!, typeInfo); } - else if (value.IsValue3) + else if (value.IsMessageStreamEventVariant3) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant3!, typeInfo); } - else if (value.IsValue4) + else if (value.IsMessageStreamEventVariant4) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant4!, typeInfo); } - else if (value.IsValue5) + else if (value.IsMessageStreamEventVariant5) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MessageStreamEventVariant5!, typeInfo); } } } 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 40537bdd..1f401254 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 @@ -66,9 +66,9 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::tryAGI.OpenAI.ModelIdsResponses? value1 = default; - string? value2 = default; - object? value3 = default; + global::tryAGI.OpenAI.ModelIdsResponses? responses = default; + string? modelIdsCompactionVariant2 = default; + object? modelIdsCompactionVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -78,7 +78,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +95,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -112,7 +112,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -123,14 +123,14 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ } } - if (value1 == null && value2 == null && value3 == null) + if (responses == null && modelIdsCompactionVariant2 == null && modelIdsCompactionVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responses = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -144,7 +144,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsCompactionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -158,7 +158,7 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsCompactionVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -169,11 +169,11 @@ public class ModelIdsCompactionJsonConverter : global::System.Text.Json.Serializ } var __value = new global::tryAGI.OpenAI.ModelIdsCompaction( - value1, + responses, - value2, + modelIdsCompactionVariant2, - value3 + modelIdsCompactionVariant3 ); return __value; @@ -188,23 +188,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsResponses) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsResponses), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsResponses).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Responses!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsModelIdsCompactionVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsCompactionVariant2!, typeInfo); } - else if (value.IsValue3) + else if (value.IsModelIdsCompactionVariant3) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsCompactionVariant3!, typeInfo); } } } 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 53f970e8..29c77427 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 @@ -54,7 +54,7 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::tryAGI.OpenAI.ModelIdsShared? value1 = default; + global::tryAGI.OpenAI.ModelIdsShared? shared = default; global::tryAGI.OpenAI.ModelIdsResponsesEnum? responsesOnlyModel = default; if (__bestIndex >= 0) { @@ -65,7 +65,7 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,14 +93,14 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null && responsesOnlyModel == null) + if (shared == null && responsesOnlyModel == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -125,7 +125,7 @@ public class ModelIdsResponsesJsonConverter : global::System.Text.Json.Serializa } var __value = new global::tryAGI.OpenAI.ModelIdsResponses( - value1, + shared, responsesOnlyModel ); @@ -142,11 +142,11 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsShared) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsShared), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsShared).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); } else if (value.IsResponsesOnlyModel) { 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 342bd3e1..2e30b412 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 @@ -54,8 +54,8 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - string? value1 = default; - global::tryAGI.OpenAI.ModelIdsSharedEnum? value2 = default; + string? modelIdsSharedVariant1 = default; + global::tryAGI.OpenAI.ModelIdsSharedEnum? @enum = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -65,7 +65,7 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +82,7 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,14 +93,14 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio } } - if (value1 == null && value2 == null) + if (modelIdsSharedVariant1 == null && @enum == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +114,7 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -125,9 +125,9 @@ public class ModelIdsSharedJsonConverter : global::System.Text.Json.Serializatio } var __value = new global::tryAGI.OpenAI.ModelIdsShared( - value1, + modelIdsSharedVariant1, - value2 + @enum ); return __value; @@ -142,17 +142,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsModelIdsSharedVariant1) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelIdsSharedVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } } } 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 dc9fc8f4..355034f2 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 @@ -36,7 +36,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::tryAGI.OpenAI.RealtimeTruncationEnum? value1 = default; + global::tryAGI.OpenAI.RealtimeTruncationEnum? @enum = default; global::tryAGI.OpenAI.RealtimeTruncationEnum2? retentionRatioTruncation = default; if (__bestIndex >= 0) { @@ -46,7 +46,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,13 +72,13 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ } } - if (value1 == null && retentionRatioTruncation == null) + if (@enum == null && retentionRatioTruncation == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,7 +102,7 @@ public class RealtimeTruncationJsonConverter : global::System.Text.Json.Serializ } var __value = new global::tryAGI.OpenAI.RealtimeTruncation( - value1, + @enum, retentionRatioTruncation ); @@ -119,11 +119,11 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsEnum) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } else if (value.IsRetentionRatioTruncation) { 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 ec19cdbf..99e77bbf 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 @@ -68,9 +68,9 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::tryAGI.OpenAI.ModelResponseProperties? value1 = default; - global::tryAGI.OpenAI.ResponseProperties? value2 = default; - global::tryAGI.OpenAI.ResponseVariant3? value3 = default; + global::tryAGI.OpenAI.ModelResponseProperties? modelProperties = default; + global::tryAGI.OpenAI.ResponseProperties? properties = default; + global::tryAGI.OpenAI.ResponseVariant3? responseVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -79,7 +79,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -94,7 +94,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,7 +109,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -120,13 +120,13 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json } } - if (value1 == null && value2 == null && value3 == null) + if (modelProperties == null && properties == null && responseVariant3 == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + modelProperties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -139,7 +139,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + properties = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -152,7 +152,7 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -163,11 +163,11 @@ public class ResponseJsonConverter : global::System.Text.Json.Serialization.Json } var __value = new global::tryAGI.OpenAI.Response( - value1, + modelProperties, - value2, + properties, - value3 + responseVariant3 ); return __value; @@ -182,23 +182,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsModelProperties) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelProperties!, typeInfo); } - else if (value.IsValue2) + else if (value.IsProperties) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Properties!, typeInfo); } - else if (value.IsValue3) + else if (value.IsResponseVariant3) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponseVariant3!, typeInfo); } } } 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 d44ba899..d7c5c4db 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 @@ -34,8 +34,8 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? value1 = default; - global::tryAGI.OpenAI.CreateResponse? value2 = default; + global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? responsesClientEventResponseCreateVariant1 = default; + global::tryAGI.OpenAI.CreateResponse? createResponse = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -44,7 +44,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -59,7 +59,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -70,13 +70,13 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te } } - if (value1 == null && value2 == null) + if (responsesClientEventResponseCreateVariant1 == null && createResponse == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + responsesClientEventResponseCreateVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +89,7 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createResponse = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +100,9 @@ public class ResponsesClientEventResponseCreateJsonConverter : global::System.Te } var __value = new global::tryAGI.OpenAI.ResponsesClientEventResponseCreate( - value1, + responsesClientEventResponseCreateVariant1, - value2 + createResponse ); return __value; @@ -117,17 +117,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsResponsesClientEventResponseCreateVariant1) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesClientEventResponseCreateVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsCreateResponse) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateResponse!.Value, typeInfo); } } } 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 f298aa8e..a3e74fb4 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 @@ -57,13 +57,13 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } - global::tryAGI.OpenAI.RunStepStreamEventVariant1? value1 = default; - global::tryAGI.OpenAI.RunStepStreamEventVariant2? value2 = default; - global::tryAGI.OpenAI.RunStepStreamEventVariant3? value3 = default; - global::tryAGI.OpenAI.RunStepStreamEventVariant4? value4 = default; - global::tryAGI.OpenAI.RunStepStreamEventVariant5? value5 = default; - global::tryAGI.OpenAI.RunStepStreamEventVariant6? value6 = default; - global::tryAGI.OpenAI.RunStepStreamEventVariant7? value7 = default; + global::tryAGI.OpenAI.RunStepStreamEventVariant1? runStepStreamEventVariant1 = default; + global::tryAGI.OpenAI.RunStepStreamEventVariant2? runStepStreamEventVariant2 = default; + global::tryAGI.OpenAI.RunStepStreamEventVariant3? runStepStreamEventVariant3 = default; + global::tryAGI.OpenAI.RunStepStreamEventVariant4? runStepStreamEventVariant4 = default; + global::tryAGI.OpenAI.RunStepStreamEventVariant5? runStepStreamEventVariant5 = default; + global::tryAGI.OpenAI.RunStepStreamEventVariant6? runStepStreamEventVariant6 = default; + global::tryAGI.OpenAI.RunStepStreamEventVariant7? runStepStreamEventVariant7 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -72,7 +72,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -87,7 +87,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,7 +102,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -117,7 +117,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -132,7 +132,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -147,7 +147,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -162,7 +162,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -173,13 +173,13 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) + if (runStepStreamEventVariant1 == null && runStepStreamEventVariant2 == null && runStepStreamEventVariant3 == null && runStepStreamEventVariant4 == null && runStepStreamEventVariant5 == null && runStepStreamEventVariant6 == null && runStepStreamEventVariant7 == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -192,7 +192,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -205,7 +205,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -218,7 +218,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -231,7 +231,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -244,7 +244,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -257,7 +257,7 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ { 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}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStepStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -268,19 +268,19 @@ public class RunStepStreamEventJsonConverter : global::System.Text.Json.Serializ } var __value = new global::tryAGI.OpenAI.RunStepStreamEvent( - value1, + runStepStreamEventVariant1, - value2, + runStepStreamEventVariant2, - value3, + runStepStreamEventVariant3, - value4, + runStepStreamEventVariant4, - value5, + runStepStreamEventVariant5, - value6, + runStepStreamEventVariant6, - value7 + runStepStreamEventVariant7 ); return __value; @@ -295,47 +295,47 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsRunStepStreamEventVariant1) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsRunStepStreamEventVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant2!, typeInfo); } - else if (value.IsValue3) + else if (value.IsRunStepStreamEventVariant3) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant3!, typeInfo); } - else if (value.IsValue4) + else if (value.IsRunStepStreamEventVariant4) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant4!, typeInfo); } - else if (value.IsValue5) + else if (value.IsRunStepStreamEventVariant5) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant5!, typeInfo); } - else if (value.IsValue6) + else if (value.IsRunStepStreamEventVariant6) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant6!, typeInfo); } - else if (value.IsValue7) + else if (value.IsRunStepStreamEventVariant7) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStepStreamEventVariant7!, 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 3fd333f9..b809d934 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 @@ -69,16 +69,16 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } if (__score9 > __bestScore) { __bestScore = __score9; __bestIndex = 9; } - global::tryAGI.OpenAI.RunStreamEventVariant1? value1 = default; - global::tryAGI.OpenAI.RunStreamEventVariant2? value2 = default; - global::tryAGI.OpenAI.RunStreamEventVariant3? value3 = default; - global::tryAGI.OpenAI.RunStreamEventVariant4? value4 = default; - global::tryAGI.OpenAI.RunStreamEventVariant5? value5 = default; - global::tryAGI.OpenAI.RunStreamEventVariant6? value6 = default; - global::tryAGI.OpenAI.RunStreamEventVariant7? value7 = default; - global::tryAGI.OpenAI.RunStreamEventVariant8? value8 = default; - global::tryAGI.OpenAI.RunStreamEventVariant9? value9 = default; - global::tryAGI.OpenAI.RunStreamEventVariant10? value10 = default; + global::tryAGI.OpenAI.RunStreamEventVariant1? runStreamEventVariant1 = default; + global::tryAGI.OpenAI.RunStreamEventVariant2? runStreamEventVariant2 = default; + global::tryAGI.OpenAI.RunStreamEventVariant3? runStreamEventVariant3 = default; + global::tryAGI.OpenAI.RunStreamEventVariant4? runStreamEventVariant4 = default; + global::tryAGI.OpenAI.RunStreamEventVariant5? runStreamEventVariant5 = default; + global::tryAGI.OpenAI.RunStreamEventVariant6? runStreamEventVariant6 = default; + global::tryAGI.OpenAI.RunStreamEventVariant7? runStreamEventVariant7 = default; + global::tryAGI.OpenAI.RunStreamEventVariant8? runStreamEventVariant8 = default; + global::tryAGI.OpenAI.RunStreamEventVariant9? runStreamEventVariant9 = default; + global::tryAGI.OpenAI.RunStreamEventVariant10? runStreamEventVariant10 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -87,7 +87,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,7 +102,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -117,7 +117,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -132,7 +132,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -147,7 +147,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -162,7 +162,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -177,7 +177,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -192,7 +192,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -207,7 +207,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -222,7 +222,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -233,13 +233,13 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null && value10 == null) + 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.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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -252,7 +252,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -265,7 +265,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -278,7 +278,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -291,7 +291,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -304,7 +304,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -317,7 +317,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -330,7 +330,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -343,7 +343,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -356,7 +356,7 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio { 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}"); - value10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + runStreamEventVariant10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -367,25 +367,25 @@ public class RunStreamEventJsonConverter : global::System.Text.Json.Serializatio } var __value = new global::tryAGI.OpenAI.RunStreamEvent( - value1, + runStreamEventVariant1, - value2, + runStreamEventVariant2, - value3, + runStreamEventVariant3, - value4, + runStreamEventVariant4, - value5, + runStreamEventVariant5, - value6, + runStreamEventVariant6, - value7, + runStreamEventVariant7, - value8, + runStreamEventVariant8, - value9, + runStreamEventVariant9, - value10 + runStreamEventVariant10 ); return __value; @@ -400,65 +400,65 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsRunStreamEventVariant1) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsRunStreamEventVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant2!, typeInfo); } - else if (value.IsValue3) + else if (value.IsRunStreamEventVariant3) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant3!, typeInfo); } - else if (value.IsValue4) + else if (value.IsRunStreamEventVariant4) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant4!, typeInfo); } - else if (value.IsValue5) + else if (value.IsRunStreamEventVariant5) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant5!, typeInfo); } - else if (value.IsValue6) + else if (value.IsRunStreamEventVariant6) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant6!, typeInfo); } - else if (value.IsValue7) + else if (value.IsRunStreamEventVariant7) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant7!, typeInfo); } - else if (value.IsValue8) + else if (value.IsRunStreamEventVariant8) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant8!, typeInfo); } - else if (value.IsValue9) + else if (value.IsRunStreamEventVariant9) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant9!, typeInfo); } - else if (value.IsValue10) + else if (value.IsRunStreamEventVariant10) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RunStreamEventVariant10!, typeInfo); } } } 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 3fd588ff..2332d73b 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 @@ -54,8 +54,8 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - string? value1 = default; - global::System.Collections.Generic.IList? value2 = default; + string? stopConfigurationVariant1 = default; + global::System.Collections.Generic.IList? stopConfigurationVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -65,7 +65,7 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +82,7 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,14 +93,14 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null && value2 == null) + if (stopConfigurationVariant1 == null && stopConfigurationVariant2 == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stopConfigurationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +114,7 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stopConfigurationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -125,9 +125,9 @@ public class StopConfigurationJsonConverter : global::System.Text.Json.Serializa } var __value = new global::tryAGI.OpenAI.StopConfiguration( - value1, + stopConfigurationVariant1, - value2 + stopConfigurationVariant2 ); return __value; @@ -142,17 +142,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsStopConfigurationVariant1) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StopConfigurationVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsStopConfigurationVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StopConfigurationVariant2!, typeInfo); } } } 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 b240a22b..be6a5645 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 @@ -34,7 +34,7 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - global::tryAGI.OpenAI.ThreadStreamEventVariant1? value1 = default; + global::tryAGI.OpenAI.ThreadStreamEventVariant1? threadStreamEventVariant1 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -43,7 +43,7 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -54,13 +54,13 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null) + if (threadStreamEventVariant1 == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + threadStreamEventVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,7 +71,7 @@ public class ThreadStreamEventJsonConverter : global::System.Text.Json.Serializa } var __value = new global::tryAGI.OpenAI.ThreadStreamEvent( - value1 + threadStreamEventVariant1 ); return __value; @@ -86,11 +86,11 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsThreadStreamEventVariant1) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThreadStreamEventVariant1!, typeInfo); } } } 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 dbed5a89..1b236842 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 @@ -37,8 +37,8 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? value1 = default; - global::tryAGI.OpenAI.VadConfig? value2 = default; + global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? @enum = default; + global::tryAGI.OpenAI.VadConfig? vadConfig = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js } } - if (value1 == null && value2 == null) + if (@enum == null && vadConfig == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + vadConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class TranscriptionChunkingStrategyJsonConverter : global::System.Text.Js } var __value = new global::tryAGI.OpenAI.TranscriptionChunkingStrategy( - value1, + @enum, - value2 + vadConfig ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsEnum) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsVadConfig) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VadConfig!, typeInfo); } } } 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 ad4b5c2e..27aac2ee 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 @@ -54,8 +54,8 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - string? value1 = default; - global::tryAGI.OpenAI.VideoModelEnum? value2 = default; + string? videoModelVariant1 = default; + global::tryAGI.OpenAI.VideoModelEnum? @enum = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -65,7 +65,7 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +82,7 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VideoModelEnum).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,14 +93,14 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js } } - if (value1 == null && value2 == null) + if (videoModelVariant1 == null && @enum == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + videoModelVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +114,7 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VideoModelEnum).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -125,9 +125,9 @@ public class VideoModelJsonConverter : global::System.Text.Json.Serialization.Js } var __value = new global::tryAGI.OpenAI.VideoModel( - value1, + videoModelVariant1, - value2 + @enum ); return __value; @@ -142,17 +142,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsVideoModelVariant1) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoModelVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VideoModelEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VideoModelEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } } } 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 9a529f34..8ee9de8b 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 @@ -34,8 +34,8 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::tryAGI.OpenAI.VoiceIdsShared? value1 = default; - global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? value2 = default; + global::tryAGI.OpenAI.VoiceIdsShared? shared = default; + global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? voiceIdsOrCustomVoiceVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -44,7 +44,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -59,7 +59,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -70,13 +70,13 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria } } - if (value1 == null && value2 == null) + if (shared == null && voiceIdsOrCustomVoiceVariant2 == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + shared = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +89,7 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria { 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}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + voiceIdsOrCustomVoiceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +100,9 @@ public class VoiceIdsOrCustomVoiceJsonConverter : global::System.Text.Json.Seria } var __value = new global::tryAGI.OpenAI.VoiceIdsOrCustomVoice( - value1, + shared, - value2 + voiceIdsOrCustomVoiceVariant2 ); return __value; @@ -117,17 +117,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsShared) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Shared!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsVoiceIdsOrCustomVoiceVariant2) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsOrCustomVoiceVariant2!, 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 0b61ba08..387edda7 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 @@ -54,8 +54,8 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - string? value1 = default; - global::tryAGI.OpenAI.VoiceIdsSharedEnum? value2 = default; + string? voiceIdsSharedVariant1 = default; + global::tryAGI.OpenAI.VoiceIdsSharedEnum? @enum = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -65,7 +65,7 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +82,7 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,14 +93,14 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio } } - if (value1 == null && value2 == null) + if (voiceIdsSharedVariant1 == null && @enum == null) { 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}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + voiceIdsSharedVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +114,7 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -125,9 +125,9 @@ public class VoiceIdsSharedJsonConverter : global::System.Text.Json.Serializatio } var __value = new global::tryAGI.OpenAI.VoiceIdsShared( - value1, + voiceIdsSharedVariant1, - value2 + @enum ); return __value; @@ -142,17 +142,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsVoiceIdsSharedVariant1) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VoiceIdsSharedVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsEnum) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Enum!.Value, typeInfo); } } } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs index 00a31aa1..9f8a1e67 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiResponseFormatOption.g.cs @@ -16,18 +16,18 @@ namespace tryAGI.OpenAI /// `auto` is the default value /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? Value1 { get; init; } + public global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? Enum { get; init; } #else - public global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? Value1 { get; } + public global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? Enum { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] #endif - public bool IsValue1 => Value1 != null; + public bool IsEnum => Enum != null; /// /// Default response format. Used to generate text responses. @@ -91,14 +91,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum?(AssistantsApiResponseFormatOption @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum?(AssistantsApiResponseFormatOption @this) => @this.Enum; /// /// /// public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? value) { - Value1 = value; + Enum = value; } /// @@ -159,13 +159,13 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.ResponseFormatJso /// /// public AssistantsApiResponseFormatOption( - global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? value1, + global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? @enum, global::tryAGI.OpenAI.ResponseFormatText? text, global::tryAGI.OpenAI.ResponseFormatJsonObject? jsonObject, global::tryAGI.OpenAI.ResponseFormatJsonSchema? jsonSchema ) { - Value1 = value1; + Enum = @enum; Text = text; JsonObject = jsonObject; JsonSchema = jsonSchema; @@ -178,14 +178,14 @@ public AssistantsApiResponseFormatOption( JsonSchema as object ?? JsonObject as object ?? Text as object ?? - Value1 as object + Enum as object ; /// /// /// public override string? ToString() => - Value1?.ToValueString() ?? + Enum?.ToValueString() ?? Text?.ToString() ?? JsonObject?.ToString() ?? JsonSchema?.ToString() @@ -196,14 +196,14 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsText && !IsJsonObject && !IsJsonSchema || !IsValue1 && IsText && !IsJsonObject && !IsJsonSchema || !IsValue1 && !IsText && IsJsonObject && !IsJsonSchema || !IsValue1 && !IsText && !IsJsonObject && IsJsonSchema; + return IsEnum && !IsText && !IsJsonObject && !IsJsonSchema || !IsEnum && IsText && !IsJsonObject && !IsJsonSchema || !IsEnum && !IsText && IsJsonObject && !IsJsonSchema || !IsEnum && !IsText && !IsJsonObject && IsJsonSchema; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, + global::System.Func? @enum = null, global::System.Func? text = null, global::System.Func? jsonObject = null, global::System.Func? jsonSchema = null, @@ -214,9 +214,9 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsEnum && @enum != null) { - return value1(Value1!); + return @enum(Enum!); } else if (IsText && text != null) { @@ -238,7 +238,7 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, + global::System.Action? @enum = null, global::System.Action? text = null, global::System.Action? jsonObject = null, global::System.Action? jsonSchema = null, @@ -249,9 +249,9 @@ public void Match( Validate(); } - if (IsValue1) + if (IsEnum) { - value1?.Invoke(Value1!); + @enum?.Invoke(Enum!); } else if (IsText) { @@ -274,7 +274,7 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Enum, typeof(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum), Text, typeof(global::tryAGI.OpenAI.ResponseFormatText), @@ -298,7 +298,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(AssistantsApiResponseFormatOption other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && global::System.Collections.Generic.EqualityComparer.Default.Equals(JsonObject, other.JsonObject) && global::System.Collections.Generic.EqualityComparer.Default.Equals(JsonSchema, other.JsonSchema) diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs index d1076300..bf00971f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.AssistantsApiToolChoiceOption.g.cs @@ -17,35 +17,35 @@ namespace tryAGI.OpenAI /// `none` means the model will not call any tools and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` means the model must call one or more tools before responding to the user. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? Value1 { get; init; } + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? Enum { get; init; } #else - public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? Value1 { get; } + public global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? Enum { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] #endif - public bool IsValue1 => Value1 != null; + public bool IsEnum => Enum != null; /// /// Specifies a tool the model should use. Use to force the model to call a specific tool. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.AssistantsNamedToolChoice? Value2 { get; init; } + public global::tryAGI.OpenAI.AssistantsNamedToolChoice? Named { get; init; } #else - public global::tryAGI.OpenAI.AssistantsNamedToolChoice? Value2 { get; } + public global::tryAGI.OpenAI.AssistantsNamedToolChoice? Named { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Named))] #endif - public bool IsValue2 => Value2 != null; + public bool IsNamed => Named != null; /// /// /// @@ -54,14 +54,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum?(AssistantsApiToolChoiceOption @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum?(AssistantsApiToolChoiceOption @this) => @this.Enum; /// /// /// public AssistantsApiToolChoiceOption(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? value) { - Value1 = value; + Enum = value; } /// @@ -72,42 +72,42 @@ public AssistantsApiToolChoiceOption(global::tryAGI.OpenAI.AssistantsApiToolChoi /// /// /// - public static implicit operator global::tryAGI.OpenAI.AssistantsNamedToolChoice?(AssistantsApiToolChoiceOption @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.AssistantsNamedToolChoice?(AssistantsApiToolChoiceOption @this) => @this.Named; /// /// /// public AssistantsApiToolChoiceOption(global::tryAGI.OpenAI.AssistantsNamedToolChoice? value) { - Value2 = value; + Named = value; } /// /// /// public AssistantsApiToolChoiceOption( - global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? value1, - global::tryAGI.OpenAI.AssistantsNamedToolChoice? value2 + global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? @enum, + global::tryAGI.OpenAI.AssistantsNamedToolChoice? named ) { - Value1 = value1; - Value2 = value2; + Enum = @enum; + Named = named; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Named as object ?? + Enum as object ; /// /// /// public override string? ToString() => - Value1?.ToValueString() ?? - Value2?.ToString() + Enum?.ToValueString() ?? + Named?.ToString() ; /// @@ -115,15 +115,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsEnum && !IsNamed || !IsEnum && IsNamed; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @enum = null, + global::System.Func? named = null, bool validate = true) { if (validate) @@ -131,13 +131,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsEnum && @enum != null) { - return value1(Value1!); + return @enum(Enum!); } - else if (IsValue2 && value2 != null) + else if (IsNamed && named != null) { - return value2(Value2!); + return named(Named!); } return default(TResult); @@ -147,8 +147,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @enum = null, + global::System.Action? named = null, bool validate = true) { if (validate) @@ -156,13 +156,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsEnum) { - value1?.Invoke(Value1!); + @enum?.Invoke(Enum!); } - else if (IsValue2) + else if (IsNamed) { - value2?.Invoke(Value2!); + named?.Invoke(Named!); } } @@ -173,9 +173,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Enum, typeof(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum), - Value2, + Named, typeof(global::tryAGI.OpenAI.AssistantsNamedToolChoice), }; const int offset = unchecked((int)2166136261); @@ -193,8 +193,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(AssistantsApiToolChoiceOption other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Named, other.Named) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs index f291e858..67629369 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ComputerToolCallOutputResource.g.cs @@ -30,18 +30,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? ComputerToolCallOutputResourceVariant2 { get; init; } #else - public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? Value2 { get; } + public global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? ComputerToolCallOutputResourceVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ComputerToolCallOutputResourceVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsComputerToolCallOutputResourceVariant2 => ComputerToolCallOutputResourceVariant2 != null; /// /// /// @@ -68,14 +68,14 @@ public ComputerToolCallOutputResource(global::tryAGI.OpenAI.ComputerToolCallOutp /// /// /// - public static implicit operator global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2?(ComputerToolCallOutputResource @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2?(ComputerToolCallOutputResource @this) => @this.ComputerToolCallOutputResourceVariant2; /// /// /// public ComputerToolCallOutputResource(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? value) { - Value2 = value; + ComputerToolCallOutputResourceVariant2 = value; } /// @@ -83,18 +83,18 @@ public ComputerToolCallOutputResource(global::tryAGI.OpenAI.ComputerToolCallOutp /// public ComputerToolCallOutputResource( global::tryAGI.OpenAI.ComputerToolCallOutput? computerToolCallOutput, - global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? value2 + global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2? computerToolCallOutputResourceVariant2 ) { ComputerToolCallOutput = computerToolCallOutput; - Value2 = value2; + ComputerToolCallOutputResourceVariant2 = computerToolCallOutputResourceVariant2; } /// /// /// public object? Object => - Value2 as object ?? + ComputerToolCallOutputResourceVariant2 as object ?? ComputerToolCallOutput as object ; @@ -103,7 +103,7 @@ ComputerToolCallOutput as object /// public override string? ToString() => ComputerToolCallOutput?.ToString() ?? - Value2?.ToString() + ComputerToolCallOutputResourceVariant2?.ToString() ; /// @@ -111,7 +111,7 @@ ComputerToolCallOutput as object /// public bool Validate() { - return IsComputerToolCallOutput && IsValue2; + return IsComputerToolCallOutput && IsComputerToolCallOutputResourceVariant2; } /// @@ -119,7 +119,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? computerToolCallOutput = null, - global::System.Func? value2 = null, + global::System.Func? computerToolCallOutputResourceVariant2 = null, bool validate = true) { if (validate) @@ -131,9 +131,9 @@ public bool Validate() { return computerToolCallOutput(ComputerToolCallOutput!); } - else if (IsValue2 && value2 != null) + else if (IsComputerToolCallOutputResourceVariant2 && computerToolCallOutputResourceVariant2 != null) { - return value2(Value2!); + return computerToolCallOutputResourceVariant2(ComputerToolCallOutputResourceVariant2!); } return default(TResult); @@ -144,7 +144,7 @@ public bool Validate() /// public void Match( global::System.Action? computerToolCallOutput = null, - global::System.Action? value2 = null, + global::System.Action? computerToolCallOutputResourceVariant2 = null, bool validate = true) { if (validate) @@ -156,9 +156,9 @@ public void Match( { computerToolCallOutput?.Invoke(ComputerToolCallOutput!); } - else if (IsValue2) + else if (IsComputerToolCallOutputResourceVariant2) { - value2?.Invoke(Value2!); + computerToolCallOutputResourceVariant2?.Invoke(ComputerToolCallOutputResourceVariant2!); } } @@ -171,7 +171,7 @@ public override int GetHashCode() { ComputerToolCallOutput, typeof(global::tryAGI.OpenAI.ComputerToolCallOutput), - Value2, + ComputerToolCallOutputResourceVariant2, typeof(global::tryAGI.OpenAI.ComputerToolCallOutputResourceVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,7 +190,7 @@ public bool Equals(ComputerToolCallOutputResource other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ComputerToolCallOutput, other.ComputerToolCallOutput) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ComputerToolCallOutputResourceVariant2, other.ComputerToolCallOutputResourceVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs index e6c0bbdb..e1374f08 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequest.g.cs @@ -13,35 +13,35 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.CreateModelResponseProperties? Value1 { get; init; } + public global::tryAGI.OpenAI.CreateModelResponseProperties? ModelResponseProperties { get; init; } #else - public global::tryAGI.OpenAI.CreateModelResponseProperties? Value1 { get; } + public global::tryAGI.OpenAI.CreateModelResponseProperties? ModelResponseProperties { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ModelResponseProperties))] #endif - public bool IsValue1 => Value1 != null; + public bool IsModelResponseProperties => ModelResponseProperties != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? CreateChatCompletionRequestVariant2 { get; init; } #else - public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Value2 { get; } + public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? CreateChatCompletionRequestVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateChatCompletionRequestVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCreateChatCompletionRequestVariant2 => CreateChatCompletionRequestVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.CreateModelResponseProperties?(CreateChatCompletionRequest @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.CreateModelResponseProperties?(CreateChatCompletionRequest @this) => @this.ModelResponseProperties; /// /// /// public CreateChatCompletionRequest(global::tryAGI.OpenAI.CreateModelResponseProperties? value) { - Value1 = value; + ModelResponseProperties = value; } /// @@ -68,42 +68,42 @@ public CreateChatCompletionRequest(global::tryAGI.OpenAI.CreateModelResponseProp /// /// /// - public static implicit operator global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2?(CreateChatCompletionRequest @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2?(CreateChatCompletionRequest @this) => @this.CreateChatCompletionRequestVariant2; /// /// /// public CreateChatCompletionRequest(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? value) { - Value2 = value; + CreateChatCompletionRequestVariant2 = value; } /// /// /// public CreateChatCompletionRequest( - global::tryAGI.OpenAI.CreateModelResponseProperties? value1, - global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? value2 + global::tryAGI.OpenAI.CreateModelResponseProperties? modelResponseProperties, + global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? createChatCompletionRequestVariant2 ) { - Value1 = value1; - Value2 = value2; + ModelResponseProperties = modelResponseProperties; + CreateChatCompletionRequestVariant2 = createChatCompletionRequestVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + CreateChatCompletionRequestVariant2 as object ?? + ModelResponseProperties as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + ModelResponseProperties?.ToString() ?? + CreateChatCompletionRequestVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsModelResponseProperties && IsCreateChatCompletionRequestVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? modelResponseProperties = null, + global::System.Func? createChatCompletionRequestVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsModelResponseProperties && modelResponseProperties != null) { - return value1(Value1!); + return modelResponseProperties(ModelResponseProperties!); } - else if (IsValue2 && value2 != null) + else if (IsCreateChatCompletionRequestVariant2 && createChatCompletionRequestVariant2 != null) { - return value2(Value2!); + return createChatCompletionRequestVariant2(CreateChatCompletionRequestVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? modelResponseProperties = null, + global::System.Action? createChatCompletionRequestVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsModelResponseProperties) { - value1?.Invoke(Value1!); + modelResponseProperties?.Invoke(ModelResponseProperties!); } - else if (IsValue2) + else if (IsCreateChatCompletionRequestVariant2) { - value2?.Invoke(Value2!); + createChatCompletionRequestVariant2?.Invoke(CreateChatCompletionRequestVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ModelResponseProperties, typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), - Value2, + CreateChatCompletionRequestVariant2, typeof(global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CreateChatCompletionRequest other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ModelResponseProperties, other.ModelResponseProperties) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateChatCompletionRequestVariant2, other.CreateChatCompletionRequestVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs index aad62c70..53900540 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateModelResponseProperties.g.cs @@ -13,35 +13,35 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ModelResponseProperties? Value1 { get; init; } + public global::tryAGI.OpenAI.ModelResponseProperties? ModelResponseProperties { get; init; } #else - public global::tryAGI.OpenAI.ModelResponseProperties? Value1 { get; } + public global::tryAGI.OpenAI.ModelResponseProperties? ModelResponseProperties { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ModelResponseProperties))] #endif - public bool IsValue1 => Value1 != null; + public bool IsModelResponseProperties => ModelResponseProperties != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? CreateModelResponsePropertiesVariant2 { get; init; } #else - public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Value2 { get; } + public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? CreateModelResponsePropertiesVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateModelResponsePropertiesVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCreateModelResponsePropertiesVariant2 => CreateModelResponsePropertiesVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.ModelResponseProperties?(CreateModelResponseProperties @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.ModelResponseProperties?(CreateModelResponseProperties @this) => @this.ModelResponseProperties; /// /// /// public CreateModelResponseProperties(global::tryAGI.OpenAI.ModelResponseProperties? value) { - Value1 = value; + ModelResponseProperties = value; } /// @@ -68,42 +68,42 @@ public CreateModelResponseProperties(global::tryAGI.OpenAI.ModelResponseProperti /// /// /// - public static implicit operator global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2?(CreateModelResponseProperties @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2?(CreateModelResponseProperties @this) => @this.CreateModelResponsePropertiesVariant2; /// /// /// public CreateModelResponseProperties(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? value) { - Value2 = value; + CreateModelResponsePropertiesVariant2 = value; } /// /// /// public CreateModelResponseProperties( - global::tryAGI.OpenAI.ModelResponseProperties? value1, - global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? value2 + global::tryAGI.OpenAI.ModelResponseProperties? modelResponseProperties, + global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? createModelResponsePropertiesVariant2 ) { - Value1 = value1; - Value2 = value2; + ModelResponseProperties = modelResponseProperties; + CreateModelResponsePropertiesVariant2 = createModelResponsePropertiesVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + CreateModelResponsePropertiesVariant2 as object ?? + ModelResponseProperties as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + ModelResponseProperties?.ToString() ?? + CreateModelResponsePropertiesVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsModelResponseProperties && IsCreateModelResponsePropertiesVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? modelResponseProperties = null, + global::System.Func? createModelResponsePropertiesVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsModelResponseProperties && modelResponseProperties != null) { - return value1(Value1!); + return modelResponseProperties(ModelResponseProperties!); } - else if (IsValue2 && value2 != null) + else if (IsCreateModelResponsePropertiesVariant2 && createModelResponsePropertiesVariant2 != null) { - return value2(Value2!); + return createModelResponsePropertiesVariant2(CreateModelResponsePropertiesVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? modelResponseProperties = null, + global::System.Action? createModelResponsePropertiesVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsModelResponseProperties) { - value1?.Invoke(Value1!); + modelResponseProperties?.Invoke(ModelResponseProperties!); } - else if (IsValue2) + else if (IsCreateModelResponsePropertiesVariant2) { - value2?.Invoke(Value2!); + createModelResponsePropertiesVariant2?.Invoke(CreateModelResponsePropertiesVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ModelResponseProperties, typeof(global::tryAGI.OpenAI.ModelResponseProperties), - Value2, + CreateModelResponsePropertiesVariant2, typeof(global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CreateModelResponseProperties other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ModelResponseProperties, other.ModelResponseProperties) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateModelResponsePropertiesVariant2, other.CreateModelResponsePropertiesVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs index 30efc39d..7e3b8de3 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateResponse.g.cs @@ -13,52 +13,52 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.CreateModelResponseProperties? Value1 { get; init; } + public global::tryAGI.OpenAI.CreateModelResponseProperties? ModelProperties { get; init; } #else - public global::tryAGI.OpenAI.CreateModelResponseProperties? Value1 { get; } + public global::tryAGI.OpenAI.CreateModelResponseProperties? ModelProperties { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ModelProperties))] #endif - public bool IsValue1 => Value1 != null; + public bool IsModelProperties => ModelProperties != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ResponseProperties? Value2 { get; init; } + public global::tryAGI.OpenAI.ResponseProperties? Properties { get; init; } #else - public global::tryAGI.OpenAI.ResponseProperties? Value2 { get; } + public global::tryAGI.OpenAI.ResponseProperties? Properties { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Properties))] #endif - public bool IsValue2 => Value2 != null; + public bool IsProperties => Properties != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.CreateResponseVariant3? Value3 { get; init; } + public global::tryAGI.OpenAI.CreateResponseVariant3? CreateResponseVariant3 { get; init; } #else - public global::tryAGI.OpenAI.CreateResponseVariant3? Value3 { get; } + public global::tryAGI.OpenAI.CreateResponseVariant3? CreateResponseVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateResponseVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsCreateResponseVariant3 => CreateResponseVariant3 != null; /// /// /// @@ -67,14 +67,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.CreateModelResponseProperties?(CreateResponse @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.CreateModelResponseProperties?(CreateResponse @this) => @this.ModelProperties; /// /// /// public CreateResponse(global::tryAGI.OpenAI.CreateModelResponseProperties? value) { - Value1 = value; + ModelProperties = value; } /// @@ -85,14 +85,14 @@ public CreateResponse(global::tryAGI.OpenAI.CreateModelResponseProperties? value /// /// /// - public static implicit operator global::tryAGI.OpenAI.ResponseProperties?(CreateResponse @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.ResponseProperties?(CreateResponse @this) => @this.Properties; /// /// /// public CreateResponse(global::tryAGI.OpenAI.ResponseProperties? value) { - Value2 = value; + Properties = value; } /// @@ -103,46 +103,46 @@ public CreateResponse(global::tryAGI.OpenAI.ResponseProperties? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.CreateResponseVariant3?(CreateResponse @this) => @this.Value3; + public static implicit operator global::tryAGI.OpenAI.CreateResponseVariant3?(CreateResponse @this) => @this.CreateResponseVariant3; /// /// /// public CreateResponse(global::tryAGI.OpenAI.CreateResponseVariant3? value) { - Value3 = value; + CreateResponseVariant3 = value; } /// /// /// public CreateResponse( - global::tryAGI.OpenAI.CreateModelResponseProperties? value1, - global::tryAGI.OpenAI.ResponseProperties? value2, - global::tryAGI.OpenAI.CreateResponseVariant3? value3 + global::tryAGI.OpenAI.CreateModelResponseProperties? modelProperties, + global::tryAGI.OpenAI.ResponseProperties? properties, + global::tryAGI.OpenAI.CreateResponseVariant3? createResponseVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + ModelProperties = modelProperties; + Properties = properties; + CreateResponseVariant3 = createResponseVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + CreateResponseVariant3 as object ?? + Properties as object ?? + ModelProperties as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + ModelProperties?.ToString() ?? + Properties?.ToString() ?? + CreateResponseVariant3?.ToString() ; /// @@ -150,16 +150,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2 && IsValue3; + return IsModelProperties && IsProperties && IsCreateResponseVariant3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, + global::System.Func? modelProperties = null, + global::System.Func? properties = null, + global::System.Func? createResponseVariant3 = null, bool validate = true) { if (validate) @@ -167,17 +167,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsModelProperties && modelProperties != null) { - return value1(Value1!); + return modelProperties(ModelProperties!); } - else if (IsValue2 && value2 != null) + else if (IsProperties && properties != null) { - return value2(Value2!); + return properties(Properties!); } - else if (IsValue3 && value3 != null) + else if (IsCreateResponseVariant3 && createResponseVariant3 != null) { - return value3(Value3!); + return createResponseVariant3(CreateResponseVariant3!); } return default(TResult); @@ -187,9 +187,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, + global::System.Action? modelProperties = null, + global::System.Action? properties = null, + global::System.Action? createResponseVariant3 = null, bool validate = true) { if (validate) @@ -197,17 +197,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsModelProperties) { - value1?.Invoke(Value1!); + modelProperties?.Invoke(ModelProperties!); } - else if (IsValue2) + else if (IsProperties) { - value2?.Invoke(Value2!); + properties?.Invoke(Properties!); } - else if (IsValue3) + else if (IsCreateResponseVariant3) { - value3?.Invoke(Value3!); + createResponseVariant3?.Invoke(CreateResponseVariant3!); } } @@ -218,11 +218,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ModelProperties, typeof(global::tryAGI.OpenAI.CreateModelResponseProperties), - Value2, + Properties, typeof(global::tryAGI.OpenAI.ResponseProperties), - Value3, + CreateResponseVariant3, typeof(global::tryAGI.OpenAI.CreateResponseVariant3), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CreateResponse other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ModelProperties, other.ModelProperties) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Properties, other.Properties) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateResponseVariant3, other.CreateResponseVariant3) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs index c03630e3..9562f9e5 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallOutputResource.g.cs @@ -30,18 +30,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? CustomToolCallOutputResourceVariant2 { get; init; } #else - public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? Value2 { get; } + public global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? CustomToolCallOutputResourceVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomToolCallOutputResourceVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCustomToolCallOutputResourceVariant2 => CustomToolCallOutputResourceVariant2 != null; /// /// /// @@ -68,14 +68,14 @@ public CustomToolCallOutputResource(global::tryAGI.OpenAI.CustomToolCallOutput? /// /// /// - public static implicit operator global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2?(CustomToolCallOutputResource @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2?(CustomToolCallOutputResource @this) => @this.CustomToolCallOutputResourceVariant2; /// /// /// public CustomToolCallOutputResource(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? value) { - Value2 = value; + CustomToolCallOutputResourceVariant2 = value; } /// @@ -83,18 +83,18 @@ public CustomToolCallOutputResource(global::tryAGI.OpenAI.CustomToolCallOutputRe /// public CustomToolCallOutputResource( global::tryAGI.OpenAI.CustomToolCallOutput? customToolCallOutput, - global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? value2 + global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2? customToolCallOutputResourceVariant2 ) { CustomToolCallOutput = customToolCallOutput; - Value2 = value2; + CustomToolCallOutputResourceVariant2 = customToolCallOutputResourceVariant2; } /// /// /// public object? Object => - Value2 as object ?? + CustomToolCallOutputResourceVariant2 as object ?? CustomToolCallOutput as object ; @@ -103,7 +103,7 @@ CustomToolCallOutput as object /// public override string? ToString() => CustomToolCallOutput?.ToString() ?? - Value2?.ToString() + CustomToolCallOutputResourceVariant2?.ToString() ; /// @@ -111,7 +111,7 @@ CustomToolCallOutput as object /// public bool Validate() { - return IsCustomToolCallOutput && IsValue2; + return IsCustomToolCallOutput && IsCustomToolCallOutputResourceVariant2; } /// @@ -119,7 +119,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? customToolCallOutput = null, - global::System.Func? value2 = null, + global::System.Func? customToolCallOutputResourceVariant2 = null, bool validate = true) { if (validate) @@ -131,9 +131,9 @@ public bool Validate() { return customToolCallOutput(CustomToolCallOutput!); } - else if (IsValue2 && value2 != null) + else if (IsCustomToolCallOutputResourceVariant2 && customToolCallOutputResourceVariant2 != null) { - return value2(Value2!); + return customToolCallOutputResourceVariant2(CustomToolCallOutputResourceVariant2!); } return default(TResult); @@ -144,7 +144,7 @@ public bool Validate() /// public void Match( global::System.Action? customToolCallOutput = null, - global::System.Action? value2 = null, + global::System.Action? customToolCallOutputResourceVariant2 = null, bool validate = true) { if (validate) @@ -156,9 +156,9 @@ public void Match( { customToolCallOutput?.Invoke(CustomToolCallOutput!); } - else if (IsValue2) + else if (IsCustomToolCallOutputResourceVariant2) { - value2?.Invoke(Value2!); + customToolCallOutputResourceVariant2?.Invoke(CustomToolCallOutputResourceVariant2!); } } @@ -171,7 +171,7 @@ public override int GetHashCode() { CustomToolCallOutput, typeof(global::tryAGI.OpenAI.CustomToolCallOutput), - Value2, + CustomToolCallOutputResourceVariant2, typeof(global::tryAGI.OpenAI.CustomToolCallOutputResourceVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,7 +190,7 @@ public bool Equals(CustomToolCallOutputResource other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomToolCallOutput, other.CustomToolCallOutput) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomToolCallOutputResourceVariant2, other.CustomToolCallOutputResourceVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs index 23859929..0cbe21e1 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CustomToolCallResource.g.cs @@ -30,18 +30,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? CustomToolCallResourceVariant2 { get; init; } #else - public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? Value2 { get; } + public global::tryAGI.OpenAI.CustomToolCallResourceVariant2? CustomToolCallResourceVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomToolCallResourceVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCustomToolCallResourceVariant2 => CustomToolCallResourceVariant2 != null; /// /// /// @@ -68,14 +68,14 @@ public CustomToolCallResource(global::tryAGI.OpenAI.CustomToolCall? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.CustomToolCallResourceVariant2?(CustomToolCallResource @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.CustomToolCallResourceVariant2?(CustomToolCallResource @this) => @this.CustomToolCallResourceVariant2; /// /// /// public CustomToolCallResource(global::tryAGI.OpenAI.CustomToolCallResourceVariant2? value) { - Value2 = value; + CustomToolCallResourceVariant2 = value; } /// @@ -83,18 +83,18 @@ public CustomToolCallResource(global::tryAGI.OpenAI.CustomToolCallResourceVarian /// public CustomToolCallResource( global::tryAGI.OpenAI.CustomToolCall? customToolCall, - global::tryAGI.OpenAI.CustomToolCallResourceVariant2? value2 + global::tryAGI.OpenAI.CustomToolCallResourceVariant2? customToolCallResourceVariant2 ) { CustomToolCall = customToolCall; - Value2 = value2; + CustomToolCallResourceVariant2 = customToolCallResourceVariant2; } /// /// /// public object? Object => - Value2 as object ?? + CustomToolCallResourceVariant2 as object ?? CustomToolCall as object ; @@ -103,7 +103,7 @@ CustomToolCall as object /// public override string? ToString() => CustomToolCall?.ToString() ?? - Value2?.ToString() + CustomToolCallResourceVariant2?.ToString() ; /// @@ -111,7 +111,7 @@ CustomToolCall as object /// public bool Validate() { - return IsCustomToolCall && IsValue2; + return IsCustomToolCall && IsCustomToolCallResourceVariant2; } /// @@ -119,7 +119,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? customToolCall = null, - global::System.Func? value2 = null, + global::System.Func? customToolCallResourceVariant2 = null, bool validate = true) { if (validate) @@ -131,9 +131,9 @@ public bool Validate() { return customToolCall(CustomToolCall!); } - else if (IsValue2 && value2 != null) + else if (IsCustomToolCallResourceVariant2 && customToolCallResourceVariant2 != null) { - return value2(Value2!); + return customToolCallResourceVariant2(CustomToolCallResourceVariant2!); } return default(TResult); @@ -144,7 +144,7 @@ public bool Validate() /// public void Match( global::System.Action? customToolCall = null, - global::System.Action? value2 = null, + global::System.Action? customToolCallResourceVariant2 = null, bool validate = true) { if (validate) @@ -156,9 +156,9 @@ public void Match( { customToolCall?.Invoke(CustomToolCall!); } - else if (IsValue2) + else if (IsCustomToolCallResourceVariant2) { - value2?.Invoke(Value2!); + customToolCallResourceVariant2?.Invoke(CustomToolCallResourceVariant2!); } } @@ -171,7 +171,7 @@ public override int GetHashCode() { CustomToolCall, typeof(global::tryAGI.OpenAI.CustomToolCall), - Value2, + CustomToolCallResourceVariant2, typeof(global::tryAGI.OpenAI.CustomToolCallResourceVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,7 +190,7 @@ public bool Equals(CustomToolCallResource other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomToolCall, other.CustomToolCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomToolCallResourceVariant2, other.CustomToolCallResourceVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs index e206159c..adfdc449 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderPython.g.cs @@ -30,18 +30,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.EvalGraderPythonVariant2? EvalGraderPythonVariant2 { get; init; } #else - public global::tryAGI.OpenAI.EvalGraderPythonVariant2? Value2 { get; } + public global::tryAGI.OpenAI.EvalGraderPythonVariant2? EvalGraderPythonVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalGraderPythonVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsEvalGraderPythonVariant2 => EvalGraderPythonVariant2 != null; /// /// /// @@ -68,14 +68,14 @@ public EvalGraderPython(global::tryAGI.OpenAI.GraderPython? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.EvalGraderPythonVariant2?(EvalGraderPython @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.EvalGraderPythonVariant2?(EvalGraderPython @this) => @this.EvalGraderPythonVariant2; /// /// /// public EvalGraderPython(global::tryAGI.OpenAI.EvalGraderPythonVariant2? value) { - Value2 = value; + EvalGraderPythonVariant2 = value; } /// @@ -83,18 +83,18 @@ public EvalGraderPython(global::tryAGI.OpenAI.EvalGraderPythonVariant2? value) /// public EvalGraderPython( global::tryAGI.OpenAI.GraderPython? pythonGrader, - global::tryAGI.OpenAI.EvalGraderPythonVariant2? value2 + global::tryAGI.OpenAI.EvalGraderPythonVariant2? evalGraderPythonVariant2 ) { PythonGrader = pythonGrader; - Value2 = value2; + EvalGraderPythonVariant2 = evalGraderPythonVariant2; } /// /// /// public object? Object => - Value2 as object ?? + EvalGraderPythonVariant2 as object ?? PythonGrader as object ; @@ -103,7 +103,7 @@ PythonGrader as object /// public override string? ToString() => PythonGrader?.ToString() ?? - Value2?.ToString() + EvalGraderPythonVariant2?.ToString() ; /// @@ -111,7 +111,7 @@ PythonGrader as object /// public bool Validate() { - return IsPythonGrader && IsValue2; + return IsPythonGrader && IsEvalGraderPythonVariant2; } /// @@ -119,7 +119,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? pythonGrader = null, - global::System.Func? value2 = null, + global::System.Func? evalGraderPythonVariant2 = null, bool validate = true) { if (validate) @@ -131,9 +131,9 @@ public bool Validate() { return pythonGrader(PythonGrader!); } - else if (IsValue2 && value2 != null) + else if (IsEvalGraderPythonVariant2 && evalGraderPythonVariant2 != null) { - return value2(Value2!); + return evalGraderPythonVariant2(EvalGraderPythonVariant2!); } return default(TResult); @@ -144,7 +144,7 @@ public bool Validate() /// public void Match( global::System.Action? pythonGrader = null, - global::System.Action? value2 = null, + global::System.Action? evalGraderPythonVariant2 = null, bool validate = true) { if (validate) @@ -156,9 +156,9 @@ public void Match( { pythonGrader?.Invoke(PythonGrader!); } - else if (IsValue2) + else if (IsEvalGraderPythonVariant2) { - value2?.Invoke(Value2!); + evalGraderPythonVariant2?.Invoke(EvalGraderPythonVariant2!); } } @@ -171,7 +171,7 @@ public override int GetHashCode() { PythonGrader, typeof(global::tryAGI.OpenAI.GraderPython), - Value2, + EvalGraderPythonVariant2, typeof(global::tryAGI.OpenAI.EvalGraderPythonVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,7 +190,7 @@ public bool Equals(EvalGraderPython other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(PythonGrader, other.PythonGrader) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalGraderPythonVariant2, other.EvalGraderPythonVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs index dab4855d..f70a20a9 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderScoreModel.g.cs @@ -30,18 +30,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? EvalGraderScoreModelVariant2 { get; init; } #else - public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? Value2 { get; } + public global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? EvalGraderScoreModelVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalGraderScoreModelVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsEvalGraderScoreModelVariant2 => EvalGraderScoreModelVariant2 != null; /// /// /// @@ -68,14 +68,14 @@ public EvalGraderScoreModel(global::tryAGI.OpenAI.GraderScoreModel? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.EvalGraderScoreModelVariant2?(EvalGraderScoreModel @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.EvalGraderScoreModelVariant2?(EvalGraderScoreModel @this) => @this.EvalGraderScoreModelVariant2; /// /// /// public EvalGraderScoreModel(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? value) { - Value2 = value; + EvalGraderScoreModelVariant2 = value; } /// @@ -83,18 +83,18 @@ public EvalGraderScoreModel(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? /// public EvalGraderScoreModel( global::tryAGI.OpenAI.GraderScoreModel? scoreModelGrader, - global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? value2 + global::tryAGI.OpenAI.EvalGraderScoreModelVariant2? evalGraderScoreModelVariant2 ) { ScoreModelGrader = scoreModelGrader; - Value2 = value2; + EvalGraderScoreModelVariant2 = evalGraderScoreModelVariant2; } /// /// /// public object? Object => - Value2 as object ?? + EvalGraderScoreModelVariant2 as object ?? ScoreModelGrader as object ; @@ -103,7 +103,7 @@ ScoreModelGrader as object /// public override string? ToString() => ScoreModelGrader?.ToString() ?? - Value2?.ToString() + EvalGraderScoreModelVariant2?.ToString() ; /// @@ -111,7 +111,7 @@ ScoreModelGrader as object /// public bool Validate() { - return IsScoreModelGrader && IsValue2; + return IsScoreModelGrader && IsEvalGraderScoreModelVariant2; } /// @@ -119,7 +119,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? scoreModelGrader = null, - global::System.Func? value2 = null, + global::System.Func? evalGraderScoreModelVariant2 = null, bool validate = true) { if (validate) @@ -131,9 +131,9 @@ public bool Validate() { return scoreModelGrader(ScoreModelGrader!); } - else if (IsValue2 && value2 != null) + else if (IsEvalGraderScoreModelVariant2 && evalGraderScoreModelVariant2 != null) { - return value2(Value2!); + return evalGraderScoreModelVariant2(EvalGraderScoreModelVariant2!); } return default(TResult); @@ -144,7 +144,7 @@ public bool Validate() /// public void Match( global::System.Action? scoreModelGrader = null, - global::System.Action? value2 = null, + global::System.Action? evalGraderScoreModelVariant2 = null, bool validate = true) { if (validate) @@ -156,9 +156,9 @@ public void Match( { scoreModelGrader?.Invoke(ScoreModelGrader!); } - else if (IsValue2) + else if (IsEvalGraderScoreModelVariant2) { - value2?.Invoke(Value2!); + evalGraderScoreModelVariant2?.Invoke(EvalGraderScoreModelVariant2!); } } @@ -171,7 +171,7 @@ public override int GetHashCode() { ScoreModelGrader, typeof(global::tryAGI.OpenAI.GraderScoreModel), - Value2, + EvalGraderScoreModelVariant2, typeof(global::tryAGI.OpenAI.EvalGraderScoreModelVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,7 +190,7 @@ public bool Equals(EvalGraderScoreModel other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ScoreModelGrader, other.ScoreModelGrader) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalGraderScoreModelVariant2, other.EvalGraderScoreModelVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs index 17e1ff8e..5eb493a8 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.EvalGraderTextSimilarity.g.cs @@ -30,18 +30,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? EvalGraderTextSimilarityVariant2 { get; init; } #else - public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? Value2 { get; } + public global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? EvalGraderTextSimilarityVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EvalGraderTextSimilarityVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsEvalGraderTextSimilarityVariant2 => EvalGraderTextSimilarityVariant2 != null; /// /// /// @@ -68,14 +68,14 @@ public EvalGraderTextSimilarity(global::tryAGI.OpenAI.GraderTextSimilarity? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2?(EvalGraderTextSimilarity @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2?(EvalGraderTextSimilarity @this) => @this.EvalGraderTextSimilarityVariant2; /// /// /// public EvalGraderTextSimilarity(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? value) { - Value2 = value; + EvalGraderTextSimilarityVariant2 = value; } /// @@ -83,18 +83,18 @@ public EvalGraderTextSimilarity(global::tryAGI.OpenAI.EvalGraderTextSimilarityVa /// public EvalGraderTextSimilarity( global::tryAGI.OpenAI.GraderTextSimilarity? textSimilarityGrader, - global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? value2 + global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2? evalGraderTextSimilarityVariant2 ) { TextSimilarityGrader = textSimilarityGrader; - Value2 = value2; + EvalGraderTextSimilarityVariant2 = evalGraderTextSimilarityVariant2; } /// /// /// public object? Object => - Value2 as object ?? + EvalGraderTextSimilarityVariant2 as object ?? TextSimilarityGrader as object ; @@ -103,7 +103,7 @@ TextSimilarityGrader as object /// public override string? ToString() => TextSimilarityGrader?.ToString() ?? - Value2?.ToString() + EvalGraderTextSimilarityVariant2?.ToString() ; /// @@ -111,7 +111,7 @@ TextSimilarityGrader as object /// public bool Validate() { - return IsTextSimilarityGrader && IsValue2; + return IsTextSimilarityGrader && IsEvalGraderTextSimilarityVariant2; } /// @@ -119,7 +119,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? textSimilarityGrader = null, - global::System.Func? value2 = null, + global::System.Func? evalGraderTextSimilarityVariant2 = null, bool validate = true) { if (validate) @@ -131,9 +131,9 @@ public bool Validate() { return textSimilarityGrader(TextSimilarityGrader!); } - else if (IsValue2 && value2 != null) + else if (IsEvalGraderTextSimilarityVariant2 && evalGraderTextSimilarityVariant2 != null) { - return value2(Value2!); + return evalGraderTextSimilarityVariant2(EvalGraderTextSimilarityVariant2!); } return default(TResult); @@ -144,7 +144,7 @@ public bool Validate() /// public void Match( global::System.Action? textSimilarityGrader = null, - global::System.Action? value2 = null, + global::System.Action? evalGraderTextSimilarityVariant2 = null, bool validate = true) { if (validate) @@ -156,9 +156,9 @@ public void Match( { textSimilarityGrader?.Invoke(TextSimilarityGrader!); } - else if (IsValue2) + else if (IsEvalGraderTextSimilarityVariant2) { - value2?.Invoke(Value2!); + evalGraderTextSimilarityVariant2?.Invoke(EvalGraderTextSimilarityVariant2!); } } @@ -171,7 +171,7 @@ public override int GetHashCode() { TextSimilarityGrader, typeof(global::tryAGI.OpenAI.GraderTextSimilarity), - Value2, + EvalGraderTextSimilarityVariant2, typeof(global::tryAGI.OpenAI.EvalGraderTextSimilarityVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,7 +190,7 @@ public bool Equals(EvalGraderTextSimilarity other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(TextSimilarityGrader, other.TextSimilarityGrader) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(EvalGraderTextSimilarityVariant2, other.EvalGraderTextSimilarityVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs index 9ed16be4..610f6071 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FiltersItem.g.cs @@ -30,18 +30,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public object? Value2 { get; init; } + public object? CompoundFilterVariant2 { get; init; } #else - public object? Value2 { get; } + public object? CompoundFilterVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CompoundFilterVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCompoundFilterVariant2 => CompoundFilterVariant2 != null; /// /// /// @@ -65,18 +65,18 @@ public FiltersItem(global::tryAGI.OpenAI.ComparisonFilter? value) /// public FiltersItem( global::tryAGI.OpenAI.ComparisonFilter? comparisonFilter, - object? value2 + object? compoundFilterVariant2 ) { ComparisonFilter = comparisonFilter; - Value2 = value2; + CompoundFilterVariant2 = compoundFilterVariant2; } /// /// /// public object? Object => - Value2 as object ?? + CompoundFilterVariant2 as object ?? ComparisonFilter as object ; @@ -85,7 +85,7 @@ ComparisonFilter as object /// public override string? ToString() => ComparisonFilter?.ToString() ?? - Value2?.ToString() + CompoundFilterVariant2?.ToString() ; /// @@ -93,7 +93,7 @@ ComparisonFilter as object /// public bool Validate() { - return IsComparisonFilter && !IsValue2 || !IsComparisonFilter && IsValue2; + return IsComparisonFilter && !IsCompoundFilterVariant2 || !IsComparisonFilter && IsCompoundFilterVariant2; } /// @@ -101,7 +101,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? comparisonFilter = null, - global::System.Func? value2 = null, + global::System.Func? compoundFilterVariant2 = null, bool validate = true) { if (validate) @@ -113,9 +113,9 @@ public bool Validate() { return comparisonFilter(ComparisonFilter!); } - else if (IsValue2 && value2 != null) + else if (IsCompoundFilterVariant2 && compoundFilterVariant2 != null) { - return value2(Value2!); + return compoundFilterVariant2(CompoundFilterVariant2!); } return default(TResult); @@ -126,7 +126,7 @@ public bool Validate() /// public void Match( global::System.Action? comparisonFilter = null, - global::System.Action? value2 = null, + global::System.Action? compoundFilterVariant2 = null, bool validate = true) { if (validate) @@ -138,9 +138,9 @@ public void Match( { comparisonFilter?.Invoke(ComparisonFilter!); } - else if (IsValue2) + else if (IsCompoundFilterVariant2) { - value2?.Invoke(Value2!); + compoundFilterVariant2?.Invoke(CompoundFilterVariant2!); } } @@ -153,7 +153,7 @@ public override int GetHashCode() { ComparisonFilter, typeof(global::tryAGI.OpenAI.ComparisonFilter), - Value2, + CompoundFilterVariant2, typeof(object), }; const int offset = unchecked((int)2166136261); @@ -172,7 +172,7 @@ public bool Equals(FiltersItem other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(ComparisonFilter, other.ComparisonFilter) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CompoundFilterVariant2, other.CompoundFilterVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs index a6e9afd0..3b953938 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallOutputResource.g.cs @@ -30,18 +30,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? FunctionToolCallOutputResourceVariant2 { get; init; } #else - public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? Value2 { get; } + public global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? FunctionToolCallOutputResourceVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FunctionToolCallOutputResourceVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsFunctionToolCallOutputResourceVariant2 => FunctionToolCallOutputResourceVariant2 != null; /// /// /// @@ -68,14 +68,14 @@ public FunctionToolCallOutputResource(global::tryAGI.OpenAI.FunctionToolCallOutp /// /// /// - public static implicit operator global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2?(FunctionToolCallOutputResource @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2?(FunctionToolCallOutputResource @this) => @this.FunctionToolCallOutputResourceVariant2; /// /// /// public FunctionToolCallOutputResource(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? value) { - Value2 = value; + FunctionToolCallOutputResourceVariant2 = value; } /// @@ -83,18 +83,18 @@ public FunctionToolCallOutputResource(global::tryAGI.OpenAI.FunctionToolCallOutp /// public FunctionToolCallOutputResource( global::tryAGI.OpenAI.FunctionToolCallOutput? functionToolCallOutput, - global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? value2 + global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2? functionToolCallOutputResourceVariant2 ) { FunctionToolCallOutput = functionToolCallOutput; - Value2 = value2; + FunctionToolCallOutputResourceVariant2 = functionToolCallOutputResourceVariant2; } /// /// /// public object? Object => - Value2 as object ?? + FunctionToolCallOutputResourceVariant2 as object ?? FunctionToolCallOutput as object ; @@ -103,7 +103,7 @@ FunctionToolCallOutput as object /// public override string? ToString() => FunctionToolCallOutput?.ToString() ?? - Value2?.ToString() + FunctionToolCallOutputResourceVariant2?.ToString() ; /// @@ -111,7 +111,7 @@ FunctionToolCallOutput as object /// public bool Validate() { - return IsFunctionToolCallOutput && IsValue2; + return IsFunctionToolCallOutput && IsFunctionToolCallOutputResourceVariant2; } /// @@ -119,7 +119,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? functionToolCallOutput = null, - global::System.Func? value2 = null, + global::System.Func? functionToolCallOutputResourceVariant2 = null, bool validate = true) { if (validate) @@ -131,9 +131,9 @@ public bool Validate() { return functionToolCallOutput(FunctionToolCallOutput!); } - else if (IsValue2 && value2 != null) + else if (IsFunctionToolCallOutputResourceVariant2 && functionToolCallOutputResourceVariant2 != null) { - return value2(Value2!); + return functionToolCallOutputResourceVariant2(FunctionToolCallOutputResourceVariant2!); } return default(TResult); @@ -144,7 +144,7 @@ public bool Validate() /// public void Match( global::System.Action? functionToolCallOutput = null, - global::System.Action? value2 = null, + global::System.Action? functionToolCallOutputResourceVariant2 = null, bool validate = true) { if (validate) @@ -156,9 +156,9 @@ public void Match( { functionToolCallOutput?.Invoke(FunctionToolCallOutput!); } - else if (IsValue2) + else if (IsFunctionToolCallOutputResourceVariant2) { - value2?.Invoke(Value2!); + functionToolCallOutputResourceVariant2?.Invoke(FunctionToolCallOutputResourceVariant2!); } } @@ -171,7 +171,7 @@ public override int GetHashCode() { FunctionToolCallOutput, typeof(global::tryAGI.OpenAI.FunctionToolCallOutput), - Value2, + FunctionToolCallOutputResourceVariant2, typeof(global::tryAGI.OpenAI.FunctionToolCallOutputResourceVariant2), }; const int offset = unchecked((int)2166136261); @@ -190,7 +190,7 @@ public bool Equals(FunctionToolCallOutputResource other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionToolCallOutput, other.FunctionToolCallOutput) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionToolCallOutputResourceVariant2, other.FunctionToolCallOutputResourceVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs index 321b57ff..f480d7fb 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.FunctionToolCallResource.g.cs @@ -31,18 +31,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? FunctionToolCallResourceVariant2 { get; init; } #else - public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? Value2 { get; } + public global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? FunctionToolCallResourceVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FunctionToolCallResourceVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsFunctionToolCallResourceVariant2 => FunctionToolCallResourceVariant2 != null; /// /// /// @@ -69,14 +69,14 @@ public FunctionToolCallResource(global::tryAGI.OpenAI.FunctionToolCall? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.FunctionToolCallResourceVariant2?(FunctionToolCallResource @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.FunctionToolCallResourceVariant2?(FunctionToolCallResource @this) => @this.FunctionToolCallResourceVariant2; /// /// /// public FunctionToolCallResource(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? value) { - Value2 = value; + FunctionToolCallResourceVariant2 = value; } /// @@ -84,18 +84,18 @@ public FunctionToolCallResource(global::tryAGI.OpenAI.FunctionToolCallResourceVa /// public FunctionToolCallResource( global::tryAGI.OpenAI.FunctionToolCall? functionToolCall, - global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? value2 + global::tryAGI.OpenAI.FunctionToolCallResourceVariant2? functionToolCallResourceVariant2 ) { FunctionToolCall = functionToolCall; - Value2 = value2; + FunctionToolCallResourceVariant2 = functionToolCallResourceVariant2; } /// /// /// public object? Object => - Value2 as object ?? + FunctionToolCallResourceVariant2 as object ?? FunctionToolCall as object ; @@ -104,7 +104,7 @@ FunctionToolCall as object /// public override string? ToString() => FunctionToolCall?.ToString() ?? - Value2?.ToString() + FunctionToolCallResourceVariant2?.ToString() ; /// @@ -112,7 +112,7 @@ FunctionToolCall as object /// public bool Validate() { - return IsFunctionToolCall && IsValue2; + return IsFunctionToolCall && IsFunctionToolCallResourceVariant2; } /// @@ -120,7 +120,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? functionToolCall = null, - global::System.Func? value2 = null, + global::System.Func? functionToolCallResourceVariant2 = null, bool validate = true) { if (validate) @@ -132,9 +132,9 @@ public bool Validate() { return functionToolCall(FunctionToolCall!); } - else if (IsValue2 && value2 != null) + else if (IsFunctionToolCallResourceVariant2 && functionToolCallResourceVariant2 != null) { - return value2(Value2!); + return functionToolCallResourceVariant2(FunctionToolCallResourceVariant2!); } return default(TResult); @@ -145,7 +145,7 @@ public bool Validate() /// public void Match( global::System.Action? functionToolCall = null, - global::System.Action? value2 = null, + global::System.Action? functionToolCallResourceVariant2 = null, bool validate = true) { if (validate) @@ -157,9 +157,9 @@ public void Match( { functionToolCall?.Invoke(FunctionToolCall!); } - else if (IsValue2) + else if (IsFunctionToolCallResourceVariant2) { - value2?.Invoke(Value2!); + functionToolCallResourceVariant2?.Invoke(FunctionToolCallResourceVariant2!); } } @@ -172,7 +172,7 @@ public override int GetHashCode() { FunctionToolCall, typeof(global::tryAGI.OpenAI.FunctionToolCall), - Value2, + FunctionToolCallResourceVariant2, typeof(global::tryAGI.OpenAI.FunctionToolCallResourceVariant2), }; const int offset = unchecked((int)2166136261); @@ -191,7 +191,7 @@ public bool Equals(FunctionToolCallResource other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionToolCall, other.FunctionToolCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionToolCallResourceVariant2, other.FunctionToolCallResourceVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs index ae0810e7..e73f1629 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.InputMessageResource.g.cs @@ -32,18 +32,18 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.InputMessageResourceVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.InputMessageResourceVariant2? InputMessageResourceVariant2 { get; init; } #else - public global::tryAGI.OpenAI.InputMessageResourceVariant2? Value2 { get; } + public global::tryAGI.OpenAI.InputMessageResourceVariant2? InputMessageResourceVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InputMessageResourceVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsInputMessageResourceVariant2 => InputMessageResourceVariant2 != null; /// /// /// @@ -70,14 +70,14 @@ public InputMessageResource(global::tryAGI.OpenAI.InputMessage? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.InputMessageResourceVariant2?(InputMessageResource @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.InputMessageResourceVariant2?(InputMessageResource @this) => @this.InputMessageResourceVariant2; /// /// /// public InputMessageResource(global::tryAGI.OpenAI.InputMessageResourceVariant2? value) { - Value2 = value; + InputMessageResourceVariant2 = value; } /// @@ -85,18 +85,18 @@ public InputMessageResource(global::tryAGI.OpenAI.InputMessageResourceVariant2? /// public InputMessageResource( global::tryAGI.OpenAI.InputMessage? inputMessage, - global::tryAGI.OpenAI.InputMessageResourceVariant2? value2 + global::tryAGI.OpenAI.InputMessageResourceVariant2? inputMessageResourceVariant2 ) { InputMessage = inputMessage; - Value2 = value2; + InputMessageResourceVariant2 = inputMessageResourceVariant2; } /// /// /// public object? Object => - Value2 as object ?? + InputMessageResourceVariant2 as object ?? InputMessage as object ; @@ -105,7 +105,7 @@ InputMessage as object /// public override string? ToString() => InputMessage?.ToString() ?? - Value2?.ToString() + InputMessageResourceVariant2?.ToString() ; /// @@ -113,7 +113,7 @@ InputMessage as object /// public bool Validate() { - return IsInputMessage && IsValue2; + return IsInputMessage && IsInputMessageResourceVariant2; } /// @@ -121,7 +121,7 @@ public bool Validate() /// public TResult? Match( global::System.Func? inputMessage = null, - global::System.Func? value2 = null, + global::System.Func? inputMessageResourceVariant2 = null, bool validate = true) { if (validate) @@ -133,9 +133,9 @@ public bool Validate() { return inputMessage(InputMessage!); } - else if (IsValue2 && value2 != null) + else if (IsInputMessageResourceVariant2 && inputMessageResourceVariant2 != null) { - return value2(Value2!); + return inputMessageResourceVariant2(InputMessageResourceVariant2!); } return default(TResult); @@ -146,7 +146,7 @@ public bool Validate() /// public void Match( global::System.Action? inputMessage = null, - global::System.Action? value2 = null, + global::System.Action? inputMessageResourceVariant2 = null, bool validate = true) { if (validate) @@ -158,9 +158,9 @@ public void Match( { inputMessage?.Invoke(InputMessage!); } - else if (IsValue2) + else if (IsInputMessageResourceVariant2) { - value2?.Invoke(Value2!); + inputMessageResourceVariant2?.Invoke(InputMessageResourceVariant2!); } } @@ -173,7 +173,7 @@ public override int GetHashCode() { InputMessage, typeof(global::tryAGI.OpenAI.InputMessage), - Value2, + InputMessageResourceVariant2, typeof(global::tryAGI.OpenAI.InputMessageResourceVariant2), }; const int offset = unchecked((int)2166136261); @@ -192,7 +192,7 @@ public bool Equals(InputMessageResource other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(InputMessage, other.InputMessage) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(InputMessageResourceVariant2, other.InputMessageResourceVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs index c2ddb7e2..f03054b0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.MessageStreamEvent.g.cs @@ -13,86 +13,86 @@ namespace tryAGI.OpenAI /// Occurs when a [message](/docs/api-reference/messages/object) is created. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.MessageStreamEventVariant1? Value1 { get; init; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1? MessageStreamEventVariant1 { get; init; } #else - public global::tryAGI.OpenAI.MessageStreamEventVariant1? Value1 { get; } + public global::tryAGI.OpenAI.MessageStreamEventVariant1? MessageStreamEventVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageStreamEventVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsMessageStreamEventVariant1 => MessageStreamEventVariant1 != null; /// /// Occurs when a [message](/docs/api-reference/messages/object) moves to an `in_progress` state. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.MessageStreamEventVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2? MessageStreamEventVariant2 { get; init; } #else - public global::tryAGI.OpenAI.MessageStreamEventVariant2? Value2 { get; } + public global::tryAGI.OpenAI.MessageStreamEventVariant2? MessageStreamEventVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageStreamEventVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsMessageStreamEventVariant2 => MessageStreamEventVariant2 != null; /// /// Occurs when parts of a [Message](/docs/api-reference/messages/object) are being streamed. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.MessageStreamEventVariant3? Value3 { get; init; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3? MessageStreamEventVariant3 { get; init; } #else - public global::tryAGI.OpenAI.MessageStreamEventVariant3? Value3 { get; } + public global::tryAGI.OpenAI.MessageStreamEventVariant3? MessageStreamEventVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageStreamEventVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsMessageStreamEventVariant3 => MessageStreamEventVariant3 != null; /// /// Occurs when a [message](/docs/api-reference/messages/object) is completed. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.MessageStreamEventVariant4? Value4 { get; init; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4? MessageStreamEventVariant4 { get; init; } #else - public global::tryAGI.OpenAI.MessageStreamEventVariant4? Value4 { get; } + public global::tryAGI.OpenAI.MessageStreamEventVariant4? MessageStreamEventVariant4 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageStreamEventVariant4))] #endif - public bool IsValue4 => Value4 != null; + public bool IsMessageStreamEventVariant4 => MessageStreamEventVariant4 != null; /// /// Occurs when a [message](/docs/api-reference/messages/object) ends before it is completed. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.MessageStreamEventVariant5? Value5 { get; init; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5? MessageStreamEventVariant5 { get; init; } #else - public global::tryAGI.OpenAI.MessageStreamEventVariant5? Value5 { get; } + public global::tryAGI.OpenAI.MessageStreamEventVariant5? MessageStreamEventVariant5 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MessageStreamEventVariant5))] #endif - public bool IsValue5 => Value5 != null; + public bool IsMessageStreamEventVariant5 => MessageStreamEventVariant5 != null; /// /// /// @@ -101,14 +101,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant1?(MessageStreamEvent @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant1?(MessageStreamEvent @this) => @this.MessageStreamEventVariant1; /// /// /// public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant1? value) { - Value1 = value; + MessageStreamEventVariant1 = value; } /// @@ -119,14 +119,14 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant1? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant2?(MessageStreamEvent @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant2?(MessageStreamEvent @this) => @this.MessageStreamEventVariant2; /// /// /// public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant2? value) { - Value2 = value; + MessageStreamEventVariant2 = value; } /// @@ -137,14 +137,14 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant2? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant3?(MessageStreamEvent @this) => @this.Value3; + public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant3?(MessageStreamEvent @this) => @this.MessageStreamEventVariant3; /// /// /// public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant3? value) { - Value3 = value; + MessageStreamEventVariant3 = value; } /// @@ -155,14 +155,14 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant3? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant4?(MessageStreamEvent @this) => @this.Value4; + public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant4?(MessageStreamEvent @this) => @this.MessageStreamEventVariant4; /// /// /// public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant4? value) { - Value4 = value; + MessageStreamEventVariant4 = value; } /// @@ -173,54 +173,54 @@ public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant4? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant5?(MessageStreamEvent @this) => @this.Value5; + public static implicit operator global::tryAGI.OpenAI.MessageStreamEventVariant5?(MessageStreamEvent @this) => @this.MessageStreamEventVariant5; /// /// /// public MessageStreamEvent(global::tryAGI.OpenAI.MessageStreamEventVariant5? value) { - Value5 = value; + MessageStreamEventVariant5 = value; } /// /// /// public MessageStreamEvent( - global::tryAGI.OpenAI.MessageStreamEventVariant1? value1, - global::tryAGI.OpenAI.MessageStreamEventVariant2? value2, - global::tryAGI.OpenAI.MessageStreamEventVariant3? value3, - global::tryAGI.OpenAI.MessageStreamEventVariant4? value4, - global::tryAGI.OpenAI.MessageStreamEventVariant5? value5 + global::tryAGI.OpenAI.MessageStreamEventVariant1? messageStreamEventVariant1, + global::tryAGI.OpenAI.MessageStreamEventVariant2? messageStreamEventVariant2, + global::tryAGI.OpenAI.MessageStreamEventVariant3? messageStreamEventVariant3, + global::tryAGI.OpenAI.MessageStreamEventVariant4? messageStreamEventVariant4, + global::tryAGI.OpenAI.MessageStreamEventVariant5? messageStreamEventVariant5 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - Value5 = value5; + MessageStreamEventVariant1 = messageStreamEventVariant1; + MessageStreamEventVariant2 = messageStreamEventVariant2; + MessageStreamEventVariant3 = messageStreamEventVariant3; + MessageStreamEventVariant4 = messageStreamEventVariant4; + MessageStreamEventVariant5 = messageStreamEventVariant5; } /// /// /// public object? Object => - Value5 as object ?? - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object + MessageStreamEventVariant5 as object ?? + MessageStreamEventVariant4 as object ?? + MessageStreamEventVariant3 as object ?? + MessageStreamEventVariant2 as object ?? + MessageStreamEventVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() ?? - Value4?.ToString() ?? - Value5?.ToString() + MessageStreamEventVariant1?.ToString() ?? + MessageStreamEventVariant2?.ToString() ?? + MessageStreamEventVariant3?.ToString() ?? + MessageStreamEventVariant4?.ToString() ?? + MessageStreamEventVariant5?.ToString() ; /// @@ -228,18 +228,18 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5; + return IsMessageStreamEventVariant1 && !IsMessageStreamEventVariant2 && !IsMessageStreamEventVariant3 && !IsMessageStreamEventVariant4 && !IsMessageStreamEventVariant5 || !IsMessageStreamEventVariant1 && IsMessageStreamEventVariant2 && !IsMessageStreamEventVariant3 && !IsMessageStreamEventVariant4 && !IsMessageStreamEventVariant5 || !IsMessageStreamEventVariant1 && !IsMessageStreamEventVariant2 && IsMessageStreamEventVariant3 && !IsMessageStreamEventVariant4 && !IsMessageStreamEventVariant5 || !IsMessageStreamEventVariant1 && !IsMessageStreamEventVariant2 && !IsMessageStreamEventVariant3 && IsMessageStreamEventVariant4 && !IsMessageStreamEventVariant5 || !IsMessageStreamEventVariant1 && !IsMessageStreamEventVariant2 && !IsMessageStreamEventVariant3 && !IsMessageStreamEventVariant4 && IsMessageStreamEventVariant5; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - global::System.Func? value5 = null, + global::System.Func? messageStreamEventVariant1 = null, + global::System.Func? messageStreamEventVariant2 = null, + global::System.Func? messageStreamEventVariant3 = null, + global::System.Func? messageStreamEventVariant4 = null, + global::System.Func? messageStreamEventVariant5 = null, bool validate = true) { if (validate) @@ -247,25 +247,25 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsMessageStreamEventVariant1 && messageStreamEventVariant1 != null) { - return value1(Value1!); + return messageStreamEventVariant1(MessageStreamEventVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsMessageStreamEventVariant2 && messageStreamEventVariant2 != null) { - return value2(Value2!); + return messageStreamEventVariant2(MessageStreamEventVariant2!); } - else if (IsValue3 && value3 != null) + else if (IsMessageStreamEventVariant3 && messageStreamEventVariant3 != null) { - return value3(Value3!); + return messageStreamEventVariant3(MessageStreamEventVariant3!); } - else if (IsValue4 && value4 != null) + else if (IsMessageStreamEventVariant4 && messageStreamEventVariant4 != null) { - return value4(Value4!); + return messageStreamEventVariant4(MessageStreamEventVariant4!); } - else if (IsValue5 && value5 != null) + else if (IsMessageStreamEventVariant5 && messageStreamEventVariant5 != null) { - return value5(Value5!); + return messageStreamEventVariant5(MessageStreamEventVariant5!); } return default(TResult); @@ -275,11 +275,11 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - global::System.Action? value5 = null, + global::System.Action? messageStreamEventVariant1 = null, + global::System.Action? messageStreamEventVariant2 = null, + global::System.Action? messageStreamEventVariant3 = null, + global::System.Action? messageStreamEventVariant4 = null, + global::System.Action? messageStreamEventVariant5 = null, bool validate = true) { if (validate) @@ -287,25 +287,25 @@ public void Match( Validate(); } - if (IsValue1) + if (IsMessageStreamEventVariant1) { - value1?.Invoke(Value1!); + messageStreamEventVariant1?.Invoke(MessageStreamEventVariant1!); } - else if (IsValue2) + else if (IsMessageStreamEventVariant2) { - value2?.Invoke(Value2!); + messageStreamEventVariant2?.Invoke(MessageStreamEventVariant2!); } - else if (IsValue3) + else if (IsMessageStreamEventVariant3) { - value3?.Invoke(Value3!); + messageStreamEventVariant3?.Invoke(MessageStreamEventVariant3!); } - else if (IsValue4) + else if (IsMessageStreamEventVariant4) { - value4?.Invoke(Value4!); + messageStreamEventVariant4?.Invoke(MessageStreamEventVariant4!); } - else if (IsValue5) + else if (IsMessageStreamEventVariant5) { - value5?.Invoke(Value5!); + messageStreamEventVariant5?.Invoke(MessageStreamEventVariant5!); } } @@ -316,15 +316,15 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + MessageStreamEventVariant1, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant1), - Value2, + MessageStreamEventVariant2, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant2), - Value3, + MessageStreamEventVariant3, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant3), - Value4, + MessageStreamEventVariant4, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant4), - Value5, + MessageStreamEventVariant5, typeof(global::tryAGI.OpenAI.MessageStreamEventVariant5), }; const int offset = unchecked((int)2166136261); @@ -342,11 +342,11 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(MessageStreamEvent other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageStreamEventVariant1, other.MessageStreamEventVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageStreamEventVariant2, other.MessageStreamEventVariant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageStreamEventVariant3, other.MessageStreamEventVariant3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageStreamEventVariant4, other.MessageStreamEventVariant4) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MessageStreamEventVariant5, other.MessageStreamEventVariant5) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs index 061cf2da..66d7f629 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsCompaction.g.cs @@ -13,52 +13,52 @@ namespace tryAGI.OpenAI /// Example: gpt-5.1 /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ModelIdsResponses? Value1 { get; init; } + public global::tryAGI.OpenAI.ModelIdsResponses? Responses { get; init; } #else - public global::tryAGI.OpenAI.ModelIdsResponses? Value1 { get; } + public global::tryAGI.OpenAI.ModelIdsResponses? Responses { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Responses))] #endif - public bool IsValue1 => Value1 != null; + public bool IsResponses => Responses != null; /// /// /// #if NET6_0_OR_GREATER - public string? Value2 { get; init; } + public string? ModelIdsCompactionVariant2 { get; init; } #else - public string? Value2 { get; } + public string? ModelIdsCompactionVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ModelIdsCompactionVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsModelIdsCompactionVariant2 => ModelIdsCompactionVariant2 != null; /// /// /// #if NET6_0_OR_GREATER - public object? Value3 { get; init; } + public object? ModelIdsCompactionVariant3 { get; init; } #else - public object? Value3 { get; } + public object? ModelIdsCompactionVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ModelIdsCompactionVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsModelIdsCompactionVariant3 => ModelIdsCompactionVariant3 != null; /// /// /// @@ -67,14 +67,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.ModelIdsResponses?(ModelIdsCompaction @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.ModelIdsResponses?(ModelIdsCompaction @this) => @this.Responses; /// /// /// public ModelIdsCompaction(global::tryAGI.OpenAI.ModelIdsResponses? value) { - Value1 = value; + Responses = value; } /// @@ -85,46 +85,46 @@ public ModelIdsCompaction(global::tryAGI.OpenAI.ModelIdsResponses? value) /// /// /// - public static implicit operator string?(ModelIdsCompaction @this) => @this.Value2; + public static implicit operator string?(ModelIdsCompaction @this) => @this.ModelIdsCompactionVariant2; /// /// /// public ModelIdsCompaction(string? value) { - Value2 = value; + ModelIdsCompactionVariant2 = value; } /// /// /// public ModelIdsCompaction( - global::tryAGI.OpenAI.ModelIdsResponses? value1, - string? value2, - object? value3 + global::tryAGI.OpenAI.ModelIdsResponses? responses, + string? modelIdsCompactionVariant2, + object? modelIdsCompactionVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + Responses = responses; + ModelIdsCompactionVariant2 = modelIdsCompactionVariant2; + ModelIdsCompactionVariant3 = modelIdsCompactionVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + ModelIdsCompactionVariant3 as object ?? + ModelIdsCompactionVariant2 as object ?? + Responses as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + Responses?.ToString() ?? + ModelIdsCompactionVariant2?.ToString() ?? + ModelIdsCompactionVariant3?.ToString() ; /// @@ -132,16 +132,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2 || IsValue3; + return IsResponses || IsModelIdsCompactionVariant2 || IsModelIdsCompactionVariant3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, + global::System.Func? responses = null, + global::System.Func? modelIdsCompactionVariant2 = null, + global::System.Func? modelIdsCompactionVariant3 = null, bool validate = true) { if (validate) @@ -149,17 +149,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsResponses && responses != null) { - return value1(Value1!); + return responses(Responses!); } - else if (IsValue2 && value2 != null) + else if (IsModelIdsCompactionVariant2 && modelIdsCompactionVariant2 != null) { - return value2(Value2!); + return modelIdsCompactionVariant2(ModelIdsCompactionVariant2!); } - else if (IsValue3 && value3 != null) + else if (IsModelIdsCompactionVariant3 && modelIdsCompactionVariant3 != null) { - return value3(Value3!); + return modelIdsCompactionVariant3(ModelIdsCompactionVariant3!); } return default(TResult); @@ -169,9 +169,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, + global::System.Action? responses = null, + global::System.Action? modelIdsCompactionVariant2 = null, + global::System.Action? modelIdsCompactionVariant3 = null, bool validate = true) { if (validate) @@ -179,17 +179,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsResponses) { - value1?.Invoke(Value1!); + responses?.Invoke(Responses!); } - else if (IsValue2) + else if (IsModelIdsCompactionVariant2) { - value2?.Invoke(Value2!); + modelIdsCompactionVariant2?.Invoke(ModelIdsCompactionVariant2!); } - else if (IsValue3) + else if (IsModelIdsCompactionVariant3) { - value3?.Invoke(Value3!); + modelIdsCompactionVariant3?.Invoke(ModelIdsCompactionVariant3!); } } @@ -200,11 +200,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Responses, typeof(global::tryAGI.OpenAI.ModelIdsResponses), - Value2, + ModelIdsCompactionVariant2, typeof(string), - Value3, + ModelIdsCompactionVariant3, typeof(object), }; const int offset = unchecked((int)2166136261); @@ -222,9 +222,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ModelIdsCompaction other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Responses, other.Responses) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ModelIdsCompactionVariant2, other.ModelIdsCompactionVariant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ModelIdsCompactionVariant3, other.ModelIdsCompactionVariant3) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs index d1f4ca42..37dcb335 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsResponses.g.cs @@ -13,18 +13,18 @@ namespace tryAGI.OpenAI /// Example: gpt-5.4 /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ModelIdsShared? Value1 { get; init; } + public global::tryAGI.OpenAI.ModelIdsShared? Shared { get; init; } #else - public global::tryAGI.OpenAI.ModelIdsShared? Value1 { get; } + public global::tryAGI.OpenAI.ModelIdsShared? Shared { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Shared))] #endif - public bool IsValue1 => Value1 != null; + public bool IsShared => Shared != null; /// /// @@ -50,14 +50,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.ModelIdsShared?(ModelIdsResponses @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.ModelIdsShared?(ModelIdsResponses @this) => @this.Shared; /// /// /// public ModelIdsResponses(global::tryAGI.OpenAI.ModelIdsShared? value) { - Value1 = value; + Shared = value; } /// @@ -82,11 +82,11 @@ public ModelIdsResponses(global::tryAGI.OpenAI.ModelIdsResponsesEnum? value) /// /// public ModelIdsResponses( - global::tryAGI.OpenAI.ModelIdsShared? value1, + global::tryAGI.OpenAI.ModelIdsShared? shared, global::tryAGI.OpenAI.ModelIdsResponsesEnum? responsesOnlyModel ) { - Value1 = value1; + Shared = shared; ResponsesOnlyModel = responsesOnlyModel; } @@ -95,14 +95,14 @@ public ModelIdsResponses( /// public object? Object => ResponsesOnlyModel as object ?? - Value1 as object + Shared as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? + Shared?.ToString() ?? ResponsesOnlyModel?.ToValueString() ; @@ -111,14 +111,14 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsResponsesOnlyModel; + return IsShared || IsResponsesOnlyModel; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, + global::System.Func? shared = null, global::System.Func? responsesOnlyModel = null, bool validate = true) { @@ -127,9 +127,9 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsShared && shared != null) { - return value1(Value1!); + return shared(Shared!); } else if (IsResponsesOnlyModel && responsesOnlyModel != null) { @@ -143,7 +143,7 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, + global::System.Action? shared = null, global::System.Action? responsesOnlyModel = null, bool validate = true) { @@ -152,9 +152,9 @@ public void Match( Validate(); } - if (IsValue1) + if (IsShared) { - value1?.Invoke(Value1!); + shared?.Invoke(Shared!); } else if (IsResponsesOnlyModel) { @@ -169,7 +169,7 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Shared, typeof(global::tryAGI.OpenAI.ModelIdsShared), ResponsesOnlyModel, typeof(global::tryAGI.OpenAI.ModelIdsResponsesEnum), @@ -189,7 +189,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ModelIdsResponses other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Shared, other.Shared) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesOnlyModel, other.ResponsesOnlyModel) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs index 91562e80..2a126f5f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelIdsShared.g.cs @@ -13,35 +13,35 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public string? Value1 { get; init; } + public string? ModelIdsSharedVariant1 { get; init; } #else - public string? Value1 { get; } + public string? ModelIdsSharedVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ModelIdsSharedVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsModelIdsSharedVariant1 => ModelIdsSharedVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ModelIdsSharedEnum? Value2 { get; init; } + public global::tryAGI.OpenAI.ModelIdsSharedEnum? Enum { get; init; } #else - public global::tryAGI.OpenAI.ModelIdsSharedEnum? Value2 { get; } + public global::tryAGI.OpenAI.ModelIdsSharedEnum? Enum { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] #endif - public bool IsValue2 => Value2 != null; + public bool IsEnum => Enum != null; /// /// /// @@ -50,14 +50,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator string?(ModelIdsShared @this) => @this.Value1; + public static implicit operator string?(ModelIdsShared @this) => @this.ModelIdsSharedVariant1; /// /// /// public ModelIdsShared(string? value) { - Value1 = value; + ModelIdsSharedVariant1 = value; } /// @@ -68,42 +68,42 @@ public ModelIdsShared(string? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.ModelIdsSharedEnum?(ModelIdsShared @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.ModelIdsSharedEnum?(ModelIdsShared @this) => @this.Enum; /// /// /// public ModelIdsShared(global::tryAGI.OpenAI.ModelIdsSharedEnum? value) { - Value2 = value; + Enum = value; } /// /// /// public ModelIdsShared( - string? value1, - global::tryAGI.OpenAI.ModelIdsSharedEnum? value2 + string? modelIdsSharedVariant1, + global::tryAGI.OpenAI.ModelIdsSharedEnum? @enum ) { - Value1 = value1; - Value2 = value2; + ModelIdsSharedVariant1 = modelIdsSharedVariant1; + Enum = @enum; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Enum as object ?? + ModelIdsSharedVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToValueString() + ModelIdsSharedVariant1?.ToString() ?? + Enum?.ToValueString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2; + return IsModelIdsSharedVariant1 || IsEnum; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? modelIdsSharedVariant1 = null, + global::System.Func? @enum = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsModelIdsSharedVariant1 && modelIdsSharedVariant1 != null) { - return value1(Value1!); + return modelIdsSharedVariant1(ModelIdsSharedVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsEnum && @enum != null) { - return value2(Value2!); + return @enum(Enum!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? modelIdsSharedVariant1 = null, + global::System.Action? @enum = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsModelIdsSharedVariant1) { - value1?.Invoke(Value1!); + modelIdsSharedVariant1?.Invoke(ModelIdsSharedVariant1!); } - else if (IsValue2) + else if (IsEnum) { - value2?.Invoke(Value2!); + @enum?.Invoke(Enum!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ModelIdsSharedVariant1, typeof(string), - Value2, + Enum, typeof(global::tryAGI.OpenAI.ModelIdsSharedEnum), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ModelIdsShared other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ModelIdsSharedVariant1, other.ModelIdsSharedVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs index d1f9305f..fb5a01fe 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RealtimeTruncation.g.cs @@ -16,18 +16,18 @@ namespace tryAGI.OpenAI /// The truncation strategy to use for the session. `auto` is the default truncation strategy. `disabled` will disable truncation and emit errors when the conversation exceeds the input token limit. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RealtimeTruncationEnum? Value1 { get; init; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum? Enum { get; init; } #else - public global::tryAGI.OpenAI.RealtimeTruncationEnum? Value1 { get; } + public global::tryAGI.OpenAI.RealtimeTruncationEnum? Enum { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] #endif - public bool IsValue1 => Value1 != null; + public bool IsEnum => Enum != null; /// /// Retain a fraction of the conversation tokens when the conversation exceeds the input token limit. This allows you to amortize truncations across multiple turns, which can help improve cached token usage. @@ -53,14 +53,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.RealtimeTruncationEnum?(RealtimeTruncation @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.RealtimeTruncationEnum?(RealtimeTruncation @this) => @this.Enum; /// /// /// public RealtimeTruncation(global::tryAGI.OpenAI.RealtimeTruncationEnum? value) { - Value1 = value; + Enum = value; } /// @@ -85,11 +85,11 @@ public RealtimeTruncation(global::tryAGI.OpenAI.RealtimeTruncationEnum2? value) /// /// public RealtimeTruncation( - global::tryAGI.OpenAI.RealtimeTruncationEnum? value1, + global::tryAGI.OpenAI.RealtimeTruncationEnum? @enum, global::tryAGI.OpenAI.RealtimeTruncationEnum2? retentionRatioTruncation ) { - Value1 = value1; + Enum = @enum; RetentionRatioTruncation = retentionRatioTruncation; } @@ -98,14 +98,14 @@ public RealtimeTruncation( /// public object? Object => RetentionRatioTruncation as object ?? - Value1 as object + Enum as object ; /// /// /// public override string? ToString() => - Value1?.ToValueString() ?? + Enum?.ToValueString() ?? RetentionRatioTruncation?.ToString() ; @@ -114,14 +114,14 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsRetentionRatioTruncation || !IsValue1 && IsRetentionRatioTruncation; + return IsEnum && !IsRetentionRatioTruncation || !IsEnum && IsRetentionRatioTruncation; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, + global::System.Func? @enum = null, global::System.Func? retentionRatioTruncation = null, bool validate = true) { @@ -130,9 +130,9 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsEnum && @enum != null) { - return value1(Value1!); + return @enum(Enum!); } else if (IsRetentionRatioTruncation && retentionRatioTruncation != null) { @@ -146,7 +146,7 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, + global::System.Action? @enum = null, global::System.Action? retentionRatioTruncation = null, bool validate = true) { @@ -155,9 +155,9 @@ public void Match( Validate(); } - if (IsValue1) + if (IsEnum) { - value1?.Invoke(Value1!); + @enum?.Invoke(Enum!); } else if (IsRetentionRatioTruncation) { @@ -172,7 +172,7 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Enum, typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum), RetentionRatioTruncation, typeof(global::tryAGI.OpenAI.RealtimeTruncationEnum2), @@ -192,7 +192,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(RealtimeTruncation other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) && global::System.Collections.Generic.EqualityComparer.Default.Equals(RetentionRatioTruncation, other.RetentionRatioTruncation) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs index a5c34084..9103eb40 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.Response.g.cs @@ -13,52 +13,52 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ModelResponseProperties? Value1 { get; init; } + public global::tryAGI.OpenAI.ModelResponseProperties? ModelProperties { get; init; } #else - public global::tryAGI.OpenAI.ModelResponseProperties? Value1 { get; } + public global::tryAGI.OpenAI.ModelResponseProperties? ModelProperties { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ModelProperties))] #endif - public bool IsValue1 => Value1 != null; + public bool IsModelProperties => ModelProperties != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ResponseProperties? Value2 { get; init; } + public global::tryAGI.OpenAI.ResponseProperties? Properties { get; init; } #else - public global::tryAGI.OpenAI.ResponseProperties? Value2 { get; } + public global::tryAGI.OpenAI.ResponseProperties? Properties { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Properties))] #endif - public bool IsValue2 => Value2 != null; + public bool IsProperties => Properties != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ResponseVariant3? Value3 { get; init; } + public global::tryAGI.OpenAI.ResponseVariant3? ResponseVariant3 { get; init; } #else - public global::tryAGI.OpenAI.ResponseVariant3? Value3 { get; } + public global::tryAGI.OpenAI.ResponseVariant3? ResponseVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponseVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsResponseVariant3 => ResponseVariant3 != null; /// /// /// @@ -67,14 +67,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.ModelResponseProperties?(Response @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.ModelResponseProperties?(Response @this) => @this.ModelProperties; /// /// /// public Response(global::tryAGI.OpenAI.ModelResponseProperties? value) { - Value1 = value; + ModelProperties = value; } /// @@ -85,14 +85,14 @@ public Response(global::tryAGI.OpenAI.ModelResponseProperties? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.ResponseProperties?(Response @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.ResponseProperties?(Response @this) => @this.Properties; /// /// /// public Response(global::tryAGI.OpenAI.ResponseProperties? value) { - Value2 = value; + Properties = value; } /// @@ -103,46 +103,46 @@ public Response(global::tryAGI.OpenAI.ResponseProperties? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.ResponseVariant3?(Response @this) => @this.Value3; + public static implicit operator global::tryAGI.OpenAI.ResponseVariant3?(Response @this) => @this.ResponseVariant3; /// /// /// public Response(global::tryAGI.OpenAI.ResponseVariant3? value) { - Value3 = value; + ResponseVariant3 = value; } /// /// /// public Response( - global::tryAGI.OpenAI.ModelResponseProperties? value1, - global::tryAGI.OpenAI.ResponseProperties? value2, - global::tryAGI.OpenAI.ResponseVariant3? value3 + global::tryAGI.OpenAI.ModelResponseProperties? modelProperties, + global::tryAGI.OpenAI.ResponseProperties? properties, + global::tryAGI.OpenAI.ResponseVariant3? responseVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + ModelProperties = modelProperties; + Properties = properties; + ResponseVariant3 = responseVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + ResponseVariant3 as object ?? + Properties as object ?? + ModelProperties as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + ModelProperties?.ToString() ?? + Properties?.ToString() ?? + ResponseVariant3?.ToString() ; /// @@ -150,16 +150,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2 && IsValue3; + return IsModelProperties && IsProperties && IsResponseVariant3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, + global::System.Func? modelProperties = null, + global::System.Func? properties = null, + global::System.Func? responseVariant3 = null, bool validate = true) { if (validate) @@ -167,17 +167,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsModelProperties && modelProperties != null) { - return value1(Value1!); + return modelProperties(ModelProperties!); } - else if (IsValue2 && value2 != null) + else if (IsProperties && properties != null) { - return value2(Value2!); + return properties(Properties!); } - else if (IsValue3 && value3 != null) + else if (IsResponseVariant3 && responseVariant3 != null) { - return value3(Value3!); + return responseVariant3(ResponseVariant3!); } return default(TResult); @@ -187,9 +187,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, + global::System.Action? modelProperties = null, + global::System.Action? properties = null, + global::System.Action? responseVariant3 = null, bool validate = true) { if (validate) @@ -197,17 +197,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsModelProperties) { - value1?.Invoke(Value1!); + modelProperties?.Invoke(ModelProperties!); } - else if (IsValue2) + else if (IsProperties) { - value2?.Invoke(Value2!); + properties?.Invoke(Properties!); } - else if (IsValue3) + else if (IsResponseVariant3) { - value3?.Invoke(Value3!); + responseVariant3?.Invoke(ResponseVariant3!); } } @@ -218,11 +218,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ModelProperties, typeof(global::tryAGI.OpenAI.ModelResponseProperties), - Value2, + Properties, typeof(global::tryAGI.OpenAI.ResponseProperties), - Value3, + ResponseVariant3, typeof(global::tryAGI.OpenAI.ResponseVariant3), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(Response other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ModelProperties, other.ModelProperties) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Properties, other.Properties) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponseVariant3, other.ResponseVariant3) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs index d93406c7..1efac4b7 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsesClientEventResponseCreate.g.cs @@ -17,35 +17,35 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Value1 { get; init; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? ResponsesClientEventResponseCreateVariant1 { get; init; } #else - public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? Value1 { get; } + public global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? ResponsesClientEventResponseCreateVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesClientEventResponseCreateVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsResponsesClientEventResponseCreateVariant1 => ResponsesClientEventResponseCreateVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.CreateResponse? Value2 { get; init; } + public global::tryAGI.OpenAI.CreateResponse? CreateResponse { get; init; } #else - public global::tryAGI.OpenAI.CreateResponse? Value2 { get; } + public global::tryAGI.OpenAI.CreateResponse? CreateResponse { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateResponse))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCreateResponse => CreateResponse != null; /// /// /// @@ -54,14 +54,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1?(ResponsesClientEventResponseCreate @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1?(ResponsesClientEventResponseCreate @this) => @this.ResponsesClientEventResponseCreateVariant1; /// /// /// public ResponsesClientEventResponseCreate(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? value) { - Value1 = value; + ResponsesClientEventResponseCreateVariant1 = value; } /// @@ -72,42 +72,42 @@ public ResponsesClientEventResponseCreate(global::tryAGI.OpenAI.ResponsesClientE /// /// /// - public static implicit operator global::tryAGI.OpenAI.CreateResponse?(ResponsesClientEventResponseCreate @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.CreateResponse?(ResponsesClientEventResponseCreate @this) => @this.CreateResponse; /// /// /// public ResponsesClientEventResponseCreate(global::tryAGI.OpenAI.CreateResponse? value) { - Value2 = value; + CreateResponse = value; } /// /// /// public ResponsesClientEventResponseCreate( - global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? value1, - global::tryAGI.OpenAI.CreateResponse? value2 + global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1? responsesClientEventResponseCreateVariant1, + global::tryAGI.OpenAI.CreateResponse? createResponse ) { - Value1 = value1; - Value2 = value2; + ResponsesClientEventResponseCreateVariant1 = responsesClientEventResponseCreateVariant1; + CreateResponse = createResponse; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + CreateResponse as object ?? + ResponsesClientEventResponseCreateVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + ResponsesClientEventResponseCreateVariant1?.ToString() ?? + CreateResponse?.ToString() ; /// @@ -115,15 +115,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsResponsesClientEventResponseCreateVariant1 && IsCreateResponse; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? responsesClientEventResponseCreateVariant1 = null, + global::System.Func? createResponse = null, bool validate = true) { if (validate) @@ -131,13 +131,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsResponsesClientEventResponseCreateVariant1 && responsesClientEventResponseCreateVariant1 != null) { - return value1(Value1!); + return responsesClientEventResponseCreateVariant1(ResponsesClientEventResponseCreateVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsCreateResponse && createResponse != null) { - return value2(Value2!); + return createResponse(CreateResponse!); } return default(TResult); @@ -147,8 +147,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? responsesClientEventResponseCreateVariant1 = null, + global::System.Action? createResponse = null, bool validate = true) { if (validate) @@ -156,13 +156,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsResponsesClientEventResponseCreateVariant1) { - value1?.Invoke(Value1!); + responsesClientEventResponseCreateVariant1?.Invoke(ResponsesClientEventResponseCreateVariant1!); } - else if (IsValue2) + else if (IsCreateResponse) { - value2?.Invoke(Value2!); + createResponse?.Invoke(CreateResponse!); } } @@ -173,9 +173,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ResponsesClientEventResponseCreateVariant1, typeof(global::tryAGI.OpenAI.ResponsesClientEventResponseCreateVariant1), - Value2, + CreateResponse, typeof(global::tryAGI.OpenAI.CreateResponse), }; const int offset = unchecked((int)2166136261); @@ -193,8 +193,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ResponsesClientEventResponseCreate other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesClientEventResponseCreateVariant1, other.ResponsesClientEventResponseCreateVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateResponse, other.CreateResponse) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs index 48874330..42c6353e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStepStreamEvent.g.cs @@ -13,120 +13,120 @@ namespace tryAGI.OpenAI /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is created. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Value1 { get; init; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1? RunStepStreamEventVariant1 { get; init; } #else - public global::tryAGI.OpenAI.RunStepStreamEventVariant1? Value1 { get; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant1? RunStepStreamEventVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepStreamEventVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsRunStepStreamEventVariant1 => RunStepStreamEventVariant1 != null; /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) moves to an `in_progress` state. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2? RunStepStreamEventVariant2 { get; init; } #else - public global::tryAGI.OpenAI.RunStepStreamEventVariant2? Value2 { get; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant2? RunStepStreamEventVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepStreamEventVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsRunStepStreamEventVariant2 => RunStepStreamEventVariant2 != null; /// /// Occurs when parts of a [run step](/docs/api-reference/run-steps/step-object) are being streamed. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Value3 { get; init; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3? RunStepStreamEventVariant3 { get; init; } #else - public global::tryAGI.OpenAI.RunStepStreamEventVariant3? Value3 { get; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant3? RunStepStreamEventVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepStreamEventVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsRunStepStreamEventVariant3 => RunStepStreamEventVariant3 != null; /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is completed. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Value4 { get; init; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4? RunStepStreamEventVariant4 { get; init; } #else - public global::tryAGI.OpenAI.RunStepStreamEventVariant4? Value4 { get; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant4? RunStepStreamEventVariant4 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepStreamEventVariant4))] #endif - public bool IsValue4 => Value4 != null; + public bool IsRunStepStreamEventVariant4 => RunStepStreamEventVariant4 != null; /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) fails. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Value5 { get; init; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5? RunStepStreamEventVariant5 { get; init; } #else - public global::tryAGI.OpenAI.RunStepStreamEventVariant5? Value5 { get; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant5? RunStepStreamEventVariant5 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepStreamEventVariant5))] #endif - public bool IsValue5 => Value5 != null; + public bool IsRunStepStreamEventVariant5 => RunStepStreamEventVariant5 != null; /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) is cancelled. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Value6 { get; init; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6? RunStepStreamEventVariant6 { get; init; } #else - public global::tryAGI.OpenAI.RunStepStreamEventVariant6? Value6 { get; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant6? RunStepStreamEventVariant6 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value6))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepStreamEventVariant6))] #endif - public bool IsValue6 => Value6 != null; + public bool IsRunStepStreamEventVariant6 => RunStepStreamEventVariant6 != null; /// /// Occurs when a [run step](/docs/api-reference/run-steps/step-object) expires. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Value7 { get; init; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7? RunStepStreamEventVariant7 { get; init; } #else - public global::tryAGI.OpenAI.RunStepStreamEventVariant7? Value7 { get; } + public global::tryAGI.OpenAI.RunStepStreamEventVariant7? RunStepStreamEventVariant7 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value7))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStepStreamEventVariant7))] #endif - public bool IsValue7 => Value7 != null; + public bool IsRunStepStreamEventVariant7 => RunStepStreamEventVariant7 != null; /// /// /// @@ -135,14 +135,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant1?(RunStepStreamEvent @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant1?(RunStepStreamEvent @this) => @this.RunStepStreamEventVariant1; /// /// /// public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant1? value) { - Value1 = value; + RunStepStreamEventVariant1 = value; } /// @@ -153,14 +153,14 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant1? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant2?(RunStepStreamEvent @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant2?(RunStepStreamEvent @this) => @this.RunStepStreamEventVariant2; /// /// /// public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant2? value) { - Value2 = value; + RunStepStreamEventVariant2 = value; } /// @@ -171,14 +171,14 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant2? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant3?(RunStepStreamEvent @this) => @this.Value3; + public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant3?(RunStepStreamEvent @this) => @this.RunStepStreamEventVariant3; /// /// /// public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant3? value) { - Value3 = value; + RunStepStreamEventVariant3 = value; } /// @@ -189,14 +189,14 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant3? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant4?(RunStepStreamEvent @this) => @this.Value4; + public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant4?(RunStepStreamEvent @this) => @this.RunStepStreamEventVariant4; /// /// /// public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant4? value) { - Value4 = value; + RunStepStreamEventVariant4 = value; } /// @@ -207,14 +207,14 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant4? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant5?(RunStepStreamEvent @this) => @this.Value5; + public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant5?(RunStepStreamEvent @this) => @this.RunStepStreamEventVariant5; /// /// /// public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant5? value) { - Value5 = value; + RunStepStreamEventVariant5 = value; } /// @@ -225,14 +225,14 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant5? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant6?(RunStepStreamEvent @this) => @this.Value6; + public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant6?(RunStepStreamEvent @this) => @this.RunStepStreamEventVariant6; /// /// /// public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant6? value) { - Value6 = value; + RunStepStreamEventVariant6 = value; } /// @@ -243,62 +243,62 @@ public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant6? valu /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant7?(RunStepStreamEvent @this) => @this.Value7; + public static implicit operator global::tryAGI.OpenAI.RunStepStreamEventVariant7?(RunStepStreamEvent @this) => @this.RunStepStreamEventVariant7; /// /// /// public RunStepStreamEvent(global::tryAGI.OpenAI.RunStepStreamEventVariant7? value) { - Value7 = value; + RunStepStreamEventVariant7 = value; } /// /// /// public RunStepStreamEvent( - global::tryAGI.OpenAI.RunStepStreamEventVariant1? value1, - global::tryAGI.OpenAI.RunStepStreamEventVariant2? value2, - global::tryAGI.OpenAI.RunStepStreamEventVariant3? value3, - global::tryAGI.OpenAI.RunStepStreamEventVariant4? value4, - global::tryAGI.OpenAI.RunStepStreamEventVariant5? value5, - global::tryAGI.OpenAI.RunStepStreamEventVariant6? value6, - global::tryAGI.OpenAI.RunStepStreamEventVariant7? value7 + global::tryAGI.OpenAI.RunStepStreamEventVariant1? runStepStreamEventVariant1, + global::tryAGI.OpenAI.RunStepStreamEventVariant2? runStepStreamEventVariant2, + global::tryAGI.OpenAI.RunStepStreamEventVariant3? runStepStreamEventVariant3, + global::tryAGI.OpenAI.RunStepStreamEventVariant4? runStepStreamEventVariant4, + global::tryAGI.OpenAI.RunStepStreamEventVariant5? runStepStreamEventVariant5, + global::tryAGI.OpenAI.RunStepStreamEventVariant6? runStepStreamEventVariant6, + global::tryAGI.OpenAI.RunStepStreamEventVariant7? runStepStreamEventVariant7 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - Value5 = value5; - Value6 = value6; - Value7 = value7; + RunStepStreamEventVariant1 = runStepStreamEventVariant1; + RunStepStreamEventVariant2 = runStepStreamEventVariant2; + RunStepStreamEventVariant3 = runStepStreamEventVariant3; + RunStepStreamEventVariant4 = runStepStreamEventVariant4; + RunStepStreamEventVariant5 = runStepStreamEventVariant5; + RunStepStreamEventVariant6 = runStepStreamEventVariant6; + RunStepStreamEventVariant7 = runStepStreamEventVariant7; } /// /// /// public object? Object => - Value7 as object ?? - Value6 as object ?? - Value5 as object ?? - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object + RunStepStreamEventVariant7 as object ?? + RunStepStreamEventVariant6 as object ?? + RunStepStreamEventVariant5 as object ?? + RunStepStreamEventVariant4 as object ?? + RunStepStreamEventVariant3 as object ?? + RunStepStreamEventVariant2 as object ?? + RunStepStreamEventVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() ?? - Value4?.ToString() ?? - Value5?.ToString() ?? - Value6?.ToString() ?? - Value7?.ToString() + RunStepStreamEventVariant1?.ToString() ?? + RunStepStreamEventVariant2?.ToString() ?? + RunStepStreamEventVariant3?.ToString() ?? + RunStepStreamEventVariant4?.ToString() ?? + RunStepStreamEventVariant5?.ToString() ?? + RunStepStreamEventVariant6?.ToString() ?? + RunStepStreamEventVariant7?.ToString() ; /// @@ -306,20 +306,20 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5 && !IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && IsValue6 && !IsValue7 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && IsValue7; + return IsRunStepStreamEventVariant1 && !IsRunStepStreamEventVariant2 && !IsRunStepStreamEventVariant3 && !IsRunStepStreamEventVariant4 && !IsRunStepStreamEventVariant5 && !IsRunStepStreamEventVariant6 && !IsRunStepStreamEventVariant7 || !IsRunStepStreamEventVariant1 && IsRunStepStreamEventVariant2 && !IsRunStepStreamEventVariant3 && !IsRunStepStreamEventVariant4 && !IsRunStepStreamEventVariant5 && !IsRunStepStreamEventVariant6 && !IsRunStepStreamEventVariant7 || !IsRunStepStreamEventVariant1 && !IsRunStepStreamEventVariant2 && IsRunStepStreamEventVariant3 && !IsRunStepStreamEventVariant4 && !IsRunStepStreamEventVariant5 && !IsRunStepStreamEventVariant6 && !IsRunStepStreamEventVariant7 || !IsRunStepStreamEventVariant1 && !IsRunStepStreamEventVariant2 && !IsRunStepStreamEventVariant3 && IsRunStepStreamEventVariant4 && !IsRunStepStreamEventVariant5 && !IsRunStepStreamEventVariant6 && !IsRunStepStreamEventVariant7 || !IsRunStepStreamEventVariant1 && !IsRunStepStreamEventVariant2 && !IsRunStepStreamEventVariant3 && !IsRunStepStreamEventVariant4 && IsRunStepStreamEventVariant5 && !IsRunStepStreamEventVariant6 && !IsRunStepStreamEventVariant7 || !IsRunStepStreamEventVariant1 && !IsRunStepStreamEventVariant2 && !IsRunStepStreamEventVariant3 && !IsRunStepStreamEventVariant4 && !IsRunStepStreamEventVariant5 && IsRunStepStreamEventVariant6 && !IsRunStepStreamEventVariant7 || !IsRunStepStreamEventVariant1 && !IsRunStepStreamEventVariant2 && !IsRunStepStreamEventVariant3 && !IsRunStepStreamEventVariant4 && !IsRunStepStreamEventVariant5 && !IsRunStepStreamEventVariant6 && IsRunStepStreamEventVariant7; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - global::System.Func? value5 = null, - global::System.Func? value6 = null, - global::System.Func? value7 = null, + global::System.Func? runStepStreamEventVariant1 = null, + global::System.Func? runStepStreamEventVariant2 = null, + global::System.Func? runStepStreamEventVariant3 = null, + global::System.Func? runStepStreamEventVariant4 = null, + global::System.Func? runStepStreamEventVariant5 = null, + global::System.Func? runStepStreamEventVariant6 = null, + global::System.Func? runStepStreamEventVariant7 = null, bool validate = true) { if (validate) @@ -327,33 +327,33 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsRunStepStreamEventVariant1 && runStepStreamEventVariant1 != null) { - return value1(Value1!); + return runStepStreamEventVariant1(RunStepStreamEventVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsRunStepStreamEventVariant2 && runStepStreamEventVariant2 != null) { - return value2(Value2!); + return runStepStreamEventVariant2(RunStepStreamEventVariant2!); } - else if (IsValue3 && value3 != null) + else if (IsRunStepStreamEventVariant3 && runStepStreamEventVariant3 != null) { - return value3(Value3!); + return runStepStreamEventVariant3(RunStepStreamEventVariant3!); } - else if (IsValue4 && value4 != null) + else if (IsRunStepStreamEventVariant4 && runStepStreamEventVariant4 != null) { - return value4(Value4!); + return runStepStreamEventVariant4(RunStepStreamEventVariant4!); } - else if (IsValue5 && value5 != null) + else if (IsRunStepStreamEventVariant5 && runStepStreamEventVariant5 != null) { - return value5(Value5!); + return runStepStreamEventVariant5(RunStepStreamEventVariant5!); } - else if (IsValue6 && value6 != null) + else if (IsRunStepStreamEventVariant6 && runStepStreamEventVariant6 != null) { - return value6(Value6!); + return runStepStreamEventVariant6(RunStepStreamEventVariant6!); } - else if (IsValue7 && value7 != null) + else if (IsRunStepStreamEventVariant7 && runStepStreamEventVariant7 != null) { - return value7(Value7!); + return runStepStreamEventVariant7(RunStepStreamEventVariant7!); } return default(TResult); @@ -363,13 +363,13 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - global::System.Action? value5 = null, - global::System.Action? value6 = null, - global::System.Action? value7 = null, + global::System.Action? runStepStreamEventVariant1 = null, + global::System.Action? runStepStreamEventVariant2 = null, + global::System.Action? runStepStreamEventVariant3 = null, + global::System.Action? runStepStreamEventVariant4 = null, + global::System.Action? runStepStreamEventVariant5 = null, + global::System.Action? runStepStreamEventVariant6 = null, + global::System.Action? runStepStreamEventVariant7 = null, bool validate = true) { if (validate) @@ -377,33 +377,33 @@ public void Match( Validate(); } - if (IsValue1) + if (IsRunStepStreamEventVariant1) { - value1?.Invoke(Value1!); + runStepStreamEventVariant1?.Invoke(RunStepStreamEventVariant1!); } - else if (IsValue2) + else if (IsRunStepStreamEventVariant2) { - value2?.Invoke(Value2!); + runStepStreamEventVariant2?.Invoke(RunStepStreamEventVariant2!); } - else if (IsValue3) + else if (IsRunStepStreamEventVariant3) { - value3?.Invoke(Value3!); + runStepStreamEventVariant3?.Invoke(RunStepStreamEventVariant3!); } - else if (IsValue4) + else if (IsRunStepStreamEventVariant4) { - value4?.Invoke(Value4!); + runStepStreamEventVariant4?.Invoke(RunStepStreamEventVariant4!); } - else if (IsValue5) + else if (IsRunStepStreamEventVariant5) { - value5?.Invoke(Value5!); + runStepStreamEventVariant5?.Invoke(RunStepStreamEventVariant5!); } - else if (IsValue6) + else if (IsRunStepStreamEventVariant6) { - value6?.Invoke(Value6!); + runStepStreamEventVariant6?.Invoke(RunStepStreamEventVariant6!); } - else if (IsValue7) + else if (IsRunStepStreamEventVariant7) { - value7?.Invoke(Value7!); + runStepStreamEventVariant7?.Invoke(RunStepStreamEventVariant7!); } } @@ -414,19 +414,19 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + RunStepStreamEventVariant1, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant1), - Value2, + RunStepStreamEventVariant2, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant2), - Value3, + RunStepStreamEventVariant3, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant3), - Value4, + RunStepStreamEventVariant4, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant4), - Value5, + RunStepStreamEventVariant5, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant5), - Value6, + RunStepStreamEventVariant6, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant6), - Value7, + RunStepStreamEventVariant7, typeof(global::tryAGI.OpenAI.RunStepStreamEventVariant7), }; const int offset = unchecked((int)2166136261); @@ -444,13 +444,13 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(RunStepStreamEvent other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value6, other.Value6) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value7, other.Value7) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepStreamEventVariant1, other.RunStepStreamEventVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepStreamEventVariant2, other.RunStepStreamEventVariant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepStreamEventVariant3, other.RunStepStreamEventVariant3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepStreamEventVariant4, other.RunStepStreamEventVariant4) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepStreamEventVariant5, other.RunStepStreamEventVariant5) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepStreamEventVariant6, other.RunStepStreamEventVariant6) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStepStreamEventVariant7, other.RunStepStreamEventVariant7) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs index 35659d6a..b04a4a59 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.RunStreamEvent.g.cs @@ -13,171 +13,171 @@ namespace tryAGI.OpenAI /// Occurs when a new [run](/docs/api-reference/runs/object) is created. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant1? Value1 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant1? RunStreamEventVariant1 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant1? Value1 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant1? RunStreamEventVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsRunStreamEventVariant1 => RunStreamEventVariant1 != null; /// /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `queued` status. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant2? RunStreamEventVariant2 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant2? Value2 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant2? RunStreamEventVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsRunStreamEventVariant2 => RunStreamEventVariant2 != null; /// /// Occurs when a [run](/docs/api-reference/runs/object) moves to an `in_progress` status. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant3? Value3 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant3? RunStreamEventVariant3 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant3? Value3 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant3? RunStreamEventVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsRunStreamEventVariant3 => RunStreamEventVariant3 != null; /// /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `requires_action` status. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant4? Value4 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant4? RunStreamEventVariant4 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant4? Value4 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant4? RunStreamEventVariant4 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant4))] #endif - public bool IsValue4 => Value4 != null; + public bool IsRunStreamEventVariant4 => RunStreamEventVariant4 != null; /// /// Occurs when a [run](/docs/api-reference/runs/object) is completed. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant5? Value5 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant5? RunStreamEventVariant5 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant5? Value5 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant5? RunStreamEventVariant5 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant5))] #endif - public bool IsValue5 => Value5 != null; + public bool IsRunStreamEventVariant5 => RunStreamEventVariant5 != null; /// /// Occurs when a [run](/docs/api-reference/runs/object) ends with status `incomplete`. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant6? Value6 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant6? RunStreamEventVariant6 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant6? Value6 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant6? RunStreamEventVariant6 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value6))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant6))] #endif - public bool IsValue6 => Value6 != null; + public bool IsRunStreamEventVariant6 => RunStreamEventVariant6 != null; /// /// Occurs when a [run](/docs/api-reference/runs/object) fails. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant7? Value7 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant7? RunStreamEventVariant7 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant7? Value7 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant7? RunStreamEventVariant7 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value7))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant7))] #endif - public bool IsValue7 => Value7 != null; + public bool IsRunStreamEventVariant7 => RunStreamEventVariant7 != null; /// /// Occurs when a [run](/docs/api-reference/runs/object) moves to a `cancelling` status. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant8? Value8 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant8? RunStreamEventVariant8 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant8? Value8 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant8? RunStreamEventVariant8 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value8))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant8))] #endif - public bool IsValue8 => Value8 != null; + public bool IsRunStreamEventVariant8 => RunStreamEventVariant8 != null; /// /// Occurs when a [run](/docs/api-reference/runs/object) is cancelled. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant9? Value9 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant9? RunStreamEventVariant9 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant9? Value9 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant9? RunStreamEventVariant9 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value9))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant9))] #endif - public bool IsValue9 => Value9 != null; + public bool IsRunStreamEventVariant9 => RunStreamEventVariant9 != null; /// /// Occurs when a [run](/docs/api-reference/runs/object) expires. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.RunStreamEventVariant10? Value10 { get; init; } + public global::tryAGI.OpenAI.RunStreamEventVariant10? RunStreamEventVariant10 { get; init; } #else - public global::tryAGI.OpenAI.RunStreamEventVariant10? Value10 { get; } + public global::tryAGI.OpenAI.RunStreamEventVariant10? RunStreamEventVariant10 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value10))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RunStreamEventVariant10))] #endif - public bool IsValue10 => Value10 != null; + public bool IsRunStreamEventVariant10 => RunStreamEventVariant10 != null; /// /// /// @@ -186,14 +186,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant1?(RunStreamEvent @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant1?(RunStreamEvent @this) => @this.RunStreamEventVariant1; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant1? value) { - Value1 = value; + RunStreamEventVariant1 = value; } /// @@ -204,14 +204,14 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant1? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant2?(RunStreamEvent @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant2?(RunStreamEvent @this) => @this.RunStreamEventVariant2; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant2? value) { - Value2 = value; + RunStreamEventVariant2 = value; } /// @@ -222,14 +222,14 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant2? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant3?(RunStreamEvent @this) => @this.Value3; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant3?(RunStreamEvent @this) => @this.RunStreamEventVariant3; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant3? value) { - Value3 = value; + RunStreamEventVariant3 = value; } /// @@ -240,14 +240,14 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant3? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant4?(RunStreamEvent @this) => @this.Value4; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant4?(RunStreamEvent @this) => @this.RunStreamEventVariant4; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant4? value) { - Value4 = value; + RunStreamEventVariant4 = value; } /// @@ -258,14 +258,14 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant4? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant5?(RunStreamEvent @this) => @this.Value5; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant5?(RunStreamEvent @this) => @this.RunStreamEventVariant5; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant5? value) { - Value5 = value; + RunStreamEventVariant5 = value; } /// @@ -276,14 +276,14 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant5? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant6?(RunStreamEvent @this) => @this.Value6; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant6?(RunStreamEvent @this) => @this.RunStreamEventVariant6; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant6? value) { - Value6 = value; + RunStreamEventVariant6 = value; } /// @@ -294,14 +294,14 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant6? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant7?(RunStreamEvent @this) => @this.Value7; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant7?(RunStreamEvent @this) => @this.RunStreamEventVariant7; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant7? value) { - Value7 = value; + RunStreamEventVariant7 = value; } /// @@ -312,14 +312,14 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant7? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant8?(RunStreamEvent @this) => @this.Value8; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant8?(RunStreamEvent @this) => @this.RunStreamEventVariant8; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant8? value) { - Value8 = value; + RunStreamEventVariant8 = value; } /// @@ -330,14 +330,14 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant8? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant9?(RunStreamEvent @this) => @this.Value9; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant9?(RunStreamEvent @this) => @this.RunStreamEventVariant9; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant9? value) { - Value9 = value; + RunStreamEventVariant9 = value; } /// @@ -348,74 +348,74 @@ public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant9? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant10?(RunStreamEvent @this) => @this.Value10; + public static implicit operator global::tryAGI.OpenAI.RunStreamEventVariant10?(RunStreamEvent @this) => @this.RunStreamEventVariant10; /// /// /// public RunStreamEvent(global::tryAGI.OpenAI.RunStreamEventVariant10? value) { - Value10 = value; + RunStreamEventVariant10 = value; } /// /// /// public RunStreamEvent( - global::tryAGI.OpenAI.RunStreamEventVariant1? value1, - global::tryAGI.OpenAI.RunStreamEventVariant2? value2, - global::tryAGI.OpenAI.RunStreamEventVariant3? value3, - global::tryAGI.OpenAI.RunStreamEventVariant4? value4, - global::tryAGI.OpenAI.RunStreamEventVariant5? value5, - global::tryAGI.OpenAI.RunStreamEventVariant6? value6, - global::tryAGI.OpenAI.RunStreamEventVariant7? value7, - global::tryAGI.OpenAI.RunStreamEventVariant8? value8, - global::tryAGI.OpenAI.RunStreamEventVariant9? value9, - global::tryAGI.OpenAI.RunStreamEventVariant10? value10 + global::tryAGI.OpenAI.RunStreamEventVariant1? runStreamEventVariant1, + global::tryAGI.OpenAI.RunStreamEventVariant2? runStreamEventVariant2, + global::tryAGI.OpenAI.RunStreamEventVariant3? runStreamEventVariant3, + global::tryAGI.OpenAI.RunStreamEventVariant4? runStreamEventVariant4, + global::tryAGI.OpenAI.RunStreamEventVariant5? runStreamEventVariant5, + global::tryAGI.OpenAI.RunStreamEventVariant6? runStreamEventVariant6, + global::tryAGI.OpenAI.RunStreamEventVariant7? runStreamEventVariant7, + global::tryAGI.OpenAI.RunStreamEventVariant8? runStreamEventVariant8, + global::tryAGI.OpenAI.RunStreamEventVariant9? runStreamEventVariant9, + global::tryAGI.OpenAI.RunStreamEventVariant10? runStreamEventVariant10 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - Value5 = value5; - Value6 = value6; - Value7 = value7; - Value8 = value8; - Value9 = value9; - Value10 = value10; + RunStreamEventVariant1 = runStreamEventVariant1; + RunStreamEventVariant2 = runStreamEventVariant2; + RunStreamEventVariant3 = runStreamEventVariant3; + RunStreamEventVariant4 = runStreamEventVariant4; + RunStreamEventVariant5 = runStreamEventVariant5; + RunStreamEventVariant6 = runStreamEventVariant6; + RunStreamEventVariant7 = runStreamEventVariant7; + RunStreamEventVariant8 = runStreamEventVariant8; + RunStreamEventVariant9 = runStreamEventVariant9; + RunStreamEventVariant10 = runStreamEventVariant10; } /// /// /// public object? Object => - Value10 as object ?? - Value9 as object ?? - Value8 as object ?? - Value7 as object ?? - Value6 as object ?? - Value5 as object ?? - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object + RunStreamEventVariant10 as object ?? + RunStreamEventVariant9 as object ?? + RunStreamEventVariant8 as object ?? + RunStreamEventVariant7 as object ?? + RunStreamEventVariant6 as object ?? + RunStreamEventVariant5 as object ?? + RunStreamEventVariant4 as object ?? + RunStreamEventVariant3 as object ?? + RunStreamEventVariant2 as object ?? + RunStreamEventVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() ?? - Value4?.ToString() ?? - Value5?.ToString() ?? - Value6?.ToString() ?? - Value7?.ToString() ?? - Value8?.ToString() ?? - Value9?.ToString() ?? - Value10?.ToString() + RunStreamEventVariant1?.ToString() ?? + RunStreamEventVariant2?.ToString() ?? + RunStreamEventVariant3?.ToString() ?? + RunStreamEventVariant4?.ToString() ?? + RunStreamEventVariant5?.ToString() ?? + RunStreamEventVariant6?.ToString() ?? + RunStreamEventVariant7?.ToString() ?? + RunStreamEventVariant8?.ToString() ?? + RunStreamEventVariant9?.ToString() ?? + RunStreamEventVariant10?.ToString() ; /// @@ -423,23 +423,23 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && IsValue8 && !IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && IsValue9 && !IsValue10 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && IsValue10; + return IsRunStreamEventVariant1 && !IsRunStreamEventVariant2 && !IsRunStreamEventVariant3 && !IsRunStreamEventVariant4 && !IsRunStreamEventVariant5 && !IsRunStreamEventVariant6 && !IsRunStreamEventVariant7 && !IsRunStreamEventVariant8 && !IsRunStreamEventVariant9 && !IsRunStreamEventVariant10 || !IsRunStreamEventVariant1 && IsRunStreamEventVariant2 && !IsRunStreamEventVariant3 && !IsRunStreamEventVariant4 && !IsRunStreamEventVariant5 && !IsRunStreamEventVariant6 && !IsRunStreamEventVariant7 && !IsRunStreamEventVariant8 && !IsRunStreamEventVariant9 && !IsRunStreamEventVariant10 || !IsRunStreamEventVariant1 && !IsRunStreamEventVariant2 && IsRunStreamEventVariant3 && !IsRunStreamEventVariant4 && !IsRunStreamEventVariant5 && !IsRunStreamEventVariant6 && !IsRunStreamEventVariant7 && !IsRunStreamEventVariant8 && !IsRunStreamEventVariant9 && !IsRunStreamEventVariant10 || !IsRunStreamEventVariant1 && !IsRunStreamEventVariant2 && !IsRunStreamEventVariant3 && IsRunStreamEventVariant4 && !IsRunStreamEventVariant5 && !IsRunStreamEventVariant6 && !IsRunStreamEventVariant7 && !IsRunStreamEventVariant8 && !IsRunStreamEventVariant9 && !IsRunStreamEventVariant10 || !IsRunStreamEventVariant1 && !IsRunStreamEventVariant2 && !IsRunStreamEventVariant3 && !IsRunStreamEventVariant4 && IsRunStreamEventVariant5 && !IsRunStreamEventVariant6 && !IsRunStreamEventVariant7 && !IsRunStreamEventVariant8 && !IsRunStreamEventVariant9 && !IsRunStreamEventVariant10 || !IsRunStreamEventVariant1 && !IsRunStreamEventVariant2 && !IsRunStreamEventVariant3 && !IsRunStreamEventVariant4 && !IsRunStreamEventVariant5 && IsRunStreamEventVariant6 && !IsRunStreamEventVariant7 && !IsRunStreamEventVariant8 && !IsRunStreamEventVariant9 && !IsRunStreamEventVariant10 || !IsRunStreamEventVariant1 && !IsRunStreamEventVariant2 && !IsRunStreamEventVariant3 && !IsRunStreamEventVariant4 && !IsRunStreamEventVariant5 && !IsRunStreamEventVariant6 && IsRunStreamEventVariant7 && !IsRunStreamEventVariant8 && !IsRunStreamEventVariant9 && !IsRunStreamEventVariant10 || !IsRunStreamEventVariant1 && !IsRunStreamEventVariant2 && !IsRunStreamEventVariant3 && !IsRunStreamEventVariant4 && !IsRunStreamEventVariant5 && !IsRunStreamEventVariant6 && !IsRunStreamEventVariant7 && IsRunStreamEventVariant8 && !IsRunStreamEventVariant9 && !IsRunStreamEventVariant10 || !IsRunStreamEventVariant1 && !IsRunStreamEventVariant2 && !IsRunStreamEventVariant3 && !IsRunStreamEventVariant4 && !IsRunStreamEventVariant5 && !IsRunStreamEventVariant6 && !IsRunStreamEventVariant7 && !IsRunStreamEventVariant8 && IsRunStreamEventVariant9 && !IsRunStreamEventVariant10 || !IsRunStreamEventVariant1 && !IsRunStreamEventVariant2 && !IsRunStreamEventVariant3 && !IsRunStreamEventVariant4 && !IsRunStreamEventVariant5 && !IsRunStreamEventVariant6 && !IsRunStreamEventVariant7 && !IsRunStreamEventVariant8 && !IsRunStreamEventVariant9 && IsRunStreamEventVariant10; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - global::System.Func? value5 = null, - global::System.Func? value6 = null, - global::System.Func? value7 = null, - global::System.Func? value8 = null, - global::System.Func? value9 = null, - global::System.Func? value10 = null, + global::System.Func? runStreamEventVariant1 = null, + global::System.Func? runStreamEventVariant2 = null, + global::System.Func? runStreamEventVariant3 = null, + global::System.Func? runStreamEventVariant4 = null, + global::System.Func? runStreamEventVariant5 = null, + global::System.Func? runStreamEventVariant6 = null, + global::System.Func? runStreamEventVariant7 = null, + global::System.Func? runStreamEventVariant8 = null, + global::System.Func? runStreamEventVariant9 = null, + global::System.Func? runStreamEventVariant10 = null, bool validate = true) { if (validate) @@ -447,45 +447,45 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsRunStreamEventVariant1 && runStreamEventVariant1 != null) { - return value1(Value1!); + return runStreamEventVariant1(RunStreamEventVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsRunStreamEventVariant2 && runStreamEventVariant2 != null) { - return value2(Value2!); + return runStreamEventVariant2(RunStreamEventVariant2!); } - else if (IsValue3 && value3 != null) + else if (IsRunStreamEventVariant3 && runStreamEventVariant3 != null) { - return value3(Value3!); + return runStreamEventVariant3(RunStreamEventVariant3!); } - else if (IsValue4 && value4 != null) + else if (IsRunStreamEventVariant4 && runStreamEventVariant4 != null) { - return value4(Value4!); + return runStreamEventVariant4(RunStreamEventVariant4!); } - else if (IsValue5 && value5 != null) + else if (IsRunStreamEventVariant5 && runStreamEventVariant5 != null) { - return value5(Value5!); + return runStreamEventVariant5(RunStreamEventVariant5!); } - else if (IsValue6 && value6 != null) + else if (IsRunStreamEventVariant6 && runStreamEventVariant6 != null) { - return value6(Value6!); + return runStreamEventVariant6(RunStreamEventVariant6!); } - else if (IsValue7 && value7 != null) + else if (IsRunStreamEventVariant7 && runStreamEventVariant7 != null) { - return value7(Value7!); + return runStreamEventVariant7(RunStreamEventVariant7!); } - else if (IsValue8 && value8 != null) + else if (IsRunStreamEventVariant8 && runStreamEventVariant8 != null) { - return value8(Value8!); + return runStreamEventVariant8(RunStreamEventVariant8!); } - else if (IsValue9 && value9 != null) + else if (IsRunStreamEventVariant9 && runStreamEventVariant9 != null) { - return value9(Value9!); + return runStreamEventVariant9(RunStreamEventVariant9!); } - else if (IsValue10 && value10 != null) + else if (IsRunStreamEventVariant10 && runStreamEventVariant10 != null) { - return value10(Value10!); + return runStreamEventVariant10(RunStreamEventVariant10!); } return default(TResult); @@ -495,16 +495,16 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - global::System.Action? value5 = null, - global::System.Action? value6 = null, - global::System.Action? value7 = null, - global::System.Action? value8 = null, - global::System.Action? value9 = null, - global::System.Action? value10 = null, + global::System.Action? runStreamEventVariant1 = null, + global::System.Action? runStreamEventVariant2 = null, + global::System.Action? runStreamEventVariant3 = null, + global::System.Action? runStreamEventVariant4 = null, + global::System.Action? runStreamEventVariant5 = null, + global::System.Action? runStreamEventVariant6 = null, + global::System.Action? runStreamEventVariant7 = null, + global::System.Action? runStreamEventVariant8 = null, + global::System.Action? runStreamEventVariant9 = null, + global::System.Action? runStreamEventVariant10 = null, bool validate = true) { if (validate) @@ -512,45 +512,45 @@ public void Match( Validate(); } - if (IsValue1) + if (IsRunStreamEventVariant1) { - value1?.Invoke(Value1!); + runStreamEventVariant1?.Invoke(RunStreamEventVariant1!); } - else if (IsValue2) + else if (IsRunStreamEventVariant2) { - value2?.Invoke(Value2!); + runStreamEventVariant2?.Invoke(RunStreamEventVariant2!); } - else if (IsValue3) + else if (IsRunStreamEventVariant3) { - value3?.Invoke(Value3!); + runStreamEventVariant3?.Invoke(RunStreamEventVariant3!); } - else if (IsValue4) + else if (IsRunStreamEventVariant4) { - value4?.Invoke(Value4!); + runStreamEventVariant4?.Invoke(RunStreamEventVariant4!); } - else if (IsValue5) + else if (IsRunStreamEventVariant5) { - value5?.Invoke(Value5!); + runStreamEventVariant5?.Invoke(RunStreamEventVariant5!); } - else if (IsValue6) + else if (IsRunStreamEventVariant6) { - value6?.Invoke(Value6!); + runStreamEventVariant6?.Invoke(RunStreamEventVariant6!); } - else if (IsValue7) + else if (IsRunStreamEventVariant7) { - value7?.Invoke(Value7!); + runStreamEventVariant7?.Invoke(RunStreamEventVariant7!); } - else if (IsValue8) + else if (IsRunStreamEventVariant8) { - value8?.Invoke(Value8!); + runStreamEventVariant8?.Invoke(RunStreamEventVariant8!); } - else if (IsValue9) + else if (IsRunStreamEventVariant9) { - value9?.Invoke(Value9!); + runStreamEventVariant9?.Invoke(RunStreamEventVariant9!); } - else if (IsValue10) + else if (IsRunStreamEventVariant10) { - value10?.Invoke(Value10!); + runStreamEventVariant10?.Invoke(RunStreamEventVariant10!); } } @@ -561,25 +561,25 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + RunStreamEventVariant1, typeof(global::tryAGI.OpenAI.RunStreamEventVariant1), - Value2, + RunStreamEventVariant2, typeof(global::tryAGI.OpenAI.RunStreamEventVariant2), - Value3, + RunStreamEventVariant3, typeof(global::tryAGI.OpenAI.RunStreamEventVariant3), - Value4, + RunStreamEventVariant4, typeof(global::tryAGI.OpenAI.RunStreamEventVariant4), - Value5, + RunStreamEventVariant5, typeof(global::tryAGI.OpenAI.RunStreamEventVariant5), - Value6, + RunStreamEventVariant6, typeof(global::tryAGI.OpenAI.RunStreamEventVariant6), - Value7, + RunStreamEventVariant7, typeof(global::tryAGI.OpenAI.RunStreamEventVariant7), - Value8, + RunStreamEventVariant8, typeof(global::tryAGI.OpenAI.RunStreamEventVariant8), - Value9, + RunStreamEventVariant9, typeof(global::tryAGI.OpenAI.RunStreamEventVariant9), - Value10, + RunStreamEventVariant10, typeof(global::tryAGI.OpenAI.RunStreamEventVariant10), }; const int offset = unchecked((int)2166136261); @@ -597,16 +597,16 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(RunStreamEvent other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value6, other.Value6) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value7, other.Value7) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value8, other.Value8) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value9, other.Value9) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value10, other.Value10) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant1, other.RunStreamEventVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant2, other.RunStreamEventVariant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant3, other.RunStreamEventVariant3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant4, other.RunStreamEventVariant4) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant5, other.RunStreamEventVariant5) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant6, other.RunStreamEventVariant6) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant7, other.RunStreamEventVariant7) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant8, other.RunStreamEventVariant8) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant9, other.RunStreamEventVariant9) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RunStreamEventVariant10, other.RunStreamEventVariant10) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs index 8cfb2427..f502037a 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.StopConfiguration.g.cs @@ -16,35 +16,35 @@ namespace tryAGI.OpenAI /// Default Value: <|endoftext|> /// #if NET6_0_OR_GREATER - public string? Value1 { get; init; } + public string? StopConfigurationVariant1 { get; init; } #else - public string? Value1 { get; } + public string? StopConfigurationVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StopConfigurationVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsStopConfigurationVariant1 => StopConfigurationVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::System.Collections.Generic.IList? Value2 { get; init; } + public global::System.Collections.Generic.IList? StopConfigurationVariant2 { get; init; } #else - public global::System.Collections.Generic.IList? Value2 { get; } + public global::System.Collections.Generic.IList? StopConfigurationVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StopConfigurationVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsStopConfigurationVariant2 => StopConfigurationVariant2 != null; /// /// /// @@ -53,42 +53,42 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator string?(StopConfiguration @this) => @this.Value1; + public static implicit operator string?(StopConfiguration @this) => @this.StopConfigurationVariant1; /// /// /// public StopConfiguration(string? value) { - Value1 = value; + StopConfigurationVariant1 = value; } /// /// /// public StopConfiguration( - string? value1, - global::System.Collections.Generic.IList? value2 + string? stopConfigurationVariant1, + global::System.Collections.Generic.IList? stopConfigurationVariant2 ) { - Value1 = value1; - Value2 = value2; + StopConfigurationVariant1 = stopConfigurationVariant1; + StopConfigurationVariant2 = stopConfigurationVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + StopConfigurationVariant2 as object ?? + StopConfigurationVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + StopConfigurationVariant1?.ToString() ?? + StopConfigurationVariant2?.ToString() ; /// @@ -96,15 +96,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsStopConfigurationVariant1 && !IsStopConfigurationVariant2 || !IsStopConfigurationVariant1 && IsStopConfigurationVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func?, TResult>? value2 = null, + global::System.Func? stopConfigurationVariant1 = null, + global::System.Func?, TResult>? stopConfigurationVariant2 = null, bool validate = true) { if (validate) @@ -112,13 +112,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsStopConfigurationVariant1 && stopConfigurationVariant1 != null) { - return value1(Value1!); + return stopConfigurationVariant1(StopConfigurationVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsStopConfigurationVariant2 && stopConfigurationVariant2 != null) { - return value2(Value2!); + return stopConfigurationVariant2(StopConfigurationVariant2!); } return default(TResult); @@ -128,8 +128,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action?>? value2 = null, + global::System.Action? stopConfigurationVariant1 = null, + global::System.Action?>? stopConfigurationVariant2 = null, bool validate = true) { if (validate) @@ -137,13 +137,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsStopConfigurationVariant1) { - value1?.Invoke(Value1!); + stopConfigurationVariant1?.Invoke(StopConfigurationVariant1!); } - else if (IsValue2) + else if (IsStopConfigurationVariant2) { - value2?.Invoke(Value2!); + stopConfigurationVariant2?.Invoke(StopConfigurationVariant2!); } } @@ -154,9 +154,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + StopConfigurationVariant1, typeof(string), - Value2, + StopConfigurationVariant2, typeof(global::System.Collections.Generic.IList), }; const int offset = unchecked((int)2166136261); @@ -174,8 +174,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(StopConfiguration other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(StopConfigurationVariant1, other.StopConfigurationVariant1) && + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(StopConfigurationVariant2, other.StopConfigurationVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs index 5b8bd52f..814eb730 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ThreadStreamEvent.g.cs @@ -13,18 +13,18 @@ namespace tryAGI.OpenAI /// Occurs when a new [thread](/docs/api-reference/threads/object) is created. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Value1 { get; init; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1? ThreadStreamEventVariant1 { get; init; } #else - public global::tryAGI.OpenAI.ThreadStreamEventVariant1? Value1 { get; } + public global::tryAGI.OpenAI.ThreadStreamEventVariant1? ThreadStreamEventVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ThreadStreamEventVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsThreadStreamEventVariant1 => ThreadStreamEventVariant1 != null; /// /// /// @@ -33,28 +33,28 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.ThreadStreamEventVariant1?(ThreadStreamEvent @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.ThreadStreamEventVariant1?(ThreadStreamEvent @this) => @this.ThreadStreamEventVariant1; /// /// /// public ThreadStreamEvent(global::tryAGI.OpenAI.ThreadStreamEventVariant1? value) { - Value1 = value; + ThreadStreamEventVariant1 = value; } /// /// /// public object? Object => - Value1 as object + ThreadStreamEventVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() + ThreadStreamEventVariant1?.ToString() ; /// @@ -62,14 +62,14 @@ Value1 as object /// public bool Validate() { - return IsValue1; + return IsThreadStreamEventVariant1; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, + global::System.Func? threadStreamEventVariant1 = null, bool validate = true) { if (validate) @@ -77,9 +77,9 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsThreadStreamEventVariant1 && threadStreamEventVariant1 != null) { - return value1(Value1!); + return threadStreamEventVariant1(ThreadStreamEventVariant1!); } return default(TResult); @@ -89,7 +89,7 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, + global::System.Action? threadStreamEventVariant1 = null, bool validate = true) { if (validate) @@ -97,9 +97,9 @@ public void Match( Validate(); } - if (IsValue1) + if (IsThreadStreamEventVariant1) { - value1?.Invoke(Value1!); + threadStreamEventVariant1?.Invoke(ThreadStreamEventVariant1!); } } @@ -110,7 +110,7 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ThreadStreamEventVariant1, typeof(global::tryAGI.OpenAI.ThreadStreamEventVariant1), }; const int offset = unchecked((int)2166136261); @@ -128,7 +128,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ThreadStreamEvent other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ThreadStreamEventVariant1, other.ThreadStreamEventVariant1) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs index c395d097..8048ec13 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.TranscriptionChunkingStrategy.g.cs @@ -17,35 +17,35 @@ namespace tryAGI.OpenAI /// Default Value: [auto] /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Value1 { get; init; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Enum { get; init; } #else - public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Value1 { get; } + public global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? Enum { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] #endif - public bool IsValue1 => Value1 != null; + public bool IsEnum => Enum != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.VadConfig? Value2 { get; init; } + public global::tryAGI.OpenAI.VadConfig? VadConfig { get; init; } #else - public global::tryAGI.OpenAI.VadConfig? Value2 { get; } + public global::tryAGI.OpenAI.VadConfig? VadConfig { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(VadConfig))] #endif - public bool IsValue2 => Value2 != null; + public bool IsVadConfig => VadConfig != null; /// /// /// @@ -54,14 +54,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum?(TranscriptionChunkingStrategy @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum?(TranscriptionChunkingStrategy @this) => @this.Enum; /// /// /// public TranscriptionChunkingStrategy(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? value) { - Value1 = value; + Enum = value; } /// @@ -72,42 +72,42 @@ public TranscriptionChunkingStrategy(global::tryAGI.OpenAI.TranscriptionChunking /// /// /// - public static implicit operator global::tryAGI.OpenAI.VadConfig?(TranscriptionChunkingStrategy @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.VadConfig?(TranscriptionChunkingStrategy @this) => @this.VadConfig; /// /// /// public TranscriptionChunkingStrategy(global::tryAGI.OpenAI.VadConfig? value) { - Value2 = value; + VadConfig = value; } /// /// /// public TranscriptionChunkingStrategy( - global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? value1, - global::tryAGI.OpenAI.VadConfig? value2 + global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum? @enum, + global::tryAGI.OpenAI.VadConfig? vadConfig ) { - Value1 = value1; - Value2 = value2; + Enum = @enum; + VadConfig = vadConfig; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + VadConfig as object ?? + Enum as object ; /// /// /// public override string? ToString() => - Value1?.ToValueString() ?? - Value2?.ToString() + Enum?.ToValueString() ?? + VadConfig?.ToString() ; /// @@ -115,15 +115,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsEnum && !IsVadConfig || !IsEnum && IsVadConfig; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @enum = null, + global::System.Func? vadConfig = null, bool validate = true) { if (validate) @@ -131,13 +131,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsEnum && @enum != null) { - return value1(Value1!); + return @enum(Enum!); } - else if (IsValue2 && value2 != null) + else if (IsVadConfig && vadConfig != null) { - return value2(Value2!); + return vadConfig(VadConfig!); } return default(TResult); @@ -147,8 +147,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @enum = null, + global::System.Action? vadConfig = null, bool validate = true) { if (validate) @@ -156,13 +156,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsEnum) { - value1?.Invoke(Value1!); + @enum?.Invoke(Enum!); } - else if (IsValue2) + else if (IsVadConfig) { - value2?.Invoke(Value2!); + vadConfig?.Invoke(VadConfig!); } } @@ -173,9 +173,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Enum, typeof(global::tryAGI.OpenAI.TranscriptionChunkingStrategyEnum), - Value2, + VadConfig, typeof(global::tryAGI.OpenAI.VadConfig), }; const int offset = unchecked((int)2166136261); @@ -193,8 +193,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(TranscriptionChunkingStrategy other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(VadConfig, other.VadConfig) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs index 2d14a11d..8c7754c0 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VideoModel.g.cs @@ -13,35 +13,35 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public string? Value1 { get; init; } + public string? VideoModelVariant1 { get; init; } #else - public string? Value1 { get; } + public string? VideoModelVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(VideoModelVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsVideoModelVariant1 => VideoModelVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.VideoModelEnum? Value2 { get; init; } + public global::tryAGI.OpenAI.VideoModelEnum? Enum { get; init; } #else - public global::tryAGI.OpenAI.VideoModelEnum? Value2 { get; } + public global::tryAGI.OpenAI.VideoModelEnum? Enum { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] #endif - public bool IsValue2 => Value2 != null; + public bool IsEnum => Enum != null; /// /// /// @@ -50,14 +50,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator string?(VideoModel @this) => @this.Value1; + public static implicit operator string?(VideoModel @this) => @this.VideoModelVariant1; /// /// /// public VideoModel(string? value) { - Value1 = value; + VideoModelVariant1 = value; } /// @@ -68,42 +68,42 @@ public VideoModel(string? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.VideoModelEnum?(VideoModel @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.VideoModelEnum?(VideoModel @this) => @this.Enum; /// /// /// public VideoModel(global::tryAGI.OpenAI.VideoModelEnum? value) { - Value2 = value; + Enum = value; } /// /// /// public VideoModel( - string? value1, - global::tryAGI.OpenAI.VideoModelEnum? value2 + string? videoModelVariant1, + global::tryAGI.OpenAI.VideoModelEnum? @enum ) { - Value1 = value1; - Value2 = value2; + VideoModelVariant1 = videoModelVariant1; + Enum = @enum; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Enum as object ?? + VideoModelVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToValueString() + VideoModelVariant1?.ToString() ?? + Enum?.ToValueString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2; + return IsVideoModelVariant1 || IsEnum; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? videoModelVariant1 = null, + global::System.Func? @enum = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsVideoModelVariant1 && videoModelVariant1 != null) { - return value1(Value1!); + return videoModelVariant1(VideoModelVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsEnum && @enum != null) { - return value2(Value2!); + return @enum(Enum!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? videoModelVariant1 = null, + global::System.Action? @enum = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsVideoModelVariant1) { - value1?.Invoke(Value1!); + videoModelVariant1?.Invoke(VideoModelVariant1!); } - else if (IsValue2) + else if (IsEnum) { - value2?.Invoke(Value2!); + @enum?.Invoke(Enum!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + VideoModelVariant1, typeof(string), - Value2, + Enum, typeof(global::tryAGI.OpenAI.VideoModelEnum), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(VideoModel other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(VideoModelVariant1, other.VideoModelVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs index 78d6f831..1920ef0e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsOrCustomVoice.g.cs @@ -13,35 +13,35 @@ namespace tryAGI.OpenAI /// Example: ash /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.VoiceIdsShared? Value1 { get; init; } + public global::tryAGI.OpenAI.VoiceIdsShared? Shared { get; init; } #else - public global::tryAGI.OpenAI.VoiceIdsShared? Value1 { get; } + public global::tryAGI.OpenAI.VoiceIdsShared? Shared { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Shared))] #endif - public bool IsValue1 => Value1 != null; + public bool IsShared => Shared != null; /// /// Custom voice reference. /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Value2 { get; init; } + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? VoiceIdsOrCustomVoiceVariant2 { get; init; } #else - public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? Value2 { get; } + public global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? VoiceIdsOrCustomVoiceVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(VoiceIdsOrCustomVoiceVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsVoiceIdsOrCustomVoiceVariant2 => VoiceIdsOrCustomVoiceVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator global::tryAGI.OpenAI.VoiceIdsShared?(VoiceIdsOrCustomVoice @this) => @this.Value1; + public static implicit operator global::tryAGI.OpenAI.VoiceIdsShared?(VoiceIdsOrCustomVoice @this) => @this.Shared; /// /// /// public VoiceIdsOrCustomVoice(global::tryAGI.OpenAI.VoiceIdsShared? value) { - Value1 = value; + Shared = value; } /// @@ -68,42 +68,42 @@ public VoiceIdsOrCustomVoice(global::tryAGI.OpenAI.VoiceIdsShared? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2?(VoiceIdsOrCustomVoice @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2?(VoiceIdsOrCustomVoice @this) => @this.VoiceIdsOrCustomVoiceVariant2; /// /// /// public VoiceIdsOrCustomVoice(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? value) { - Value2 = value; + VoiceIdsOrCustomVoiceVariant2 = value; } /// /// /// public VoiceIdsOrCustomVoice( - global::tryAGI.OpenAI.VoiceIdsShared? value1, - global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? value2 + global::tryAGI.OpenAI.VoiceIdsShared? shared, + global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2? voiceIdsOrCustomVoiceVariant2 ) { - Value1 = value1; - Value2 = value2; + Shared = shared; + VoiceIdsOrCustomVoiceVariant2 = voiceIdsOrCustomVoiceVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + VoiceIdsOrCustomVoiceVariant2 as object ?? + Shared as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Shared?.ToString() ?? + VoiceIdsOrCustomVoiceVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2; + return IsShared || IsVoiceIdsOrCustomVoiceVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? shared = null, + global::System.Func? voiceIdsOrCustomVoiceVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsShared && shared != null) { - return value1(Value1!); + return shared(Shared!); } - else if (IsValue2 && value2 != null) + else if (IsVoiceIdsOrCustomVoiceVariant2 && voiceIdsOrCustomVoiceVariant2 != null) { - return value2(Value2!); + return voiceIdsOrCustomVoiceVariant2(VoiceIdsOrCustomVoiceVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? shared = null, + global::System.Action? voiceIdsOrCustomVoiceVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsShared) { - value1?.Invoke(Value1!); + shared?.Invoke(Shared!); } - else if (IsValue2) + else if (IsVoiceIdsOrCustomVoiceVariant2) { - value2?.Invoke(Value2!); + voiceIdsOrCustomVoiceVariant2?.Invoke(VoiceIdsOrCustomVoiceVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Shared, typeof(global::tryAGI.OpenAI.VoiceIdsShared), - Value2, + VoiceIdsOrCustomVoiceVariant2, typeof(global::tryAGI.OpenAI.VoiceIdsOrCustomVoiceVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(VoiceIdsOrCustomVoice other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Shared, other.Shared) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(VoiceIdsOrCustomVoiceVariant2, other.VoiceIdsOrCustomVoiceVariant2) ; } diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs index bdafe2ea..f0e20c5f 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.VoiceIdsShared.g.cs @@ -13,35 +13,35 @@ namespace tryAGI.OpenAI /// /// #if NET6_0_OR_GREATER - public string? Value1 { get; init; } + public string? VoiceIdsSharedVariant1 { get; init; } #else - public string? Value1 { get; } + public string? VoiceIdsSharedVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(VoiceIdsSharedVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsVoiceIdsSharedVariant1 => VoiceIdsSharedVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Value2 { get; init; } + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Enum { get; init; } #else - public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Value2 { get; } + public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Enum { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Enum))] #endif - public bool IsValue2 => Value2 != null; + public bool IsEnum => Enum != null; /// /// /// @@ -50,14 +50,14 @@ namespace tryAGI.OpenAI /// /// /// - public static implicit operator string?(VoiceIdsShared @this) => @this.Value1; + public static implicit operator string?(VoiceIdsShared @this) => @this.VoiceIdsSharedVariant1; /// /// /// public VoiceIdsShared(string? value) { - Value1 = value; + VoiceIdsSharedVariant1 = value; } /// @@ -68,42 +68,42 @@ public VoiceIdsShared(string? value) /// /// /// - public static implicit operator global::tryAGI.OpenAI.VoiceIdsSharedEnum?(VoiceIdsShared @this) => @this.Value2; + public static implicit operator global::tryAGI.OpenAI.VoiceIdsSharedEnum?(VoiceIdsShared @this) => @this.Enum; /// /// /// public VoiceIdsShared(global::tryAGI.OpenAI.VoiceIdsSharedEnum? value) { - Value2 = value; + Enum = value; } /// /// /// public VoiceIdsShared( - string? value1, - global::tryAGI.OpenAI.VoiceIdsSharedEnum? value2 + string? voiceIdsSharedVariant1, + global::tryAGI.OpenAI.VoiceIdsSharedEnum? @enum ) { - Value1 = value1; - Value2 = value2; + VoiceIdsSharedVariant1 = voiceIdsSharedVariant1; + Enum = @enum; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Enum as object ?? + VoiceIdsSharedVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToValueString() + VoiceIdsSharedVariant1?.ToString() ?? + Enum?.ToValueString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2; + return IsVoiceIdsSharedVariant1 || IsEnum; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? voiceIdsSharedVariant1 = null, + global::System.Func? @enum = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsVoiceIdsSharedVariant1 && voiceIdsSharedVariant1 != null) { - return value1(Value1!); + return voiceIdsSharedVariant1(VoiceIdsSharedVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsEnum && @enum != null) { - return value2(Value2!); + return @enum(Enum!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? voiceIdsSharedVariant1 = null, + global::System.Action? @enum = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsVoiceIdsSharedVariant1) { - value1?.Invoke(Value1!); + voiceIdsSharedVariant1?.Invoke(VoiceIdsSharedVariant1!); } - else if (IsValue2) + else if (IsEnum) { - value2?.Invoke(Value2!); + @enum?.Invoke(Enum!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + VoiceIdsSharedVariant1, typeof(string), - Value2, + Enum, typeof(global::tryAGI.OpenAI.VoiceIdsSharedEnum), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(VoiceIdsShared other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(VoiceIdsSharedVariant1, other.VoiceIdsSharedVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Enum, other.Enum) ; }