From d8a13cad87c231e696e0a8d3baf04ee27fa62134 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 2 Jun 2026 04:41:45 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Phoenix.JsonConverters.ChatContext.g.cs | 30 + .../Phoenix.JsonSerializerContext.g.cs | 2 + .../Phoenix.JsonSerializerContextTypes.g.cs | 716 +++++++++--------- .../Generated/Phoenix.Models.ChatContext.g.cs | 172 ++++- ...x.Models.ChatContextDiscriminatorType.g.cs | 12 + ...enix.Models.CodeEvaluatorContext.Json.g.cs | 92 +++ .../Phoenix.Models.CodeEvaluatorContext.g.cs | 54 ++ ...eEvaluatorContextEvaluatorNodeId.Json.g.cs | 92 +++ ...s.CodeEvaluatorContextEvaluatorNodeId.g.cs | 19 + .../Phoenix.Models.DatasetContext.Json.g.cs | 92 +++ .../Phoenix.Models.DatasetContext.g.cs | 80 ++ ...tasetContextDatasetVersionNodeId.Json.g.cs | 92 +++ ...ls.DatasetContextDatasetVersionNodeId.g.cs | 19 + src/libs/Phoenix/openapi.json | 65 ++ 14 files changed, 1182 insertions(+), 355 deletions(-) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContext.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContext.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContextEvaluatorNodeId.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContextEvaluatorNodeId.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.DatasetContext.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.DatasetContext.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.DatasetContextDatasetVersionNodeId.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.DatasetContextDatasetVersionNodeId.g.cs diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContext.g.cs index bc59f21..d9fd792 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContext.g.cs @@ -56,6 +56,20 @@ public class ChatContextJsonConverter : global::System.Text.Json.Serialization.J throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.PlaygroundContext)}"); playground = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Phoenix.CodeEvaluatorContext? codeEvaluator = default; + if (discriminator?.Type == global::Phoenix.ChatContextDiscriminatorType.CodeEvaluator) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CodeEvaluatorContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.CodeEvaluatorContext)}"); + codeEvaluator = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Phoenix.DatasetContext? dataset = default; + if (discriminator?.Type == global::Phoenix.ChatContextDiscriminatorType.Dataset) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.DatasetContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.DatasetContext)}"); + dataset = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } global::Phoenix.GraphQLContext? graphql = default; if (discriminator?.Type == global::Phoenix.ChatContextDiscriminatorType.Graphql) { @@ -83,6 +97,10 @@ public class ChatContextJsonConverter : global::System.Text.Json.Serialization.J playground, + codeEvaluator, + + dataset, + graphql, webAccess @@ -130,6 +148,18 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.PlaygroundContext).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playground!, typeInfo); } + else if (value.IsCodeEvaluator) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CodeEvaluatorContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.CodeEvaluatorContext).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeEvaluator!, typeInfo); + } + else if (value.IsDataset) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.DatasetContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.DatasetContext).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dataset!, typeInfo); + } else if (value.IsGraphql) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.GraphQLContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs index 35a7325..047b9aa 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs @@ -520,6 +520,8 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ProjectContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TraceContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PlaygroundContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CodeEvaluatorContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DatasetContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.GraphQLContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.WebAccessContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatContextDiscriminator))] diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs index b901017..d806a4a 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs @@ -316,1419 +316,1427 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Phoenix.GraphQLContext? Type72 { get; set; } + public global::Phoenix.CodeEvaluatorContext? Type72 { get; set; } /// /// /// - public global::Phoenix.WebAccessContext? Type73 { get; set; } + public global::Phoenix.DatasetContext? Type73 { get; set; } /// /// /// - public global::Phoenix.ChatContextDiscriminator? Type74 { get; set; } + public global::Phoenix.GraphQLContext? Type74 { get; set; } /// /// /// - public global::Phoenix.ChatContextDiscriminatorType? Type75 { get; set; } + public global::Phoenix.WebAccessContext? Type75 { get; set; } /// /// /// - public global::Phoenix.ChatRegenerateMessage? Type76 { get; set; } + public global::Phoenix.ChatContextDiscriminator? Type76 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type77 { get; set; } + public global::Phoenix.ChatContextDiscriminatorType? Type77 { get; set; } /// /// /// - public bool? Type78 { get; set; } + public global::Phoenix.ChatRegenerateMessage? Type78 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type79 { get; set; } + public global::System.Collections.Generic.IList? Type79 { get; set; } /// /// /// - public global::Phoenix.ChatRegenerateMessageEditPermission? Type80 { get; set; } + public bool? Type80 { get; set; } /// /// /// - public global::Phoenix.Model? Type81 { get; set; } + public global::System.Collections.Generic.IList? Type81 { get; set; } /// /// /// - public global::Phoenix.CustomProviderModelSelection? Type82 { get; set; } + public global::Phoenix.ChatRegenerateMessageEditPermission? Type82 { get; set; } /// /// /// - public global::Phoenix.ChatRegenerateMessageModelDiscriminator? Type83 { get; set; } + public global::Phoenix.Model? Type83 { get; set; } /// /// /// - public global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? Type84 { get; set; } + public global::Phoenix.CustomProviderModelSelection? Type84 { get; set; } /// /// /// - public global::Phoenix.ChatRequest? Type85 { get; set; } + public global::Phoenix.ChatRegenerateMessageModelDiscriminator? Type85 { get; set; } /// /// /// - public global::Phoenix.ChatSubmitMessage? Type86 { get; set; } + public global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? Type86 { get; set; } /// /// /// - public global::Phoenix.ChatRequestDiscriminator? Type87 { get; set; } + public global::Phoenix.ChatRequest? Type87 { get; set; } /// /// /// - public global::Phoenix.ChatRequestDiscriminatorTrigger? Type88 { get; set; } + public global::Phoenix.ChatSubmitMessage? Type88 { get; set; } /// /// /// - public global::Phoenix.ChatSubmitMessageEditPermission? Type89 { get; set; } + public global::Phoenix.ChatRequestDiscriminator? Type89 { get; set; } /// /// /// - public global::Phoenix.Model2? Type90 { get; set; } + public global::Phoenix.ChatRequestDiscriminatorTrigger? Type90 { get; set; } /// /// /// - public global::Phoenix.ChatSubmitMessageModelDiscriminator? Type91 { get; set; } + public global::Phoenix.ChatSubmitMessageEditPermission? Type91 { get; set; } /// /// /// - public global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? Type92 { get; set; } + public global::Phoenix.Model2? Type92 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfig? Type93 { get; set; } + public global::Phoenix.ChatSubmitMessageModelDiscriminator? Type93 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfigData? Type94 { get; set; } + public global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? Type94 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigData? Type95 { get; set; } + public global::Phoenix.ContinuousAnnotationConfig? Type95 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfigData? Type96 { get; set; } + public global::Phoenix.ContinuousAnnotationConfigData? Type96 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type97 { get; set; } + public global::Phoenix.CreateAnnotationConfigData? Type97 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type98 { get; set; } + public global::Phoenix.FreeformAnnotationConfigData? Type98 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBody? Type99 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type99 { get; set; } /// /// /// - public global::Phoenix.Data? Type100 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type100 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfig? Type101 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBody? Type101 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type102 { get; set; } + public global::Phoenix.Data? Type102 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type103 { get; set; } + public global::Phoenix.FreeformAnnotationConfig? Type103 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRequestBody? Type104 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type104 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type105 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type105 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentResponseBody? Type106 { get; set; } + public global::Phoenix.CreateExperimentRequestBody? Type106 { get; set; } /// /// /// - public global::Phoenix.Experiment? Type107 { get; set; } + public global::System.Collections.Generic.IList? Type107 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunRequestBody? Type108 { get; set; } + public global::Phoenix.CreateExperimentResponseBody? Type108 { get; set; } /// /// /// - public global::System.DateTime? Type109 { get; set; } + public global::Phoenix.Experiment? Type109 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBody? Type110 { get; set; } + public global::Phoenix.CreateExperimentRunRequestBody? Type110 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBodyData? Type111 { get; set; } + public global::System.DateTime? Type111 { get; set; } /// /// /// - public global::Phoenix.CreateProjectRequestBody? Type112 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBody? Type112 { get; set; } /// /// /// - public global::Phoenix.CreateProjectResponseBody? Type113 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBodyData? Type113 { get; set; } /// /// /// - public global::Phoenix.Project? Type114 { get; set; } + public global::Phoenix.CreateProjectRequestBody? Type114 { get; set; } /// /// /// - public global::Phoenix.CreatePromptRequestBody? Type115 { get; set; } + public global::Phoenix.CreateProjectResponseBody? Type115 { get; set; } /// /// /// - public global::Phoenix.PromptData? Type116 { get; set; } + public global::Phoenix.Project? Type116 { get; set; } /// /// /// - public global::Phoenix.PromptVersionData? Type117 { get; set; } + public global::Phoenix.CreatePromptRequestBody? Type117 { get; set; } /// /// /// - public global::Phoenix.CreatePromptResponseBody? Type118 { get; set; } + public global::Phoenix.PromptData? Type118 { get; set; } /// /// /// - public global::Phoenix.PromptVersion? Type119 { get; set; } + public global::Phoenix.PromptVersionData? Type119 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteRequestBody? Type120 { get; set; } + public global::Phoenix.CreatePromptResponseBody? Type120 { get; set; } /// /// /// - public global::Phoenix.SessionNoteData? Type121 { get; set; } + public global::Phoenix.PromptVersion? Type121 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteResponseBody? Type122 { get; set; } + public global::Phoenix.CreateSessionNoteRequestBody? Type122 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteRequestBody? Type123 { get; set; } + public global::Phoenix.SessionNoteData? Type123 { get; set; } /// /// /// - public global::Phoenix.SpanNoteData? Type124 { get; set; } + public global::Phoenix.CreateSessionNoteResponseBody? Type124 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteResponseBody? Type125 { get; set; } + public global::Phoenix.CreateSpanNoteRequestBody? Type125 { get; set; } /// /// /// - public global::Phoenix.CreateSpansRequestBody? Type126 { get; set; } + public global::Phoenix.SpanNoteData? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::Phoenix.CreateSpanNoteResponseBody? Type127 { get; set; } /// /// /// - public global::Phoenix.Span? Type128 { get; set; } + public global::Phoenix.CreateSpansRequestBody? Type128 { get; set; } /// /// /// - public global::Phoenix.CreateSpansResponseBody? Type129 { get; set; } + public global::System.Collections.Generic.IList? Type129 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteRequestBody? Type130 { get; set; } + public global::Phoenix.Span? Type130 { get; set; } /// /// /// - public global::Phoenix.TraceNoteData? Type131 { get; set; } + public global::Phoenix.CreateSpansResponseBody? Type131 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteResponseBody? Type132 { get; set; } + public global::Phoenix.CreateTraceNoteRequestBody? Type132 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBody? Type133 { get; set; } + public global::Phoenix.TraceNoteData? Type133 { get; set; } /// /// /// - public global::Phoenix.User? Type134 { get; set; } + public global::Phoenix.CreateTraceNoteResponseBody? Type134 { get; set; } /// /// /// - public global::Phoenix.LocalUserData? Type135 { get; set; } + public global::Phoenix.CreateUserRequestBody? Type135 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserData? Type136 { get; set; } + public global::Phoenix.User? Type136 { get; set; } /// /// /// - public global::Phoenix.LDAPUserData? Type137 { get; set; } + public global::Phoenix.LocalUserData? Type137 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type138 { get; set; } + public global::Phoenix.OAuth2UserData? Type138 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type139 { get; set; } + public global::Phoenix.LDAPUserData? Type139 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBody? Type140 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type140 { get; set; } /// /// /// - public global::Phoenix.Data2? Type141 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type141 { get; set; } /// /// /// - public global::Phoenix.LocalUser? Type142 { get; set; } + public global::Phoenix.CreateUserResponseBody? Type142 { get; set; } /// /// /// - public global::Phoenix.OAuth2User? Type143 { get; set; } + public global::Phoenix.Data2? Type143 { get; set; } /// /// /// - public global::Phoenix.LDAPUser? Type144 { get; set; } + public global::Phoenix.LocalUser? Type144 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type145 { get; set; } + public global::Phoenix.OAuth2User? Type145 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type146 { get; set; } + public global::Phoenix.LDAPUser? Type146 { get; set; } /// /// /// - public global::Phoenix.Dataset? Type147 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type147 { get; set; } /// /// /// - public global::Phoenix.DatasetExample? Type148 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type148 { get; set; } /// /// /// - public global::Phoenix.DatasetVersion? Type149 { get; set; } + public global::Phoenix.Dataset? Type149 { get; set; } /// /// /// - public global::Phoenix.DatasetWithExampleCount? Type150 { get; set; } + public global::Phoenix.DatasetExample? Type150 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBody? Type151 { get; set; } + public global::Phoenix.DatasetVersion? Type151 { get; set; } /// /// /// - public global::Phoenix.Data3? Type152 { get; set; } + public global::Phoenix.DatasetWithExampleCount? Type152 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type153 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBody? Type153 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type154 { get; set; } + public global::Phoenix.Data3? Type154 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionsRequestBody? Type155 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type155 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type156 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type156 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type157 { get; set; } + public global::Phoenix.DeleteSessionsRequestBody? Type157 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalRequested? Type158 { get; set; } + public global::System.Collections.Generic.Dictionary? Type158 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalResponded? Type159 { get; set; } + public global::Phoenix.AnyOf? Type159 { get; set; } /// /// /// - public global::Phoenix.ExperimentEvaluationResult? Type160 { get; set; } + public global::Phoenix.ToolApprovalRequested? Type160 { get; set; } /// /// /// - public global::Phoenix.ExperimentRun? Type161 { get; set; } + public global::Phoenix.ToolApprovalResponded? Type161 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBody? Type162 { get; set; } + public global::Phoenix.ExperimentEvaluationResult? Type162 { get; set; } /// /// /// - public global::Phoenix.Data4? Type163 { get; set; } + public global::Phoenix.ExperimentRun? Type163 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type164 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBody? Type164 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type165 { get; set; } + public global::Phoenix.Data4? Type165 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBody? Type166 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type167 { get; set; } /// /// /// - public global::Phoenix.DataItem? Type168 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBody? Type168 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type170 { get; set; } + public global::Phoenix.DataItem? Type170 { get; set; } /// /// /// - public global::Phoenix.GetDatasetResponseBody? Type171 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type171 { get; set; } /// /// /// - public global::Phoenix.GetExperimentResponseBody? Type172 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type172 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type173 { get; set; } + public global::Phoenix.GetDatasetResponseBody? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::Phoenix.GetExperimentResponseBody? Type174 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentEvaluation? Type175 { get; set; } + public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type175 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type176 { get; set; } + public global::System.Collections.Generic.IList? Type176 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type177 { get; set; } + public global::Phoenix.IncompleteExperimentEvaluation? Type177 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentRun? Type178 { get; set; } + public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type178 { get; set; } /// /// /// - public global::Phoenix.GetProjectResponseBody? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::Phoenix.GetProjectsResponseBody? Type180 { get; set; } + public global::Phoenix.IncompleteExperimentRun? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::Phoenix.GetProjectResponseBody? Type181 { get; set; } /// /// /// - public global::Phoenix.GetPromptResponseBody? Type182 { get; set; } + public global::Phoenix.GetProjectsResponseBody? Type182 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionTagsResponseBody? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type184 { get; set; } + public global::Phoenix.GetPromptResponseBody? Type184 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTag? Type185 { get; set; } + public global::Phoenix.GetPromptVersionTagsResponseBody? Type185 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionsResponseBody? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type187 { get; set; } + public global::Phoenix.PromptVersionTag? Type187 { get; set; } /// /// /// - public global::Phoenix.GetPromptsResponseBody? Type188 { get; set; } + public global::Phoenix.GetPromptVersionsResponseBody? Type188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::Phoenix.Prompt? Type190 { get; set; } + public global::Phoenix.GetPromptsResponseBody? Type190 { get; set; } /// /// /// - public global::Phoenix.GetSessionResponseBody? Type191 { get; set; } + public global::System.Collections.Generic.IList? Type191 { get; set; } /// /// /// - public global::Phoenix.SessionData? Type192 { get; set; } + public global::Phoenix.Prompt? Type192 { get; set; } /// /// /// - public global::Phoenix.GetSessionsResponseBody? Type193 { get; set; } + public global::Phoenix.GetSessionResponseBody? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type194 { get; set; } + public global::Phoenix.SessionData? Type194 { get; set; } /// /// /// - public global::Phoenix.GetTracesResponseBody? Type195 { get; set; } + public global::Phoenix.GetSessionsResponseBody? Type195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::Phoenix.TraceData? Type197 { get; set; } + public global::Phoenix.GetTracesResponseBody? Type197 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBody? Type198 { get; set; } + public global::System.Collections.Generic.IList? Type198 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type199 { get; set; } + public global::Phoenix.TraceData? Type199 { get; set; } /// /// /// - public global::Phoenix.DataItem2? Type200 { get; set; } + public global::Phoenix.GetUsersResponseBody? Type200 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type202 { get; set; } + public global::Phoenix.DataItem2? Type202 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBody? Type203 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type203 { get; set; } /// /// /// - public global::Phoenix.Data5? Type204 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type204 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type205 { get; set; } + public global::Phoenix.GetViewerResponseBody? Type205 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type206 { get; set; } + public global::Phoenix.Data5? Type206 { get; set; } /// /// /// - public global::Phoenix.HTTPValidationError? Type207 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type208 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type208 { get; set; } /// /// /// - public global::Phoenix.ValidationError? Type209 { get; set; } + public global::Phoenix.HTTPValidationError? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::System.Collections.Generic.IList? Type210 { get; set; } /// /// /// - public global::Phoenix.LDAPUserRole? Type211 { get; set; } + public global::Phoenix.ValidationError? Type211 { get; set; } /// /// /// - public global::Phoenix.LDAPUserDataRole? Type212 { get; set; } + public global::System.Collections.Generic.IList? Type212 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesData? Type213 { get; set; } + public global::Phoenix.LDAPUserRole? Type213 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type214 { get; set; } + public global::Phoenix.LDAPUserDataRole? Type214 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesResponseBody? Type215 { get; set; } + public global::Phoenix.ListDatasetExamplesData? Type215 { get; set; } /// /// /// - public global::Phoenix.ListDatasetVersionsResponseBody? Type216 { get; set; } + public global::System.Collections.Generic.IList? Type216 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type217 { get; set; } + public global::Phoenix.ListDatasetExamplesResponseBody? Type217 { get; set; } /// /// /// - public global::Phoenix.ListDatasetsResponseBody? Type218 { get; set; } + public global::Phoenix.ListDatasetVersionsResponseBody? Type218 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::Phoenix.ListExperimentRunsResponseBody? Type220 { get; set; } + public global::Phoenix.ListDatasetsResponseBody? Type220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::Phoenix.ListExperimentsResponseBody? Type222 { get; set; } + public global::Phoenix.ListExperimentRunsResponseBody? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::Phoenix.LocalUserRole? Type224 { get; set; } + public global::Phoenix.ListExperimentsResponseBody? Type224 { get; set; } /// /// /// - public global::Phoenix.LocalUserDataRole? Type225 { get; set; } + public global::System.Collections.Generic.IList? Type225 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserRole? Type226 { get; set; } + public global::Phoenix.LocalUserRole? Type226 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserDataRole? Type227 { get; set; } + public global::Phoenix.LocalUserDataRole? Type227 { get; set; } /// /// /// - public global::Phoenix.OtlpAnyValue? Type228 { get; set; } + public global::Phoenix.OAuth2UserRole? Type228 { get; set; } /// /// /// - public global::Phoenix.OtlpArrayValue? Type229 { get; set; } + public global::Phoenix.OAuth2UserDataRole? Type229 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type230 { get; set; } + public global::Phoenix.OtlpAnyValue? Type230 { get; set; } /// /// /// - public global::Phoenix.OtlpDoubleValue? Type231 { get; set; } + public global::Phoenix.OtlpArrayValue? Type231 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type232 { get; set; } + public global::Phoenix.AnyOf? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::Phoenix.OtlpDoubleValue? Type233 { get; set; } /// /// /// - public global::Phoenix.OtlpEvent? Type234 { get; set; } + public global::Phoenix.AnyOf? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::Phoenix.OtlpKeyValue? Type236 { get; set; } + public global::Phoenix.OtlpEvent? Type236 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type237 { get; set; } + public global::System.Collections.Generic.IList? Type237 { get; set; } /// /// /// - public long? Type238 { get; set; } + public global::Phoenix.OtlpKeyValue? Type238 { get; set; } /// /// /// - public global::Phoenix.OtlpKind? Type239 { get; set; } + public global::Phoenix.AnyOf? Type239 { get; set; } /// /// /// - public global::Phoenix.OtlpSpan? Type240 { get; set; } + public long? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::Phoenix.OtlpKind? Type241 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type242 { get; set; } + public global::Phoenix.OtlpSpan? Type242 { get; set; } /// /// /// - public global::Phoenix.OtlpStatus? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::Phoenix.OtlpSpansResponseBody? Type244 { get; set; } + public global::Phoenix.AnyOf? Type244 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type245 { get; set; } + public global::Phoenix.OtlpStatus? Type245 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParameters? Type246 { get; set; } + public global::Phoenix.OtlpSpansResponseBody? Type246 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContent? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type247 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfig? Type248 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParameters? Type248 { get; set; } /// /// /// - public global::Phoenix.Thinking? Type249 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContent? Type249 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type250 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfig? Type250 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type251 { get; set; } + public global::Phoenix.Thinking? Type251 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type252 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type252 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type253 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type253 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type254 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type254 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfigEffort? Type255 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type255 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type256 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type256 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type257 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfigEffort? Type257 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParameters? Type258 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type258 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParametersContent? Type259 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type259 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type260 { get; set; } + public global::Phoenix.PromptAwsInvocationParameters? Type260 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type261 { get; set; } + public global::Phoenix.PromptAwsInvocationParametersContent? Type261 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type262 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type262 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParameters? Type263 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type263 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContent? Type264 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type264 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type265 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParameters? Type265 { get; set; } /// /// /// - public global::Phoenix.PromptChatTemplate? Type266 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContent? Type266 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type267 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type267 { get; set; } /// /// /// - public global::Phoenix.PromptMessage? Type268 { get; set; } + public global::Phoenix.PromptChatTemplate? Type268 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParameters? Type269 { get; set; } + public global::System.Collections.Generic.IList? Type269 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type270 { get; set; } + public global::Phoenix.PromptMessage? Type270 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type271 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParameters? Type271 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParameters? Type272 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type272 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContent? Type273 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type273 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type274 { get; set; } + public global::Phoenix.PromptFireworksInvocationParameters? Type274 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParameters? Type275 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContent? Type275 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParametersContent? Type276 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type276 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfig? Type277 { get; set; } + public global::Phoenix.PromptGoogleInvocationParameters? Type277 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type278 { get; set; } + public global::Phoenix.PromptGoogleInvocationParametersContent? Type278 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParameters? Type279 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfig? Type279 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContent? Type280 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type280 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type281 { get; set; } + public global::Phoenix.PromptGroqInvocationParameters? Type281 { get; set; } /// /// /// - public global::Phoenix.PromptMessageRole? Type282 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContent? Type282 { get; set; } /// /// /// - public global::Phoenix.AnyOf>? Type283 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type284 { get; set; } + public global::Phoenix.PromptMessageRole? Type284 { get; set; } /// /// /// - public global::Phoenix.ContentVariant2Item? Type285 { get; set; } + public global::Phoenix.AnyOf>? Type285 { get; set; } /// /// /// - public global::Phoenix.TextContentPart? Type286 { get; set; } + public global::System.Collections.Generic.IList? Type286 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPart? Type287 { get; set; } + public global::Phoenix.ContentVariant2Item? Type287 { get; set; } /// /// /// - public global::Phoenix.ToolResultContentPart? Type288 { get; set; } + public global::Phoenix.TextContentPart? Type288 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type289 { get; set; } + public global::Phoenix.ToolCallContentPart? Type289 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type290 { get; set; } + public global::Phoenix.ToolResultContentPart? Type290 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParameters? Type291 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type291 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContent? Type292 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type292 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type293 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParameters? Type293 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParameters? Type294 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContent? Type294 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContent? Type295 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type295 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type296 { get; set; } + public global::Phoenix.PromptOllamaInvocationParameters? Type296 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParameters? Type297 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContent? Type297 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContent? Type298 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type298 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type299 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParameters? Type299 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParameters? Type300 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContent? Type300 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContent? Type301 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type301 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type302 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParameters? Type302 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchema? Type303 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContent? Type303 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type304 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type304 { get; set; } /// /// /// - public global::Phoenix.PromptStringTemplate? Type305 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchema? Type305 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateFormat? Type306 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type306 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateType? Type307 { get; set; } + public global::Phoenix.PromptStringTemplate? Type307 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParameters? Type308 { get; set; } + public global::Phoenix.PromptTemplateFormat? Type308 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContent? Type309 { get; set; } + public global::Phoenix.PromptTemplateType? Type309 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type310 { get; set; } + public global::Phoenix.PromptTogetherInvocationParameters? Type310 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceNone? Type311 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContent? Type311 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceOneOrMore? Type312 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type312 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type313 { get; set; } + public global::Phoenix.PromptToolChoiceNone? Type313 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceZeroOrMore? Type314 { get; set; } + public global::Phoenix.PromptToolChoiceOneOrMore? Type314 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunction? Type315 { get; set; } + public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type315 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunctionDefinition? Type316 { get; set; } + public global::Phoenix.PromptToolChoiceZeroOrMore? Type316 { get; set; } /// /// /// - public global::Phoenix.PromptToolRaw? Type317 { get; set; } + public global::Phoenix.PromptToolFunction? Type317 { get; set; } /// /// /// - public global::Phoenix.PromptTools? Type318 { get; set; } + public global::Phoenix.PromptToolFunctionDefinition? Type318 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type319 { get; set; } + public global::Phoenix.PromptToolRaw? Type319 { get; set; } /// /// /// - public global::Phoenix.ToolsItem? Type320 { get; set; } + public global::Phoenix.PromptTools? Type320 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminator? Type321 { get; set; } + public global::System.Collections.Generic.IList? Type321 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminatorType? Type322 { get; set; } + public global::Phoenix.ToolsItem? Type322 { get; set; } /// /// /// - public global::Phoenix.ToolChoice? Type323 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminator? Type323 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type324 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminatorType? Type324 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type325 { get; set; } + public global::Phoenix.ToolChoice? Type325 { get; set; } /// /// /// - public global::Phoenix.Template? Type326 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type326 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminator? Type327 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type327 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type328 { get; set; } + public global::Phoenix.Template? Type328 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters? Type329 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminator? Type329 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParameters? Type330 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type330 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type331 { get; set; } + public global::Phoenix.InvocationParameters? Type331 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type332 { get; set; } + public global::Phoenix.PromptXAIInvocationParameters? Type332 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant1? Type333 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type333 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type334 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type334 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type335 { get; set; } + public global::Phoenix.ResponseFormatVariant1? Type335 { get; set; } /// /// /// - public global::Phoenix.Template2? Type336 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type336 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type337 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type337 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type338 { get; set; } + public global::Phoenix.Template2? Type338 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters2? Type339 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type339 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type340 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type340 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type341 { get; set; } + public global::Phoenix.InvocationParameters2? Type341 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant12? Type342 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type342 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type343 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type343 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type344 { get; set; } + public global::Phoenix.ResponseFormatVariant12? Type344 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTagData? Type345 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type345 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContent? Type346 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type346 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type347 { get; set; } + public global::Phoenix.PromptVersionTagData? Type347 { get; set; } /// /// /// - public global::Phoenix.ReasoningUIPartState2? Type348 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContent? Type348 { get; set; } /// /// /// - public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type349 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type349 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsResult? Type350 { get; set; } + public global::Phoenix.ReasoningUIPartState2? Type350 { get; set; } /// /// /// - public global::Phoenix.SecretKeyValue? Type351 { get; set; } + public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type351 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotation? Type352 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsResult? Type352 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationSource? Type353 { get; set; } + public global::Phoenix.SecretKeyValue? Type353 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationAnnotatorKind? Type354 { get; set; } + public global::Phoenix.SessionAnnotation? Type354 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type355 { get; set; } + public global::Phoenix.SessionAnnotationSource? Type355 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationsResponseBody? Type356 { get; set; } + public global::Phoenix.SessionAnnotationAnnotatorKind? Type356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type357 { get; set; } + public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type357 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type358 { get; set; } + public global::Phoenix.SessionAnnotationsResponseBody? Type358 { get; set; } /// /// /// - public global::Phoenix.SessionTraceData? Type359 { get; set; } + public global::System.Collections.Generic.IList? Type359 { get; set; } /// /// /// - public global::Phoenix.SpanContext? Type360 { get; set; } + public global::System.Collections.Generic.IList? Type360 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type361 { get; set; } + public global::Phoenix.SessionTraceData? Type361 { get; set; } /// /// /// - public global::Phoenix.SpanEvent? Type362 { get; set; } + public global::Phoenix.SpanContext? Type362 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotation? Type363 { get; set; } + public global::System.Collections.Generic.IList? Type363 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationSource? Type364 { get; set; } + public global::Phoenix.SpanEvent? Type364 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationAnnotatorKind? Type365 { get; set; } + public global::Phoenix.SpanAnnotation? Type365 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type366 { get; set; } + public global::Phoenix.SpanAnnotationSource? Type366 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationsResponseBody? Type367 { get; set; } + public global::Phoenix.SpanAnnotationAnnotatorKind? Type367 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type368 { get; set; } + public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type368 { get; set; } /// /// /// - public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type369 { get; set; } + public global::Phoenix.SpanAnnotationsResponseBody? Type369 { get; set; } /// /// /// - public global::Phoenix.SpansResponseBody? Type370 { get; set; } + public global::System.Collections.Generic.IList? Type370 { get; set; } /// /// /// - public global::Phoenix.TextUIPartState2? Type371 { get; set; } + public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type371 { get; set; } /// /// /// - public global::Phoenix.ToolCallFunction? Type372 { get; set; } + public global::Phoenix.SpansResponseBody? Type372 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type373 { get; set; } + public global::Phoenix.TextUIPartState2? Type373 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type374 { get; set; } + public global::Phoenix.ToolCallFunction? Type374 { get; set; } /// /// /// - public global::Phoenix.AnyOf, object>? Type375 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type375 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type376 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type376 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotation? Type377 { get; set; } + public global::Phoenix.AnyOf, object>? Type377 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationSource? Type378 { get; set; } + public global::System.Collections.Generic.IList? Type378 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationAnnotatorKind? Type379 { get; set; } + public global::Phoenix.TraceAnnotation? Type379 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type380 { get; set; } + public global::Phoenix.TraceAnnotationSource? Type380 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationsResponseBody? Type381 { get; set; } + public global::Phoenix.TraceAnnotationAnnotatorKind? Type381 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type382 { get; set; } + public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type382 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type383 { get; set; } + public global::Phoenix.TraceAnnotationsResponseBody? Type383 { get; set; } /// /// /// - public global::Phoenix.TraceSpanData? Type384 { get; set; } + public global::System.Collections.Generic.IList? Type384 { get; set; } /// /// /// - public global::Phoenix.UIMessage? Type385 { get; set; } + public global::System.Collections.Generic.IList? Type385 { get; set; } /// /// /// - public global::Phoenix.UIMessageRole? Type386 { get; set; } + public global::Phoenix.TraceSpanData? Type386 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBody? Type387 { get; set; } + public global::Phoenix.UIMessage? Type387 { get; set; } /// /// /// - public global::Phoenix.Data6? Type388 { get; set; } + public global::Phoenix.UIMessageRole? Type388 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type389 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBody? Type389 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type390 { get; set; } + public global::Phoenix.Data6? Type390 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectRequestBody? Type391 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type391 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectResponseBody? Type392 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type392 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetData? Type393 { get; set; } + public global::Phoenix.UpdateProjectRequestBody? Type393 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetResponseBody? Type394 { get; set; } + public global::Phoenix.UpdateProjectResponseBody? Type394 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type395 { get; set; } + public global::Phoenix.UploadDatasetData? Type395 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type396 { get; set; } + public global::Phoenix.UploadDatasetResponseBody? Type396 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type397 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type397 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type398 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type398 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsRequest? Type399 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type399 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type400 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type400 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type401 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsRequest? Type401 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type402 { get; set; } + public global::System.Collections.Generic.IList? Type402 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequest? Type403 { get; set; } + public global::System.Collections.Generic.IList>? Type403 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type404 { get; set; } + public global::Phoenix.AnyOf? Type404 { get; set; } /// /// /// - public global::Phoenix.Model3? Type405 { get; set; } + public global::Phoenix.SummarizeRequest? Type405 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequestModelDiscriminator? Type406 { get; set; } + public global::System.Collections.Generic.IList? Type406 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? Type407 { get; set; } + public global::Phoenix.Model3? Type407 { get; set; } /// /// /// - public global::Phoenix.SummarizeResponse? Type408 { get; set; } + public global::Phoenix.SummarizeRequestModelDiscriminator? Type408 { get; set; } /// /// /// - public global::Phoenix.ToolCallProviderMetadata? Type409 { get; set; } + public global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? Type409 { get; set; } /// /// /// - public global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment? Type410 { get; set; } + public global::Phoenix.SummarizeResponse? Type410 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest? Type411 { get; set; } + public global::Phoenix.ToolCallProviderMetadata? Type411 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction? Type412 { get; set; } + public global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment? Type412 { get; set; } /// /// /// - public global::System.Collections.Generic.IList, object>>? Type413 { get; set; } + public global::Phoenix.UploadDatasetRequest? Type413 { get; set; } /// /// /// - public global::Phoenix.OneOf, object>? Type414 { get; set; } + public global::Phoenix.UploadDatasetRequestAction? Type414 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type415 { get; set; } + public global::System.Collections.Generic.IList, object>>? Type415 { get; set; } /// /// /// - public global::Phoenix.OneOf? Type416 { get; set; } + public global::Phoenix.OneOf, object>? Type416 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest2? Type417 { get; set; } + public global::System.Collections.Generic.IList>? Type417 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction2? Type418 { get; set; } + public global::Phoenix.OneOf? Type418 { get; set; } /// /// /// - public byte[]? Type419 { get; set; } + public global::Phoenix.UploadDatasetRequest2? Type419 { get; set; } /// /// /// - public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type420 { get; set; } + public global::Phoenix.UploadDatasetRequestAction2? Type420 { get; set; } /// /// /// - public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type421 { get; set; } + public byte[]? Type421 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type422 { get; set; } + public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type422 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesSort? Type423 { get; set; } + public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type423 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesOrder? Type424 { get; set; } + public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type424 { get; set; } /// /// /// - public global::Phoenix.ListProjectSessionsOrder? Type425 { get; set; } + public global::Phoenix.ListProjectTracesSort? Type425 { get; set; } + /// + /// + /// + public global::Phoenix.ListProjectTracesOrder? Type426 { get; set; } + /// + /// + /// + public global::Phoenix.ListProjectSessionsOrder? Type427 { get; set; } /// /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.g.cs index 43c2b3f..1cb91d2 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.g.cs @@ -209,6 +209,84 @@ public bool TryPickPlayground( ? Playground! : throw new global::System.InvalidOperationException($"Expected union variant 'Playground' but the value was {ToString()}."); + /// + /// Code-evaluator create/edit form mounted in the current browser route. + /// +#if NET6_0_OR_GREATER + public global::Phoenix.CodeEvaluatorContext? CodeEvaluator { get; init; } +#else + public global::Phoenix.CodeEvaluatorContext? CodeEvaluator { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeEvaluator))] +#endif + public bool IsCodeEvaluator => CodeEvaluator != null; + + /// + /// + /// + public bool TryPickCodeEvaluator( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.CodeEvaluatorContext? value) + { + value = CodeEvaluator; + return IsCodeEvaluator; + } + + /// + /// + /// + public global::Phoenix.CodeEvaluatorContext PickCodeEvaluator() => IsCodeEvaluator + ? CodeEvaluator! + : throw new global::System.InvalidOperationException($"Expected union variant 'CodeEvaluator' but the value was {ToString()}."); + + /// + /// Dataset the user is currently viewing or has bound to a workflow.
+ /// Carries the dataset's relay node id and, when known, the active version
+ /// node id. These IDs scope the create-form handoff link and the sampling of
+ /// active dataset examples used as prompt context; the dataset schema itself
+ /// is open. + ///
+#if NET6_0_OR_GREATER + public global::Phoenix.DatasetContext? Dataset { get; init; } +#else + public global::Phoenix.DatasetContext? Dataset { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Dataset))] +#endif + public bool IsDataset => Dataset != null; + + /// + /// + /// + public bool TryPickDataset( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.DatasetContext? value) + { + value = Dataset; + return IsDataset; + } + + /// + /// + /// + public global::Phoenix.DatasetContext PickDataset() => IsDataset + ? Dataset! + : throw new global::System.InvalidOperationException($"Expected union variant 'Dataset' but the value was {ToString()}."); + /// /// GraphQL runtime state. /// @@ -397,6 +475,52 @@ public ChatContext(global::Phoenix.PlaygroundContext? value) ///
public static ChatContext FromPlayground(global::Phoenix.PlaygroundContext? value) => new ChatContext(value); + /// + /// + /// + public static implicit operator ChatContext(global::Phoenix.CodeEvaluatorContext value) => new ChatContext((global::Phoenix.CodeEvaluatorContext?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.CodeEvaluatorContext?(ChatContext @this) => @this.CodeEvaluator; + + /// + /// + /// + public ChatContext(global::Phoenix.CodeEvaluatorContext? value) + { + CodeEvaluator = value; + } + + /// + /// + /// + public static ChatContext FromCodeEvaluator(global::Phoenix.CodeEvaluatorContext? value) => new ChatContext(value); + + /// + /// + /// + public static implicit operator ChatContext(global::Phoenix.DatasetContext value) => new ChatContext((global::Phoenix.DatasetContext?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.DatasetContext?(ChatContext @this) => @this.Dataset; + + /// + /// + /// + public ChatContext(global::Phoenix.DatasetContext? value) + { + Dataset = value; + } + + /// + /// + /// + public static ChatContext FromDataset(global::Phoenix.DatasetContext? value) => new ChatContext(value); + /// /// /// @@ -453,6 +577,8 @@ public ChatContext( global::Phoenix.TraceContext? trace, global::Phoenix.AgentSpanContext? span, global::Phoenix.PlaygroundContext? playground, + global::Phoenix.CodeEvaluatorContext? codeEvaluator, + global::Phoenix.DatasetContext? dataset, global::Phoenix.GraphQLContext? graphql, global::Phoenix.WebAccessContext? webAccess ) @@ -464,6 +590,8 @@ public ChatContext( Trace = trace; Span = span; Playground = playground; + CodeEvaluator = codeEvaluator; + Dataset = dataset; Graphql = graphql; WebAccess = webAccess; } @@ -474,6 +602,8 @@ public ChatContext( public object? Object => WebAccess as object ?? Graphql as object ?? + Dataset as object ?? + CodeEvaluator as object ?? Playground as object ?? Span as object ?? Trace as object ?? @@ -490,6 +620,8 @@ App as object Trace?.ToString() ?? Span?.ToString() ?? Playground?.ToString() ?? + CodeEvaluator?.ToString() ?? + Dataset?.ToString() ?? Graphql?.ToString() ?? WebAccess?.ToString() ; @@ -499,7 +631,7 @@ App as object /// public bool Validate() { - return IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsGraphql && !IsWebAccess || !IsApp && IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && IsTrace && !IsSpan && !IsPlayground && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && IsSpan && !IsPlayground && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && !IsSpan && IsPlayground && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsGraphql && IsWebAccess; + return IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsCodeEvaluator && !IsDataset && !IsGraphql && !IsWebAccess || !IsApp && IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsCodeEvaluator && !IsDataset && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && IsTrace && !IsSpan && !IsPlayground && !IsCodeEvaluator && !IsDataset && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && IsSpan && !IsPlayground && !IsCodeEvaluator && !IsDataset && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && !IsSpan && IsPlayground && !IsCodeEvaluator && !IsDataset && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && IsCodeEvaluator && !IsDataset && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsCodeEvaluator && IsDataset && !IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsCodeEvaluator && !IsDataset && IsGraphql && !IsWebAccess || !IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsCodeEvaluator && !IsDataset && !IsGraphql && IsWebAccess; } /// @@ -511,6 +643,8 @@ public bool Validate() global::System.Func? trace = null, global::System.Func? span = null, global::System.Func? playground = null, + global::System.Func? codeEvaluator = null, + global::System.Func? dataset = null, global::System.Func? graphql = null, global::System.Func? webAccess = null, bool validate = true) @@ -540,6 +674,14 @@ public bool Validate() { return playground(Playground!); } + else if (IsCodeEvaluator && codeEvaluator != null) + { + return codeEvaluator(CodeEvaluator!); + } + else if (IsDataset && dataset != null) + { + return dataset(Dataset!); + } else if (IsGraphql && graphql != null) { return graphql(Graphql!); @@ -566,6 +708,10 @@ public void Match( global::System.Action? playground = null, + global::System.Action? codeEvaluator = null, + + global::System.Action? dataset = null, + global::System.Action? graphql = null, global::System.Action? webAccess = null, @@ -596,6 +742,14 @@ public void Match( { playground?.Invoke(Playground!); } + else if (IsCodeEvaluator) + { + codeEvaluator?.Invoke(CodeEvaluator!); + } + else if (IsDataset) + { + dataset?.Invoke(Dataset!); + } else if (IsGraphql) { graphql?.Invoke(Graphql!); @@ -615,6 +769,8 @@ public void Switch( global::System.Action? trace = null, global::System.Action? span = null, global::System.Action? playground = null, + global::System.Action? codeEvaluator = null, + global::System.Action? dataset = null, global::System.Action? graphql = null, global::System.Action? webAccess = null, bool validate = true) @@ -644,6 +800,14 @@ public void Switch( { playground?.Invoke(Playground!); } + else if (IsCodeEvaluator) + { + codeEvaluator?.Invoke(CodeEvaluator!); + } + else if (IsDataset) + { + dataset?.Invoke(Dataset!); + } else if (IsGraphql) { graphql?.Invoke(Graphql!); @@ -671,6 +835,10 @@ public override int GetHashCode() typeof(global::Phoenix.AgentSpanContext), Playground, typeof(global::Phoenix.PlaygroundContext), + CodeEvaluator, + typeof(global::Phoenix.CodeEvaluatorContext), + Dataset, + typeof(global::Phoenix.DatasetContext), Graphql, typeof(global::Phoenix.GraphQLContext), WebAccess, @@ -696,6 +864,8 @@ public bool Equals(ChatContext other) global::System.Collections.Generic.EqualityComparer.Default.Equals(Trace, other.Trace) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Span, other.Span) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Playground, other.Playground) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeEvaluator, other.CodeEvaluator) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Dataset, other.Dataset) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Graphql, other.Graphql) && global::System.Collections.Generic.EqualityComparer.Default.Equals(WebAccess, other.WebAccess) ; diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminatorType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminatorType.g.cs index c3cb234..ecbd9fc 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminatorType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminatorType.g.cs @@ -15,6 +15,14 @@ public enum ChatContextDiscriminatorType /// /// /// + CodeEvaluator, + /// + /// + /// + Dataset, + /// + /// + /// Graphql, /// /// @@ -51,6 +59,8 @@ public static string ToValueString(this ChatContextDiscriminatorType value) return value switch { ChatContextDiscriminatorType.App => "app", + ChatContextDiscriminatorType.CodeEvaluator => "code_evaluator", + ChatContextDiscriminatorType.Dataset => "dataset", ChatContextDiscriminatorType.Graphql => "graphql", ChatContextDiscriminatorType.Playground => "playground", ChatContextDiscriminatorType.Project => "project", @@ -68,6 +78,8 @@ public static string ToValueString(this ChatContextDiscriminatorType value) return value switch { "app" => ChatContextDiscriminatorType.App, + "code_evaluator" => ChatContextDiscriminatorType.CodeEvaluator, + "dataset" => ChatContextDiscriminatorType.Dataset, "graphql" => ChatContextDiscriminatorType.Graphql, "playground" => ChatContextDiscriminatorType.Playground, "project" => ChatContextDiscriminatorType.Project, diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContext.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContext.Json.g.cs new file mode 100644 index 0000000..882fc66 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContext.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class CodeEvaluatorContext + { + /// + /// 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.CodeEvaluatorContext? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.CodeEvaluatorContext), + jsonSerializerContext) as global::Phoenix.CodeEvaluatorContext; + } + + /// + /// 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.CodeEvaluatorContext? 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.CodeEvaluatorContext), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.CodeEvaluatorContext; + } + + /// + /// 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.CodeEvaluatorContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContext.g.cs new file mode 100644 index 0000000..77d43b0 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContext.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Code-evaluator create/edit form mounted in the current browser route. + /// + public sealed partial class CodeEvaluatorContext + { + /// + /// + /// + /// "code_evaluator" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "code_evaluator"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("evaluatorNodeId")] + public string? EvaluatorNodeId { 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 CodeEvaluatorContext( + string? evaluatorNodeId, + string type = "code_evaluator") + { + this.Type = type; + this.EvaluatorNodeId = evaluatorNodeId; + } + + /// + /// Initializes a new instance of the class. + /// + public CodeEvaluatorContext() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContextEvaluatorNodeId.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContextEvaluatorNodeId.Json.g.cs new file mode 100644 index 0000000..3b12abc --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContextEvaluatorNodeId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class CodeEvaluatorContextEvaluatorNodeId + { + /// + /// 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.CodeEvaluatorContextEvaluatorNodeId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.CodeEvaluatorContextEvaluatorNodeId), + jsonSerializerContext) as global::Phoenix.CodeEvaluatorContextEvaluatorNodeId; + } + + /// + /// 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.CodeEvaluatorContextEvaluatorNodeId? 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.CodeEvaluatorContextEvaluatorNodeId), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.CodeEvaluatorContextEvaluatorNodeId; + } + + /// + /// 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.CodeEvaluatorContextEvaluatorNodeId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContextEvaluatorNodeId.g.cs new file mode 100644 index 0000000..3861d09 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.CodeEvaluatorContextEvaluatorNodeId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class CodeEvaluatorContextEvaluatorNodeId + { + + /// + /// 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.DatasetContext.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.DatasetContext.Json.g.cs new file mode 100644 index 0000000..d87fd9c --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.DatasetContext.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class DatasetContext + { + /// + /// 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.DatasetContext? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.DatasetContext), + jsonSerializerContext) as global::Phoenix.DatasetContext; + } + + /// + /// 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.DatasetContext? 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.DatasetContext), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.DatasetContext; + } + + /// + /// 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.DatasetContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.DatasetContext.g.cs new file mode 100644 index 0000000..20a64c2 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.DatasetContext.g.cs @@ -0,0 +1,80 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Dataset the user is currently viewing or has bound to a workflow.
+ /// Carries the dataset's relay node id and, when known, the active version
+ /// node id. These IDs scope the create-form handoff link and the sampling of
+ /// active dataset examples used as prompt context; the dataset schema itself
+ /// is open. + ///
+ public sealed partial class DatasetContext + { + /// + /// + /// + /// "dataset" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "dataset"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("datasetNodeId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string DatasetNodeId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("datasetVersionNodeId")] + public string? DatasetVersionNodeId { 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 DatasetContext( + string datasetNodeId, + string? datasetVersionNodeId, + string type = "dataset") + { + this.Type = type; + this.DatasetNodeId = datasetNodeId ?? throw new global::System.ArgumentNullException(nameof(datasetNodeId)); + this.DatasetVersionNodeId = datasetVersionNodeId; + } + + /// + /// Initializes a new instance of the class. + /// + public DatasetContext() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static DatasetContext FromDatasetNodeId(string datasetNodeId) + { + return new DatasetContext + { + DatasetNodeId = datasetNodeId, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.DatasetContextDatasetVersionNodeId.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.DatasetContextDatasetVersionNodeId.Json.g.cs new file mode 100644 index 0000000..fbc079b --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.DatasetContextDatasetVersionNodeId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class DatasetContextDatasetVersionNodeId + { + /// + /// 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.DatasetContextDatasetVersionNodeId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.DatasetContextDatasetVersionNodeId), + jsonSerializerContext) as global::Phoenix.DatasetContextDatasetVersionNodeId; + } + + /// + /// 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.DatasetContextDatasetVersionNodeId? 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.DatasetContextDatasetVersionNodeId), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.DatasetContextDatasetVersionNodeId; + } + + /// + /// 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.DatasetContextDatasetVersionNodeId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.DatasetContextDatasetVersionNodeId.g.cs new file mode 100644 index 0000000..62f000b --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.DatasetContextDatasetVersionNodeId.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class DatasetContextDatasetVersionNodeId + { + + /// + /// 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/openapi.json b/src/libs/Phoenix/openapi.json index 070af5f..4641bdd 100644 --- a/src/libs/Phoenix/openapi.json +++ b/src/libs/Phoenix/openapi.json @@ -7304,6 +7304,12 @@ { "$ref": "#/components/schemas/PlaygroundContext" }, + { + "$ref": "#/components/schemas/CodeEvaluatorContext" + }, + { + "$ref": "#/components/schemas/DatasetContext" + }, { "$ref": "#/components/schemas/GraphQLContext" }, @@ -7317,6 +7323,8 @@ "propertyName": "type", "mapping": { "app": "#/components/schemas/AppContext", + "code_evaluator": "#/components/schemas/CodeEvaluatorContext", + "dataset": "#/components/schemas/DatasetContext", "graphql": "#/components/schemas/GraphQLContext", "playground": "#/components/schemas/PlaygroundContext", "project": "#/components/schemas/ProjectContext", @@ -7504,6 +7512,32 @@ "title": "ChatSubmitMessage", "description": "Submit message extended with Phoenix-specific fields." }, + "CodeEvaluatorContext": { + "properties": { + "type": { + "type": "string", + "const": "code_evaluator", + "title": "Type" + }, + "evaluatorNodeId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Evaluatornodeid" + } + }, + "type": "object", + "required": [ + "type" + ], + "title": "CodeEvaluatorContext", + "description": "Code-evaluator create/edit form mounted in the current browser route." + }, "ContinuousAnnotationConfig": { "properties": { "name": { @@ -8202,6 +8236,37 @@ ], "title": "Dataset" }, + "DatasetContext": { + "properties": { + "type": { + "type": "string", + "const": "dataset", + "title": "Type" + }, + "datasetNodeId": { + "type": "string", + "title": "Datasetnodeid" + }, + "datasetVersionNodeId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Datasetversionnodeid" + } + }, + "type": "object", + "required": [ + "type", + "datasetNodeId" + ], + "title": "DatasetContext", + "description": "Dataset the user is currently viewing or has bound to a workflow.\n\nCarries the dataset's relay node id and, when known, the active version\nnode id. These IDs scope the create-form handoff link and the sampling of\nactive dataset examples used as prompt context; the dataset schema itself\nis open." + }, "DatasetExample": { "properties": { "id": {