From 182e3e3dd57374862d7c63452c66ac4fd3bab729 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 21 May 2026 20:01:11 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Phoenix.JsonConverters.ChatContext.g.cs | 17 +- .../Phoenix.JsonSerializerContext.g.cs | 1 + .../Phoenix.JsonSerializerContextTypes.g.cs | 704 +++++++++--------- .../Generated/Phoenix.Models.ChatContext.g.cs | 91 ++- ...x.Models.ChatContextDiscriminatorType.g.cs | 6 + .../Phoenix.Models.WebAccessContext.Json.g.cs | 92 +++ .../Phoenix.Models.WebAccessContext.g.cs | 67 ++ src/libs/Phoenix/openapi.json | 26 +- 8 files changed, 648 insertions(+), 356 deletions(-) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.WebAccessContext.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.WebAccessContext.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 9e085d7..bc59f21 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContext.g.cs @@ -63,6 +63,13 @@ public class ChatContextJsonConverter : global::System.Text.Json.Serialization.J throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.GraphQLContext)}"); graphql = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + global::Phoenix.WebAccessContext? webAccess = default; + if (discriminator?.Type == global::Phoenix.ChatContextDiscriminatorType.WebAccess) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.WebAccessContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.WebAccessContext)}"); + webAccess = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } var __value = new global::Phoenix.ChatContext( discriminator?.Type, @@ -76,7 +83,9 @@ public class ChatContextJsonConverter : global::System.Text.Json.Serialization.J playground, - graphql + graphql, + + webAccess ); return __value; @@ -127,6 +136,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.GraphQLContext).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Graphql!, typeInfo); } + else if (value.IsWebAccess) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.WebAccessContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.WebAccessContext).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.WebAccess!, typeInfo); + } } } } \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs index 38c3636..7003c48 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs @@ -513,6 +513,7 @@ namespace Phoenix [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.GraphQLContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.WebAccessContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatContextDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatContextDiscriminatorType), TypeInfoPropertyName = "ChatContextDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatRegenerateMessage))] diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs index 1b30cc1..f6dd90b 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs @@ -320,1403 +320,1407 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Phoenix.ChatContextDiscriminator? Type73 { get; set; } + public global::Phoenix.WebAccessContext? Type73 { get; set; } /// /// /// - public global::Phoenix.ChatContextDiscriminatorType? Type74 { get; set; } + public global::Phoenix.ChatContextDiscriminator? Type74 { get; set; } /// /// /// - public global::Phoenix.ChatRegenerateMessage? Type75 { get; set; } + public global::Phoenix.ChatContextDiscriminatorType? Type75 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type76 { get; set; } + public global::Phoenix.ChatRegenerateMessage? Type76 { get; set; } /// /// /// - public bool? Type77 { get; set; } + public global::System.Collections.Generic.IList? Type77 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type78 { get; set; } + public bool? Type78 { get; set; } /// /// /// - public global::Phoenix.Model? Type79 { get; set; } + public global::System.Collections.Generic.IList? Type79 { get; set; } /// /// /// - public global::Phoenix.CustomProviderModelSelection? Type80 { get; set; } + public global::Phoenix.Model? Type80 { get; set; } /// /// /// - public global::Phoenix.ChatRegenerateMessageModelDiscriminator? Type81 { get; set; } + public global::Phoenix.CustomProviderModelSelection? Type81 { get; set; } /// /// /// - public global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? Type82 { get; set; } + public global::Phoenix.ChatRegenerateMessageModelDiscriminator? Type82 { get; set; } /// /// /// - public global::Phoenix.ChatRequest? Type83 { get; set; } + public global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? Type83 { get; set; } /// /// /// - public global::Phoenix.ChatSubmitMessage? Type84 { get; set; } + public global::Phoenix.ChatRequest? Type84 { get; set; } /// /// /// - public global::Phoenix.ChatRequestDiscriminator? Type85 { get; set; } + public global::Phoenix.ChatSubmitMessage? Type85 { get; set; } /// /// /// - public global::Phoenix.ChatRequestDiscriminatorTrigger? Type86 { get; set; } + public global::Phoenix.ChatRequestDiscriminator? Type86 { get; set; } /// /// /// - public global::Phoenix.Model2? Type87 { get; set; } + public global::Phoenix.ChatRequestDiscriminatorTrigger? Type87 { get; set; } /// /// /// - public global::Phoenix.ChatSubmitMessageModelDiscriminator? Type88 { get; set; } + public global::Phoenix.Model2? Type88 { get; set; } /// /// /// - public global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? Type89 { get; set; } + public global::Phoenix.ChatSubmitMessageModelDiscriminator? Type89 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfig? Type90 { get; set; } + public global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? Type90 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfigData? Type91 { get; set; } + public global::Phoenix.ContinuousAnnotationConfig? Type91 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigData? Type92 { get; set; } + public global::Phoenix.ContinuousAnnotationConfigData? Type92 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfigData? Type93 { get; set; } + public global::Phoenix.CreateAnnotationConfigData? Type93 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type94 { get; set; } + public global::Phoenix.FreeformAnnotationConfigData? Type94 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type95 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type95 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBody? Type96 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type96 { get; set; } /// /// /// - public global::Phoenix.Data? Type97 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBody? Type97 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfig? Type98 { get; set; } + public global::Phoenix.Data? Type98 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type99 { get; set; } + public global::Phoenix.FreeformAnnotationConfig? Type99 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type100 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type100 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRequestBody? Type101 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type101 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type102 { get; set; } + public global::Phoenix.CreateExperimentRequestBody? Type102 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentResponseBody? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::Phoenix.Experiment? Type104 { get; set; } + public global::Phoenix.CreateExperimentResponseBody? Type104 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunRequestBody? Type105 { get; set; } + public global::Phoenix.Experiment? Type105 { get; set; } /// /// /// - public global::System.DateTime? Type106 { get; set; } + public global::Phoenix.CreateExperimentRunRequestBody? Type106 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBody? Type107 { get; set; } + public global::System.DateTime? Type107 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBodyData? Type108 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBody? Type108 { get; set; } /// /// /// - public global::Phoenix.CreateProjectRequestBody? Type109 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBodyData? Type109 { get; set; } /// /// /// - public global::Phoenix.CreateProjectResponseBody? Type110 { get; set; } + public global::Phoenix.CreateProjectRequestBody? Type110 { get; set; } /// /// /// - public global::Phoenix.Project? Type111 { get; set; } + public global::Phoenix.CreateProjectResponseBody? Type111 { get; set; } /// /// /// - public global::Phoenix.CreatePromptRequestBody? Type112 { get; set; } + public global::Phoenix.Project? Type112 { get; set; } /// /// /// - public global::Phoenix.PromptData? Type113 { get; set; } + public global::Phoenix.CreatePromptRequestBody? Type113 { get; set; } /// /// /// - public global::Phoenix.PromptVersionData? Type114 { get; set; } + public global::Phoenix.PromptData? Type114 { get; set; } /// /// /// - public global::Phoenix.CreatePromptResponseBody? Type115 { get; set; } + public global::Phoenix.PromptVersionData? Type115 { get; set; } /// /// /// - public global::Phoenix.PromptVersion? Type116 { get; set; } + public global::Phoenix.CreatePromptResponseBody? Type116 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteRequestBody? Type117 { get; set; } + public global::Phoenix.PromptVersion? Type117 { get; set; } /// /// /// - public global::Phoenix.SessionNoteData? Type118 { get; set; } + public global::Phoenix.CreateSessionNoteRequestBody? Type118 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteResponseBody? Type119 { get; set; } + public global::Phoenix.SessionNoteData? Type119 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteRequestBody? Type120 { get; set; } + public global::Phoenix.CreateSessionNoteResponseBody? Type120 { get; set; } /// /// /// - public global::Phoenix.SpanNoteData? Type121 { get; set; } + public global::Phoenix.CreateSpanNoteRequestBody? Type121 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteResponseBody? Type122 { get; set; } + public global::Phoenix.SpanNoteData? Type122 { get; set; } /// /// /// - public global::Phoenix.CreateSpansRequestBody? Type123 { get; set; } + public global::Phoenix.CreateSpanNoteResponseBody? Type123 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type124 { get; set; } + public global::Phoenix.CreateSpansRequestBody? Type124 { get; set; } /// /// /// - public global::Phoenix.Span? Type125 { get; set; } + public global::System.Collections.Generic.IList? Type125 { get; set; } /// /// /// - public global::Phoenix.CreateSpansResponseBody? Type126 { get; set; } + public global::Phoenix.Span? Type126 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteRequestBody? Type127 { get; set; } + public global::Phoenix.CreateSpansResponseBody? Type127 { get; set; } /// /// /// - public global::Phoenix.TraceNoteData? Type128 { get; set; } + public global::Phoenix.CreateTraceNoteRequestBody? Type128 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteResponseBody? Type129 { get; set; } + public global::Phoenix.TraceNoteData? Type129 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBody? Type130 { get; set; } + public global::Phoenix.CreateTraceNoteResponseBody? Type130 { get; set; } /// /// /// - public global::Phoenix.User? Type131 { get; set; } + public global::Phoenix.CreateUserRequestBody? Type131 { get; set; } /// /// /// - public global::Phoenix.LocalUserData? Type132 { get; set; } + public global::Phoenix.User? Type132 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserData? Type133 { get; set; } + public global::Phoenix.LocalUserData? Type133 { get; set; } /// /// /// - public global::Phoenix.LDAPUserData? Type134 { get; set; } + public global::Phoenix.OAuth2UserData? Type134 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type135 { get; set; } + public global::Phoenix.LDAPUserData? Type135 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type136 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type136 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBody? Type137 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type137 { get; set; } /// /// /// - public global::Phoenix.Data2? Type138 { get; set; } + public global::Phoenix.CreateUserResponseBody? Type138 { get; set; } /// /// /// - public global::Phoenix.LocalUser? Type139 { get; set; } + public global::Phoenix.Data2? Type139 { get; set; } /// /// /// - public global::Phoenix.OAuth2User? Type140 { get; set; } + public global::Phoenix.LocalUser? Type140 { get; set; } /// /// /// - public global::Phoenix.LDAPUser? Type141 { get; set; } + public global::Phoenix.OAuth2User? Type141 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type142 { get; set; } + public global::Phoenix.LDAPUser? Type142 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type143 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type143 { get; set; } /// /// /// - public global::Phoenix.Dataset? Type144 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type144 { get; set; } /// /// /// - public global::Phoenix.DatasetExample? Type145 { get; set; } + public global::Phoenix.Dataset? Type145 { get; set; } /// /// /// - public global::Phoenix.DatasetVersion? Type146 { get; set; } + public global::Phoenix.DatasetExample? Type146 { get; set; } /// /// /// - public global::Phoenix.DatasetWithExampleCount? Type147 { get; set; } + public global::Phoenix.DatasetVersion? Type147 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBody? Type148 { get; set; } + public global::Phoenix.DatasetWithExampleCount? Type148 { get; set; } /// /// /// - public global::Phoenix.Data3? Type149 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBody? Type149 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type150 { get; set; } + public global::Phoenix.Data3? Type150 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type151 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type151 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionsRequestBody? Type152 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type152 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type153 { get; set; } + public global::Phoenix.DeleteSessionsRequestBody? Type153 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type154 { get; set; } + public global::System.Collections.Generic.Dictionary? Type154 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalRequested? Type155 { get; set; } + public global::Phoenix.AnyOf? Type155 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalResponded? Type156 { get; set; } + public global::Phoenix.ToolApprovalRequested? Type156 { get; set; } /// /// /// - public global::Phoenix.ExperimentEvaluationResult? Type157 { get; set; } + public global::Phoenix.ToolApprovalResponded? Type157 { get; set; } /// /// /// - public global::Phoenix.ExperimentRun? Type158 { get; set; } + public global::Phoenix.ExperimentEvaluationResult? Type158 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBody? Type159 { get; set; } + public global::Phoenix.ExperimentRun? Type159 { get; set; } /// /// /// - public global::Phoenix.Data4? Type160 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBody? Type160 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type161 { get; set; } + public global::Phoenix.Data4? Type161 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type162 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type162 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBody? Type163 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBody? Type164 { get; set; } /// /// /// - public global::Phoenix.DataItem? Type165 { get; set; } + public global::System.Collections.Generic.IList? Type165 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type166 { get; set; } + public global::Phoenix.DataItem? Type166 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type167 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type167 { get; set; } /// /// /// - public global::Phoenix.GetDatasetResponseBody? Type168 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type168 { get; set; } /// /// /// - public global::Phoenix.GetExperimentResponseBody? Type169 { get; set; } + public global::Phoenix.GetDatasetResponseBody? Type169 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type170 { get; set; } + public global::Phoenix.GetExperimentResponseBody? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type171 { get; set; } + public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type171 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentEvaluation? Type172 { get; set; } + public global::System.Collections.Generic.IList? Type172 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type173 { get; set; } + public global::Phoenix.IncompleteExperimentEvaluation? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type174 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentRun? Type175 { get; set; } + public global::System.Collections.Generic.IList? Type175 { get; set; } /// /// /// - public global::Phoenix.GetProjectResponseBody? Type176 { get; set; } + public global::Phoenix.IncompleteExperimentRun? Type176 { get; set; } /// /// /// - public global::Phoenix.GetProjectsResponseBody? Type177 { get; set; } + public global::Phoenix.GetProjectResponseBody? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::Phoenix.GetProjectsResponseBody? Type178 { get; set; } /// /// /// - public global::Phoenix.GetPromptResponseBody? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionTagsResponseBody? Type180 { get; set; } + public global::Phoenix.GetPromptResponseBody? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::Phoenix.GetPromptVersionTagsResponseBody? Type181 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTag? Type182 { get; set; } + public global::System.Collections.Generic.IList? Type182 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionsResponseBody? Type183 { get; set; } + public global::Phoenix.PromptVersionTag? Type183 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type184 { get; set; } + public global::Phoenix.GetPromptVersionsResponseBody? Type184 { get; set; } /// /// /// - public global::Phoenix.GetPromptsResponseBody? Type185 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::Phoenix.GetPromptsResponseBody? Type186 { get; set; } /// /// /// - public global::Phoenix.Prompt? Type187 { get; set; } + public global::System.Collections.Generic.IList? Type187 { get; set; } /// /// /// - public global::Phoenix.GetSessionResponseBody? Type188 { get; set; } + public global::Phoenix.Prompt? Type188 { get; set; } /// /// /// - public global::Phoenix.SessionData? Type189 { get; set; } + public global::Phoenix.GetSessionResponseBody? Type189 { get; set; } /// /// /// - public global::Phoenix.GetSessionsResponseBody? Type190 { get; set; } + public global::Phoenix.SessionData? Type190 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type191 { get; set; } + public global::Phoenix.GetSessionsResponseBody? Type191 { get; set; } /// /// /// - public global::Phoenix.GetTracesResponseBody? Type192 { get; set; } + public global::System.Collections.Generic.IList? Type192 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type193 { get; set; } + public global::Phoenix.GetTracesResponseBody? Type193 { get; set; } /// /// /// - public global::Phoenix.TraceData? Type194 { get; set; } + public global::System.Collections.Generic.IList? Type194 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBody? Type195 { get; set; } + public global::Phoenix.TraceData? Type195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::Phoenix.GetUsersResponseBody? Type196 { get; set; } /// /// /// - public global::Phoenix.DataItem2? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type198 { get; set; } + public global::Phoenix.DataItem2? Type198 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type199 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type199 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBody? Type200 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type200 { get; set; } /// /// /// - public global::Phoenix.Data5? Type201 { get; set; } + public global::Phoenix.GetViewerResponseBody? Type201 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type202 { get; set; } + public global::Phoenix.Data5? Type202 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type203 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type203 { get; set; } /// /// /// - public global::Phoenix.HTTPValidationError? Type204 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type205 { get; set; } + public global::Phoenix.HTTPValidationError? Type205 { get; set; } /// /// /// - public global::Phoenix.ValidationError? Type206 { get; set; } + public global::System.Collections.Generic.IList? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type207 { get; set; } + public global::Phoenix.ValidationError? Type207 { get; set; } /// /// /// - public global::Phoenix.LDAPUserRole? Type208 { get; set; } + public global::System.Collections.Generic.IList? Type208 { get; set; } /// /// /// - public global::Phoenix.LDAPUserDataRole? Type209 { get; set; } + public global::Phoenix.LDAPUserRole? Type209 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesData? Type210 { get; set; } + public global::Phoenix.LDAPUserDataRole? Type210 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type211 { get; set; } + public global::Phoenix.ListDatasetExamplesData? Type211 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesResponseBody? Type212 { get; set; } + public global::System.Collections.Generic.IList? Type212 { get; set; } /// /// /// - public global::Phoenix.ListDatasetVersionsResponseBody? Type213 { get; set; } + public global::Phoenix.ListDatasetExamplesResponseBody? Type213 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type214 { get; set; } + public global::Phoenix.ListDatasetVersionsResponseBody? Type214 { get; set; } /// /// /// - public global::Phoenix.ListDatasetsResponseBody? Type215 { get; set; } + public global::System.Collections.Generic.IList? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type216 { get; set; } + public global::Phoenix.ListDatasetsResponseBody? Type216 { get; set; } /// /// /// - public global::Phoenix.ListExperimentRunsResponseBody? Type217 { get; set; } + public global::System.Collections.Generic.IList? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type218 { get; set; } + public global::Phoenix.ListExperimentRunsResponseBody? Type218 { get; set; } /// /// /// - public global::Phoenix.ListExperimentsResponseBody? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type220 { get; set; } + public global::Phoenix.ListExperimentsResponseBody? Type220 { get; set; } /// /// /// - public global::Phoenix.LocalUserRole? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::Phoenix.LocalUserDataRole? Type222 { get; set; } + public global::Phoenix.LocalUserRole? Type222 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserRole? Type223 { get; set; } + public global::Phoenix.LocalUserDataRole? Type223 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserDataRole? Type224 { get; set; } + public global::Phoenix.OAuth2UserRole? Type224 { get; set; } /// /// /// - public global::Phoenix.OtlpAnyValue? Type225 { get; set; } + public global::Phoenix.OAuth2UserDataRole? Type225 { get; set; } /// /// /// - public global::Phoenix.OtlpArrayValue? Type226 { get; set; } + public global::Phoenix.OtlpAnyValue? Type226 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type227 { get; set; } + public global::Phoenix.OtlpArrayValue? Type227 { get; set; } /// /// /// - public global::Phoenix.OtlpDoubleValue? Type228 { get; set; } + public global::Phoenix.AnyOf? Type228 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type229 { get; set; } + public global::Phoenix.OtlpDoubleValue? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::Phoenix.AnyOf? Type230 { get; set; } /// /// /// - public global::Phoenix.OtlpEvent? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type232 { get; set; } + public global::Phoenix.OtlpEvent? Type232 { get; set; } /// /// /// - public global::Phoenix.OtlpKeyValue? Type233 { get; set; } + public global::System.Collections.Generic.IList? Type233 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type234 { get; set; } + public global::Phoenix.OtlpKeyValue? Type234 { get; set; } /// /// /// - public long? Type235 { get; set; } + public global::Phoenix.AnyOf? Type235 { get; set; } /// /// /// - public global::Phoenix.OtlpKind? Type236 { get; set; } + public long? Type236 { get; set; } /// /// /// - public global::Phoenix.OtlpSpan? Type237 { get; set; } + public global::Phoenix.OtlpKind? Type237 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type238 { get; set; } + public global::Phoenix.OtlpSpan? Type238 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type239 { get; set; } + public global::System.Collections.Generic.IList? Type239 { get; set; } /// /// /// - public global::Phoenix.OtlpStatus? Type240 { get; set; } + public global::Phoenix.AnyOf? Type240 { get; set; } /// /// /// - public global::Phoenix.OtlpSpansResponseBody? Type241 { get; set; } + public global::Phoenix.OtlpStatus? Type241 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type242 { get; set; } + public global::Phoenix.OtlpSpansResponseBody? Type242 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParameters? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContent? Type244 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParameters? Type244 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfig? Type245 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContent? Type245 { get; set; } /// /// /// - public global::Phoenix.Thinking? Type246 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfig? Type246 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type247 { get; set; } + public global::Phoenix.Thinking? Type247 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type248 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type248 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type249 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type249 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type250 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type250 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type251 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type251 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfigEffort? Type252 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type252 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type253 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfigEffort? Type253 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type254 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type254 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParameters? Type255 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type255 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParametersContent? Type256 { get; set; } + public global::Phoenix.PromptAwsInvocationParameters? Type256 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type257 { get; set; } + public global::Phoenix.PromptAwsInvocationParametersContent? Type257 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type258 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type258 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type259 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type259 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParameters? Type260 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type260 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContent? Type261 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParameters? Type261 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type262 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContent? Type262 { get; set; } /// /// /// - public global::Phoenix.PromptChatTemplate? Type263 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type263 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type264 { get; set; } + public global::Phoenix.PromptChatTemplate? Type264 { get; set; } /// /// /// - public global::Phoenix.PromptMessage? Type265 { get; set; } + public global::System.Collections.Generic.IList? Type265 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParameters? Type266 { get; set; } + public global::Phoenix.PromptMessage? Type266 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type267 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParameters? Type267 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type268 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type268 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParameters? Type269 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type269 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContent? Type270 { get; set; } + public global::Phoenix.PromptFireworksInvocationParameters? Type270 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type271 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContent? Type271 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParameters? Type272 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type272 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParametersContent? Type273 { get; set; } + public global::Phoenix.PromptGoogleInvocationParameters? Type273 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfig? Type274 { get; set; } + public global::Phoenix.PromptGoogleInvocationParametersContent? Type274 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type275 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfig? Type275 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParameters? Type276 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type276 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContent? Type277 { get; set; } + public global::Phoenix.PromptGroqInvocationParameters? Type277 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type278 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContent? Type278 { get; set; } /// /// /// - public global::Phoenix.PromptMessageRole? Type279 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type279 { get; set; } /// /// /// - public global::Phoenix.AnyOf>? Type280 { get; set; } + public global::Phoenix.PromptMessageRole? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::Phoenix.AnyOf>? Type281 { get; set; } /// /// /// - public global::Phoenix.ContentVariant2Item? Type282 { get; set; } + public global::System.Collections.Generic.IList? Type282 { get; set; } /// /// /// - public global::Phoenix.TextContentPart? Type283 { get; set; } + public global::Phoenix.ContentVariant2Item? Type283 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPart? Type284 { get; set; } + public global::Phoenix.TextContentPart? Type284 { get; set; } /// /// /// - public global::Phoenix.ToolResultContentPart? Type285 { get; set; } + public global::Phoenix.ToolCallContentPart? Type285 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type286 { get; set; } + public global::Phoenix.ToolResultContentPart? Type286 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type287 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type287 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParameters? Type288 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type288 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContent? Type289 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParameters? Type289 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type290 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContent? Type290 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParameters? Type291 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type291 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContent? Type292 { get; set; } + public global::Phoenix.PromptOllamaInvocationParameters? Type292 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type293 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContent? Type293 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParameters? Type294 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type294 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContent? Type295 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParameters? Type295 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type296 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContent? Type296 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParameters? Type297 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type297 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContent? Type298 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParameters? Type298 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type299 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContent? Type299 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchema? Type300 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type300 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type301 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchema? Type301 { get; set; } /// /// /// - public global::Phoenix.PromptStringTemplate? Type302 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type302 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateFormat? Type303 { get; set; } + public global::Phoenix.PromptStringTemplate? Type303 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateType? Type304 { get; set; } + public global::Phoenix.PromptTemplateFormat? Type304 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParameters? Type305 { get; set; } + public global::Phoenix.PromptTemplateType? Type305 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContent? Type306 { get; set; } + public global::Phoenix.PromptTogetherInvocationParameters? Type306 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type307 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContent? Type307 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceNone? Type308 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type308 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceOneOrMore? Type309 { get; set; } + public global::Phoenix.PromptToolChoiceNone? Type309 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type310 { get; set; } + public global::Phoenix.PromptToolChoiceOneOrMore? Type310 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceZeroOrMore? Type311 { get; set; } + public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type311 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunction? Type312 { get; set; } + public global::Phoenix.PromptToolChoiceZeroOrMore? Type312 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunctionDefinition? Type313 { get; set; } + public global::Phoenix.PromptToolFunction? Type313 { get; set; } /// /// /// - public global::Phoenix.PromptToolRaw? Type314 { get; set; } + public global::Phoenix.PromptToolFunctionDefinition? Type314 { get; set; } /// /// /// - public global::Phoenix.PromptTools? Type315 { get; set; } + public global::Phoenix.PromptToolRaw? Type315 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type316 { get; set; } + public global::Phoenix.PromptTools? Type316 { get; set; } /// /// /// - public global::Phoenix.ToolsItem? Type317 { get; set; } + public global::System.Collections.Generic.IList? Type317 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminator? Type318 { get; set; } + public global::Phoenix.ToolsItem? Type318 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminatorType? Type319 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminator? Type319 { get; set; } /// /// /// - public global::Phoenix.ToolChoice? Type320 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminatorType? Type320 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type321 { get; set; } + public global::Phoenix.ToolChoice? Type321 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type322 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type322 { get; set; } /// /// /// - public global::Phoenix.Template? Type323 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type323 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminator? Type324 { get; set; } + public global::Phoenix.Template? Type324 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type325 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminator? Type325 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters? Type326 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type326 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParameters? Type327 { get; set; } + public global::Phoenix.InvocationParameters? Type327 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type328 { get; set; } + public global::Phoenix.PromptXAIInvocationParameters? Type328 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type329 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type329 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant1? Type330 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type330 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type331 { get; set; } + public global::Phoenix.ResponseFormatVariant1? Type331 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type332 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type332 { get; set; } /// /// /// - public global::Phoenix.Template2? Type333 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type333 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type334 { get; set; } + public global::Phoenix.Template2? Type334 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type335 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type335 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters2? Type336 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type336 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type337 { get; set; } + public global::Phoenix.InvocationParameters2? Type337 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type338 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type338 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant12? Type339 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type339 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type340 { get; set; } + public global::Phoenix.ResponseFormatVariant12? Type340 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type341 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type341 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTagData? Type342 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type342 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContent? Type343 { get; set; } + public global::Phoenix.PromptVersionTagData? Type343 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type344 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContent? Type344 { get; set; } /// /// /// - public global::Phoenix.ReasoningUIPartState2? Type345 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type345 { get; set; } /// /// /// - public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type346 { get; set; } + public global::Phoenix.ReasoningUIPartState2? Type346 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsResult? Type347 { get; set; } + public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type347 { get; set; } /// /// /// - public global::Phoenix.SecretKeyValue? Type348 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsResult? Type348 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotation? Type349 { get; set; } + public global::Phoenix.SecretKeyValue? Type349 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationSource? Type350 { get; set; } + public global::Phoenix.SessionAnnotation? Type350 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationAnnotatorKind? Type351 { get; set; } + public global::Phoenix.SessionAnnotationSource? Type351 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type352 { get; set; } + public global::Phoenix.SessionAnnotationAnnotatorKind? Type352 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationsResponseBody? Type353 { get; set; } + public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type353 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type354 { get; set; } + public global::Phoenix.SessionAnnotationsResponseBody? Type354 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type355 { get; set; } + public global::System.Collections.Generic.IList? Type355 { get; set; } /// /// /// - public global::Phoenix.SessionTraceData? Type356 { get; set; } + public global::System.Collections.Generic.IList? Type356 { get; set; } /// /// /// - public global::Phoenix.SpanContext? Type357 { get; set; } + public global::Phoenix.SessionTraceData? Type357 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type358 { get; set; } + public global::Phoenix.SpanContext? Type358 { get; set; } /// /// /// - public global::Phoenix.SpanEvent? Type359 { get; set; } + public global::System.Collections.Generic.IList? Type359 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotation? Type360 { get; set; } + public global::Phoenix.SpanEvent? Type360 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationSource? Type361 { get; set; } + public global::Phoenix.SpanAnnotation? Type361 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationAnnotatorKind? Type362 { get; set; } + public global::Phoenix.SpanAnnotationSource? Type362 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type363 { get; set; } + public global::Phoenix.SpanAnnotationAnnotatorKind? Type363 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationsResponseBody? Type364 { get; set; } + public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type364 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type365 { get; set; } + public global::Phoenix.SpanAnnotationsResponseBody? Type365 { get; set; } /// /// /// - public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type366 { get; set; } + public global::System.Collections.Generic.IList? Type366 { get; set; } /// /// /// - public global::Phoenix.SpansResponseBody? Type367 { get; set; } + public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type367 { get; set; } /// /// /// - public global::Phoenix.TextUIPartState2? Type368 { get; set; } + public global::Phoenix.SpansResponseBody? Type368 { get; set; } /// /// /// - public global::Phoenix.ToolCallFunction? Type369 { get; set; } + public global::Phoenix.TextUIPartState2? Type369 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type370 { get; set; } + public global::Phoenix.ToolCallFunction? Type370 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type371 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type371 { get; set; } /// /// /// - public global::Phoenix.AnyOf, object>? Type372 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type372 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type373 { get; set; } + public global::Phoenix.AnyOf, object>? Type373 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotation? Type374 { get; set; } + public global::System.Collections.Generic.IList? Type374 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationSource? Type375 { get; set; } + public global::Phoenix.TraceAnnotation? Type375 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationAnnotatorKind? Type376 { get; set; } + public global::Phoenix.TraceAnnotationSource? Type376 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type377 { get; set; } + public global::Phoenix.TraceAnnotationAnnotatorKind? Type377 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationsResponseBody? Type378 { get; set; } + public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type378 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type379 { get; set; } + public global::Phoenix.TraceAnnotationsResponseBody? Type379 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type380 { get; set; } + public global::System.Collections.Generic.IList? Type380 { get; set; } /// /// /// - public global::Phoenix.TraceSpanData? Type381 { get; set; } + public global::System.Collections.Generic.IList? Type381 { get; set; } /// /// /// - public global::Phoenix.UIMessage? Type382 { get; set; } + public global::Phoenix.TraceSpanData? Type382 { get; set; } /// /// /// - public global::Phoenix.UIMessageRole? Type383 { get; set; } + public global::Phoenix.UIMessage? Type383 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBody? Type384 { get; set; } + public global::Phoenix.UIMessageRole? Type384 { get; set; } /// /// /// - public global::Phoenix.Data6? Type385 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBody? Type385 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type386 { get; set; } + public global::Phoenix.Data6? Type386 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type387 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type387 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectRequestBody? Type388 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type388 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectResponseBody? Type389 { get; set; } + public global::Phoenix.UpdateProjectRequestBody? Type389 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetData? Type390 { get; set; } + public global::Phoenix.UpdateProjectResponseBody? Type390 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetResponseBody? Type391 { get; set; } + public global::Phoenix.UploadDatasetData? Type391 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type392 { get; set; } + public global::Phoenix.UploadDatasetResponseBody? Type392 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type393 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type393 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type394 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type394 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type395 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type395 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsRequest? Type396 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type396 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type397 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsRequest? Type397 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type398 { get; set; } + public global::System.Collections.Generic.IList? Type398 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type399 { get; set; } + public global::System.Collections.Generic.IList>? Type399 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequest? Type400 { get; set; } + public global::Phoenix.AnyOf? Type400 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type401 { get; set; } + public global::Phoenix.SummarizeRequest? Type401 { get; set; } /// /// /// - public global::Phoenix.Model3? Type402 { get; set; } + public global::System.Collections.Generic.IList? Type402 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequestModelDiscriminator? Type403 { get; set; } + public global::Phoenix.Model3? Type403 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? Type404 { get; set; } + public global::Phoenix.SummarizeRequestModelDiscriminator? Type404 { get; set; } /// /// /// - public global::Phoenix.SummarizeResponse? Type405 { get; set; } + public global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? Type405 { get; set; } /// /// /// - public global::Phoenix.ToolCallProviderMetadata? Type406 { get; set; } + public global::Phoenix.SummarizeResponse? Type406 { get; set; } /// /// /// - public global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment? Type407 { get; set; } + public global::Phoenix.ToolCallProviderMetadata? Type407 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest? Type408 { get; set; } + public global::Phoenix.ToolCallProviderMetadataToolExecutionEnvironment? Type408 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction? Type409 { get; set; } + public global::Phoenix.UploadDatasetRequest? Type409 { get; set; } /// /// /// - public global::System.Collections.Generic.IList, object>>? Type410 { get; set; } + public global::Phoenix.UploadDatasetRequestAction? Type410 { get; set; } /// /// /// - public global::Phoenix.OneOf, object>? Type411 { get; set; } + public global::System.Collections.Generic.IList, object>>? Type411 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type412 { get; set; } + public global::Phoenix.OneOf, object>? Type412 { get; set; } /// /// /// - public global::Phoenix.OneOf? Type413 { get; set; } + public global::System.Collections.Generic.IList>? Type413 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest2? Type414 { get; set; } + public global::Phoenix.OneOf? Type414 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction2? Type415 { get; set; } + public global::Phoenix.UploadDatasetRequest2? Type415 { get; set; } /// /// /// - public byte[]? Type416 { get; set; } + public global::Phoenix.UploadDatasetRequestAction2? Type416 { get; set; } /// /// /// - public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type417 { get; set; } + public byte[]? Type417 { get; set; } /// /// /// - public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type418 { get; set; } + public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type418 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type419 { get; set; } + public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type419 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesSort? Type420 { get; set; } + public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type420 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesOrder? Type421 { get; set; } + public global::Phoenix.ListProjectTracesSort? Type421 { get; set; } /// /// /// - public global::Phoenix.ListProjectSessionsOrder? Type422 { get; set; } + public global::Phoenix.ListProjectTracesOrder? Type422 { get; set; } + /// + /// + /// + public global::Phoenix.ListProjectSessionsOrder? Type423 { 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 334b16c..43c2b3f 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.g.cs @@ -245,6 +245,43 @@ public bool TryPickGraphql( public global::Phoenix.GraphQLContext PickGraphql() => IsGraphql ? Graphql! : throw new global::System.InvalidOperationException($"Expected union variant 'Graphql' but the value was {ToString()}."); + + /// + /// User's per-turn request to expose web search / fetch tools. + /// +#if NET6_0_OR_GREATER + public global::Phoenix.WebAccessContext? WebAccess { get; init; } +#else + public global::Phoenix.WebAccessContext? WebAccess { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(WebAccess))] +#endif + public bool IsWebAccess => WebAccess != null; + + /// + /// + /// + public bool TryPickWebAccess( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.WebAccessContext? value) + { + value = WebAccess; + return IsWebAccess; + } + + /// + /// + /// + public global::Phoenix.WebAccessContext PickWebAccess() => IsWebAccess + ? WebAccess! + : throw new global::System.InvalidOperationException($"Expected union variant 'WebAccess' but the value was {ToString()}."); /// /// /// @@ -383,6 +420,29 @@ public ChatContext(global::Phoenix.GraphQLContext? value) /// public static ChatContext FromGraphql(global::Phoenix.GraphQLContext? value) => new ChatContext(value); + /// + /// + /// + public static implicit operator ChatContext(global::Phoenix.WebAccessContext value) => new ChatContext((global::Phoenix.WebAccessContext?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.WebAccessContext?(ChatContext @this) => @this.WebAccess; + + /// + /// + /// + public ChatContext(global::Phoenix.WebAccessContext? value) + { + WebAccess = value; + } + + /// + /// + /// + public static ChatContext FromWebAccess(global::Phoenix.WebAccessContext? value) => new ChatContext(value); + /// /// /// @@ -393,7 +453,8 @@ public ChatContext( global::Phoenix.TraceContext? trace, global::Phoenix.AgentSpanContext? span, global::Phoenix.PlaygroundContext? playground, - global::Phoenix.GraphQLContext? graphql + global::Phoenix.GraphQLContext? graphql, + global::Phoenix.WebAccessContext? webAccess ) { Type = type; @@ -404,12 +465,14 @@ public ChatContext( Span = span; Playground = playground; Graphql = graphql; + WebAccess = webAccess; } /// /// /// public object? Object => + WebAccess as object ?? Graphql as object ?? Playground as object ?? Span as object ?? @@ -427,7 +490,8 @@ App as object Trace?.ToString() ?? Span?.ToString() ?? Playground?.ToString() ?? - Graphql?.ToString() + Graphql?.ToString() ?? + WebAccess?.ToString() ; /// @@ -435,7 +499,7 @@ App as object /// public bool Validate() { - return IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsGraphql || !IsApp && IsProject && !IsTrace && !IsSpan && !IsPlayground && !IsGraphql || !IsApp && !IsProject && IsTrace && !IsSpan && !IsPlayground && !IsGraphql || !IsApp && !IsProject && !IsTrace && IsSpan && !IsPlayground && !IsGraphql || !IsApp && !IsProject && !IsTrace && !IsSpan && IsPlayground && !IsGraphql || !IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground && IsGraphql; + 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; } /// @@ -448,6 +512,7 @@ public bool Validate() global::System.Func? span = null, global::System.Func? playground = null, global::System.Func? graphql = null, + global::System.Func? webAccess = null, bool validate = true) { if (validate) @@ -479,6 +544,10 @@ public bool Validate() { return graphql(Graphql!); } + else if (IsWebAccess && webAccess != null) + { + return webAccess(WebAccess!); + } return default(TResult); } @@ -498,6 +567,8 @@ public void Match( global::System.Action? playground = null, global::System.Action? graphql = null, + + global::System.Action? webAccess = null, bool validate = true) { if (validate) @@ -529,6 +600,10 @@ public void Match( { graphql?.Invoke(Graphql!); } + else if (IsWebAccess) + { + webAccess?.Invoke(WebAccess!); + } } /// @@ -541,6 +616,7 @@ public void Switch( global::System.Action? span = null, global::System.Action? playground = null, global::System.Action? graphql = null, + global::System.Action? webAccess = null, bool validate = true) { if (validate) @@ -572,6 +648,10 @@ public void Switch( { graphql?.Invoke(Graphql!); } + else if (IsWebAccess) + { + webAccess?.Invoke(WebAccess!); + } } /// @@ -593,6 +673,8 @@ public override int GetHashCode() typeof(global::Phoenix.PlaygroundContext), Graphql, typeof(global::Phoenix.GraphQLContext), + WebAccess, + typeof(global::Phoenix.WebAccessContext), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -614,7 +696,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(Graphql, other.Graphql) + 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 39699a0..c3cb234 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminatorType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminatorType.g.cs @@ -32,6 +32,10 @@ public enum ChatContextDiscriminatorType /// /// Trace, + /// + /// + /// + WebAccess, } /// @@ -52,6 +56,7 @@ public static string ToValueString(this ChatContextDiscriminatorType value) ChatContextDiscriminatorType.Project => "project", ChatContextDiscriminatorType.Span => "span", ChatContextDiscriminatorType.Trace => "trace", + ChatContextDiscriminatorType.WebAccess => "web_access", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -68,6 +73,7 @@ public static string ToValueString(this ChatContextDiscriminatorType value) "project" => ChatContextDiscriminatorType.Project, "span" => ChatContextDiscriminatorType.Span, "trace" => ChatContextDiscriminatorType.Trace, + "web_access" => ChatContextDiscriminatorType.WebAccess, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.WebAccessContext.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.WebAccessContext.Json.g.cs new file mode 100644 index 0000000..4abf0fa --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.WebAccessContext.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class WebAccessContext + { + /// + /// 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.WebAccessContext? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.WebAccessContext), + jsonSerializerContext) as global::Phoenix.WebAccessContext; + } + + /// + /// 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.WebAccessContext? 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.WebAccessContext), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.WebAccessContext; + } + + /// + /// 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.WebAccessContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.WebAccessContext.g.cs new file mode 100644 index 0000000..b17e90d --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.WebAccessContext.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// User's per-turn request to expose web search / fetch tools. + /// + public sealed partial class WebAccessContext + { + /// + /// + /// + /// "web_access" + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = "web_access"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { 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 WebAccessContext( + bool enabled, + string type = "web_access") + { + this.Type = type; + this.Enabled = enabled; + } + + /// + /// Initializes a new instance of the class. + /// + public WebAccessContext() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static WebAccessContext FromEnabled(bool enabled) + { + return new WebAccessContext + { + Enabled = enabled, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/openapi.json b/src/libs/Phoenix/openapi.json index cdcc4fe..d29eef4 100644 --- a/src/libs/Phoenix/openapi.json +++ b/src/libs/Phoenix/openapi.json @@ -7306,6 +7306,9 @@ }, { "$ref": "#/components/schemas/GraphQLContext" + }, + { + "$ref": "#/components/schemas/WebAccessContext" } ], "title": "ChatContext", @@ -7318,7 +7321,8 @@ "playground": "#/components/schemas/PlaygroundContext", "project": "#/components/schemas/ProjectContext", "span": "#/components/schemas/AgentSpanContext", - "trace": "#/components/schemas/TraceContext" + "trace": "#/components/schemas/TraceContext", + "web_access": "#/components/schemas/WebAccessContext" } } }, @@ -15378,6 +15382,26 @@ ], "title": "ValidationError" }, + "WebAccessContext": { + "properties": { + "type": { + "type": "string", + "const": "web_access", + "title": "Type" + }, + "enabled": { + "type": "boolean", + "title": "Enabled" + } + }, + "type": "object", + "required": [ + "type", + "enabled" + ], + "title": "WebAccessContext", + "description": "User's per-turn request to expose web search / fetch tools." + }, "_SummarizeRequest": { "properties": { "ingestTraces": {