From 61e5f47dd0cf404f8ef2a169652bce9da4fb4178 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 12 May 2026 20:01:21 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...gentsAgentIdSessionsSessionIdChatPost.g.cs | 56 -- ...tsAgentIdSessionsSessionIdSummaryPost.g.cs | 76 +- ...gentsAgentIdSessionsSessionIdChatPost.g.cs | 24 - ...tsAgentIdSessionsSessionIdSummaryPost.g.cs | 38 +- ...nProviderModelSelectionOpenaiApiType.g.cs} | 14 +- ...rModelSelectionOpenaiApiTypeNullable.g.cs} | 14 +- ...essageModelDiscriminatorProviderType.g.cs} | 14 +- ...delDiscriminatorProviderTypeNullable.g.cs} | 14 +- ...essageModelDiscriminatorProviderType.g.cs} | 14 +- ...delDiscriminatorProviderTypeNullable.g.cs} | 14 +- .../Phoenix.JsonConverters.Model.g.cs | 72 ++ .../Phoenix.JsonConverters.Model2.g.cs | 72 ++ .../Phoenix.JsonConverters.Model3.g.cs | 72 ++ ...equestModelDiscriminatorProviderType.g.cs} | 14 +- ...delDiscriminatorProviderTypeNullable.g.cs} | 14 +- .../Phoenix.JsonSerializerContext.g.cs | 56 +- .../Phoenix.JsonSerializerContextTypes.g.cs | 734 +++++++++--------- ...s.BuiltInProviderModelSelection.Json.g.cs} | 22 +- ....Models.BuiltInProviderModelSelection.g.cs | 82 ++ ...nProviderModelSelectionOpenaiApiType.g.cs} | 16 +- ...ntIdSessionsSessionIdChatPostProvider.g.cs | 19 - ...IdSessionsSessionIdChatPostProviderId.g.cs | 19 - .../Phoenix.Models.ChatRegenerateMessage.g.cs | 11 + ...nerateMessageModelDiscriminator.Json.g.cs} | 22 +- ...atRegenerateMessageModelDiscriminator.g.cs | 45 ++ ...essageModelDiscriminatorProviderType.g.cs} | 16 +- .../Phoenix.Models.ChatSubmitMessage.g.cs | 11 + ...SubmitMessageModelDiscriminator.Json.g.cs} | 22 +- ...s.ChatSubmitMessageModelDiscriminator.g.cs | 45 ++ ...MessageModelDiscriminatorProviderType.g.cs | 51 ++ ...els.CustomProviderModelSelection.Json.g.cs | 92 +++ ...x.Models.CustomProviderModelSelection.g.cs | 65 ++ .../Generated/Phoenix.Models.Model.Json.g.cs | 92 +++ .../Generated/Phoenix.Models.Model.g.cs | 307 ++++++++ .../Generated/Phoenix.Models.Model2.Json.g.cs | 92 +++ .../Generated/Phoenix.Models.Model2.g.cs | 307 ++++++++ .../Generated/Phoenix.Models.Model3.Json.g.cs | 92 +++ .../Generated/Phoenix.Models.Model3.g.cs | 307 ++++++++ ...ionsSessionIdSummaryPostOpenaiApiType.g.cs | 51 -- ...dSessionsSessionIdSummaryPostProvider.g.cs | 19 - ...essionsSessionIdSummaryPostProviderId.g.cs | 19 - ...sionsSessionIdSummaryPostProviderType.g.cs | 51 -- .../Phoenix.Models.SummarizeRequest.g.cs | 11 + ...marizeRequestModelDiscriminator.Json.g.cs} | 22 +- ...ls.SummarizeRequestModelDiscriminator.g.cs | 45 ++ ...RequestModelDiscriminatorProviderType.g.cs | 51 ++ src/libs/Phoenix/openapi.json | 257 +++--- 47 files changed, 2579 insertions(+), 994 deletions(-) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs => Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiType.g.cs} (60%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullable.g.cs => Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiTypeNullable.g.cs} (62%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs => Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderType.g.cs} (60%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullable.g.cs => Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderTypeNullable.g.cs} (62%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs => Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderType.g.cs} (57%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullable.g.cs => Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderTypeNullable.g.cs} (59%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model2.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model3.g.cs rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs => Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderType.g.cs} (57%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullable.g.cs => Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderTypeNullable.g.cs} (61%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.Json.g.cs => Phoenix.Models.BuiltInProviderModelSelection.Json.g.cs} (81%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelection.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs => Phoenix.Models.BuiltInProviderModelSelectionOpenaiApiType.g.cs} (52%) delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.Json.g.cs => Phoenix.Models.ChatRegenerateMessageModelDiscriminator.Json.g.cs} (81%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminator.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs => Phoenix.Models.ChatRegenerateMessageModelDiscriminatorProviderType.g.cs} (53%) rename src/libs/Phoenix/Generated/{Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.Json.g.cs => Phoenix.Models.ChatSubmitMessageModelDiscriminator.Json.g.cs} (79%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminator.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminatorProviderType.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderModelSelection.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderModelSelection.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.Model.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.Model.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.Model2.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.Model2.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.Model3.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.Model3.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.Json.g.cs => Phoenix.Models.SummarizeRequestModelDiscriminator.Json.g.cs} (80%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminator.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminatorProviderType.g.cs diff --git a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs index f43260d..6978a60 100644 --- a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs @@ -29,22 +29,12 @@ partial void PrepareChatAgentsAgentIdSessionsSessionIdChatPostArguments( global::System.Net.Http.HttpClient httpClient, ref string agentId, ref string sessionId, - ref global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, - ref string modelName, - ref string? providerId, - global::Phoenix.ModelProvider? provider, - ref global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType, global::Phoenix.ChatRequest request); partial void PrepareChatAgentsAgentIdSessionsSessionIdChatPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string agentId, string sessionId, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, - string modelName, - string? providerId, - global::Phoenix.ModelProvider? provider, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType, global::Phoenix.ChatRequest request); partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponse( global::System.Net.Http.HttpClient httpClient, @@ -60,13 +50,6 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent( /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -74,26 +57,16 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent( public async global::System.Threading.Tasks.Task ChatAgentsAgentIdSessionsSessionIdChatPostAsync( string agentId, string sessionId, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, - string modelName, global::Phoenix.ChatRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync( agentId: agentId, sessionId: sessionId, - providerType: providerType, - modelName: modelName, request: request, - providerId: providerId, - provider: provider, - openaiApiType: openaiApiType, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -105,13 +78,6 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent( /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -119,13 +85,8 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent( public async global::System.Threading.Tasks.Task> ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync( string agentId, string sessionId, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, - string modelName, global::Phoenix.ChatRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -135,11 +96,6 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent( httpClient: HttpClient, agentId: ref agentId, sessionId: ref sessionId, - providerType: ref providerType, - modelName: ref modelName, - providerId: ref providerId, - provider: provider, - openaiApiType: ref openaiApiType, request: request); @@ -168,13 +124,6 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent( var __pathBuilder = new global::Phoenix.PathBuilder( path: $"/agents/{agentId}/sessions/{sessionId}/chat", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddRequiredParameter("provider_type", providerType.ToValueString()) - .AddRequiredParameter("model_name", modelName) - .AddOptionalParameter("provider_id", providerId) - .AddOptionalParameter("provider", provider?.ToString()) - .AddOptionalParameter("openai_api_type", openaiApiType?.ToValueString()) - ; var __path = __pathBuilder.ToString(); __path = global::Phoenix.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -223,11 +172,6 @@ partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent( httpRequestMessage: __httpRequest, agentId: agentId!, sessionId: sessionId!, - providerType: providerType!, - modelName: modelName!, - providerId: providerId, - provider: provider, - openaiApiType: openaiApiType, request: request); return __httpRequest; diff --git a/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs index eeea6bd..dbfccb0 100644 --- a/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs @@ -29,22 +29,12 @@ partial void PrepareSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAr global::System.Net.Http.HttpClient httpClient, ref string agentId, ref string sessionId, - ref global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, - ref string modelName, - ref string? providerId, - global::Phoenix.ModelProvider? provider, - ref global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType, global::Phoenix.SummarizeRequest request); partial void PrepareSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string agentId, string sessionId, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, - string modelName, - string? providerId, - global::Phoenix.ModelProvider? provider, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType, global::Phoenix.SummarizeRequest request); partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostResponse( global::System.Net.Http.HttpClient httpClient, @@ -60,13 +50,6 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -74,26 +57,16 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe public async global::System.Threading.Tasks.Task SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( string agentId, string sessionId, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, - string modelName, global::Phoenix.SummarizeRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsResponseAsync( agentId: agentId, sessionId: sessionId, - providerType: providerType, - modelName: modelName, request: request, - providerId: providerId, - provider: provider, - openaiApiType: openaiApiType, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -105,13 +78,6 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -119,13 +85,8 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe public async global::System.Threading.Tasks.Task> SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsResponseAsync( string agentId, string sessionId, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, - string modelName, global::Phoenix.SummarizeRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -137,11 +98,6 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe httpClient: HttpClient, agentId: ref agentId, sessionId: ref sessionId, - providerType: ref providerType, - modelName: ref modelName, - providerId: ref providerId, - provider: provider, - openaiApiType: ref openaiApiType, request: request); @@ -170,13 +126,6 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe var __pathBuilder = new global::Phoenix.PathBuilder( path: $"/agents/{agentId}/sessions/{sessionId}/summary", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddRequiredParameter("provider_type", providerType.ToValueString()) - .AddRequiredParameter("model_name", modelName) - .AddOptionalParameter("provider_id", providerId) - .AddOptionalParameter("provider", provider?.ToString()) - .AddOptionalParameter("openai_api_type", openaiApiType?.ToValueString()) - ; var __path = __pathBuilder.ToString(); __path = global::Phoenix.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -225,11 +174,6 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe httpRequestMessage: __httpRequest, agentId: agentId!, sessionId: sessionId!, - providerType: providerType!, - modelName: modelName!, - providerId: providerId, - provider: provider, - openaiApiType: openaiApiType, request: request); return __httpRequest; @@ -552,13 +496,6 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Default Value: false /// @@ -566,18 +503,15 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe /// Default Value: false /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( string agentId, string sessionId, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, - string modelName, global::System.Collections.Generic.IList messages, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + global::Phoenix.Model3 model, bool? ingestTraces = default, bool? exportRemoteTraces = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, @@ -588,16 +522,12 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe IngestTraces = ingestTraces, ExportRemoteTraces = exportRemoteTraces, Messages = messages, + Model = model, }; return await SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( agentId: agentId, sessionId: sessionId, - providerType: providerType, - modelName: modelName, - providerId: providerId, - provider: provider, - openaiApiType: openaiApiType, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs index 2d95ab1..ec32e9a 100644 --- a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs @@ -9,13 +9,6 @@ public partial interface IChatClient /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -23,13 +16,8 @@ public partial interface IChatClient global::System.Threading.Tasks.Task ChatAgentsAgentIdSessionsSessionIdChatPostAsync( string agentId, string sessionId, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, - string modelName, global::Phoenix.ChatRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -37,13 +25,6 @@ public partial interface IChatClient /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -51,13 +32,8 @@ public partial interface IChatClient global::System.Threading.Tasks.Task> ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync( string agentId, string sessionId, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, - string modelName, global::Phoenix.ChatRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs index 619d845..d39f1b4 100644 --- a/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs @@ -9,13 +9,6 @@ public partial interface IChatClient /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -23,13 +16,8 @@ public partial interface IChatClient global::System.Threading.Tasks.Task SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( string agentId, string sessionId, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, - string modelName, global::Phoenix.SummarizeRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -37,13 +25,6 @@ public partial interface IChatClient /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -51,13 +32,8 @@ public partial interface IChatClient global::System.Threading.Tasks.Task> SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsResponseAsync( string agentId, string sessionId, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, - string modelName, global::Phoenix.SummarizeRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -65,13 +41,6 @@ public partial interface IChatClient /// /// /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// /// /// Default Value: false /// @@ -79,18 +48,15 @@ public partial interface IChatClient /// Default Value: false /// /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( string agentId, string sessionId, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, - string modelName, global::System.Collections.Generic.IList messages, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + global::Phoenix.Model3 model, bool? ingestTraces = default, bool? exportRemoteTraces = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiType.g.cs similarity index 60% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiType.g.cs index 703775d..5d08414 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiType.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class BuiltInProviderModelSelectionOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType Read( + public override global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeJsonCo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.BuiltInProviderModelSelectionOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeJsonCo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType)numValue; + return (global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType); + return default(global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeJsonCo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType value, + global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.BuiltInProviderModelSelectionOpenaiApiTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiTypeNullable.g.cs similarity index 62% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiTypeNullable.g.cs index 0a512b8..ea7d168 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class BuiltInProviderModelSelectionOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType? Read( + public override global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullab var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions.ToEnum(stringValue); + return global::Phoenix.BuiltInProviderModelSelectionOpenaiApiTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullab case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType)numValue; + return (global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType?); + return default(global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullab /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType? value, + global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.BuiltInProviderModelSelectionOpenaiApiTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderType.g.cs similarity index 60% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderType.g.cs index ba87e47..71da6c3 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderType.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatRegenerateMessageModelDiscriminatorProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType Read( + public override global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeJsonC var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeJsonC case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType)numValue; + return (global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType); + return default(global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeJsonC /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType value, + global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderTypeNullable.g.cs similarity index 62% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderTypeNullable.g.cs index 5c27ea7..cae83e9 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatRegenerateMessageModelDiscriminatorProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? Read( + public override global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNulla var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToEnum(stringValue); + return global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNulla case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType)numValue; + return (global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType?); + return default(global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNulla /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? value, + global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderType.g.cs similarity index 57% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderType.g.cs index 4380aab..1f3d6ba 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderType.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatSubmitMessageModelDiscriminatorProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType Read( + public override global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostPr var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostPr case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType)numValue; + return (global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType); + return default(global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostPr /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType value, + global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderTypeNullable.g.cs similarity index 59% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderTypeNullable.g.cs index 4273768..722bbf6 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatSubmitMessageModelDiscriminatorProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? Read( + public override global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOp var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions.ToEnum(stringValue); + return global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOp case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType)numValue; + return (global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType?); + return default(global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOp /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? value, + global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model.g.cs new file mode 100644 index 0000000..50baba9 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Phoenix.JsonConverters +{ + /// + public class ModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.Model Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ChatRegenerateMessageModelDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ChatRegenerateMessageModelDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Phoenix.CustomProviderModelSelection? custom = default; + if (discriminator?.ProviderType == global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType.Custom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.CustomProviderModelSelection)}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Phoenix.BuiltInProviderModelSelection? builtin = default; + if (discriminator?.ProviderType == global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType.Builtin) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.BuiltInProviderModelSelection)}"); + builtin = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Phoenix.Model( + discriminator?.ProviderType, + custom, + + builtin + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.Model value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.CustomProviderModelSelection).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + } + else if (value.IsBuiltin) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.BuiltInProviderModelSelection).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Builtin!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model2.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model2.g.cs new file mode 100644 index 0000000..0f6708e --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model2.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Phoenix.JsonConverters +{ + /// + public class Model2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.Model2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ChatSubmitMessageModelDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ChatSubmitMessageModelDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Phoenix.CustomProviderModelSelection? custom = default; + if (discriminator?.ProviderType == global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType.Custom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.CustomProviderModelSelection)}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Phoenix.BuiltInProviderModelSelection? builtin = default; + if (discriminator?.ProviderType == global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType.Builtin) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.BuiltInProviderModelSelection)}"); + builtin = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Phoenix.Model2( + discriminator?.ProviderType, + custom, + + builtin + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.Model2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.CustomProviderModelSelection).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + } + else if (value.IsBuiltin) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.BuiltInProviderModelSelection).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Builtin!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model3.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model3.g.cs new file mode 100644 index 0000000..fcb5818 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.Model3.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Phoenix.JsonConverters +{ + /// + public class Model3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.Model3 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.SummarizeRequestModelDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.SummarizeRequestModelDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Phoenix.CustomProviderModelSelection? custom = default; + if (discriminator?.ProviderType == global::Phoenix.SummarizeRequestModelDiscriminatorProviderType.Custom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.CustomProviderModelSelection)}"); + custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Phoenix.BuiltInProviderModelSelection? builtin = default; + if (discriminator?.ProviderType == global::Phoenix.SummarizeRequestModelDiscriminatorProviderType.Builtin) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.BuiltInProviderModelSelection)}"); + builtin = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Phoenix.Model3( + discriminator?.ProviderType, + custom, + + builtin + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.Model3 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsCustom) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.CustomProviderModelSelection).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); + } + else if (value.IsBuiltin) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderModelSelection), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.BuiltInProviderModelSelection).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Builtin!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderType.g.cs similarity index 57% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderType.g.cs index 0541dbc..12bba13 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderType.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SummarizeRequestModelDiscriminatorProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType Read( + public override global::Phoenix.SummarizeRequestModelDiscriminatorProviderType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOp var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.SummarizeRequestModelDiscriminatorProviderTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOp case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType)numValue; + return (global::Phoenix.SummarizeRequestModelDiscriminatorProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType); + return default(global::Phoenix.SummarizeRequestModelDiscriminatorProviderType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOp /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType value, + global::Phoenix.SummarizeRequestModelDiscriminatorProviderType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.SummarizeRequestModelDiscriminatorProviderTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderTypeNullable.g.cs similarity index 61% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderTypeNullable.g.cs index 4f943d8..aa99a53 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SummarizeRequestModelDiscriminatorProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? Read( + public override global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostPr var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions.ToEnum(stringValue); + return global::Phoenix.SummarizeRequestModelDiscriminatorProviderTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostPr case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType)numValue; + return (global::Phoenix.SummarizeRequestModelDiscriminatorProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType?); + return default(global::Phoenix.SummarizeRequestModelDiscriminatorProviderType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostPr /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? value, + global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.SummarizeRequestModelDiscriminatorProviderTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs index f3d40dd..2976096 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs @@ -17,14 +17,26 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.AssistantMetadataUIMessageRoleNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatContextDiscriminatorTypeJsonConverter), typeof(global::Phoenix.JsonConverters.ChatContextDiscriminatorTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatRequestDiscriminatorTriggerJsonConverter), typeof(global::Phoenix.JsonConverters.ChatRequestDiscriminatorTriggerNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.CreateAnnotationConfigDataDiscriminatorTypeJsonConverter), typeof(global::Phoenix.JsonConverters.CreateAnnotationConfigDataDiscriminatorTypeNullableJsonConverter), @@ -277,6 +289,10 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.UpsertExperimentEvaluationRequestBodyAnnotatorKindNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.UploadDatasetRequestActionJsonConverter), typeof(global::Phoenix.JsonConverters.UploadDatasetRequestActionNullableJsonConverter), @@ -309,26 +325,14 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.ListProjectSessionsOrderNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullableJsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullableJsonConverter), - - typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullableJsonConverter), - - typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatContextJsonConverter), + typeof(global::Phoenix.JsonConverters.ModelJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatRequestJsonConverter), + typeof(global::Phoenix.JsonConverters.Model2JsonConverter), + typeof(global::Phoenix.JsonConverters.CreateAnnotationConfigDataJsonConverter), typeof(global::Phoenix.JsonConverters.DataJsonConverter), @@ -369,6 +373,8 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.Data6JsonConverter), + typeof(global::Phoenix.JsonConverters.Model3JsonConverter), + typeof(global::Phoenix.JsonConverters.AnyOfJsonConverter), typeof(global::Phoenix.JsonConverters.AnyOfJsonConverter), @@ -492,6 +498,9 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.FileUIPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DataUIPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.StepStartUIPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.BuiltInProviderModelSelection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ModelProvider), TypeInfoPropertyName = "ModelProvider2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType), TypeInfoPropertyName = "BuiltInProviderModelSelectionOpenaiApiType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CategoricalAnnotationConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OptimizationDirection), TypeInfoPropertyName = "OptimizationDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -506,10 +515,17 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatRegenerateMessage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.Model), TypeInfoPropertyName = "Model2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CustomProviderModelSelection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatRegenerateMessageModelDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType), TypeInfoPropertyName = "ChatRegenerateMessageModelDiscriminatorProviderType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatRequest), TypeInfoPropertyName = "ChatRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatSubmitMessage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatRequestDiscriminatorTrigger), TypeInfoPropertyName = "ChatRequestDiscriminatorTrigger2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.Model2), TypeInfoPropertyName = "Model22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatSubmitMessageModelDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType), TypeInfoPropertyName = "ChatSubmitMessageModelDiscriminatorProviderType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ContinuousAnnotationConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ContinuousAnnotationConfigData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CreateAnnotationConfigData), TypeInfoPropertyName = "CreateAnnotationConfigData2")] @@ -643,7 +659,6 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.LocalUserRole), TypeInfoPropertyName = "LocalUserRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.LocalUserDataRole), TypeInfoPropertyName = "LocalUserDataRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ModelProvider), TypeInfoPropertyName = "ModelProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OAuth2UserRole), TypeInfoPropertyName = "OAuth2UserRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OAuth2UserDataRole), TypeInfoPropertyName = "OAuth2UserDataRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OtlpAnyValue))] @@ -823,6 +838,9 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AnyOf), TypeInfoPropertyName = "AnyOfStringInt322")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.Model3), TypeInfoPropertyName = "Model32")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeRequestModelDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeRequestModelDiscriminatorProviderType), TypeInfoPropertyName = "SummarizeRequestModelDiscriminatorProviderType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UploadDatasetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UploadDatasetRequestAction), TypeInfoPropertyName = "UploadDatasetRequestAction2_3")] @@ -839,10 +857,6 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ListProjectTracesSort), TypeInfoPropertyName = "ListProjectTracesSort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ListProjectTracesOrder), TypeInfoPropertyName = "ListProjectTracesOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ListProjectSessionsOrder), TypeInfoPropertyName = "ListProjectSessionsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType), TypeInfoPropertyName = "ChatAgentsAgentIdSessionsSessionIdChatPostProviderType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType), TypeInfoPropertyName = "ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType), TypeInfoPropertyName = "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType), TypeInfoPropertyName = "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AnyOf?), TypeInfoPropertyName = "StepStartUIPart_4f65f1009b57fac6")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs index a732b42..1725c47 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs @@ -276,1407 +276,1439 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Phoenix.CategoricalAnnotationConfig? Type62 { get; set; } + public global::Phoenix.BuiltInProviderModelSelection? Type62 { get; set; } /// /// /// - public global::Phoenix.OptimizationDirection? Type63 { get; set; } + public global::Phoenix.ModelProvider? Type63 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type64 { get; set; } + public global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType? Type64 { get; set; } /// /// /// - public global::Phoenix.CategoricalAnnotationValue? Type65 { get; set; } + public global::Phoenix.CategoricalAnnotationConfig? Type65 { get; set; } /// /// /// - public global::Phoenix.CategoricalAnnotationConfigData? Type66 { get; set; } + public global::Phoenix.OptimizationDirection? Type66 { get; set; } /// /// /// - public global::Phoenix.ChatContext? Type67 { get; set; } + public global::System.Collections.Generic.IList? Type67 { get; set; } /// /// /// - public global::Phoenix.ProjectContext? Type68 { get; set; } + public global::Phoenix.CategoricalAnnotationValue? Type68 { get; set; } /// /// /// - public global::Phoenix.TraceContext? Type69 { get; set; } + public global::Phoenix.CategoricalAnnotationConfigData? Type69 { get; set; } /// /// /// - public global::Phoenix.PlaygroundContext? Type70 { get; set; } + public global::Phoenix.ChatContext? Type70 { get; set; } /// /// /// - public global::Phoenix.ChatContextDiscriminator? Type71 { get; set; } + public global::Phoenix.ProjectContext? Type71 { get; set; } /// /// /// - public global::Phoenix.ChatContextDiscriminatorType? Type72 { get; set; } + public global::Phoenix.TraceContext? Type72 { get; set; } /// /// /// - public global::Phoenix.ChatRegenerateMessage? Type73 { get; set; } + public global::Phoenix.PlaygroundContext? Type73 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type74 { get; set; } + public global::Phoenix.ChatContextDiscriminator? Type74 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type75 { get; set; } + public global::Phoenix.ChatContextDiscriminatorType? Type75 { get; set; } /// /// /// - public global::Phoenix.ChatRequest? Type76 { get; set; } + public global::Phoenix.ChatRegenerateMessage? Type76 { get; set; } /// /// /// - public global::Phoenix.ChatSubmitMessage? Type77 { get; set; } + public global::System.Collections.Generic.IList? Type77 { get; set; } /// /// /// - public global::Phoenix.ChatRequestDiscriminator? Type78 { get; set; } + public global::System.Collections.Generic.IList? Type78 { get; set; } /// /// /// - public global::Phoenix.ChatRequestDiscriminatorTrigger? Type79 { get; set; } + public global::Phoenix.Model? Type79 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfig? Type80 { get; set; } + public global::Phoenix.CustomProviderModelSelection? Type80 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfigData? Type81 { get; set; } + public global::Phoenix.ChatRegenerateMessageModelDiscriminator? Type81 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigData? Type82 { get; set; } + public global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? Type82 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfigData? Type83 { get; set; } + public global::Phoenix.ChatRequest? Type83 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type84 { get; set; } + public global::Phoenix.ChatSubmitMessage? Type84 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type85 { get; set; } + public global::Phoenix.ChatRequestDiscriminator? Type85 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBody? Type86 { get; set; } + public global::Phoenix.ChatRequestDiscriminatorTrigger? Type86 { get; set; } /// /// /// - public global::Phoenix.Data? Type87 { get; set; } + public global::Phoenix.Model2? Type87 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfig? Type88 { get; set; } + public global::Phoenix.ChatSubmitMessageModelDiscriminator? Type88 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type89 { get; set; } + public global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? Type89 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type90 { get; set; } + public global::Phoenix.ContinuousAnnotationConfig? Type90 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRequestBody? Type91 { get; set; } + public global::Phoenix.ContinuousAnnotationConfigData? Type91 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type92 { get; set; } + public global::Phoenix.CreateAnnotationConfigData? Type92 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentResponseBody? Type93 { get; set; } + public global::Phoenix.FreeformAnnotationConfigData? Type93 { get; set; } /// /// /// - public global::Phoenix.Experiment? Type94 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type94 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunRequestBody? Type95 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type95 { get; set; } /// /// /// - public global::System.DateTime? Type96 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBody? Type96 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBody? Type97 { get; set; } + public global::Phoenix.Data? Type97 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBodyData? Type98 { get; set; } + public global::Phoenix.FreeformAnnotationConfig? Type98 { get; set; } /// /// /// - public global::Phoenix.CreateProjectRequestBody? Type99 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type99 { get; set; } /// /// /// - public global::Phoenix.CreateProjectResponseBody? Type100 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type100 { get; set; } /// /// /// - public global::Phoenix.Project? Type101 { get; set; } + public global::Phoenix.CreateExperimentRequestBody? Type101 { get; set; } /// /// /// - public global::Phoenix.CreatePromptRequestBody? Type102 { get; set; } + public global::System.Collections.Generic.IList? Type102 { get; set; } /// /// /// - public global::Phoenix.PromptData? Type103 { get; set; } + public global::Phoenix.CreateExperimentResponseBody? Type103 { get; set; } /// /// /// - public global::Phoenix.PromptVersionData? Type104 { get; set; } + public global::Phoenix.Experiment? Type104 { get; set; } /// /// /// - public global::Phoenix.CreatePromptResponseBody? Type105 { get; set; } + public global::Phoenix.CreateExperimentRunRequestBody? Type105 { get; set; } /// /// /// - public global::Phoenix.PromptVersion? Type106 { get; set; } + public global::System.DateTime? Type106 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteRequestBody? Type107 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBody? Type107 { get; set; } /// /// /// - public global::Phoenix.SessionNoteData? Type108 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBodyData? Type108 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteResponseBody? Type109 { get; set; } + public global::Phoenix.CreateProjectRequestBody? Type109 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteRequestBody? Type110 { get; set; } + public global::Phoenix.CreateProjectResponseBody? Type110 { get; set; } /// /// /// - public global::Phoenix.SpanNoteData? Type111 { get; set; } + public global::Phoenix.Project? Type111 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteResponseBody? Type112 { get; set; } + public global::Phoenix.CreatePromptRequestBody? Type112 { get; set; } /// /// /// - public global::Phoenix.CreateSpansRequestBody? Type113 { get; set; } + public global::Phoenix.PromptData? Type113 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type114 { get; set; } + public global::Phoenix.PromptVersionData? Type114 { get; set; } /// /// /// - public global::Phoenix.Span? Type115 { get; set; } + public global::Phoenix.CreatePromptResponseBody? Type115 { get; set; } /// /// /// - public global::Phoenix.CreateSpansResponseBody? Type116 { get; set; } + public global::Phoenix.PromptVersion? Type116 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteRequestBody? Type117 { get; set; } + public global::Phoenix.CreateSessionNoteRequestBody? Type117 { get; set; } /// /// /// - public global::Phoenix.TraceNoteData? Type118 { get; set; } + public global::Phoenix.SessionNoteData? Type118 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteResponseBody? Type119 { get; set; } + public global::Phoenix.CreateSessionNoteResponseBody? Type119 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBody? Type120 { get; set; } + public global::Phoenix.CreateSpanNoteRequestBody? Type120 { get; set; } /// /// /// - public global::Phoenix.User? Type121 { get; set; } + public global::Phoenix.SpanNoteData? Type121 { get; set; } /// /// /// - public global::Phoenix.LocalUserData? Type122 { get; set; } + public global::Phoenix.CreateSpanNoteResponseBody? Type122 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserData? Type123 { get; set; } + public global::Phoenix.CreateSpansRequestBody? Type123 { get; set; } /// /// /// - public global::Phoenix.LDAPUserData? Type124 { get; set; } + public global::System.Collections.Generic.IList? Type124 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type125 { get; set; } + public global::Phoenix.Span? Type125 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type126 { get; set; } + public global::Phoenix.CreateSpansResponseBody? Type126 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBody? Type127 { get; set; } + public global::Phoenix.CreateTraceNoteRequestBody? Type127 { get; set; } /// /// /// - public global::Phoenix.Data2? Type128 { get; set; } + public global::Phoenix.TraceNoteData? Type128 { get; set; } /// /// /// - public global::Phoenix.LocalUser? Type129 { get; set; } + public global::Phoenix.CreateTraceNoteResponseBody? Type129 { get; set; } /// /// /// - public global::Phoenix.OAuth2User? Type130 { get; set; } + public global::Phoenix.CreateUserRequestBody? Type130 { get; set; } /// /// /// - public global::Phoenix.LDAPUser? Type131 { get; set; } + public global::Phoenix.User? Type131 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type132 { get; set; } + public global::Phoenix.LocalUserData? Type132 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type133 { get; set; } + public global::Phoenix.OAuth2UserData? Type133 { get; set; } /// /// /// - public global::Phoenix.Dataset? Type134 { get; set; } + public global::Phoenix.LDAPUserData? Type134 { get; set; } /// /// /// - public global::Phoenix.DatasetExample? Type135 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type135 { get; set; } /// /// /// - public global::Phoenix.DatasetVersion? Type136 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type136 { get; set; } /// /// /// - public global::Phoenix.DatasetWithExampleCount? Type137 { get; set; } + public global::Phoenix.CreateUserResponseBody? Type137 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBody? Type138 { get; set; } + public global::Phoenix.Data2? Type138 { get; set; } /// /// /// - public global::Phoenix.Data3? Type139 { get; set; } + public global::Phoenix.LocalUser? Type139 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type140 { get; set; } + public global::Phoenix.OAuth2User? Type140 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type141 { get; set; } + public global::Phoenix.LDAPUser? Type141 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionsRequestBody? Type142 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type143 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type143 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type144 { get; set; } + public global::Phoenix.Dataset? Type144 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalRequested? Type145 { get; set; } + public global::Phoenix.DatasetExample? Type145 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalResponded? Type146 { get; set; } + public global::Phoenix.DatasetVersion? Type146 { get; set; } /// /// /// - public global::Phoenix.ExperimentEvaluationResult? Type147 { get; set; } + public global::Phoenix.DatasetWithExampleCount? Type147 { get; set; } /// /// /// - public global::Phoenix.ExperimentRun? Type148 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBody? Type148 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBody? Type149 { get; set; } + public global::Phoenix.Data3? Type149 { get; set; } /// /// /// - public global::Phoenix.Data4? Type150 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type150 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type151 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type151 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type152 { get; set; } + public global::Phoenix.DeleteSessionsRequestBody? Type152 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBody? Type153 { get; set; } + public global::System.Collections.Generic.Dictionary? Type153 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type154 { get; set; } + public global::Phoenix.AnyOf? Type154 { get; set; } /// /// /// - public global::Phoenix.DataItem? Type155 { get; set; } + public global::Phoenix.ToolApprovalRequested? Type155 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type156 { get; set; } + public global::Phoenix.ToolApprovalResponded? Type156 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type157 { get; set; } + public global::Phoenix.ExperimentEvaluationResult? Type157 { get; set; } /// /// /// - public global::Phoenix.GetDatasetResponseBody? Type158 { get; set; } + public global::Phoenix.ExperimentRun? Type158 { get; set; } /// /// /// - public global::Phoenix.GetExperimentResponseBody? Type159 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBody? Type159 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type160 { get; set; } + public global::Phoenix.Data4? Type160 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type161 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type161 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentEvaluation? Type162 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type162 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type163 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBody? Type163 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::System.Collections.Generic.IList? Type164 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentRun? Type165 { get; set; } + public global::Phoenix.DataItem? Type165 { get; set; } /// /// /// - public global::Phoenix.GetProjectResponseBody? Type166 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type166 { get; set; } /// /// /// - public global::Phoenix.GetProjectsResponseBody? Type167 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::Phoenix.GetDatasetResponseBody? Type168 { get; set; } /// /// /// - public global::Phoenix.GetPromptResponseBody? Type169 { get; set; } + public global::Phoenix.GetExperimentResponseBody? Type169 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionTagsResponseBody? Type170 { get; set; } + public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type171 { get; set; } + public global::System.Collections.Generic.IList? Type171 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTag? Type172 { get; set; } + public global::Phoenix.IncompleteExperimentEvaluation? Type172 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionsResponseBody? Type173 { get; set; } + public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::System.Collections.Generic.IList? Type174 { get; set; } /// /// /// - public global::Phoenix.GetPromptsResponseBody? Type175 { get; set; } + public global::Phoenix.IncompleteExperimentRun? Type175 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type176 { get; set; } + public global::Phoenix.GetProjectResponseBody? Type176 { get; set; } /// /// /// - public global::Phoenix.Prompt? Type177 { get; set; } + public global::Phoenix.GetProjectsResponseBody? Type177 { get; set; } /// /// /// - public global::Phoenix.GetSessionResponseBody? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::Phoenix.SessionData? Type179 { get; set; } + public global::Phoenix.GetPromptResponseBody? Type179 { get; set; } /// /// /// - public global::Phoenix.GetSessionsResponseBody? Type180 { get; set; } + public global::Phoenix.GetPromptVersionTagsResponseBody? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::System.Collections.Generic.IList? Type181 { get; set; } /// /// /// - public global::Phoenix.GetTracesResponseBody? Type182 { get; set; } + public global::Phoenix.PromptVersionTag? Type182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type183 { get; set; } + public global::Phoenix.GetPromptVersionsResponseBody? Type183 { get; set; } /// /// /// - public global::Phoenix.TraceData? Type184 { get; set; } + public global::System.Collections.Generic.IList? Type184 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBody? Type185 { get; set; } + public global::Phoenix.GetPromptsResponseBody? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } /// /// /// - public global::Phoenix.DataItem2? Type187 { get; set; } + public global::Phoenix.Prompt? Type187 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type188 { get; set; } + public global::Phoenix.GetSessionResponseBody? Type188 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type189 { get; set; } + public global::Phoenix.SessionData? Type189 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBody? Type190 { get; set; } + public global::Phoenix.GetSessionsResponseBody? Type190 { get; set; } /// /// /// - public global::Phoenix.Data5? Type191 { get; set; } + public global::System.Collections.Generic.IList? Type191 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type192 { get; set; } + public global::Phoenix.GetTracesResponseBody? Type192 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::Phoenix.HTTPValidationError? Type194 { get; set; } + public global::Phoenix.TraceData? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::Phoenix.GetUsersResponseBody? Type195 { get; set; } /// /// /// - public global::Phoenix.ValidationError? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::Phoenix.DataItem2? Type197 { get; set; } /// /// /// - public global::Phoenix.LDAPUserRole? Type198 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type198 { get; set; } /// /// /// - public global::Phoenix.LDAPUserDataRole? Type199 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type199 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesData? Type200 { get; set; } + public global::Phoenix.GetViewerResponseBody? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::Phoenix.Data5? Type201 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesResponseBody? Type202 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type202 { get; set; } /// /// /// - public global::Phoenix.ListDatasetVersionsResponseBody? Type203 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type203 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type204 { get; set; } + public global::Phoenix.HTTPValidationError? Type204 { get; set; } /// /// /// - public global::Phoenix.ListDatasetsResponseBody? Type205 { get; set; } + public global::System.Collections.Generic.IList? Type205 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type206 { get; set; } + public global::Phoenix.ValidationError? Type206 { get; set; } /// /// /// - public global::Phoenix.ListExperimentRunsResponseBody? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type208 { get; set; } + public global::Phoenix.LDAPUserRole? Type208 { get; set; } /// /// /// - public global::Phoenix.ListExperimentsResponseBody? Type209 { get; set; } + public global::Phoenix.LDAPUserDataRole? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::Phoenix.ListDatasetExamplesData? Type210 { get; set; } /// /// /// - public global::Phoenix.LocalUserRole? Type211 { get; set; } + public global::System.Collections.Generic.IList? Type211 { get; set; } /// /// /// - public global::Phoenix.LocalUserDataRole? Type212 { get; set; } + public global::Phoenix.ListDatasetExamplesResponseBody? Type212 { get; set; } /// /// /// - public global::Phoenix.ModelProvider? Type213 { get; set; } + public global::Phoenix.ListDatasetVersionsResponseBody? Type213 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserRole? Type214 { get; set; } + public global::System.Collections.Generic.IList? Type214 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserDataRole? Type215 { get; set; } + public global::Phoenix.ListDatasetsResponseBody? Type215 { get; set; } /// /// /// - public global::Phoenix.OtlpAnyValue? Type216 { get; set; } + public global::System.Collections.Generic.IList? Type216 { get; set; } /// /// /// - public global::Phoenix.OtlpArrayValue? Type217 { get; set; } + public global::Phoenix.ListExperimentRunsResponseBody? Type217 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::Phoenix.OtlpDoubleValue? Type219 { get; set; } + public global::Phoenix.ListExperimentsResponseBody? Type219 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type221 { get; set; } + public global::Phoenix.LocalUserRole? Type221 { get; set; } /// /// /// - public global::Phoenix.OtlpEvent? Type222 { get; set; } + public global::Phoenix.LocalUserDataRole? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::Phoenix.OAuth2UserRole? Type223 { get; set; } /// /// /// - public global::Phoenix.OtlpKeyValue? Type224 { get; set; } + public global::Phoenix.OAuth2UserDataRole? Type224 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type225 { get; set; } + public global::Phoenix.OtlpAnyValue? Type225 { get; set; } /// /// /// - public long? Type226 { get; set; } + public global::Phoenix.OtlpArrayValue? Type226 { get; set; } /// /// /// - public global::Phoenix.OtlpKind? Type227 { get; set; } + public global::Phoenix.AnyOf? Type227 { get; set; } /// /// /// - public global::Phoenix.OtlpSpan? Type228 { get; set; } + public global::Phoenix.OtlpDoubleValue? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::Phoenix.AnyOf? Type229 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type230 { get; set; } + public global::System.Collections.Generic.IList? Type230 { get; set; } /// /// /// - public global::Phoenix.OtlpStatus? Type231 { get; set; } + public global::Phoenix.OtlpEvent? Type231 { get; set; } /// /// /// - public global::Phoenix.OtlpSpansResponseBody? Type232 { get; set; } + public global::System.Collections.Generic.IList? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::Phoenix.OtlpKeyValue? Type233 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParameters? Type234 { get; set; } + public global::Phoenix.AnyOf? Type234 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContent? Type235 { get; set; } + public long? Type235 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfig? Type236 { get; set; } + public global::Phoenix.OtlpKind? Type236 { get; set; } /// /// /// - public global::Phoenix.Thinking? Type237 { get; set; } + public global::Phoenix.OtlpSpan? Type237 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type238 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type239 { get; set; } + public global::Phoenix.AnyOf? Type239 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type240 { get; set; } + public global::Phoenix.OtlpStatus? Type240 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type241 { get; set; } + public global::Phoenix.OtlpSpansResponseBody? Type241 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfigEffort? Type243 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParameters? Type243 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type244 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContent? Type244 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type245 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfig? Type245 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParameters? Type246 { get; set; } + public global::Phoenix.Thinking? Type246 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParametersContent? Type247 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type247 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type248 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type248 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type249 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type249 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type250 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type250 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParameters? Type251 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type251 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContent? Type252 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfigEffort? Type252 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type253 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type253 { get; set; } /// /// /// - public global::Phoenix.PromptChatTemplate? Type254 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type254 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type255 { get; set; } + public global::Phoenix.PromptAwsInvocationParameters? Type255 { get; set; } /// /// /// - public global::Phoenix.PromptMessage? Type256 { get; set; } + public global::Phoenix.PromptAwsInvocationParametersContent? Type256 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParameters? Type257 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type257 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type258 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type258 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type259 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type259 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParameters? Type260 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParameters? Type260 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContent? Type261 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContent? Type261 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type262 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type262 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParameters? Type263 { get; set; } + public global::Phoenix.PromptChatTemplate? Type263 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParametersContent? Type264 { get; set; } + public global::System.Collections.Generic.IList? Type264 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfig? Type265 { get; set; } + public global::Phoenix.PromptMessage? Type265 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type266 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParameters? Type266 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParameters? Type267 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type267 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContent? Type268 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type268 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type269 { get; set; } + public global::Phoenix.PromptFireworksInvocationParameters? Type269 { get; set; } /// /// /// - public global::Phoenix.PromptMessageRole? Type270 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContent? Type270 { get; set; } /// /// /// - public global::Phoenix.AnyOf>? Type271 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public global::Phoenix.PromptGoogleInvocationParameters? Type272 { get; set; } /// /// /// - public global::Phoenix.ContentVariant2Item? Type273 { get; set; } + public global::Phoenix.PromptGoogleInvocationParametersContent? Type273 { get; set; } /// /// /// - public global::Phoenix.TextContentPart? Type274 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfig? Type274 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPart? Type275 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type275 { get; set; } /// /// /// - public global::Phoenix.ToolResultContentPart? Type276 { get; set; } + public global::Phoenix.PromptGroqInvocationParameters? Type276 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type277 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContent? Type277 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type278 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type278 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParameters? Type279 { get; set; } + public global::Phoenix.PromptMessageRole? Type279 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContent? Type280 { get; set; } + public global::Phoenix.AnyOf>? Type280 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type281 { get; set; } + public global::System.Collections.Generic.IList? Type281 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParameters? Type282 { get; set; } + public global::Phoenix.ContentVariant2Item? Type282 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContent? Type283 { get; set; } + public global::Phoenix.TextContentPart? Type283 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type284 { get; set; } + public global::Phoenix.ToolCallContentPart? Type284 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParameters? Type285 { get; set; } + public global::Phoenix.ToolResultContentPart? Type285 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContent? Type286 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type286 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type287 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type287 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParameters? Type288 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParameters? Type288 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContent? Type289 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContent? Type289 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type290 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type290 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchema? Type291 { get; set; } + public global::Phoenix.PromptOllamaInvocationParameters? Type291 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type292 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContent? Type292 { get; set; } /// /// /// - public global::Phoenix.PromptStringTemplate? Type293 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type293 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateFormat? Type294 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParameters? Type294 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateType? Type295 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContent? Type295 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParameters? Type296 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type296 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContent? Type297 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParameters? Type297 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type298 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContent? Type298 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceNone? Type299 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type299 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceOneOrMore? Type300 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchema? Type300 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type301 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type301 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceZeroOrMore? Type302 { get; set; } + public global::Phoenix.PromptStringTemplate? Type302 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunction? Type303 { get; set; } + public global::Phoenix.PromptTemplateFormat? Type303 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunctionDefinition? Type304 { get; set; } + public global::Phoenix.PromptTemplateType? Type304 { get; set; } /// /// /// - public global::Phoenix.PromptToolRaw? Type305 { get; set; } + public global::Phoenix.PromptTogetherInvocationParameters? Type305 { get; set; } /// /// /// - public global::Phoenix.PromptTools? Type306 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContent? Type306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type307 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type307 { get; set; } /// /// /// - public global::Phoenix.ToolsItem? Type308 { get; set; } + public global::Phoenix.PromptToolChoiceNone? Type308 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminator? Type309 { get; set; } + public global::Phoenix.PromptToolChoiceOneOrMore? Type309 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminatorType? Type310 { get; set; } + public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type310 { get; set; } /// /// /// - public global::Phoenix.ToolChoice? Type311 { get; set; } + public global::Phoenix.PromptToolChoiceZeroOrMore? Type311 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type312 { get; set; } + public global::Phoenix.PromptToolFunction? Type312 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type313 { get; set; } + public global::Phoenix.PromptToolFunctionDefinition? Type313 { get; set; } /// /// /// - public global::Phoenix.Template? Type314 { get; set; } + public global::Phoenix.PromptToolRaw? Type314 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminator? Type315 { get; set; } + public global::Phoenix.PromptTools? Type315 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type316 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters? Type317 { get; set; } + public global::Phoenix.ToolsItem? Type317 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParameters? Type318 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminator? Type318 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type319 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminatorType? Type319 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type320 { get; set; } + public global::Phoenix.ToolChoice? Type320 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant1? Type321 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type321 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type322 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type322 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type323 { get; set; } + public global::Phoenix.Template? Type323 { get; set; } /// /// /// - public global::Phoenix.Template2? Type324 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminator? Type324 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type325 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type325 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type326 { get; set; } + public global::Phoenix.InvocationParameters? Type326 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters2? Type327 { get; set; } + public global::Phoenix.PromptXAIInvocationParameters? Type327 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type328 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type328 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type329 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type329 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant12? Type330 { get; set; } + public global::Phoenix.ResponseFormatVariant1? Type330 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type331 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type331 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type332 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type332 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTagData? Type333 { get; set; } + public global::Phoenix.Template2? Type333 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContent? Type334 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type334 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type335 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type335 { get; set; } /// /// /// - public global::Phoenix.ReasoningUIPartState2? Type336 { get; set; } + public global::Phoenix.InvocationParameters2? Type336 { get; set; } /// /// /// - public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type337 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type337 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsResult? Type338 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type338 { get; set; } /// /// /// - public global::Phoenix.SecretKeyValue? Type339 { get; set; } + public global::Phoenix.ResponseFormatVariant12? Type339 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotation? Type340 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type340 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationSource? Type341 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type341 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationAnnotatorKind? Type342 { get; set; } + public global::Phoenix.PromptVersionTagData? Type342 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type343 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContent? Type343 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationsResponseBody? Type344 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type344 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type345 { get; set; } + public global::Phoenix.ReasoningUIPartState2? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type346 { get; set; } /// /// /// - public global::Phoenix.SessionTraceData? Type347 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsResult? Type347 { get; set; } /// /// /// - public global::Phoenix.SpanContext? Type348 { get; set; } + public global::Phoenix.SecretKeyValue? Type348 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type349 { get; set; } + public global::Phoenix.SessionAnnotation? Type349 { get; set; } /// /// /// - public global::Phoenix.SpanEvent? Type350 { get; set; } + public global::Phoenix.SessionAnnotationSource? Type350 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotation? Type351 { get; set; } + public global::Phoenix.SessionAnnotationAnnotatorKind? Type351 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationSource? Type352 { get; set; } + public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type352 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationAnnotatorKind? Type353 { get; set; } + public global::Phoenix.SessionAnnotationsResponseBody? Type353 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type354 { get; set; } + public global::System.Collections.Generic.IList? Type354 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationsResponseBody? Type355 { get; set; } + public global::System.Collections.Generic.IList? Type355 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type356 { get; set; } + public global::Phoenix.SessionTraceData? Type356 { get; set; } /// /// /// - public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type357 { get; set; } + public global::Phoenix.SpanContext? Type357 { get; set; } /// /// /// - public global::Phoenix.SpansResponseBody? Type358 { get; set; } + public global::System.Collections.Generic.IList? Type358 { get; set; } /// /// /// - public global::Phoenix.TextUIPartState2? Type359 { get; set; } + public global::Phoenix.SpanEvent? Type359 { get; set; } /// /// /// - public global::Phoenix.ToolCallFunction? Type360 { get; set; } + public global::Phoenix.SpanAnnotation? Type360 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type361 { get; set; } + public global::Phoenix.SpanAnnotationSource? Type361 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type362 { get; set; } + public global::Phoenix.SpanAnnotationAnnotatorKind? Type362 { get; set; } /// /// /// - public global::Phoenix.AnyOf, object>? Type363 { get; set; } + public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type363 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type364 { get; set; } + public global::Phoenix.SpanAnnotationsResponseBody? Type364 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotation? Type365 { get; set; } + public global::System.Collections.Generic.IList? Type365 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationSource? Type366 { get; set; } + public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type366 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationAnnotatorKind? Type367 { get; set; } + public global::Phoenix.SpansResponseBody? Type367 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type368 { get; set; } + public global::Phoenix.TextUIPartState2? Type368 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationsResponseBody? Type369 { get; set; } + public global::Phoenix.ToolCallFunction? Type369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type370 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type370 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type371 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type371 { get; set; } /// /// /// - public global::Phoenix.TraceSpanData? Type372 { get; set; } + public global::Phoenix.AnyOf, object>? Type372 { get; set; } /// /// /// - public global::Phoenix.UIMessage? Type373 { get; set; } + public global::System.Collections.Generic.IList? Type373 { get; set; } /// /// /// - public global::Phoenix.UIMessageRole? Type374 { get; set; } + public global::Phoenix.TraceAnnotation? Type374 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBody? Type375 { get; set; } + public global::Phoenix.TraceAnnotationSource? Type375 { get; set; } /// /// /// - public global::Phoenix.Data6? Type376 { get; set; } + public global::Phoenix.TraceAnnotationAnnotatorKind? Type376 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type377 { get; set; } + public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type377 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type378 { get; set; } + public global::Phoenix.TraceAnnotationsResponseBody? Type378 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectRequestBody? Type379 { get; set; } + public global::System.Collections.Generic.IList? Type379 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectResponseBody? Type380 { get; set; } + public global::System.Collections.Generic.IList? Type380 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetData? Type381 { get; set; } + public global::Phoenix.TraceSpanData? Type381 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetResponseBody? Type382 { get; set; } + public global::Phoenix.UIMessage? Type382 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type383 { get; set; } + public global::Phoenix.UIMessageRole? Type383 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type384 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBody? Type384 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type385 { get; set; } + public global::Phoenix.Data6? Type385 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type386 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type386 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsRequest? Type387 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type387 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type388 { get; set; } + public global::Phoenix.UpdateProjectRequestBody? Type388 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type389 { get; set; } + public global::Phoenix.UpdateProjectResponseBody? Type389 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type390 { get; set; } + public global::Phoenix.UploadDatasetData? Type390 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequest? Type391 { get; set; } + public global::Phoenix.UploadDatasetResponseBody? Type391 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type392 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type392 { get; set; } /// /// /// - public global::Phoenix.SummarizeResponse? Type393 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type393 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest? Type394 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type394 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction? Type395 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type395 { get; set; } /// /// /// - public global::System.Collections.Generic.IList, object>>? Type396 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsRequest? Type396 { get; set; } /// /// /// - public global::Phoenix.OneOf, object>? Type397 { get; set; } + public global::System.Collections.Generic.IList? Type397 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type398 { get; set; } + public global::System.Collections.Generic.IList>? Type398 { get; set; } /// /// /// - public global::Phoenix.OneOf? Type399 { get; set; } + public global::Phoenix.AnyOf? Type399 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest2? Type400 { get; set; } + public global::Phoenix.SummarizeRequest? Type400 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction2? Type401 { get; set; } + public global::System.Collections.Generic.IList? Type401 { get; set; } /// /// /// - public byte[]? Type402 { get; set; } + public global::Phoenix.Model3? Type402 { get; set; } /// /// /// - public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type403 { get; set; } + public global::Phoenix.SummarizeRequestModelDiscriminator? Type403 { get; set; } /// /// /// - public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type404 { get; set; } + public global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? Type404 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type405 { get; set; } + public global::Phoenix.SummarizeResponse? Type405 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesSort? Type406 { get; set; } + public global::Phoenix.UploadDatasetRequest? Type406 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesOrder? Type407 { get; set; } + public global::Phoenix.UploadDatasetRequestAction? Type407 { get; set; } /// /// /// - public global::Phoenix.ListProjectSessionsOrder? Type408 { get; set; } + public global::System.Collections.Generic.IList, object>>? Type408 { get; set; } /// /// /// - public global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType? Type409 { get; set; } + public global::Phoenix.OneOf, object>? Type409 { get; set; } /// /// /// - public global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? Type410 { get; set; } + public global::System.Collections.Generic.IList>? Type410 { get; set; } /// /// /// - public global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? Type411 { get; set; } + public global::Phoenix.OneOf? Type411 { get; set; } /// /// /// - public global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? Type412 { get; set; } + public global::Phoenix.UploadDatasetRequest2? Type412 { get; set; } + /// + /// + /// + public global::Phoenix.UploadDatasetRequestAction2? Type413 { get; set; } + /// + /// + /// + public byte[]? Type414 { get; set; } + /// + /// + /// + public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type415 { get; set; } + /// + /// + /// + public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type416 { get; set; } + /// + /// + /// + public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type417 { get; set; } + /// + /// + /// + public global::Phoenix.ListProjectTracesSort? Type418 { get; set; } + /// + /// + /// + public global::Phoenix.ListProjectTracesOrder? Type419 { get; set; } + /// + /// + /// + public global::Phoenix.ListProjectSessionsOrder? Type420 { get; set; } /// /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelection.Json.g.cs similarity index 81% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelection.Json.g.cs index a90ec20..78f45a0 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelection.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatAgentsAgentIdSessionsSessionIdChatPostProvider + public sealed partial class BuiltInProviderModelSelection { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProvider? FromJson( + public static global::Phoenix.BuiltInProviderModelSelection? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProvider), - jsonSerializerContext) as global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProvider; + typeof(global::Phoenix.BuiltInProviderModelSelection), + jsonSerializerContext) as global::Phoenix.BuiltInProviderModelSelection; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.ChatAgentsAgentIdSessionsSessionIdChatPostProvider? FromJson( + public static global::Phoenix.BuiltInProviderModelSelection? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.ChatAgentsAgentIdSessionsSessionIdChatPostProvider), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProvider; + typeof(global::Phoenix.BuiltInProviderModelSelection), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.BuiltInProviderModelSelection; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelection.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelection.g.cs new file mode 100644 index 0000000..8b85e61 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelection.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Chat against a Phoenix built-in provider.
+ /// Credentials and connection details (base URL, Azure endpoint, AWS
+ /// region) are resolved from the secret store first and the process
+ /// environment second. ``openai_api_type`` is honoured by the OpenAI and
+ /// Azure OpenAI branches; other providers ignore it. + ///
+ public sealed partial class BuiltInProviderModelSelection + { + /// + /// + /// + /// "builtin" + [global::System.Text.Json.Serialization.JsonPropertyName("providerType")] + public string ProviderType { get; set; } = "builtin"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ModelProviderJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Phoenix.ModelProvider Provider { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modelName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ModelName { get; set; } + + /// + /// Default Value: responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("openaiApiType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.BuiltInProviderModelSelectionOpenaiApiTypeJsonConverter))] + public global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType? OpenaiApiType { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// Default Value: responses + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public BuiltInProviderModelSelection( + global::Phoenix.ModelProvider provider, + string modelName, + global::Phoenix.BuiltInProviderModelSelectionOpenaiApiType? openaiApiType, + string providerType = "builtin") + { + this.ProviderType = providerType; + this.Provider = provider; + this.ModelName = modelName ?? throw new global::System.ArgumentNullException(nameof(modelName)); + this.OpenaiApiType = openaiApiType; + } + + /// + /// Initializes a new instance of the class. + /// + public BuiltInProviderModelSelection() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelectionOpenaiApiType.g.cs similarity index 52% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelectionOpenaiApiType.g.cs index 563231c..144fffd 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderModelSelectionOpenaiApiType.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// Default Value: responses /// - public enum ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType + public enum BuiltInProviderModelSelectionOpenaiApiType { /// /// @@ -21,29 +21,29 @@ public enum ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions + public static class BuiltInProviderModelSelectionOpenaiApiTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType value) + public static string ToValueString(this BuiltInProviderModelSelectionOpenaiApiType value) { return value switch { - ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.ChatCompletions => "chat_completions", - ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.Responses => "responses", + BuiltInProviderModelSelectionOpenaiApiType.ChatCompletions => "chat_completions", + BuiltInProviderModelSelectionOpenaiApiType.Responses => "responses", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? ToEnum(string value) + public static BuiltInProviderModelSelectionOpenaiApiType? ToEnum(string value) { return value switch { - "chat_completions" => ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.ChatCompletions, - "responses" => ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.Responses, + "chat_completions" => BuiltInProviderModelSelectionOpenaiApiType.ChatCompletions, + "responses" => BuiltInProviderModelSelectionOpenaiApiType.Responses, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.g.cs deleted file mode 100644 index dee3fc6..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public sealed partial class ChatAgentsAgentIdSessionsSessionIdChatPostProvider - { - - /// - /// 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.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.g.cs deleted file mode 100644 index 63509d7..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public sealed partial class ChatAgentsAgentIdSessionsSessionIdChatPostProviderId - { - - /// - /// 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.ChatRegenerateMessage.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessage.g.cs index e56ee2e..fc19711 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessage.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessage.g.cs @@ -59,6 +59,14 @@ public sealed partial class ChatRegenerateMessage [global::System.Text.Json.Serialization.JsonPropertyName("capabilities")] public global::Phoenix.AgentCapabilities? Capabilities { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ModelJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Phoenix.Model Model { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -70,6 +78,7 @@ public sealed partial class ChatRegenerateMessage /// /// /// + /// /// /// /// Default Value: false @@ -88,6 +97,7 @@ public sealed partial class ChatRegenerateMessage public ChatRegenerateMessage( string id, global::System.Collections.Generic.IList messages, + global::Phoenix.Model model, string? messageId, bool? ingestTraces, bool? exportRemoteTraces, @@ -103,6 +113,7 @@ public ChatRegenerateMessage( this.ExportRemoteTraces = exportRemoteTraces; this.Contexts = contexts; this.Capabilities = capabilities; + this.Model = model; } /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminator.Json.g.cs similarity index 81% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminator.Json.g.cs index eeb0de7..a3c0379 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatAgentsAgentIdSessionsSessionIdChatPostProviderId + public sealed partial class ChatRegenerateMessageModelDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId? FromJson( + public static global::Phoenix.ChatRegenerateMessageModelDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId), - jsonSerializerContext) as global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId; + typeof(global::Phoenix.ChatRegenerateMessageModelDiscriminator), + jsonSerializerContext) as global::Phoenix.ChatRegenerateMessageModelDiscriminator; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId? FromJson( + public static global::Phoenix.ChatRegenerateMessageModelDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId; + typeof(global::Phoenix.ChatRegenerateMessageModelDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatRegenerateMessageModelDiscriminator; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminator.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminator.g.cs new file mode 100644 index 0000000..719ae62 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class ChatRegenerateMessageModelDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("providerType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ChatRegenerateMessageModelDiscriminatorProviderTypeJsonConverter))] + public global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? ProviderType { 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 ChatRegenerateMessageModelDiscriminator( + global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? providerType) + { + this.ProviderType = providerType; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatRegenerateMessageModelDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminatorProviderType.g.cs similarity index 53% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminatorProviderType.g.cs index 327f55b..e7ae0fc 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageModelDiscriminatorProviderType.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// /// - public enum ChatAgentsAgentIdSessionsSessionIdChatPostProviderType + public enum ChatRegenerateMessageModelDiscriminatorProviderType { /// /// @@ -21,29 +21,29 @@ public enum ChatAgentsAgentIdSessionsSessionIdChatPostProviderType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions + public static class ChatRegenerateMessageModelDiscriminatorProviderTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatAgentsAgentIdSessionsSessionIdChatPostProviderType value) + public static string ToValueString(this ChatRegenerateMessageModelDiscriminatorProviderType value) { return value switch { - ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.Builtin => "builtin", - ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.Custom => "custom", + ChatRegenerateMessageModelDiscriminatorProviderType.Builtin => "builtin", + ChatRegenerateMessageModelDiscriminatorProviderType.Custom => "custom", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatAgentsAgentIdSessionsSessionIdChatPostProviderType? ToEnum(string value) + public static ChatRegenerateMessageModelDiscriminatorProviderType? ToEnum(string value) { return value switch { - "builtin" => ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.Builtin, - "custom" => ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.Custom, + "builtin" => ChatRegenerateMessageModelDiscriminatorProviderType.Builtin, + "custom" => ChatRegenerateMessageModelDiscriminatorProviderType.Custom, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.g.cs index 09bf0b2..c4e1d47 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.g.cs @@ -52,6 +52,14 @@ public sealed partial class ChatSubmitMessage [global::System.Text.Json.Serialization.JsonPropertyName("capabilities")] public global::Phoenix.AgentCapabilities? Capabilities { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.Model2JsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Phoenix.Model2 Model { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -63,6 +71,7 @@ public sealed partial class ChatSubmitMessage /// /// /// + /// /// /// Default Value: submit-message /// @@ -82,6 +91,7 @@ public sealed partial class ChatSubmitMessage public ChatSubmitMessage( string id, global::System.Collections.Generic.IList messages, + global::Phoenix.Model2 model, string? trigger, bool? ingestTraces, bool? exportRemoteTraces, @@ -95,6 +105,7 @@ public ChatSubmitMessage( this.ExportRemoteTraces = exportRemoteTraces; this.Contexts = contexts; this.Capabilities = capabilities; + this.Model = model; } /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminator.Json.g.cs similarity index 79% rename from src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminator.Json.g.cs index 398afa5..4e496ca 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId + public sealed partial class ChatSubmitMessageModelDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId? FromJson( + public static global::Phoenix.ChatSubmitMessageModelDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId), - jsonSerializerContext) as global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId; + typeof(global::Phoenix.ChatSubmitMessageModelDiscriminator), + jsonSerializerContext) as global::Phoenix.ChatSubmitMessageModelDiscriminator; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId? FromJson( + public static global::Phoenix.ChatSubmitMessageModelDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId; + typeof(global::Phoenix.ChatSubmitMessageModelDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatSubmitMessageModelDiscriminator; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminator.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminator.g.cs new file mode 100644 index 0000000..f28abab --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class ChatSubmitMessageModelDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("providerType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ChatSubmitMessageModelDiscriminatorProviderTypeJsonConverter))] + public global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? ProviderType { 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 ChatSubmitMessageModelDiscriminator( + global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? providerType) + { + this.ProviderType = providerType; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatSubmitMessageModelDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminatorProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminatorProviderType.g.cs new file mode 100644 index 0000000..0f33cca --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessageModelDiscriminatorProviderType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public enum ChatSubmitMessageModelDiscriminatorProviderType + { + /// + /// + /// + Builtin, + /// + /// + /// + Custom, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatSubmitMessageModelDiscriminatorProviderTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatSubmitMessageModelDiscriminatorProviderType value) + { + return value switch + { + ChatSubmitMessageModelDiscriminatorProviderType.Builtin => "builtin", + ChatSubmitMessageModelDiscriminatorProviderType.Custom => "custom", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatSubmitMessageModelDiscriminatorProviderType? ToEnum(string value) + { + return value switch + { + "builtin" => ChatSubmitMessageModelDiscriminatorProviderType.Builtin, + "custom" => ChatSubmitMessageModelDiscriminatorProviderType.Custom, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderModelSelection.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderModelSelection.Json.g.cs new file mode 100644 index 0000000..19860e2 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderModelSelection.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class CustomProviderModelSelection + { + /// + /// 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.CustomProviderModelSelection? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.CustomProviderModelSelection), + jsonSerializerContext) as global::Phoenix.CustomProviderModelSelection; + } + + /// + /// 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.CustomProviderModelSelection? 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.CustomProviderModelSelection), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.CustomProviderModelSelection; + } + + /// + /// 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.CustomProviderModelSelection.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderModelSelection.g.cs new file mode 100644 index 0000000..5a4a1c0 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderModelSelection.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Chat against a stored custom provider record. + /// + public sealed partial class CustomProviderModelSelection + { + /// + /// + /// + /// "custom" + [global::System.Text.Json.Serialization.JsonPropertyName("providerType")] + public string ProviderType { get; set; } = "custom"; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("providerId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ProviderId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modelName")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ModelName { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CustomProviderModelSelection( + string providerId, + string modelName, + string providerType = "custom") + { + this.ProviderType = providerType; + this.ProviderId = providerId ?? throw new global::System.ArgumentNullException(nameof(providerId)); + this.ModelName = modelName ?? throw new global::System.ArgumentNullException(nameof(modelName)); + } + + /// + /// Initializes a new instance of the class. + /// + public CustomProviderModelSelection() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.Model.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.Model.Json.g.cs new file mode 100644 index 0000000..a1e1a0e --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.Model.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public readonly partial struct Model + { + /// + /// 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.Model? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.Model), + jsonSerializerContext) as global::Phoenix.Model?; + } + + /// + /// 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.Model? 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.Model), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.Model?; + } + + /// + /// 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.Model.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.Model.g.cs new file mode 100644 index 0000000..3c7d317 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.Model.g.cs @@ -0,0 +1,307 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public readonly partial struct Model : global::System.IEquatable + { + /// + /// + /// + public global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? ProviderType { get; } + + /// + /// Chat against a stored custom provider record. + /// +#if NET6_0_OR_GREATER + public global::Phoenix.CustomProviderModelSelection? Custom { get; init; } +#else + public global::Phoenix.CustomProviderModelSelection? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.CustomProviderModelSelection? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::Phoenix.CustomProviderModelSelection PickCustom() => IsCustom + ? Custom! + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + + /// + /// Chat against a Phoenix built-in provider.
+ /// Credentials and connection details (base URL, Azure endpoint, AWS
+ /// region) are resolved from the secret store first and the process
+ /// environment second. ``openai_api_type`` is honoured by the OpenAI and
+ /// Azure OpenAI branches; other providers ignore it. + ///
+#if NET6_0_OR_GREATER + public global::Phoenix.BuiltInProviderModelSelection? Builtin { get; init; } +#else + public global::Phoenix.BuiltInProviderModelSelection? Builtin { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Builtin))] +#endif + public bool IsBuiltin => Builtin != null; + + /// + /// + /// + public bool TryPickBuiltin( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.BuiltInProviderModelSelection? value) + { + value = Builtin; + return IsBuiltin; + } + + /// + /// + /// + public global::Phoenix.BuiltInProviderModelSelection PickBuiltin() => IsBuiltin + ? Builtin! + : throw new global::System.InvalidOperationException($"Expected union variant 'Builtin' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator Model(global::Phoenix.CustomProviderModelSelection value) => new Model((global::Phoenix.CustomProviderModelSelection?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.CustomProviderModelSelection?(Model @this) => @this.Custom; + + /// + /// + /// + public Model(global::Phoenix.CustomProviderModelSelection? value) + { + Custom = value; + } + + /// + /// + /// + public static Model FromCustom(global::Phoenix.CustomProviderModelSelection? value) => new Model(value); + + /// + /// + /// + public static implicit operator Model(global::Phoenix.BuiltInProviderModelSelection value) => new Model((global::Phoenix.BuiltInProviderModelSelection?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.BuiltInProviderModelSelection?(Model @this) => @this.Builtin; + + /// + /// + /// + public Model(global::Phoenix.BuiltInProviderModelSelection? value) + { + Builtin = value; + } + + /// + /// + /// + public static Model FromBuiltin(global::Phoenix.BuiltInProviderModelSelection? value) => new Model(value); + + /// + /// + /// + public Model( + global::Phoenix.ChatRegenerateMessageModelDiscriminatorProviderType? providerType, + global::Phoenix.CustomProviderModelSelection? custom, + global::Phoenix.BuiltInProviderModelSelection? builtin + ) + { + ProviderType = providerType; + + Custom = custom; + Builtin = builtin; + } + + /// + /// + /// + public object? Object => + Builtin as object ?? + Custom as object + ; + + /// + /// + /// + public override string? ToString() => + Custom?.ToString() ?? + Builtin?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCustom && !IsBuiltin || !IsCustom && IsBuiltin; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? custom = null, + global::System.Func? builtin = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom && custom != null) + { + return custom(Custom!); + } + else if (IsBuiltin && builtin != null) + { + return builtin(Builtin!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? custom = null, + + global::System.Action? builtin = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom) + { + custom?.Invoke(Custom!); + } + else if (IsBuiltin) + { + builtin?.Invoke(Builtin!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? custom = null, + global::System.Action? builtin = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom) + { + custom?.Invoke(Custom!); + } + else if (IsBuiltin) + { + builtin?.Invoke(Builtin!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Custom, + typeof(global::Phoenix.CustomProviderModelSelection), + Builtin, + typeof(global::Phoenix.BuiltInProviderModelSelection), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Model other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Builtin, other.Builtin) + ; + } + + /// + /// + /// + public static bool operator ==(Model obj1, Model obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Model obj1, Model obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Model o && Equals(o); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.Model2.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.Model2.Json.g.cs new file mode 100644 index 0000000..8a9cfcc --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.Model2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public readonly partial struct Model2 + { + /// + /// 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.Model2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.Model2), + jsonSerializerContext) as global::Phoenix.Model2?; + } + + /// + /// 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.Model2? 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.Model2), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.Model2?; + } + + /// + /// 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.Model2.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.Model2.g.cs new file mode 100644 index 0000000..655015f --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.Model2.g.cs @@ -0,0 +1,307 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public readonly partial struct Model2 : global::System.IEquatable + { + /// + /// + /// + public global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? ProviderType { get; } + + /// + /// Chat against a stored custom provider record. + /// +#if NET6_0_OR_GREATER + public global::Phoenix.CustomProviderModelSelection? Custom { get; init; } +#else + public global::Phoenix.CustomProviderModelSelection? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.CustomProviderModelSelection? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::Phoenix.CustomProviderModelSelection PickCustom() => IsCustom + ? Custom! + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + + /// + /// Chat against a Phoenix built-in provider.
+ /// Credentials and connection details (base URL, Azure endpoint, AWS
+ /// region) are resolved from the secret store first and the process
+ /// environment second. ``openai_api_type`` is honoured by the OpenAI and
+ /// Azure OpenAI branches; other providers ignore it. + ///
+#if NET6_0_OR_GREATER + public global::Phoenix.BuiltInProviderModelSelection? Builtin { get; init; } +#else + public global::Phoenix.BuiltInProviderModelSelection? Builtin { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Builtin))] +#endif + public bool IsBuiltin => Builtin != null; + + /// + /// + /// + public bool TryPickBuiltin( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.BuiltInProviderModelSelection? value) + { + value = Builtin; + return IsBuiltin; + } + + /// + /// + /// + public global::Phoenix.BuiltInProviderModelSelection PickBuiltin() => IsBuiltin + ? Builtin! + : throw new global::System.InvalidOperationException($"Expected union variant 'Builtin' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator Model2(global::Phoenix.CustomProviderModelSelection value) => new Model2((global::Phoenix.CustomProviderModelSelection?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.CustomProviderModelSelection?(Model2 @this) => @this.Custom; + + /// + /// + /// + public Model2(global::Phoenix.CustomProviderModelSelection? value) + { + Custom = value; + } + + /// + /// + /// + public static Model2 FromCustom(global::Phoenix.CustomProviderModelSelection? value) => new Model2(value); + + /// + /// + /// + public static implicit operator Model2(global::Phoenix.BuiltInProviderModelSelection value) => new Model2((global::Phoenix.BuiltInProviderModelSelection?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.BuiltInProviderModelSelection?(Model2 @this) => @this.Builtin; + + /// + /// + /// + public Model2(global::Phoenix.BuiltInProviderModelSelection? value) + { + Builtin = value; + } + + /// + /// + /// + public static Model2 FromBuiltin(global::Phoenix.BuiltInProviderModelSelection? value) => new Model2(value); + + /// + /// + /// + public Model2( + global::Phoenix.ChatSubmitMessageModelDiscriminatorProviderType? providerType, + global::Phoenix.CustomProviderModelSelection? custom, + global::Phoenix.BuiltInProviderModelSelection? builtin + ) + { + ProviderType = providerType; + + Custom = custom; + Builtin = builtin; + } + + /// + /// + /// + public object? Object => + Builtin as object ?? + Custom as object + ; + + /// + /// + /// + public override string? ToString() => + Custom?.ToString() ?? + Builtin?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCustom && !IsBuiltin || !IsCustom && IsBuiltin; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? custom = null, + global::System.Func? builtin = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom && custom != null) + { + return custom(Custom!); + } + else if (IsBuiltin && builtin != null) + { + return builtin(Builtin!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? custom = null, + + global::System.Action? builtin = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom) + { + custom?.Invoke(Custom!); + } + else if (IsBuiltin) + { + builtin?.Invoke(Builtin!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? custom = null, + global::System.Action? builtin = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom) + { + custom?.Invoke(Custom!); + } + else if (IsBuiltin) + { + builtin?.Invoke(Builtin!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Custom, + typeof(global::Phoenix.CustomProviderModelSelection), + Builtin, + typeof(global::Phoenix.BuiltInProviderModelSelection), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Model2 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Builtin, other.Builtin) + ; + } + + /// + /// + /// + public static bool operator ==(Model2 obj1, Model2 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Model2 obj1, Model2 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Model2 o && Equals(o); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.Model3.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.Model3.Json.g.cs new file mode 100644 index 0000000..918619b --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.Model3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public readonly partial struct Model3 + { + /// + /// 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.Model3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.Model3), + jsonSerializerContext) as global::Phoenix.Model3?; + } + + /// + /// 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.Model3? 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.Model3), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.Model3?; + } + + /// + /// 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.Model3.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.Model3.g.cs new file mode 100644 index 0000000..f5de6d1 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.Model3.g.cs @@ -0,0 +1,307 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public readonly partial struct Model3 : global::System.IEquatable + { + /// + /// + /// + public global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? ProviderType { get; } + + /// + /// Chat against a stored custom provider record. + /// +#if NET6_0_OR_GREATER + public global::Phoenix.CustomProviderModelSelection? Custom { get; init; } +#else + public global::Phoenix.CustomProviderModelSelection? Custom { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] +#endif + public bool IsCustom => Custom != null; + + /// + /// + /// + public bool TryPickCustom( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.CustomProviderModelSelection? value) + { + value = Custom; + return IsCustom; + } + + /// + /// + /// + public global::Phoenix.CustomProviderModelSelection PickCustom() => IsCustom + ? Custom! + : throw new global::System.InvalidOperationException($"Expected union variant 'Custom' but the value was {ToString()}."); + + /// + /// Chat against a Phoenix built-in provider.
+ /// Credentials and connection details (base URL, Azure endpoint, AWS
+ /// region) are resolved from the secret store first and the process
+ /// environment second. ``openai_api_type`` is honoured by the OpenAI and
+ /// Azure OpenAI branches; other providers ignore it. + ///
+#if NET6_0_OR_GREATER + public global::Phoenix.BuiltInProviderModelSelection? Builtin { get; init; } +#else + public global::Phoenix.BuiltInProviderModelSelection? Builtin { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Builtin))] +#endif + public bool IsBuiltin => Builtin != null; + + /// + /// + /// + public bool TryPickBuiltin( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Phoenix.BuiltInProviderModelSelection? value) + { + value = Builtin; + return IsBuiltin; + } + + /// + /// + /// + public global::Phoenix.BuiltInProviderModelSelection PickBuiltin() => IsBuiltin + ? Builtin! + : throw new global::System.InvalidOperationException($"Expected union variant 'Builtin' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator Model3(global::Phoenix.CustomProviderModelSelection value) => new Model3((global::Phoenix.CustomProviderModelSelection?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.CustomProviderModelSelection?(Model3 @this) => @this.Custom; + + /// + /// + /// + public Model3(global::Phoenix.CustomProviderModelSelection? value) + { + Custom = value; + } + + /// + /// + /// + public static Model3 FromCustom(global::Phoenix.CustomProviderModelSelection? value) => new Model3(value); + + /// + /// + /// + public static implicit operator Model3(global::Phoenix.BuiltInProviderModelSelection value) => new Model3((global::Phoenix.BuiltInProviderModelSelection?)value); + + /// + /// + /// + public static implicit operator global::Phoenix.BuiltInProviderModelSelection?(Model3 @this) => @this.Builtin; + + /// + /// + /// + public Model3(global::Phoenix.BuiltInProviderModelSelection? value) + { + Builtin = value; + } + + /// + /// + /// + public static Model3 FromBuiltin(global::Phoenix.BuiltInProviderModelSelection? value) => new Model3(value); + + /// + /// + /// + public Model3( + global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? providerType, + global::Phoenix.CustomProviderModelSelection? custom, + global::Phoenix.BuiltInProviderModelSelection? builtin + ) + { + ProviderType = providerType; + + Custom = custom; + Builtin = builtin; + } + + /// + /// + /// + public object? Object => + Builtin as object ?? + Custom as object + ; + + /// + /// + /// + public override string? ToString() => + Custom?.ToString() ?? + Builtin?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsCustom && !IsBuiltin || !IsCustom && IsBuiltin; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? custom = null, + global::System.Func? builtin = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom && custom != null) + { + return custom(Custom!); + } + else if (IsBuiltin && builtin != null) + { + return builtin(Builtin!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? custom = null, + + global::System.Action? builtin = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom) + { + custom?.Invoke(Custom!); + } + else if (IsBuiltin) + { + builtin?.Invoke(Builtin!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? custom = null, + global::System.Action? builtin = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsCustom) + { + custom?.Invoke(Custom!); + } + else if (IsBuiltin) + { + builtin?.Invoke(Builtin!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Custom, + typeof(global::Phoenix.CustomProviderModelSelection), + Builtin, + typeof(global::Phoenix.BuiltInProviderModelSelection), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(Model3 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Builtin, other.Builtin) + ; + } + + /// + /// + /// + public static bool operator ==(Model3 obj1, Model3 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(Model3 obj1, Model3 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is Model3 o && Equals(o); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs deleted file mode 100644 index 01c5268..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// Default Value: responses - /// - public enum SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType - { - /// - /// - /// - ChatCompletions, - /// - /// - /// - Responses, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType value) - { - return value switch - { - SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.ChatCompletions => "chat_completions", - SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.Responses => "responses", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? ToEnum(string value) - { - return value switch - { - "chat_completions" => SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.ChatCompletions, - "responses" => SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.Responses, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.g.cs deleted file mode 100644 index 5e3cfb7..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public sealed partial class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider - { - - /// - /// 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.g.cs deleted file mode 100644 index aa366b4..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public sealed partial class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId - { - - /// - /// 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs deleted file mode 100644 index 9ec70a3..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public enum SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType - { - /// - /// - /// - Builtin, - /// - /// - /// - Custom, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType value) - { - return value switch - { - SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.Builtin => "builtin", - SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.Custom => "custom", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? ToEnum(string value) - { - return value switch - { - "builtin" => SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.Builtin, - "custom" => SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.Custom, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.g.cs index 2e2b3dd..7678df3 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.g.cs @@ -29,6 +29,14 @@ public sealed partial class SummarizeRequest [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Messages { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.Model3JsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Phoenix.Model3 Model { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,6 +47,7 @@ public sealed partial class SummarizeRequest /// Initializes a new instance of the class. ///
/// + /// /// /// Default Value: false /// @@ -50,12 +59,14 @@ public sealed partial class SummarizeRequest #endif public SummarizeRequest( global::System.Collections.Generic.IList messages, + global::Phoenix.Model3 model, bool? ingestTraces, bool? exportRemoteTraces) { this.IngestTraces = ingestTraces; this.ExportRemoteTraces = exportRemoteTraces; this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); + this.Model = model; } /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminator.Json.g.cs similarity index 80% rename from src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminator.Json.g.cs index 0ed0392..0793824 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider + public sealed partial class SummarizeRequestModelDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider? FromJson( + public static global::Phoenix.SummarizeRequestModelDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider), - jsonSerializerContext) as global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider; + typeof(global::Phoenix.SummarizeRequestModelDiscriminator), + jsonSerializerContext) as global::Phoenix.SummarizeRequestModelDiscriminator; } /// @@ -51,11 +51,11 @@ public string ToJson( [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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider? FromJson( + public static global::Phoenix.SummarizeRequestModelDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider; + typeof(global::Phoenix.SummarizeRequestModelDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.SummarizeRequestModelDiscriminator; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + 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( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminator.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminator.g.cs new file mode 100644 index 0000000..115d786 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class SummarizeRequestModelDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("providerType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.SummarizeRequestModelDiscriminatorProviderTypeJsonConverter))] + public global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? ProviderType { 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 SummarizeRequestModelDiscriminator( + global::Phoenix.SummarizeRequestModelDiscriminatorProviderType? providerType) + { + this.ProviderType = providerType; + } + + /// + /// Initializes a new instance of the class. + /// + public SummarizeRequestModelDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminatorProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminatorProviderType.g.cs new file mode 100644 index 0000000..d13d19f --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequestModelDiscriminatorProviderType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public enum SummarizeRequestModelDiscriminatorProviderType + { + /// + /// + /// + Builtin, + /// + /// + /// + Custom, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SummarizeRequestModelDiscriminatorProviderTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SummarizeRequestModelDiscriminatorProviderType value) + { + return value switch + { + SummarizeRequestModelDiscriminatorProviderType.Builtin => "builtin", + SummarizeRequestModelDiscriminatorProviderType.Custom => "custom", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SummarizeRequestModelDiscriminatorProviderType? ToEnum(string value) + { + return value switch + { + "builtin" => SummarizeRequestModelDiscriminatorProviderType.Builtin, + "custom" => SummarizeRequestModelDiscriminatorProviderType.Custom, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/openapi.json b/src/libs/Phoenix/openapi.json index e67f387..0177a10 100644 --- a/src/libs/Phoenix/openapi.json +++ b/src/libs/Phoenix/openapi.json @@ -6515,74 +6515,6 @@ "type": "string", "title": "Session Id" } - }, - { - "name": "provider_type", - "in": "query", - "required": true, - "schema": { - "enum": [ - "custom", - "builtin" - ], - "type": "string", - "title": "Provider Type" - } - }, - { - "name": "model_name", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Model Name" - } - }, - { - "name": "provider_id", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Provider Id" - } - }, - { - "name": "provider", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ModelProvider" - }, - { - "type": "null" - } - ], - "title": "Provider" - } - }, - { - "name": "openai_api_type", - "in": "query", - "required": false, - "schema": { - "enum": [ - "chat_completions", - "responses" - ], - "type": "string", - "default": "responses", - "title": "Openai Api Type" - } } ], "requestBody": { @@ -6644,74 +6576,6 @@ "type": "string", "title": "Session Id" } - }, - { - "name": "provider_type", - "in": "query", - "required": true, - "schema": { - "enum": [ - "custom", - "builtin" - ], - "type": "string", - "title": "Provider Type" - } - }, - { - "name": "model_name", - "in": "query", - "required": true, - "schema": { - "type": "string", - "title": "Model Name" - } - }, - { - "name": "provider_id", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Provider Id" - } - }, - { - "name": "provider", - "in": "query", - "required": false, - "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ModelProvider" - }, - { - "type": "null" - } - ], - "title": "Provider" - } - }, - { - "name": "openai_api_type", - "in": "query", - "required": false, - "schema": { - "enum": [ - "chat_completions", - "responses" - ], - "type": "string", - "default": "responses", - "title": "Openai Api Type" - } } ], "requestBody": { @@ -7296,6 +7160,39 @@ "title": "AssistantMetadataUIMessage", "description": "`UIMessage` with `metadata` narrowed to `AssistantMessageMetadata`." }, + "BuiltInProviderModelSelection": { + "properties": { + "providerType": { + "type": "string", + "const": "builtin", + "title": "Providertype" + }, + "provider": { + "$ref": "#/components/schemas/ModelProvider" + }, + "modelName": { + "type": "string", + "title": "Modelname" + }, + "openaiApiType": { + "type": "string", + "enum": [ + "chat_completions", + "responses" + ], + "title": "Openaiapitype", + "default": "responses" + } + }, + "type": "object", + "required": [ + "providerType", + "provider", + "modelName" + ], + "title": "BuiltInProviderModelSelection", + "description": "Chat against a Phoenix built-in provider.\n\nCredentials and connection details (base URL, Azure endpoint, AWS\nregion) are resolved from the secret store first and the process\nenvironment second. ``openai_api_type`` is honoured by the OpenAI and\nAzure OpenAI branches; other providers ignore it." + }, "CategoricalAnnotationConfig": { "properties": { "name": { @@ -7488,6 +7385,24 @@ }, "capabilities": { "$ref": "#/components/schemas/AgentCapabilities" + }, + "model": { + "oneOf": [ + { + "$ref": "#/components/schemas/CustomProviderModelSelection" + }, + { + "$ref": "#/components/schemas/BuiltInProviderModelSelection" + } + ], + "title": "Model", + "discriminator": { + "propertyName": "providerType", + "mapping": { + "builtin": "#/components/schemas/BuiltInProviderModelSelection", + "custom": "#/components/schemas/CustomProviderModelSelection" + } + } } }, "additionalProperties": true, @@ -7495,7 +7410,8 @@ "required": [ "trigger", "id", - "messages" + "messages", + "model" ], "title": "ChatRegenerateMessage", "description": "Regenerate message extended with Phoenix-specific fields." @@ -7557,13 +7473,32 @@ }, "capabilities": { "$ref": "#/components/schemas/AgentCapabilities" + }, + "model": { + "oneOf": [ + { + "$ref": "#/components/schemas/CustomProviderModelSelection" + }, + { + "$ref": "#/components/schemas/BuiltInProviderModelSelection" + } + ], + "title": "Model", + "discriminator": { + "propertyName": "providerType", + "mapping": { + "builtin": "#/components/schemas/BuiltInProviderModelSelection", + "custom": "#/components/schemas/CustomProviderModelSelection" + } + } } }, "additionalProperties": true, "type": "object", "required": [ "id", - "messages" + "messages", + "model" ], "title": "ChatSubmitMessage", "description": "Submit message extended with Phoenix-specific fields." @@ -8157,6 +8092,31 @@ ], "title": "CreateUserResponseBody" }, + "CustomProviderModelSelection": { + "properties": { + "providerType": { + "type": "string", + "const": "custom", + "title": "Providertype" + }, + "providerId": { + "type": "string", + "title": "Providerid" + }, + "modelName": { + "type": "string", + "title": "Modelname" + } + }, + "type": "object", + "required": [ + "providerType", + "providerId", + "modelName" + ], + "title": "CustomProviderModelSelection", + "description": "Chat against a stored custom provider record." + }, "DataUIPart": { "properties": { "type": { @@ -15437,11 +15397,30 @@ }, "type": "array", "title": "Messages" + }, + "model": { + "oneOf": [ + { + "$ref": "#/components/schemas/CustomProviderModelSelection" + }, + { + "$ref": "#/components/schemas/BuiltInProviderModelSelection" + } + ], + "title": "Model", + "discriminator": { + "propertyName": "providerType", + "mapping": { + "builtin": "#/components/schemas/BuiltInProviderModelSelection", + "custom": "#/components/schemas/CustomProviderModelSelection" + } + } } }, "type": "object", "required": [ - "messages" + "messages", + "model" ], "title": "_SummarizeRequest", "description": "Body for POST /agents/{agent_id}/sessions/{session_id}/summary.\n\nCarries the Vercel-style messages array; the backend owns the prompt and\nthe structured-output tool schema."