diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ModelVariant1.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ModelVariant1.g.cs new file mode 100644 index 0000000..04a71cc --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ModelVariant1.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Phoenix.JsonConverters +{ + /// + public class ModelVariant1JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.ModelVariant1 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Phoenix.PlaygroundBuiltinModelContext? builtin = default; + if (discriminator?.Type == global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType.Builtin) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.PlaygroundBuiltinModelContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.PlaygroundBuiltinModelContext)}"); + builtin = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Phoenix.PlaygroundCustomProviderModelContext? custom = default; + if (discriminator?.Type == global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType.Custom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.PlaygroundCustomProviderModelContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.PlaygroundCustomProviderModelContext)}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Phoenix.ModelVariant1( + discriminator?.Type, + builtin, + + custom + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.ModelVariant1 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsBuiltin) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.PlaygroundBuiltinModelContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.PlaygroundBuiltinModelContext).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Builtin!, typeInfo); + } + else if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.PlaygroundCustomProviderModelContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.PlaygroundCustomProviderModelContext).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.PlaygroundInstanceContextModelVariant1DiscriminatorType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.PlaygroundInstanceContextModelVariant1DiscriminatorType.g.cs new file mode 100644 index 0000000..3ab1712 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.PlaygroundInstanceContextModelVariant1DiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class PlaygroundInstanceContextModelVariant1DiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.PlaygroundInstanceContextModelVariant1DiscriminatorTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.PlaygroundInstanceContextModelVariant1DiscriminatorTypeNullable.g.cs new file mode 100644 index 0000000..45effef --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.PlaygroundInstanceContextModelVariant1DiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class PlaygroundInstanceContextModelVariant1DiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs index 047b9aa..f2b7e21 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs @@ -121,6 +121,10 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.OtlpKindNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.PlaygroundInstanceContextModelVariant1DiscriminatorTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.PlaygroundInstanceContextModelVariant1DiscriminatorTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.PromptAnthropicInvocationParametersContentThinkingDiscriminatorTypeJsonConverter), typeof(global::Phoenix.JsonConverters.PromptAnthropicInvocationParametersContentThinkingDiscriminatorTypeNullableJsonConverter), @@ -363,6 +367,8 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.Data5JsonConverter), + typeof(global::Phoenix.JsonConverters.ModelVariant1JsonConverter), + typeof(global::Phoenix.JsonConverters.ThinkingJsonConverter), typeof(global::Phoenix.JsonConverters.ContentVariant2ItemJsonConverter), @@ -696,6 +702,13 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OtlpStatus))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OtlpSpansResponseBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PlaygroundBuiltinModelContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PlaygroundInstanceContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PlaygroundCustomProviderModelContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ModelVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType), TypeInfoPropertyName = "PlaygroundInstanceContextModelVariant1DiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PromptAnthropicInvocationParameters))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PromptAnthropicInvocationParametersContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PromptAnthropicOutputConfig))] @@ -912,6 +925,7 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AnyOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs index d806a4a..7ed9471 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs @@ -1020,723 +1020,751 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Phoenix.PromptAnthropicInvocationParameters? Type248 { get; set; } + public global::Phoenix.PlaygroundBuiltinModelContext? Type248 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContent? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfig? Type250 { get; set; } + public global::Phoenix.PlaygroundInstanceContext? Type250 { get; set; } /// /// /// - public global::Phoenix.Thinking? Type251 { get; set; } + public global::Phoenix.PlaygroundCustomProviderModelContext? Type251 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type252 { get; set; } + public global::Phoenix.ModelVariant1? Type252 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type253 { get; set; } + public global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator? Type253 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type254 { get; set; } + public global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType? Type254 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type255 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParameters? Type255 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type256 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContent? Type256 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfigEffort? Type257 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfig? Type257 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type258 { get; set; } + public global::Phoenix.Thinking? Type258 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type259 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type259 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParameters? Type260 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type260 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParametersContent? Type261 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type261 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type262 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type262 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type263 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type263 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type264 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfigEffort? Type264 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParameters? Type265 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type265 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContent? Type266 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type266 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type267 { get; set; } + public global::Phoenix.PromptAwsInvocationParameters? Type267 { get; set; } /// /// /// - public global::Phoenix.PromptChatTemplate? Type268 { get; set; } + public global::Phoenix.PromptAwsInvocationParametersContent? Type268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type269 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type269 { get; set; } /// /// /// - public global::Phoenix.PromptMessage? Type270 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type270 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParameters? Type271 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type271 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type272 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParameters? Type272 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type273 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContent? Type273 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParameters? Type274 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type274 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContent? Type275 { get; set; } + public global::Phoenix.PromptChatTemplate? Type275 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParameters? Type277 { get; set; } + public global::Phoenix.PromptMessage? Type277 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParametersContent? Type278 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParameters? Type278 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfig? Type279 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type279 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type280 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type280 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParameters? Type281 { get; set; } + public global::Phoenix.PromptFireworksInvocationParameters? Type281 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContent? Type282 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContent? Type282 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type283 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type283 { get; set; } /// /// /// - public global::Phoenix.PromptMessageRole? Type284 { get; set; } + public global::Phoenix.PromptGoogleInvocationParameters? Type284 { get; set; } /// /// /// - public global::Phoenix.AnyOf>? Type285 { get; set; } + public global::Phoenix.PromptGoogleInvocationParametersContent? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type286 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfig? Type286 { get; set; } /// /// /// - public global::Phoenix.ContentVariant2Item? Type287 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type287 { get; set; } /// /// /// - public global::Phoenix.TextContentPart? Type288 { get; set; } + public global::Phoenix.PromptGroqInvocationParameters? Type288 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPart? Type289 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContent? Type289 { get; set; } /// /// /// - public global::Phoenix.ToolResultContentPart? Type290 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type290 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type291 { get; set; } + public global::Phoenix.PromptMessageRole? Type291 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type292 { get; set; } + public global::Phoenix.AnyOf>? Type292 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParameters? Type293 { get; set; } + public global::System.Collections.Generic.IList? Type293 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContent? Type294 { get; set; } + public global::Phoenix.ContentVariant2Item? Type294 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type295 { get; set; } + public global::Phoenix.TextContentPart? Type295 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParameters? Type296 { get; set; } + public global::Phoenix.ToolCallContentPart? Type296 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContent? Type297 { get; set; } + public global::Phoenix.ToolResultContentPart? Type297 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type298 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type298 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParameters? Type299 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type299 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContent? Type300 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParameters? Type300 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type301 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContent? Type301 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParameters? Type302 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type302 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContent? Type303 { get; set; } + public global::Phoenix.PromptOllamaInvocationParameters? Type303 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type304 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContent? Type304 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchema? Type305 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type305 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type306 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParameters? Type306 { get; set; } /// /// /// - public global::Phoenix.PromptStringTemplate? Type307 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContent? Type307 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateFormat? Type308 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type308 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateType? Type309 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParameters? Type309 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParameters? Type310 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContent? Type310 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContent? Type311 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type311 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type312 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchema? Type312 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceNone? Type313 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type313 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceOneOrMore? Type314 { get; set; } + public global::Phoenix.PromptStringTemplate? Type314 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type315 { get; set; } + public global::Phoenix.PromptTemplateFormat? Type315 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceZeroOrMore? Type316 { get; set; } + public global::Phoenix.PromptTemplateType? Type316 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunction? Type317 { get; set; } + public global::Phoenix.PromptTogetherInvocationParameters? Type317 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunctionDefinition? Type318 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContent? Type318 { get; set; } /// /// /// - public global::Phoenix.PromptToolRaw? Type319 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type319 { get; set; } /// /// /// - public global::Phoenix.PromptTools? Type320 { get; set; } + public global::Phoenix.PromptToolChoiceNone? Type320 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type321 { get; set; } + public global::Phoenix.PromptToolChoiceOneOrMore? Type321 { get; set; } /// /// /// - public global::Phoenix.ToolsItem? Type322 { get; set; } + public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type322 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminator? Type323 { get; set; } + public global::Phoenix.PromptToolChoiceZeroOrMore? Type323 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminatorType? Type324 { get; set; } + public global::Phoenix.PromptToolFunction? Type324 { get; set; } /// /// /// - public global::Phoenix.ToolChoice? Type325 { get; set; } + public global::Phoenix.PromptToolFunctionDefinition? Type325 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type326 { get; set; } + public global::Phoenix.PromptToolRaw? Type326 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type327 { get; set; } + public global::Phoenix.PromptTools? Type327 { get; set; } /// /// /// - public global::Phoenix.Template? Type328 { get; set; } + public global::System.Collections.Generic.IList? Type328 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminator? Type329 { get; set; } + public global::Phoenix.ToolsItem? Type329 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type330 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminator? Type330 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters? Type331 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminatorType? Type331 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParameters? Type332 { get; set; } + public global::Phoenix.ToolChoice? Type332 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type333 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type333 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type334 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type334 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant1? Type335 { get; set; } + public global::Phoenix.Template? Type335 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type336 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminator? Type336 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type337 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type337 { get; set; } /// /// /// - public global::Phoenix.Template2? Type338 { get; set; } + public global::Phoenix.InvocationParameters? Type338 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type339 { get; set; } + public global::Phoenix.PromptXAIInvocationParameters? Type339 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type340 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type340 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters2? Type341 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type341 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type342 { get; set; } + public global::Phoenix.ResponseFormatVariant1? Type342 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type343 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type343 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant12? Type344 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type344 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type345 { get; set; } + public global::Phoenix.Template2? Type345 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type346 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type346 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTagData? Type347 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type347 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContent? Type348 { get; set; } + public global::Phoenix.InvocationParameters2? Type348 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type349 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type349 { get; set; } /// /// /// - public global::Phoenix.ReasoningUIPartState2? Type350 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type350 { get; set; } /// /// /// - public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type351 { get; set; } + public global::Phoenix.ResponseFormatVariant12? Type351 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsResult? Type352 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type352 { get; set; } /// /// /// - public global::Phoenix.SecretKeyValue? Type353 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type353 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotation? Type354 { get; set; } + public global::Phoenix.PromptVersionTagData? Type354 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationSource? Type355 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContent? Type355 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationAnnotatorKind? Type356 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type356 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type357 { get; set; } + public global::Phoenix.ReasoningUIPartState2? Type357 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationsResponseBody? Type358 { get; set; } + public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type358 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type359 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsResult? Type359 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type360 { get; set; } + public global::Phoenix.SecretKeyValue? Type360 { get; set; } /// /// /// - public global::Phoenix.SessionTraceData? Type361 { get; set; } + public global::Phoenix.SessionAnnotation? Type361 { get; set; } /// /// /// - public global::Phoenix.SpanContext? Type362 { get; set; } + public global::Phoenix.SessionAnnotationSource? Type362 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type363 { get; set; } + public global::Phoenix.SessionAnnotationAnnotatorKind? Type363 { get; set; } /// /// /// - public global::Phoenix.SpanEvent? Type364 { get; set; } + public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type364 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotation? Type365 { get; set; } + public global::Phoenix.SessionAnnotationsResponseBody? Type365 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationSource? Type366 { get; set; } + public global::System.Collections.Generic.IList? Type366 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationAnnotatorKind? Type367 { get; set; } + public global::System.Collections.Generic.IList? Type367 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type368 { get; set; } + public global::Phoenix.SessionTraceData? Type368 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationsResponseBody? Type369 { get; set; } + public global::Phoenix.SpanContext? Type369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type370 { get; set; } + public global::System.Collections.Generic.IList? Type370 { get; set; } /// /// /// - public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type371 { get; set; } + public global::Phoenix.SpanEvent? Type371 { get; set; } /// /// /// - public global::Phoenix.SpansResponseBody? Type372 { get; set; } + public global::Phoenix.SpanAnnotation? Type372 { get; set; } /// /// /// - public global::Phoenix.TextUIPartState2? Type373 { get; set; } + public global::Phoenix.SpanAnnotationSource? Type373 { get; set; } /// /// /// - public global::Phoenix.ToolCallFunction? Type374 { get; set; } + public global::Phoenix.SpanAnnotationAnnotatorKind? Type374 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type375 { get; set; } + public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type375 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type376 { get; set; } + public global::Phoenix.SpanAnnotationsResponseBody? Type376 { get; set; } /// /// /// - public global::Phoenix.AnyOf, object>? Type377 { get; set; } + public global::System.Collections.Generic.IList? Type377 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type378 { get; set; } + public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type378 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotation? Type379 { get; set; } + public global::Phoenix.SpansResponseBody? Type379 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationSource? Type380 { get; set; } + public global::Phoenix.TextUIPartState2? Type380 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationAnnotatorKind? Type381 { get; set; } + public global::Phoenix.ToolCallFunction? Type381 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type382 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type382 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationsResponseBody? Type383 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type383 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type384 { get; set; } + public global::Phoenix.AnyOf, object>? Type384 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type385 { get; set; } + public global::System.Collections.Generic.IList? Type385 { get; set; } /// /// /// - public global::Phoenix.TraceSpanData? Type386 { get; set; } + public global::Phoenix.TraceAnnotation? Type386 { get; set; } /// /// /// - public global::Phoenix.UIMessage? Type387 { get; set; } + public global::Phoenix.TraceAnnotationSource? Type387 { get; set; } /// /// /// - public global::Phoenix.UIMessageRole? Type388 { get; set; } + public global::Phoenix.TraceAnnotationAnnotatorKind? Type388 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBody? Type389 { get; set; } + public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type389 { get; set; } /// /// /// - public global::Phoenix.Data6? Type390 { get; set; } + public global::Phoenix.TraceAnnotationsResponseBody? Type390 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type391 { get; set; } + public global::System.Collections.Generic.IList? Type391 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type392 { get; set; } + public global::System.Collections.Generic.IList? Type392 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectRequestBody? Type393 { get; set; } + public global::Phoenix.TraceSpanData? Type393 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectResponseBody? Type394 { get; set; } + public global::Phoenix.UIMessage? Type394 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetData? Type395 { get; set; } + public global::Phoenix.UIMessageRole? Type395 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetResponseBody? Type396 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBody? Type396 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type397 { get; set; } + public global::Phoenix.Data6? Type397 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type398 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type398 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type399 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type399 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type400 { get; set; } + public global::Phoenix.UpdateProjectRequestBody? Type400 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsRequest? Type401 { get; set; } + public global::Phoenix.UpdateProjectResponseBody? Type401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type402 { get; set; } + public global::Phoenix.UploadDatasetData? Type402 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type403 { get; set; } + public global::Phoenix.UploadDatasetResponseBody? Type403 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type404 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type404 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequest? Type405 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type405 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type406 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type406 { get; set; } /// /// /// - public global::Phoenix.Model3? Type407 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type407 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequestModelDiscriminator? Type408 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsRequest? Type408 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? Type409 { get; set; } + public global::System.Collections.Generic.IList? Type409 { get; set; } /// /// /// - public global::Phoenix.SummarizeResponse? Type410 { get; set; } + public global::System.Collections.Generic.IList>? Type410 { get; set; } /// /// /// - public global::Phoenix.ToolCallProviderMetadata? Type411 { get; set; } + public global::Phoenix.AnyOf? Type411 { get; set; } /// /// /// - public global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment? Type412 { get; set; } + public global::Phoenix.SummarizeRequest? Type412 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest? Type413 { get; set; } + public global::System.Collections.Generic.IList? Type413 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction? Type414 { get; set; } + public global::Phoenix.Model3? Type414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList, object>>? Type415 { get; set; } + public global::Phoenix.SummarizeRequestModelDiscriminator? Type415 { get; set; } /// /// /// - public global::Phoenix.OneOf, object>? Type416 { get; set; } + public global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? Type416 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type417 { get; set; } + public global::Phoenix.SummarizeResponse? Type417 { get; set; } /// /// /// - public global::Phoenix.OneOf? Type418 { get; set; } + public global::Phoenix.ToolCallProviderMetadata? Type418 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest2? Type419 { get; set; } + public global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment? Type419 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction2? Type420 { get; set; } + public global::Phoenix.UploadDatasetRequest? Type420 { get; set; } /// /// /// - public byte[]? Type421 { get; set; } + public global::Phoenix.UploadDatasetRequestAction? Type421 { get; set; } /// /// /// - public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type422 { get; set; } + public global::System.Collections.Generic.IList, object>>? Type422 { get; set; } /// /// /// - public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type423 { get; set; } + public global::Phoenix.OneOf, object>? Type423 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type424 { get; set; } + public global::System.Collections.Generic.IList>? Type424 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesSort? Type425 { get; set; } + public global::Phoenix.OneOf? Type425 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesOrder? Type426 { get; set; } + public global::Phoenix.UploadDatasetRequest2? Type426 { get; set; } /// /// /// - public global::Phoenix.ListProjectSessionsOrder? Type427 { get; set; } + public global::Phoenix.UploadDatasetRequestAction2? Type427 { get; set; } + /// + /// + /// + public byte[]? Type428 { get; set; } + /// + /// + /// + public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type429 { get; set; } + /// + /// + /// + public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type430 { get; set; } + /// + /// + /// + public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type431 { get; set; } + /// + /// + /// + public global::Phoenix.ListProjectTracesSort? Type432 { get; set; } + /// + /// + /// + public global::Phoenix.ListProjectTracesOrder? Type433 { get; set; } + /// + /// + /// + public global::Phoenix.ListProjectSessionsOrder? Type434 { get; set; } /// /// @@ -1877,74 +1905,78 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::Phoenix.AnyOf>? ListType35 { get; set; } + public global::Phoenix.AnyOf>? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::Phoenix.AnyOf, object>? ListType42 { get; set; } + public global::Phoenix.AnyOf, object>? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType47 { get; set; } + public global::System.Collections.Generic.List>? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List, object>>? ListType49 { get; set; } + public global::System.Collections.Generic.List, object>>? ListType50 { get; set; } /// /// /// - public global::Phoenix.OneOf, object>? ListType50 { get; set; } + public global::Phoenix.OneOf, object>? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType51 { get; set; } + public global::System.Collections.Generic.List>? ListType52 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ModelVariant1.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ModelVariant1.Json.g.cs new file mode 100644 index 0000000..18e9294 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ModelVariant1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public readonly partial struct ModelVariant1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Phoenix.ModelVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.ModelVariant1), + jsonSerializerContext) as global::Phoenix.ModelVariant1?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Phoenix.ModelVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Phoenix.ModelVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ModelVariant1?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ModelVariant1.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ModelVariant1.g.cs new file mode 100644 index 0000000..a4eea67 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ModelVariant1.g.cs @@ -0,0 +1,303 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public readonly partial struct ModelVariant1 : global::System.IEquatable + { + /// + /// + /// + public global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType? Type { get; } + + /// + /// Built-in playground model selection. + /// +#if NET6_0_OR_GREATER + public global::Phoenix.PlaygroundBuiltinModelContext? Builtin { get; init; } +#else + public global::Phoenix.PlaygroundBuiltinModelContext? Builtin { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Builtin))] +#endif + public bool IsBuiltin => Builtin != null; + + /// + /// + /// + public bool TryPickBuiltin( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.PlaygroundBuiltinModelContext? value) + { + value = Builtin; + return IsBuiltin; + } + + /// + /// + /// + public global::Phoenix.PlaygroundBuiltinModelContext PickBuiltin() => IsBuiltin + ? Builtin! + : throw new global::System.InvalidOperationException($"Expected union variant 'Builtin' but the value was {ToString()}."); + + /// + /// Custom-provider playground model selection. + /// +#if NET6_0_OR_GREATER + public global::Phoenix.PlaygroundCustomProviderModelContext? Custom { get; init; } +#else + public global::Phoenix.PlaygroundCustomProviderModelContext? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.PlaygroundCustomProviderModelContext? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::Phoenix.PlaygroundCustomProviderModelContext PickCustom() => IsCustom + ? Custom! + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator ModelVariant1(global::Phoenix.PlaygroundBuiltinModelContext value) => new ModelVariant1((global::Phoenix.PlaygroundBuiltinModelContext?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.PlaygroundBuiltinModelContext?(ModelVariant1 @this) => @this.Builtin; + + /// + /// + /// + public ModelVariant1(global::Phoenix.PlaygroundBuiltinModelContext? value) + { + Builtin = value; + } + + /// + /// + /// + public static ModelVariant1 FromBuiltin(global::Phoenix.PlaygroundBuiltinModelContext? value) => new ModelVariant1(value); + + /// + /// + /// + public static implicit operator ModelVariant1(global::Phoenix.PlaygroundCustomProviderModelContext value) => new ModelVariant1((global::Phoenix.PlaygroundCustomProviderModelContext?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.PlaygroundCustomProviderModelContext?(ModelVariant1 @this) => @this.Custom; + + /// + /// + /// + public ModelVariant1(global::Phoenix.PlaygroundCustomProviderModelContext? value) + { + Custom = value; + } + + /// + /// + /// + public static ModelVariant1 FromCustom(global::Phoenix.PlaygroundCustomProviderModelContext? value) => new ModelVariant1(value); + + /// + /// + /// + public ModelVariant1( + global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType? type, + global::Phoenix.PlaygroundBuiltinModelContext? builtin, + global::Phoenix.PlaygroundCustomProviderModelContext? custom + ) + { + Type = type; + + Builtin = builtin; + Custom = custom; + } + + /// + /// + /// + public object? Object => + Custom as object ?? + Builtin as object + ; + + /// + /// + /// + public override string? ToString() => + Builtin?.ToString() ?? + Custom?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsBuiltin && !IsCustom || !IsBuiltin && IsCustom; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? builtin = null, + global::System.Func? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBuiltin && builtin != null) + { + return builtin(Builtin!); + } + else if (IsCustom && custom != null) + { + return custom(Custom!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? builtin = null, + + global::System.Action? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBuiltin) + { + builtin?.Invoke(Builtin!); + } + else if (IsCustom) + { + custom?.Invoke(Custom!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? builtin = null, + global::System.Action? custom = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsBuiltin) + { + builtin?.Invoke(Builtin!); + } + else if (IsCustom) + { + custom?.Invoke(Custom!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Builtin, + typeof(global::Phoenix.PlaygroundBuiltinModelContext), + Custom, + typeof(global::Phoenix.PlaygroundCustomProviderModelContext), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ModelVariant1 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Builtin, other.Builtin) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) + ; + } + + /// + /// + /// + public static bool operator ==(ModelVariant1 obj1, ModelVariant1 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ModelVariant1 obj1, ModelVariant1 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ModelVariant1 o && Equals(o); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundBuiltinModelContext.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundBuiltinModelContext.Json.g.cs new file mode 100644 index 0000000..e359e29 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundBuiltinModelContext.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class PlaygroundBuiltinModelContext + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Phoenix.PlaygroundBuiltinModelContext? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.PlaygroundBuiltinModelContext), + jsonSerializerContext) as global::Phoenix.PlaygroundBuiltinModelContext; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Phoenix.PlaygroundBuiltinModelContext? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Phoenix.PlaygroundBuiltinModelContext), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.PlaygroundBuiltinModelContext; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundBuiltinModelContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundBuiltinModelContext.g.cs new file mode 100644 index 0000000..eaa4141 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundBuiltinModelContext.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Built-in playground model selection. + /// + public sealed partial class PlaygroundBuiltinModelContext + { + /// + /// Default Value: builtin + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Provider { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modelName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ModelName { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// Default Value: builtin + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PlaygroundBuiltinModelContext( + string provider, + string modelName, + string? type) + { + this.Type = type; + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + this.ModelName = modelName ?? throw new global::System.ArgumentNullException(nameof(modelName)); + } + + /// + /// Initializes a new instance of the class. + /// + public PlaygroundBuiltinModelContext() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundContext.g.cs index 987c418..38a3192 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundContext.g.cs @@ -18,9 +18,8 @@ public sealed partial class PlaygroundContext /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("instanceIds")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList InstanceIds { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("instances")] + public global::System.Collections.Generic.IList? Instances { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,17 +30,17 @@ public sealed partial class PlaygroundContext /// /// Initializes a new instance of the class. /// - /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PlaygroundContext( - global::System.Collections.Generic.IList instanceIds, + global::System.Collections.Generic.IList? instances, string type = "playground") { this.Type = type; - this.InstanceIds = instanceIds ?? throw new global::System.ArgumentNullException(nameof(instanceIds)); + this.Instances = instances; } /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundCustomProviderModelContext.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundCustomProviderModelContext.Json.g.cs new file mode 100644 index 0000000..82f6ffb --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundCustomProviderModelContext.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class PlaygroundCustomProviderModelContext + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Phoenix.PlaygroundCustomProviderModelContext? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.PlaygroundCustomProviderModelContext), + jsonSerializerContext) as global::Phoenix.PlaygroundCustomProviderModelContext; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Phoenix.PlaygroundCustomProviderModelContext? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Phoenix.PlaygroundCustomProviderModelContext), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.PlaygroundCustomProviderModelContext; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundCustomProviderModelContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundCustomProviderModelContext.g.cs new file mode 100644 index 0000000..ad51006 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundCustomProviderModelContext.g.cs @@ -0,0 +1,86 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Custom-provider playground model selection. + /// + public sealed partial class PlaygroundCustomProviderModelContext + { + /// + /// Default Value: custom + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("customProviderId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CustomProviderId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("customProviderName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CustomProviderName { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Provider { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modelName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ModelName { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// + /// Default Value: custom + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PlaygroundCustomProviderModelContext( + string customProviderId, + string customProviderName, + string provider, + string modelName, + string? type) + { + this.Type = type; + this.CustomProviderId = customProviderId ?? throw new global::System.ArgumentNullException(nameof(customProviderId)); + this.CustomProviderName = customProviderName ?? throw new global::System.ArgumentNullException(nameof(customProviderName)); + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + this.ModelName = modelName ?? throw new global::System.ArgumentNullException(nameof(modelName)); + } + + /// + /// Initializes a new instance of the class. + /// + public PlaygroundCustomProviderModelContext() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContext.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContext.Json.g.cs new file mode 100644 index 0000000..bd78519 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContext.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class PlaygroundInstanceContext + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Phoenix.PlaygroundInstanceContext? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.PlaygroundInstanceContext), + jsonSerializerContext) as global::Phoenix.PlaygroundInstanceContext; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Phoenix.PlaygroundInstanceContext? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Phoenix.PlaygroundInstanceContext), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.PlaygroundInstanceContext; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContext.g.cs new file mode 100644 index 0000000..c378314 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContext.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// One mounted playground instance and its current model selection. + /// + public sealed partial class PlaygroundInstanceContext + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("instanceId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int InstanceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public global::Phoenix.ModelVariant1? Model { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PlaygroundInstanceContext( + int instanceId, + global::Phoenix.ModelVariant1? model) + { + this.InstanceId = instanceId; + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public PlaygroundInstanceContext() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModel.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModel.Json.g.cs new file mode 100644 index 0000000..036ce5c --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModel.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class PlaygroundInstanceContextModel + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Phoenix.PlaygroundInstanceContextModel? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.PlaygroundInstanceContextModel), + jsonSerializerContext) as global::Phoenix.PlaygroundInstanceContextModel; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Phoenix.PlaygroundInstanceContextModel? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Phoenix.PlaygroundInstanceContextModel), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.PlaygroundInstanceContextModel; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModel.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModel.g.cs new file mode 100644 index 0000000..60425e1 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModel.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class PlaygroundInstanceContextModel + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModelVariant1Discriminator.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModelVariant1Discriminator.Json.g.cs new file mode 100644 index 0000000..3a53da8 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModelVariant1Discriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class PlaygroundInstanceContextModelVariant1Discriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator), + jsonSerializerContext) as global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.PlaygroundInstanceContextModelVariant1Discriminator; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModelVariant1Discriminator.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModelVariant1Discriminator.g.cs new file mode 100644 index 0000000..0672858 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModelVariant1Discriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class PlaygroundInstanceContextModelVariant1Discriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.PlaygroundInstanceContextModelVariant1DiscriminatorTypeJsonConverter))] + public global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PlaygroundInstanceContextModelVariant1Discriminator( + global::Phoenix.PlaygroundInstanceContextModelVariant1DiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public PlaygroundInstanceContextModelVariant1Discriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModelVariant1DiscriminatorType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModelVariant1DiscriminatorType.g.cs new file mode 100644 index 0000000..64df60f --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.PlaygroundInstanceContextModelVariant1DiscriminatorType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public enum PlaygroundInstanceContextModelVariant1DiscriminatorType + { + /// + /// + /// + Builtin, + /// + /// + /// + Custom, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PlaygroundInstanceContextModelVariant1DiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PlaygroundInstanceContextModelVariant1DiscriminatorType value) + { + return value switch + { + PlaygroundInstanceContextModelVariant1DiscriminatorType.Builtin => "builtin", + PlaygroundInstanceContextModelVariant1DiscriminatorType.Custom => "custom", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PlaygroundInstanceContextModelVariant1DiscriminatorType? ToEnum(string value) + { + return value switch + { + "builtin" => PlaygroundInstanceContextModelVariant1DiscriminatorType.Builtin, + "custom" => PlaygroundInstanceContextModelVariant1DiscriminatorType.Custom, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/openapi.json b/src/libs/Phoenix/openapi.json index 4641bdd..3303b7f 100644 --- a/src/libs/Phoenix/openapi.json +++ b/src/libs/Phoenix/openapi.json @@ -11073,6 +11073,31 @@ "type": "object", "title": "OtlpStatus" }, + "PlaygroundBuiltinModelContext": { + "properties": { + "type": { + "type": "string", + "const": "builtin", + "title": "Type", + "default": "builtin" + }, + "provider": { + "type": "string", + "title": "Provider" + }, + "modelName": { + "type": "string", + "title": "Modelname" + } + }, + "type": "object", + "required": [ + "provider", + "modelName" + ], + "title": "PlaygroundBuiltinModelContext", + "description": "Built-in playground model selection." + }, "PlaygroundContext": { "properties": { "type": { @@ -11080,22 +11105,95 @@ "const": "playground", "title": "Type" }, - "instanceIds": { + "instances": { "items": { - "type": "integer" + "$ref": "#/components/schemas/PlaygroundInstanceContext" }, "type": "array", - "title": "Instanceids" + "title": "Instances" } }, "type": "object", "required": [ - "type", - "instanceIds" + "type" ], "title": "PlaygroundContext", "description": "Playground prompt editor state mounted in the current browser route." }, + "PlaygroundCustomProviderModelContext": { + "properties": { + "type": { + "type": "string", + "const": "custom", + "title": "Type", + "default": "custom" + }, + "customProviderId": { + "type": "string", + "title": "Customproviderid" + }, + "customProviderName": { + "type": "string", + "title": "Customprovidername" + }, + "provider": { + "type": "string", + "title": "Provider" + }, + "modelName": { + "type": "string", + "title": "Modelname" + } + }, + "type": "object", + "required": [ + "customProviderId", + "customProviderName", + "provider", + "modelName" + ], + "title": "PlaygroundCustomProviderModelContext", + "description": "Custom-provider playground model selection." + }, + "PlaygroundInstanceContext": { + "properties": { + "instanceId": { + "type": "integer", + "title": "Instanceid" + }, + "model": { + "anyOf": [ + { + "oneOf": [ + { + "$ref": "#/components/schemas/PlaygroundBuiltinModelContext" + }, + { + "$ref": "#/components/schemas/PlaygroundCustomProviderModelContext" + } + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "builtin": "#/components/schemas/PlaygroundBuiltinModelContext", + "custom": "#/components/schemas/PlaygroundCustomProviderModelContext" + } + } + }, + { + "type": "null" + } + ], + "title": "Model" + } + }, + "type": "object", + "required": [ + "instanceId" + ], + "title": "PlaygroundInstanceContext", + "description": "One mounted playground instance and its current model selection." + }, "Project": { "properties": { "name": {