From 259edf484cfef03c3a0de215099f319c0e525fe8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 11 May 2026 19:56:26 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...entsAgentIdSessionsSessionIdChatPost.g.cs} | 160 ++-- .../Phoenix.ChatClient.ChatChatPost.g.cs | 509 ----------- ...tsAgentIdSessionsSessionIdSummaryPost.g.cs | 10 + ...entsAgentIdSessionsSessionIdChatPost.g.cs} | 26 +- .../Phoenix.IChatClient.ChatV2ChatV2Post.g.cs | 77 -- ...tsAgentIdSessionsSessionIdSummaryPost.g.cs | 8 + ...rters.AssistantMetadataUIMessageRole.g.cs} | 14 +- ...sistantMetadataUIMessageRoleNullable.g.cs} | 14 +- ...essionsSessionIdChatPostOpenaiApiType.g.cs | 53 ++ ...essionIdChatPostOpenaiApiTypeNullable.g.cs | 60 ++ ...essionsSessionIdChatPostProviderType.g.cs} | 14 +- ...essionIdChatPostProviderTypeNullable.g.cs} | 14 +- ...> Phoenix.JsonConverters.ChatContext.g.cs} | 22 +- ...verters.ChatContextDiscriminatorType.g.cs} | 14 +- ...ChatContextDiscriminatorTypeNullable.g.cs} | 14 +- ...> Phoenix.JsonConverters.ChatRequest.g.cs} | 36 +- ...ters.ChatRequestDiscriminatorTrigger.g.cs} | 14 +- ...tRequestDiscriminatorTriggerNullable.g.cs} | 14 +- ...ChatV2PostRequestDiscriminatorTrigger.g.cs | 53 -- ...stRequestDiscriminatorTriggerNullable.g.cs | 60 -- .../Phoenix.JsonConverters.ContextsItem.g.cs | 117 --- ...nerateMessageContextDiscriminatorType.g.cs | 53 -- ...ssageContextDiscriminatorTypeNullable.g.cs | 60 -- ...SubmitMessageContextDiscriminatorType.g.cs | 53 -- ...ssageContextDiscriminatorTypeNullable.g.cs | 60 -- .../Phoenix.JsonSerializerContext.g.cs | 148 ++- .../Phoenix.JsonSerializerContextTypes.g.cs | 844 +++++++++--------- ...Models.AssistantMessageMetadata.Json.g.cs} | 22 +- ...oenix.Models.AssistantMessageMetadata.g.cs | 63 ++ ...s.AssistantMessageMetadataTrace.Json.g.cs} | 22 +- ...Models.AssistantMessageMetadataTrace.g.cs} | 2 +- ...ssistantMessageMetadataTraceIds.Json.g.cs} | 22 +- ...dels.AssistantMessageMetadataTraceIds.g.cs | 55 ++ ...s.AssistantMessageMetadataUsage.Json.g.cs} | 22 +- ...Models.AssistantMessageMetadataUsage.g.cs} | 2 +- ...s.AssistantMessageMetadataUsage2.Json.g.cs | 92 ++ ...Models.AssistantMessageMetadataUsage2.g.cs | 54 ++ ...ssageMetadataUsagePromptDetails.Json.g.cs} | 22 +- ...tantMessageMetadataUsagePromptDetails.g.cs | 19 + ...MessageMetadataUsageTokenDetails.Json.g.cs | 92 ++ ...stantMessageMetadataUsageTokenDetails.g.cs | 55 ++ ...istantMessageMetadataUsageTokens.Json.g.cs | 92 ++ ...s.AssistantMessageMetadataUsageTokens.g.cs | 65 ++ ...dels.AssistantMetadataUIMessage.Json.g.cs} | 22 +- ...nix.Models.AssistantMetadataUIMessage.g.cs | 75 ++ ...sistantMetadataUIMessageMetadata.Json.g.cs | 92 ++ ...s.AssistantMetadataUIMessageMetadata.g.cs} | 2 +- ...odels.AssistantMetadataUIMessageRole.g.cs} | 26 +- ...ssionsSessionIdChatPostOpenaiApiType.g.cs} | 16 +- ...essionsSessionIdChatPostProvider.Json.g.cs | 92 ++ ...ntIdSessionsSessionIdChatPostProvider.g.cs | 19 + ...sionsSessionIdChatPostProviderId.Json.g.cs | 92 ++ ...IdSessionsSessionIdChatPostProviderId.g.cs | 19 + ...essionsSessionIdChatPostProviderType.g.cs} | 16 +- ...enix.Models.ChatChatPostOpenaiApiType.g.cs | 51 -- ...s => Phoenix.Models.ChatContext.Json.g.cs} | 22 +- ...2.g.cs => Phoenix.Models.ChatContext.g.cs} | 63 +- ...Models.ChatContextDiscriminator.Json.g.cs} | 22 +- ...enix.Models.ChatContextDiscriminator.g.cs} | 16 +- ....Models.ChatContextDiscriminatorType.g.cs} | 28 +- ...ix.Models.ChatRegenerateMessage.Json.g.cs} | 22 +- ...Phoenix.Models.ChatRegenerateMessage.g.cs} | 50 +- ...s.ChatRegenerateMessageMessageId.Json.g.cs | 92 ++ ...odels.ChatRegenerateMessageMessageId.g.cs} | 2 +- ...s => Phoenix.Models.ChatRequest.Json.g.cs} | 22 +- ...t.g.cs => Phoenix.Models.ChatRequest.g.cs} | 76 +- ...Models.ChatRequestDiscriminator.Json.g.cs} | 22 +- ...enix.Models.ChatRequestDiscriminator.g.cs} | 16 +- ...dels.ChatRequestDiscriminatorTrigger.g.cs} | 20 +- ...hoenix.Models.ChatSubmitMessage.Json.g.cs} | 22 +- ... => Phoenix.Models.ChatSubmitMessage.g.cs} | 50 +- ...nix.Models.ChatV2ChatV2PostProviderId.g.cs | 19 - ...oenix.Models.ChatV2ChatV2PostResponse.g.cs | 19 - .../Phoenix.Models.ContextsItem.g.cs | 562 ------------ .../Phoenix.Models.ContextsItem2.Json.g.cs | 92 -- ...erateMessageContextDiscriminator.Json.g.cs | 92 -- ...RegenerateMessageContextDiscriminator.g.cs | 45 - ...nerateMessageContextDiscriminatorType.g.cs | 69 -- ...nix.Models.RegenerateMessageMessageId.g.cs | 19 - ...ubmitMessageContextDiscriminator.Json.g.cs | 92 -- .../Phoenix.Models.SummarizeRequest.g.cs | 24 +- src/libs/Phoenix/openapi.json | 664 ++++++++------ 82 files changed, 2643 insertions(+), 3343 deletions(-) rename src/libs/Phoenix/Generated/{Phoenix.ChatClient.ChatV2ChatV2Post.g.cs => Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs} (81%) delete mode 100644 src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatChatPost.g.cs rename src/libs/Phoenix/Generated/{Phoenix.IChatClient.ChatChatPost.g.cs => Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs} (64%) delete mode 100644 src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatV2ChatV2Post.g.cs rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatChatPostOpenaiApiType.g.cs => Phoenix.JsonConverters.AssistantMetadataUIMessageRole.g.cs} (65%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeNullable.g.cs => Phoenix.JsonConverters.AssistantMetadataUIMessageRoleNullable.g.cs} (67%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullable.g.cs rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatChatPostProviderType.g.cs => Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs} (60%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatChatPostProviderTypeNullable.g.cs => Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullable.g.cs} (62%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ContextsItem2.g.cs => Phoenix.JsonConverters.ChatContext.g.cs} (87%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatV2ChatV2PostProviderType.g.cs => Phoenix.JsonConverters.ChatContextDiscriminatorType.g.cs} (70%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeNullable.g.cs => Phoenix.JsonConverters.ChatContextDiscriminatorTypeNullable.g.cs} (71%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatV2ChatV2PostRequest.g.cs => Phoenix.JsonConverters.ChatRequest.g.cs} (66%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiType.g.cs => Phoenix.JsonConverters.ChatRequestDiscriminatorTrigger.g.cs} (65%) rename src/libs/Phoenix/Generated/{Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeNullable.g.cs => Phoenix.JsonConverters.ChatRequestDiscriminatorTriggerNullable.g.cs} (67%) delete mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTrigger.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTriggerNullable.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.ContextsItem.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorType.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorTypeNullable.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.SubmitMessageContextDiscriminatorType.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.JsonConverters.SubmitMessageContextDiscriminatorTypeNullable.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostResponse.Json.g.cs => Phoenix.Models.AssistantMessageMetadata.Json.g.cs} (87%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadata.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostRequest.Json.g.cs => Phoenix.Models.AssistantMessageMetadataTrace.Json.g.cs} (85%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatChatPostProvider.g.cs => Phoenix.Models.AssistantMessageMetadataTrace.g.cs} (88%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostProviderId.Json.g.cs => Phoenix.Models.AssistantMessageMetadataTraceIds.Json.g.cs} (85%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTraceIds.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatChatPostProviderId.Json.g.cs => Phoenix.Models.AssistantMessageMetadataUsage.Json.g.cs} (85%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatChatPostProviderId.g.cs => Phoenix.Models.AssistantMessageMetadataUsage.g.cs} (88%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage2.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage2.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostRequestDiscriminator.Json.g.cs => Phoenix.Models.AssistantMessageMetadataUsagePromptDetails.Json.g.cs} (83%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsagePromptDetails.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokenDetails.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokenDetails.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokens.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokens.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.RegenerateMessageMessageId.Json.g.cs => Phoenix.Models.AssistantMetadataUIMessage.Json.g.cs} (86%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessage.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageMetadata.Json.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostProvider.g.cs => Phoenix.Models.AssistantMetadataUIMessageMetadata.g.cs} (87%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostRequestDiscriminatorTrigger.g.cs => Phoenix.Models.AssistantMetadataUIMessageRole.g.cs} (50%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostOpenaiApiType.g.cs => Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs} (52%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.Json.g.cs create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostProviderType.g.cs => Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs} (53%) delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostOpenaiApiType.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ContextsItem.Json.g.cs => Phoenix.Models.ChatContext.Json.g.cs} (88%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ContextsItem2.g.cs => Phoenix.Models.ChatContext.g.cs} (85%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostProvider.Json.g.cs => Phoenix.Models.ChatContextDiscriminator.Json.g.cs} (87%) rename src/libs/Phoenix/Generated/{Phoenix.Models.SubmitMessageContextDiscriminator.g.cs => Phoenix.Models.ChatContextDiscriminator.g.cs} (60%) rename src/libs/Phoenix/Generated/{Phoenix.Models.SubmitMessageContextDiscriminatorType.g.cs => Phoenix.Models.ChatContextDiscriminatorType.g.cs} (50%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatChatPostResponse.Json.g.cs => Phoenix.Models.ChatRegenerateMessage.Json.g.cs} (87%) rename src/libs/Phoenix/Generated/{Phoenix.Models.RegenerateMessage.g.cs => Phoenix.Models.ChatRegenerateMessage.g.cs} (73%) create mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageMessageId.Json.g.cs rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatChatPostResponse.g.cs => Phoenix.Models.ChatRegenerateMessageMessageId.g.cs} (88%) rename src/libs/Phoenix/Generated/{Phoenix.Models.SubmitMessage.Json.g.cs => Phoenix.Models.ChatRequest.Json.g.cs} (88%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostRequest.g.cs => Phoenix.Models.ChatRequest.g.cs} (65%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatChatPostProvider.Json.g.cs => Phoenix.Models.ChatRequestDiscriminator.Json.g.cs} (86%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatV2ChatV2PostRequestDiscriminator.g.cs => Phoenix.Models.ChatRequestDiscriminator.g.cs} (59%) rename src/libs/Phoenix/Generated/{Phoenix.Models.ChatChatPostProviderType.g.cs => Phoenix.Models.ChatRequestDiscriminatorTrigger.g.cs} (54%) rename src/libs/Phoenix/Generated/{Phoenix.Models.RegenerateMessage.Json.g.cs => Phoenix.Models.ChatSubmitMessage.Json.g.cs} (87%) rename src/libs/Phoenix/Generated/{Phoenix.Models.SubmitMessage.g.cs => Phoenix.Models.ChatSubmitMessage.g.cs} (71%) delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostResponse.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem2.Json.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminator.Json.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminator.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminatorType.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageMessageId.g.cs delete mode 100644 src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessageContextDiscriminator.Json.g.cs diff --git a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatV2ChatV2Post.g.cs b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs similarity index 81% rename from src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatV2ChatV2Post.g.cs rename to src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs index 2f642fb..f43260d 100644 --- a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatV2ChatV2Post.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs @@ -7,7 +7,7 @@ public partial class ChatClient { - private static readonly global::Phoenix.EndPointSecurityRequirement s_ChatV2ChatV2PostSecurityRequirement0 = + private static readonly global::Phoenix.EndPointSecurityRequirement s_ChatAgentsAgentIdSessionsSessionIdChatPostSecurityRequirement0 = new global::Phoenix.EndPointSecurityRequirement { Authorizations = new global::Phoenix.EndPointAuthorizationRequirement[] @@ -21,39 +21,45 @@ public partial class ChatClient }, }, }; - private static readonly global::Phoenix.EndPointSecurityRequirement[] s_ChatV2ChatV2PostSecurityRequirements = + private static readonly global::Phoenix.EndPointSecurityRequirement[] s_ChatAgentsAgentIdSessionsSessionIdChatPostSecurityRequirements = new global::Phoenix.EndPointSecurityRequirement[] - { s_ChatV2ChatV2PostSecurityRequirement0, + { s_ChatAgentsAgentIdSessionsSessionIdChatPostSecurityRequirement0, }; - partial void PrepareChatV2ChatV2PostArguments( + partial void PrepareChatAgentsAgentIdSessionsSessionIdChatPostArguments( global::System.Net.Http.HttpClient httpClient, - ref global::Phoenix.ChatV2ChatV2PostProviderType providerType, + ref string agentId, + ref string sessionId, + ref global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, ref string modelName, ref string? providerId, global::Phoenix.ModelProvider? provider, - ref global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType, - global::Phoenix.ChatV2ChatV2PostRequest request); - partial void PrepareChatV2ChatV2PostRequest( + ref global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType, + global::Phoenix.ChatRequest request); + partial void PrepareChatAgentsAgentIdSessionsSessionIdChatPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Phoenix.ChatV2ChatV2PostProviderType providerType, + string agentId, + string sessionId, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, string modelName, string? providerId, global::Phoenix.ModelProvider? provider, - global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType, - global::Phoenix.ChatV2ChatV2PostRequest request); - partial void ProcessChatV2ChatV2PostResponse( + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType, + global::Phoenix.ChatRequest request); + partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessChatV2ChatV2PostResponseContent( + partial void ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); /// - /// Chat V2 + /// Chat /// + /// + /// /// /// /// @@ -65,18 +71,22 @@ partial void ProcessChatV2ChatV2PostResponseContent( /// 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 ChatV2ChatV2PostAsync( - global::Phoenix.ChatV2ChatV2PostProviderType providerType, + public async global::System.Threading.Tasks.Task ChatAgentsAgentIdSessionsSessionIdChatPostAsync( + string agentId, + string sessionId, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, string modelName, - global::Phoenix.ChatV2ChatV2PostRequest request, + global::Phoenix.ChatRequest request, string? providerId = default, global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType = default, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ChatV2ChatV2PostAsResponseAsync( + var __response = await ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync( + agentId: agentId, + sessionId: sessionId, providerType: providerType, modelName: modelName, @@ -91,8 +101,10 @@ partial void ProcessChatV2ChatV2PostResponseContent( return __response.Body; } /// - /// Chat V2 + /// Chat /// + /// + /// /// /// /// @@ -104,21 +116,25 @@ partial void ProcessChatV2ChatV2PostResponseContent( /// 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> ChatV2ChatV2PostAsResponseAsync( - global::Phoenix.ChatV2ChatV2PostProviderType providerType, + public async global::System.Threading.Tasks.Task> ChatAgentsAgentIdSessionsSessionIdChatPostAsResponseAsync( + string agentId, + string sessionId, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType providerType, string modelName, - global::Phoenix.ChatV2ChatV2PostRequest request, + global::Phoenix.ChatRequest request, string? providerId = default, global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType = default, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareChatV2ChatV2PostArguments( + PrepareChatAgentsAgentIdSessionsSessionIdChatPostArguments( httpClient: HttpClient, + agentId: ref agentId, + sessionId: ref sessionId, providerType: ref providerType, modelName: ref modelName, providerId: ref providerId, @@ -129,8 +145,8 @@ partial void ProcessChatV2ChatV2PostResponseContent( var __authorizations = global::Phoenix.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ChatV2ChatV2PostSecurityRequirements, - operationName: "ChatV2ChatV2PostAsync"); + securityRequirements: s_ChatAgentsAgentIdSessionsSessionIdChatPostSecurityRequirements, + operationName: "ChatAgentsAgentIdSessionsSessionIdChatPostAsync"); using var __timeoutCancellationTokenSource = global::Phoenix.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -150,7 +166,7 @@ partial void ProcessChatV2ChatV2PostResponseContent( { var __pathBuilder = new global::Phoenix.PathBuilder( - path: "/chat-v2", + path: $"/agents/{agentId}/sessions/{sessionId}/chat", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("provider_type", providerType.ToValueString()) @@ -202,9 +218,11 @@ partial void ProcessChatV2ChatV2PostResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareChatV2ChatV2PostRequest( + PrepareChatAgentsAgentIdSessionsSessionIdChatPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + agentId: agentId!, + sessionId: sessionId!, providerType: providerType!, modelName: modelName!, providerId: providerId, @@ -227,9 +245,9 @@ partial void ProcessChatV2ChatV2PostResponseContent( await global::Phoenix.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatV2ChatV2Post", - methodName: "ChatV2ChatV2PostAsync", - pathTemplate: "\"/chat-v2\"", + operationId: "ChatAgentsAgentIdSessionsSessionIdChatPost", + methodName: "ChatAgentsAgentIdSessionsSessionIdChatPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/chat\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -261,9 +279,9 @@ partial void ProcessChatV2ChatV2PostResponseContent( await global::Phoenix.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatV2ChatV2Post", - methodName: "ChatV2ChatV2PostAsync", - pathTemplate: "\"/chat-v2\"", + operationId: "ChatAgentsAgentIdSessionsSessionIdChatPost", + methodName: "ChatAgentsAgentIdSessionsSessionIdChatPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/chat\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -302,9 +320,9 @@ partial void ProcessChatV2ChatV2PostResponseContent( await global::Phoenix.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatV2ChatV2Post", - methodName: "ChatV2ChatV2PostAsync", - pathTemplate: "\"/chat-v2\"", + operationId: "ChatAgentsAgentIdSessionsSessionIdChatPost", + methodName: "ChatAgentsAgentIdSessionsSessionIdChatPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/chat\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -342,7 +360,7 @@ partial void ProcessChatV2ChatV2PostResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessChatV2ChatV2PostResponse( + ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -350,9 +368,9 @@ partial void ProcessChatV2ChatV2PostResponseContent( await global::Phoenix.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatV2ChatV2Post", - methodName: "ChatV2ChatV2PostAsync", - pathTemplate: "\"/chat-v2\"", + operationId: "ChatAgentsAgentIdSessionsSessionIdChatPost", + methodName: "ChatAgentsAgentIdSessionsSessionIdChatPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/chat\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -372,9 +390,9 @@ partial void ProcessChatV2ChatV2PostResponseContent( await global::Phoenix.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatV2ChatV2Post", - methodName: "ChatV2ChatV2PostAsync", - pathTemplate: "\"/chat-v2\"", + operationId: "ChatAgentsAgentIdSessionsSessionIdChatPost", + methodName: "ChatAgentsAgentIdSessionsSessionIdChatPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/chat\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest!, @@ -440,7 +458,7 @@ partial void ProcessChatV2ChatV2PostResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessChatV2ChatV2PostResponseContent( + ProcessChatAgentsAgentIdSessionsSessionIdChatPostResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -449,11 +467,13 @@ partial void ProcessChatV2ChatV2PostResponseContent( { __response.EnsureSuccessStatusCode(); - return new global::Phoenix.AutoSDKHttpResponse( + var __value = global::Phoenix.AssistantMessageMetadata.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Phoenix.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Phoenix.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, - body: __content); + body: __value); } catch (global::System.Exception __ex) { @@ -475,17 +495,19 @@ partial void ProcessChatV2ChatV2PostResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( + using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER __effectiveCancellationToken #endif ).ConfigureAwait(false); - return new global::Phoenix.AutoSDKHttpResponse( + var __value = await global::Phoenix.AssistantMessageMetadata.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Phoenix.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Phoenix.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, - body: __content); + body: __value); } catch (global::System.Exception __ex) { @@ -523,41 +545,5 @@ partial void ProcessChatV2ChatV2PostResponseContent( __httpRequest?.Dispose(); } } - /// - /// Chat V2 - /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// - /// 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 ChatV2ChatV2PostAsync( - global::Phoenix.ChatV2ChatV2PostProviderType providerType, - string modelName, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType = default, - global::Phoenix.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Phoenix.ChatV2ChatV2PostRequest - { - }; - - return await ChatV2ChatV2PostAsync( - providerType: providerType, - modelName: modelName, - providerId: providerId, - provider: provider, - openaiApiType: openaiApiType, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } } } \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatChatPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatChatPost.g.cs deleted file mode 100644 index cc486e9..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatChatPost.g.cs +++ /dev/null @@ -1,509 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - public partial class ChatClient - { - - - private static readonly global::Phoenix.EndPointSecurityRequirement s_ChatChatPostSecurityRequirement0 = - new global::Phoenix.EndPointSecurityRequirement - { - Authorizations = new global::Phoenix.EndPointAuthorizationRequirement[] - { new global::Phoenix.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "HttpBearer", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - private static readonly global::Phoenix.EndPointSecurityRequirement[] s_ChatChatPostSecurityRequirements = - new global::Phoenix.EndPointSecurityRequirement[] - { s_ChatChatPostSecurityRequirement0, - }; - partial void PrepareChatChatPostArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::Phoenix.ChatChatPostProviderType providerType, - ref string modelName, - ref string? providerId, - global::Phoenix.ModelProvider? provider, - ref global::Phoenix.ChatChatPostOpenaiApiType? openaiApiType); - partial void PrepareChatChatPostRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Phoenix.ChatChatPostProviderType providerType, - string modelName, - string? providerId, - global::Phoenix.ModelProvider? provider, - global::Phoenix.ChatChatPostOpenaiApiType? openaiApiType); - partial void ProcessChatChatPostResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessChatChatPostResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Chat - /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// - /// 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 ChatChatPostAsync( - global::Phoenix.ChatChatPostProviderType providerType, - string modelName, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatChatPostOpenaiApiType? openaiApiType = default, - global::Phoenix.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await ChatChatPostAsResponseAsync( - providerType: providerType, - modelName: modelName, - providerId: providerId, - provider: provider, - openaiApiType: openaiApiType, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Chat - /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// - /// 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> ChatChatPostAsResponseAsync( - global::Phoenix.ChatChatPostProviderType providerType, - string modelName, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatChatPostOpenaiApiType? openaiApiType = default, - global::Phoenix.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareChatChatPostArguments( - httpClient: HttpClient, - providerType: ref providerType, - modelName: ref modelName, - providerId: ref providerId, - provider: provider, - openaiApiType: ref openaiApiType); - - - var __authorizations = global::Phoenix.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_ChatChatPostSecurityRequirements, - operationName: "ChatChatPostAsync"); - - using var __timeoutCancellationTokenSource = global::Phoenix.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Phoenix.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Phoenix.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Phoenix.PathBuilder( - path: "/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, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Phoenix.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareChatChatPostRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - providerType: providerType!, - modelName: modelName!, - providerId: providerId, - provider: provider, - openaiApiType: openaiApiType); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Phoenix.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatChatPost", - methodName: "ChatChatPostAsync", - pathTemplate: "\"/chat\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Phoenix.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Phoenix.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatChatPost", - methodName: "ChatChatPostAsync", - pathTemplate: "\"/chat\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Phoenix.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Phoenix.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Phoenix.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Phoenix.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatChatPost", - methodName: "ChatChatPostAsync", - pathTemplate: "\"/chat\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Phoenix.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessChatChatPostResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Phoenix.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatChatPost", - methodName: "ChatChatPostAsync", - pathTemplate: "\"/chat\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Phoenix.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ChatChatPost", - methodName: "ChatChatPostAsync", - pathTemplate: "\"/chat\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // Validation Error - if ((int)__response.StatusCode == 422) - { - string? __content_422 = null; - global::System.Exception? __exception_422 = null; - global::Phoenix.HTTPValidationError? __value_422 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Phoenix.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); - } - else - { - __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_422 = global::Phoenix.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_422 = __ex; - } - - throw new global::Phoenix.ApiException( - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_422, - statusCode: __response.StatusCode) - { - ResponseBody = __content_422, - ResponseObject = __value_422, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessChatChatPostResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return new global::Phoenix.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Phoenix.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - catch (global::System.Exception __ex) - { - throw new global::Phoenix.ApiException( - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - return new global::Phoenix.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Phoenix.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __content); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw new global::Phoenix.ApiException( - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs index 81dd4db..eeea6bd 100644 --- a/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs @@ -559,6 +559,12 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe /// /// Default Value: responses /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -572,11 +578,15 @@ partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRe string? providerId = default, global::Phoenix.ModelProvider? provider = default, global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + bool? ingestTraces = default, + bool? exportRemoteTraces = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Phoenix.SummarizeRequest { + IngestTraces = ingestTraces, + ExportRemoteTraces = exportRemoteTraces, Messages = messages, }; diff --git a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatChatPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs similarity index 64% rename from src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatChatPost.g.cs rename to src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs index 38a3b0b..2d95ab1 100644 --- a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatChatPost.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatAgentsAgentIdSessionsSessionIdChatPost.g.cs @@ -7,6 +7,8 @@ public partial interface IChatClient /// /// Chat /// + /// + /// /// /// /// @@ -14,20 +16,27 @@ 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 /// - global::System.Threading.Tasks.Task ChatChatPostAsync( - global::Phoenix.ChatChatPostProviderType providerType, + 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.ChatChatPostOpenaiApiType? openaiApiType = default, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? openaiApiType = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Chat /// + /// + /// /// /// /// @@ -35,15 +44,20 @@ 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 /// - global::System.Threading.Tasks.Task> ChatChatPostAsResponseAsync( - global::Phoenix.ChatChatPostProviderType providerType, + 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.ChatChatPostOpenaiApiType? openaiApiType = 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.ChatV2ChatV2Post.g.cs b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatV2ChatV2Post.g.cs deleted file mode 100644 index c3b9a88..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatV2ChatV2Post.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -#nullable enable - -namespace Phoenix -{ - public partial interface IChatClient - { - /// - /// Chat V2 - /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// - /// - /// 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 ChatV2ChatV2PostAsync( - global::Phoenix.ChatV2ChatV2PostProviderType providerType, - string modelName, - - global::Phoenix.ChatV2ChatV2PostRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType = default, - global::Phoenix.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Chat V2 - /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// - /// - /// 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> ChatV2ChatV2PostAsResponseAsync( - global::Phoenix.ChatV2ChatV2PostProviderType providerType, - string modelName, - - global::Phoenix.ChatV2ChatV2PostRequest request, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType = default, - global::Phoenix.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Chat V2 - /// - /// - /// - /// - /// - /// - /// Default Value: responses - /// - /// 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 ChatV2ChatV2PostAsync( - global::Phoenix.ChatV2ChatV2PostProviderType providerType, - string modelName, - string? providerId = default, - global::Phoenix.ModelProvider? provider = default, - global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType = default, - global::Phoenix.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs index e2811e3..619d845 100644 --- a/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs @@ -72,6 +72,12 @@ public partial interface IChatClient /// /// Default Value: responses /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -85,6 +91,8 @@ public partial interface IChatClient string? providerId = default, global::Phoenix.ModelProvider? provider = default, global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + bool? ingestTraces = default, + bool? exportRemoteTraces = default, global::Phoenix.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.AssistantMetadataUIMessageRole.g.cs similarity index 65% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.AssistantMetadataUIMessageRole.g.cs index 129a2a2..990e99f 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.AssistantMetadataUIMessageRole.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatChatPostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AssistantMetadataUIMessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatChatPostOpenaiApiType Read( + public override global::Phoenix.AssistantMetadataUIMessageRole 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 ChatChatPostOpenaiApiTypeJsonConverter : global::System.Text var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatChatPostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.AssistantMetadataUIMessageRoleExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatChatPostOpenaiApiTypeJsonConverter : global::System.Text case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatChatPostOpenaiApiType)numValue; + return (global::Phoenix.AssistantMetadataUIMessageRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatChatPostOpenaiApiType); + return default(global::Phoenix.AssistantMetadataUIMessageRole); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatChatPostOpenaiApiTypeJsonConverter : global::System.Text /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatChatPostOpenaiApiType value, + global::Phoenix.AssistantMetadataUIMessageRole value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.ChatChatPostOpenaiApiTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.AssistantMetadataUIMessageRoleExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.AssistantMetadataUIMessageRoleNullable.g.cs similarity index 67% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.AssistantMetadataUIMessageRoleNullable.g.cs index becee01..105f33b 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.AssistantMetadataUIMessageRoleNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AssistantMetadataUIMessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatV2ChatV2PostOpenaiApiType? Read( + public override global::Phoenix.AssistantMetadataUIMessageRole? 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 ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToEnum(stringValue); + return global::Phoenix.AssistantMetadataUIMessageRoleExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatV2ChatV2PostOpenaiApiType)numValue; + return (global::Phoenix.AssistantMetadataUIMessageRole)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatV2ChatV2PostOpenaiApiType?); + return default(global::Phoenix.AssistantMetadataUIMessageRole?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostOpenaiApiType? value, + global::Phoenix.AssistantMetadataUIMessageRole? 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.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.AssistantMetadataUIMessageRoleExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs new file mode 100644 index 0000000..ba87e47 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullable.g.cs new file mode 100644 index 0000000..5c27ea7 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs similarity index 60% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs index 3dcdf67..703775d 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatChatPostProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatChatPostProviderType Read( + public override global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType 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 ChatChatPostProviderTypeJsonConverter : global::System.Text. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatChatPostProviderTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatChatPostProviderTypeJsonConverter : global::System.Text. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatChatPostProviderType)numValue; + return (global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatChatPostProviderType); + return default(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatChatPostProviderTypeJsonConverter : global::System.Text. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatChatPostProviderType value, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.ChatChatPostProviderTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullable.g.cs similarity index 62% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullable.g.cs index 4dcd59c..0a512b8 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatChatPostProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatChatPostProviderType? Read( + public override global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType? 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 ChatChatPostProviderTypeNullableJsonConverter : global::Syst var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatChatPostProviderTypeExtensions.ToEnum(stringValue); + return global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatChatPostProviderTypeNullableJsonConverter : global::Syst case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatChatPostProviderType)numValue; + return (global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatChatPostProviderType?); + return default(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatChatPostProviderTypeNullableJsonConverter : global::Syst /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatChatPostProviderType? value, + global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType? 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.ChatChatPostProviderTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ContextsItem2.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContext.g.cs similarity index 87% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ContextsItem2.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContext.g.cs index 5c6bfbc..d454152 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ContextsItem2.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContext.g.cs @@ -4,10 +4,10 @@ namespace Phoenix.JsonConverters { /// - public class ContextsItem2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class ChatContextJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ContextsItem2 Read( + public override global::Phoenix.ChatContext Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -17,47 +17,47 @@ public class ContextsItem2JsonConverter : global::System.Text.Json.Serialization var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.SubmitMessageContextDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.SubmitMessageContextDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ChatContextDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ChatContextDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); global::Phoenix.AppContext? app = default; - if (discriminator?.Type == global::Phoenix.SubmitMessageContextDiscriminatorType.App) + if (discriminator?.Type == global::Phoenix.ChatContextDiscriminatorType.App) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.AppContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.AppContext)}"); app = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::Phoenix.ProjectContext? project = default; - if (discriminator?.Type == global::Phoenix.SubmitMessageContextDiscriminatorType.Project) + if (discriminator?.Type == global::Phoenix.ChatContextDiscriminatorType.Project) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ProjectContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ProjectContext)}"); project = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::Phoenix.TraceContext? trace = default; - if (discriminator?.Type == global::Phoenix.SubmitMessageContextDiscriminatorType.Trace) + if (discriminator?.Type == global::Phoenix.ChatContextDiscriminatorType.Trace) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.TraceContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.TraceContext)}"); trace = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::Phoenix.AgentSpanContext? span = default; - if (discriminator?.Type == global::Phoenix.SubmitMessageContextDiscriminatorType.Span) + if (discriminator?.Type == global::Phoenix.ChatContextDiscriminatorType.Span) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.AgentSpanContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.AgentSpanContext)}"); span = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } global::Phoenix.PlaygroundContext? playground = default; - if (discriminator?.Type == global::Phoenix.SubmitMessageContextDiscriminatorType.Playground) + if (discriminator?.Type == global::Phoenix.ChatContextDiscriminatorType.Playground) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.PlaygroundContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.PlaygroundContext)}"); playground = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - var __value = new global::Phoenix.ContextsItem2( + var __value = new global::Phoenix.ChatContext( discriminator?.Type, app, @@ -76,7 +76,7 @@ public class ContextsItem2JsonConverter : global::System.Text.Json.Serialization /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ContextsItem2 value, + global::Phoenix.ChatContext value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContextDiscriminatorType.g.cs similarity index 70% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContextDiscriminatorType.g.cs index 68c2c49..907b275 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContextDiscriminatorType.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatV2ChatV2PostProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatContextDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatV2ChatV2PostProviderType Read( + public override global::Phoenix.ChatContextDiscriminatorType 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 ChatV2ChatV2PostProviderTypeJsonConverter : global::System.T var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatV2ChatV2PostProviderTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.ChatContextDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatV2ChatV2PostProviderTypeJsonConverter : global::System.T case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatV2ChatV2PostProviderType)numValue; + return (global::Phoenix.ChatContextDiscriminatorType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatV2ChatV2PostProviderType); + return default(global::Phoenix.ChatContextDiscriminatorType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatV2ChatV2PostProviderTypeJsonConverter : global::System.T /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostProviderType value, + global::Phoenix.ChatContextDiscriminatorType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.ChatV2ChatV2PostProviderTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.ChatContextDiscriminatorTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContextDiscriminatorTypeNullable.g.cs similarity index 71% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContextDiscriminatorTypeNullable.g.cs index 4cd1628..100f63a 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatContextDiscriminatorTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatV2ChatV2PostProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatContextDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatV2ChatV2PostProviderType? Read( + public override global::Phoenix.ChatContextDiscriminatorType? 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 ChatV2ChatV2PostProviderTypeNullableJsonConverter : global:: var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatV2ChatV2PostProviderTypeExtensions.ToEnum(stringValue); + return global::Phoenix.ChatContextDiscriminatorTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatV2ChatV2PostProviderTypeNullableJsonConverter : global:: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatV2ChatV2PostProviderType)numValue; + return (global::Phoenix.ChatContextDiscriminatorType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatV2ChatV2PostProviderType?); + return default(global::Phoenix.ChatContextDiscriminatorType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatV2ChatV2PostProviderTypeNullableJsonConverter : global:: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostProviderType? value, + global::Phoenix.ChatContextDiscriminatorType? 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.ChatV2ChatV2PostProviderTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.ChatContextDiscriminatorTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequest.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRequest.g.cs similarity index 66% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequest.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRequest.g.cs index af95471..898f8d2 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequest.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRequest.g.cs @@ -4,10 +4,10 @@ namespace Phoenix.JsonConverters { /// - public class ChatV2ChatV2PostRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class ChatRequestJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatV2ChatV2PostRequest Read( + public override global::Phoenix.ChatRequest Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -17,26 +17,26 @@ public class ChatV2ChatV2PostRequestJsonConverter : global::System.Text.Json.Ser var readerCopy = reader; - var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ChatV2ChatV2PostRequestDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ChatV2ChatV2PostRequestDiscriminator)}"); + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ChatRequestDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ChatRequestDiscriminator)}"); var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - global::Phoenix.SubmitMessage? submitMessage = default; - if (discriminator?.Trigger == global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger.SubmitMessage) + global::Phoenix.ChatSubmitMessage? submitMessage = default; + if (discriminator?.Trigger == global::Phoenix.ChatRequestDiscriminatorTrigger.SubmitMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.SubmitMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.SubmitMessage)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ChatSubmitMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ChatSubmitMessage)}"); submitMessage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - global::Phoenix.RegenerateMessage? regenerateMessage = default; - if (discriminator?.Trigger == global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger.RegenerateMessage) + global::Phoenix.ChatRegenerateMessage? regenerateMessage = default; + if (discriminator?.Trigger == global::Phoenix.ChatRequestDiscriminatorTrigger.RegenerateMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.RegenerateMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.RegenerateMessage)}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ChatRegenerateMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ChatRegenerateMessage)}"); regenerateMessage = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } - var __value = new global::Phoenix.ChatV2ChatV2PostRequest( + var __value = new global::Phoenix.ChatRequest( discriminator?.Trigger, submitMessage, @@ -49,7 +49,7 @@ public class ChatV2ChatV2PostRequestJsonConverter : global::System.Text.Json.Ser /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostRequest value, + global::Phoenix.ChatRequest value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); @@ -57,14 +57,14 @@ public override void Write( if (value.IsSubmitMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.SubmitMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.SubmitMessage).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ChatSubmitMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.ChatSubmitMessage).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.SubmitMessage!, typeInfo); } else if (value.IsRegenerateMessage) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.RegenerateMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.RegenerateMessage).Name}"); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ChatRegenerateMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.ChatRegenerateMessage).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.RegenerateMessage!, typeInfo); } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRequestDiscriminatorTrigger.g.cs similarity index 65% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRequestDiscriminatorTrigger.g.cs index 7f0e57a..d1f3f3f 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRequestDiscriminatorTrigger.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatV2ChatV2PostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatRequestDiscriminatorTriggerJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatV2ChatV2PostOpenaiApiType Read( + public override global::Phoenix.ChatRequestDiscriminatorTrigger 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 ChatV2ChatV2PostOpenaiApiTypeJsonConverter : global::System. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.ChatRequestDiscriminatorTriggerExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatV2ChatV2PostOpenaiApiTypeJsonConverter : global::System. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatV2ChatV2PostOpenaiApiType)numValue; + return (global::Phoenix.ChatRequestDiscriminatorTrigger)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatV2ChatV2PostOpenaiApiType); + return default(global::Phoenix.ChatRequestDiscriminatorTrigger); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatV2ChatV2PostOpenaiApiTypeJsonConverter : global::System. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostOpenaiApiType value, + global::Phoenix.ChatRequestDiscriminatorTrigger value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.ChatRequestDiscriminatorTriggerExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRequestDiscriminatorTriggerNullable.g.cs similarity index 67% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRequestDiscriminatorTriggerNullable.g.cs index 7021839..29ace6f 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatRequestDiscriminatorTriggerNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatChatPostOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatRequestDiscriminatorTriggerNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatChatPostOpenaiApiType? Read( + public override global::Phoenix.ChatRequestDiscriminatorTrigger? 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 ChatChatPostOpenaiApiTypeNullableJsonConverter : global::Sys var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatChatPostOpenaiApiTypeExtensions.ToEnum(stringValue); + return global::Phoenix.ChatRequestDiscriminatorTriggerExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatChatPostOpenaiApiTypeNullableJsonConverter : global::Sys case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatChatPostOpenaiApiType)numValue; + return (global::Phoenix.ChatRequestDiscriminatorTrigger)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatChatPostOpenaiApiType?); + return default(global::Phoenix.ChatRequestDiscriminatorTrigger?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatChatPostOpenaiApiTypeNullableJsonConverter : global::Sys /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatChatPostOpenaiApiType? value, + global::Phoenix.ChatRequestDiscriminatorTrigger? 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.ChatChatPostOpenaiApiTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.ChatRequestDiscriminatorTriggerExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTrigger.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTrigger.g.cs deleted file mode 100644 index 2a8b11d..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTrigger.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Phoenix.JsonConverters -{ - /// - public sealed class ChatV2ChatV2PostRequestDiscriminatorTriggerJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTriggerExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTriggerExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTriggerNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTriggerNullable.g.cs deleted file mode 100644 index a53a4c5..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTriggerNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Phoenix.JsonConverters -{ - /// - public sealed class ChatV2ChatV2PostRequestDiscriminatorTriggerNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTriggerExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTriggerExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ContextsItem.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ContextsItem.g.cs deleted file mode 100644 index f112b24..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ContextsItem.g.cs +++ /dev/null @@ -1,117 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Phoenix.JsonConverters -{ - /// - public class ContextsItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Phoenix.ContextsItem 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.RegenerateMessageContextDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.RegenerateMessageContextDiscriminator)}"); - var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - - global::Phoenix.AppContext? app = default; - if (discriminator?.Type == global::Phoenix.RegenerateMessageContextDiscriminatorType.App) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.AppContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.AppContext)}"); - app = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Phoenix.ProjectContext? project = default; - if (discriminator?.Type == global::Phoenix.RegenerateMessageContextDiscriminatorType.Project) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ProjectContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ProjectContext)}"); - project = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Phoenix.TraceContext? trace = default; - if (discriminator?.Type == global::Phoenix.RegenerateMessageContextDiscriminatorType.Trace) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.TraceContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.TraceContext)}"); - trace = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Phoenix.AgentSpanContext? span = default; - if (discriminator?.Type == global::Phoenix.RegenerateMessageContextDiscriminatorType.Span) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.AgentSpanContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.AgentSpanContext)}"); - span = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Phoenix.PlaygroundContext? playground = default; - if (discriminator?.Type == global::Phoenix.RegenerateMessageContextDiscriminatorType.Playground) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.PlaygroundContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.PlaygroundContext)}"); - playground = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - - var __value = new global::Phoenix.ContextsItem( - discriminator?.Type, - app, - - project, - - trace, - - span, - - playground - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ContextsItem 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.IsApp) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.AppContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.AppContext).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.App!, typeInfo); - } - else if (value.IsProject) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.ProjectContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.ProjectContext).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Project!, typeInfo); - } - else if (value.IsTrace) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.TraceContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.TraceContext).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Trace!, typeInfo); - } - else if (value.IsSpan) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.AgentSpanContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.AgentSpanContext).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Span!, typeInfo); - } - else if (value.IsPlayground) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.PlaygroundContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.PlaygroundContext).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playground!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorType.g.cs deleted file mode 100644 index a8ac740..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Phoenix.JsonConverters -{ - /// - public sealed class RegenerateMessageContextDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Phoenix.RegenerateMessageContextDiscriminatorType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Phoenix.RegenerateMessageContextDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Phoenix.RegenerateMessageContextDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Phoenix.RegenerateMessageContextDiscriminatorType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.RegenerateMessageContextDiscriminatorType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Phoenix.RegenerateMessageContextDiscriminatorTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorTypeNullable.g.cs deleted file mode 100644 index 8bf9c67..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Phoenix.JsonConverters -{ - /// - public sealed class RegenerateMessageContextDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Phoenix.RegenerateMessageContextDiscriminatorType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Phoenix.RegenerateMessageContextDiscriminatorTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Phoenix.RegenerateMessageContextDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Phoenix.RegenerateMessageContextDiscriminatorType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.RegenerateMessageContextDiscriminatorType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Phoenix.RegenerateMessageContextDiscriminatorTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SubmitMessageContextDiscriminatorType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SubmitMessageContextDiscriminatorType.g.cs deleted file mode 100644 index cb6751b..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SubmitMessageContextDiscriminatorType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Phoenix.JsonConverters -{ - /// - public sealed class SubmitMessageContextDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Phoenix.SubmitMessageContextDiscriminatorType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Phoenix.SubmitMessageContextDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Phoenix.SubmitMessageContextDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Phoenix.SubmitMessageContextDiscriminatorType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.SubmitMessageContextDiscriminatorType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Phoenix.SubmitMessageContextDiscriminatorTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SubmitMessageContextDiscriminatorTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SubmitMessageContextDiscriminatorTypeNullable.g.cs deleted file mode 100644 index 8999ac3..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SubmitMessageContextDiscriminatorTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Phoenix.JsonConverters -{ - /// - public sealed class SubmitMessageContextDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Phoenix.SubmitMessageContextDiscriminatorType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Phoenix.SubmitMessageContextDiscriminatorTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Phoenix.SubmitMessageContextDiscriminatorType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Phoenix.SubmitMessageContextDiscriminatorType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.SubmitMessageContextDiscriminatorType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Phoenix.SubmitMessageContextDiscriminatorTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs index 3c8a697..f3d40dd 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs @@ -13,6 +13,18 @@ namespace Phoenix DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { + typeof(global::Phoenix.JsonConverters.AssistantMetadataUIMessageRoleJsonConverter), + + typeof(global::Phoenix.JsonConverters.AssistantMetadataUIMessageRoleNullableJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatContextDiscriminatorTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatContextDiscriminatorTypeNullableJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatRequestDiscriminatorTriggerJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatRequestDiscriminatorTriggerNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.CreateAnnotationConfigDataDiscriminatorTypeJsonConverter), typeof(global::Phoenix.JsonConverters.CreateAnnotationConfigDataDiscriminatorTypeNullableJsonConverter), @@ -265,14 +277,6 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.UpsertExperimentEvaluationRequestBodyAnnotatorKindNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorTypeNullableJsonConverter), - - typeof(global::Phoenix.JsonConverters.SubmitMessageContextDiscriminatorTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.SubmitMessageContextDiscriminatorTypeNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.UploadDatasetRequestActionJsonConverter), typeof(global::Phoenix.JsonConverters.UploadDatasetRequestActionNullableJsonConverter), @@ -281,10 +285,6 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.UploadDatasetRequestAction2NullableJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTriggerJsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTriggerNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.DeleteSpanAnnotationsAnnotatorKind2JsonConverter), typeof(global::Phoenix.JsonConverters.DeleteSpanAnnotationsAnnotatorKind2NullableJsonConverter), @@ -309,21 +309,13 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.ListProjectSessionsOrderNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatChatPostProviderTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatChatPostProviderTypeNullableJsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeNullableJsonConverter), typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeJsonConverter), @@ -333,6 +325,10 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatContextJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatRequestJsonConverter), + typeof(global::Phoenix.JsonConverters.CreateAnnotationConfigDataJsonConverter), typeof(global::Phoenix.JsonConverters.DataJsonConverter), @@ -373,11 +369,7 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.Data6JsonConverter), - typeof(global::Phoenix.JsonConverters.ContextsItemJsonConverter), - - typeof(global::Phoenix.JsonConverters.ContextsItem2JsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostRequestJsonConverter), + typeof(global::Phoenix.JsonConverters.AnyOfJsonConverter), typeof(global::Phoenix.JsonConverters.AnyOfJsonConverter), @@ -469,11 +461,55 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AnonymousUser))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AppContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AssistantMessageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AssistantMessageMetadataTraceIds))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AssistantMessageMetadataUsage2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AssistantMessageMetadataUsageTokens))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AssistantMessageMetadataUsageTokenDetails))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AssistantMetadataUIMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AssistantMetadataUIMessageRole), TypeInfoPropertyName = "AssistantMetadataUIMessageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "StepStartUIPart_ed9b3d00af27a569")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AnyOf), TypeInfoPropertyName = "StepStartUIPart_ee2f9588200af449")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TextUIPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ReasoningUIPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolInputStreamingPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolInputAvailablePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolOutputAvailablePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolOutputErrorPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolApprovalRequestedPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolApprovalRespondedPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolOutputDeniedPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolInputStreamingPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolInputAvailablePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolOutputAvailablePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolOutputErrorPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolApprovalRequestedPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolApprovalRespondedPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolOutputDeniedPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SourceUrlUIPart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SourceDocumentUIPart))] + [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.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))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CategoricalAnnotationValue))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CategoricalAnnotationConfigData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatContext), TypeInfoPropertyName = "ChatContext2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ProjectContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TraceContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PlaygroundContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatContextDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatContextDiscriminatorType), TypeInfoPropertyName = "ChatContextDiscriminatorType2")] + [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.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.ContinuousAnnotationConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ContinuousAnnotationConfigData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CreateAnnotationConfigData), TypeInfoPropertyName = "CreateAnnotationConfigData2")] @@ -487,7 +523,6 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType), TypeInfoPropertyName = "CreateAnnotationConfigResponseBodyDataDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CreateExperimentRequestBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CreateExperimentResponseBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.Experiment))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CreateExperimentRunRequestBody))] @@ -529,7 +564,6 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.LDAPUser))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CreateUserResponseBodyDataDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod), TypeInfoPropertyName = "CreateUserResponseBodyDataDiscriminatorAuthMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DataUIPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.Dataset))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DatasetExample))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DatasetVersion))] @@ -539,20 +573,12 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType), TypeInfoPropertyName = "DeleteAnnotationConfigResponseBodyDataDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DeleteSessionsRequestBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolApprovalRequestedPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AnyOf), TypeInfoPropertyName = "AnyOfToolApprovalRequestedToolApprovalRespondedObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolApprovalRequested))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolApprovalResponded))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolApprovalRespondedPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolInputAvailablePart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolInputStreamingPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolOutputAvailablePart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolOutputDeniedPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DynamicToolOutputErrorPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ExperimentEvaluationResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ExperimentRun))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.FileUIPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.GetAnnotationConfigResponseBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.Data4), TypeInfoPropertyName = "Data42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator))] @@ -638,8 +664,6 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OtlpStatus))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OtlpSpansResponseBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PlaygroundContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ProjectContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PromptAnthropicInvocationParameters))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PromptAnthropicInvocationParametersContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PromptAnthropicOutputConfig))] @@ -742,7 +766,6 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PromptVersionTagData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PromptXAIInvocationParametersContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort), TypeInfoPropertyName = "PromptXAIInvocationParametersContentReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ReasoningUIPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ReasoningUIPartState2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UpsertOrDeleteSecretsResult))] @@ -755,8 +778,6 @@ namespace Phoenix [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.SessionTraceData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SourceDocumentUIPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SourceUrlUIPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SpanContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SpanEvent))] @@ -768,19 +789,10 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind), TypeInfoPropertyName = "SpanDocumentAnnotationDataAnnotatorKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SpansResponseBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.StepStartUIPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TextUIPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TextUIPartState2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolApprovalRequestedPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolApprovalRespondedPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolCallFunction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolCallContentPartToolCallDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolCallContentPartToolCallDiscriminatorType), TypeInfoPropertyName = "ToolCallContentPartToolCallDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolInputAvailablePart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolInputStreamingPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolOutputAvailablePart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolOutputDeniedPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ToolOutputErrorPart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AnyOf, object>), TypeInfoPropertyName = "AnyOfBooleanInt32DoubleStringObjectIListObjectObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TraceAnnotation))] @@ -789,13 +801,10 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TraceAnnotationDataAnnotatorKind), TypeInfoPropertyName = "TraceAnnotationDataAnnotatorKind2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TraceAnnotationsResponseBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TraceContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.TraceSpanData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UIMessage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UIMessageRole), TypeInfoPropertyName = "UIMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>), TypeInfoPropertyName = "StepStartUIPart_ed9b3d00af27a569")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AnyOf), TypeInfoPropertyName = "StepStartUIPart_ee2f9588200af449")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UpdateAnnotationConfigResponseBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.Data6), TypeInfoPropertyName = "Data62")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator))] @@ -812,18 +821,8 @@ namespace Phoenix [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.AnyOf), TypeInfoPropertyName = "AnyOfStringInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.RegenerateMessage))] - [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.ContextsItem), TypeInfoPropertyName = "ContextsItem2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.RegenerateMessageContextDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.RegenerateMessageContextDiscriminatorType), TypeInfoPropertyName = "RegenerateMessageContextDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SubmitMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ContextsItem2), TypeInfoPropertyName = "ContextsItem22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SubmitMessageContextDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SubmitMessageContextDiscriminatorType), TypeInfoPropertyName = "SubmitMessageContextDiscriminatorType2")] [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.SummarizeResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UploadDatasetRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UploadDatasetRequestAction), TypeInfoPropertyName = "UploadDatasetRequestAction2_3")] @@ -834,19 +833,14 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UploadDatasetRequest2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.UploadDatasetRequestAction2), TypeInfoPropertyName = "UploadDatasetRequestAction22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatV2ChatV2PostRequest), TypeInfoPropertyName = "ChatV2ChatV2PostRequest2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatV2ChatV2PostRequestDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger), TypeInfoPropertyName = "ChatV2ChatV2PostRequestDiscriminatorTrigger2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2))] [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.ChatChatPostProviderType), TypeInfoPropertyName = "ChatChatPostProviderType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatChatPostOpenaiApiType), TypeInfoPropertyName = "ChatChatPostOpenaiApiType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatV2ChatV2PostProviderType), TypeInfoPropertyName = "ChatV2ChatV2PostProviderType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatV2ChatV2PostOpenaiApiType), TypeInfoPropertyName = "ChatV2ChatV2PostOpenaiApiType2")] + [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")] @@ -858,7 +852,10 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "StepStartUIPart_6eee758df17ea469")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -894,12 +891,9 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "StepStartUIPart_6eee758df17ea469")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List, object>>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OneOf, object>))] [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 1224968..a732b42 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs @@ -160,1515 +160,1523 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Phoenix.CategoricalAnnotationConfig? Type33 { get; set; } + public global::Phoenix.AssistantMessageMetadata? Type33 { get; set; } /// /// /// - public global::Phoenix.OptimizationDirection? Type34 { get; set; } + public global::Phoenix.AssistantMessageMetadataTraceIds? Type34 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type35 { get; set; } + public global::Phoenix.AssistantMessageMetadataUsage2? Type35 { get; set; } /// /// /// - public global::Phoenix.CategoricalAnnotationValue? Type36 { get; set; } + public global::Phoenix.AssistantMessageMetadataUsageTokens? Type36 { get; set; } /// /// /// - public global::Phoenix.CategoricalAnnotationConfigData? Type37 { get; set; } + public global::Phoenix.AssistantMessageMetadataUsageTokenDetails? Type37 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfig? Type38 { get; set; } + public int? Type38 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfigData? Type39 { get; set; } + public global::Phoenix.AssistantMetadataUIMessage? Type39 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigData? Type40 { get; set; } + public global::Phoenix.AssistantMetadataUIMessageRole? Type40 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfigData? Type41 { get; set; } + public global::Phoenix.TextUIPart? Type41 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type42 { get; set; } + public global::Phoenix.ReasoningUIPart? Type42 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type43 { get; set; } + public global::Phoenix.ToolInputStreamingPart? Type43 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBody? Type44 { get; set; } + public global::Phoenix.ToolInputAvailablePart? Type44 { get; set; } /// /// /// - public global::Phoenix.Data? Type45 { get; set; } + public global::Phoenix.ToolOutputAvailablePart? Type45 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfig? Type46 { get; set; } + public global::Phoenix.ToolOutputErrorPart? Type46 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type47 { get; set; } + public global::Phoenix.ToolApprovalRequestedPart? Type47 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type48 { get; set; } + public global::Phoenix.ToolApprovalRespondedPart? Type48 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRequestBody? Type49 { get; set; } + public global::Phoenix.ToolOutputDeniedPart? Type49 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type50 { get; set; } + public global::Phoenix.DynamicToolInputStreamingPart? Type50 { get; set; } /// /// /// - public int? Type51 { get; set; } + public global::Phoenix.DynamicToolInputAvailablePart? Type51 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentResponseBody? Type52 { get; set; } + public global::Phoenix.DynamicToolOutputAvailablePart? Type52 { get; set; } /// /// /// - public global::Phoenix.Experiment? Type53 { get; set; } + public global::Phoenix.DynamicToolOutputErrorPart? Type53 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunRequestBody? Type54 { get; set; } + public global::Phoenix.DynamicToolApprovalRequestedPart? Type54 { get; set; } /// /// /// - public global::System.DateTime? Type55 { get; set; } + public global::Phoenix.DynamicToolApprovalRespondedPart? Type55 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBody? Type56 { get; set; } + public global::Phoenix.DynamicToolOutputDeniedPart? Type56 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBodyData? Type57 { get; set; } + public global::Phoenix.SourceUrlUIPart? Type57 { get; set; } /// /// /// - public global::Phoenix.CreateProjectRequestBody? Type58 { get; set; } + public global::Phoenix.SourceDocumentUIPart? Type58 { get; set; } /// /// /// - public global::Phoenix.CreateProjectResponseBody? Type59 { get; set; } + public global::Phoenix.FileUIPart? Type59 { get; set; } /// /// /// - public global::Phoenix.Project? Type60 { get; set; } + public global::Phoenix.DataUIPart? Type60 { get; set; } /// /// /// - public global::Phoenix.CreatePromptRequestBody? Type61 { get; set; } + public global::Phoenix.StepStartUIPart? Type61 { get; set; } /// /// /// - public global::Phoenix.PromptData? Type62 { get; set; } + public global::Phoenix.CategoricalAnnotationConfig? Type62 { get; set; } /// /// /// - public global::Phoenix.PromptVersionData? Type63 { get; set; } + public global::Phoenix.OptimizationDirection? Type63 { get; set; } /// /// /// - public global::Phoenix.CreatePromptResponseBody? Type64 { get; set; } + public global::System.Collections.Generic.IList? Type64 { get; set; } /// /// /// - public global::Phoenix.PromptVersion? Type65 { get; set; } + public global::Phoenix.CategoricalAnnotationValue? Type65 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteRequestBody? Type66 { get; set; } + public global::Phoenix.CategoricalAnnotationConfigData? Type66 { get; set; } /// /// /// - public global::Phoenix.SessionNoteData? Type67 { get; set; } + public global::Phoenix.ChatContext? Type67 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteResponseBody? Type68 { get; set; } + public global::Phoenix.ProjectContext? Type68 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteRequestBody? Type69 { get; set; } + public global::Phoenix.TraceContext? Type69 { get; set; } /// /// /// - public global::Phoenix.SpanNoteData? Type70 { get; set; } + public global::Phoenix.PlaygroundContext? Type70 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteResponseBody? Type71 { get; set; } + public global::Phoenix.ChatContextDiscriminator? Type71 { get; set; } /// /// /// - public global::Phoenix.CreateSpansRequestBody? Type72 { get; set; } + public global::Phoenix.ChatContextDiscriminatorType? Type72 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type73 { get; set; } + public global::Phoenix.ChatRegenerateMessage? Type73 { get; set; } /// /// /// - public global::Phoenix.Span? Type74 { get; set; } + public global::System.Collections.Generic.IList? Type74 { get; set; } /// /// /// - public global::Phoenix.CreateSpansResponseBody? Type75 { get; set; } + public global::System.Collections.Generic.IList? Type75 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteRequestBody? Type76 { get; set; } + public global::Phoenix.ChatRequest? Type76 { get; set; } /// /// /// - public global::Phoenix.TraceNoteData? Type77 { get; set; } + public global::Phoenix.ChatSubmitMessage? Type77 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteResponseBody? Type78 { get; set; } + public global::Phoenix.ChatRequestDiscriminator? Type78 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBody? Type79 { get; set; } + public global::Phoenix.ChatRequestDiscriminatorTrigger? Type79 { get; set; } /// /// /// - public global::Phoenix.User? Type80 { get; set; } + public global::Phoenix.ContinuousAnnotationConfig? Type80 { get; set; } /// /// /// - public global::Phoenix.LocalUserData? Type81 { get; set; } + public global::Phoenix.ContinuousAnnotationConfigData? Type81 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserData? Type82 { get; set; } + public global::Phoenix.CreateAnnotationConfigData? Type82 { get; set; } /// /// /// - public global::Phoenix.LDAPUserData? Type83 { get; set; } + public global::Phoenix.FreeformAnnotationConfigData? Type83 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type84 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type84 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type85 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type85 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBody? Type86 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBody? Type86 { get; set; } /// /// /// - public global::Phoenix.Data2? Type87 { get; set; } + public global::Phoenix.Data? Type87 { get; set; } /// /// /// - public global::Phoenix.LocalUser? Type88 { get; set; } + public global::Phoenix.FreeformAnnotationConfig? Type88 { get; set; } /// /// /// - public global::Phoenix.OAuth2User? Type89 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type89 { get; set; } /// /// /// - public global::Phoenix.LDAPUser? Type90 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type90 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type91 { get; set; } + public global::Phoenix.CreateExperimentRequestBody? Type91 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type92 { get; set; } + public global::System.Collections.Generic.IList? Type92 { get; set; } /// /// /// - public global::Phoenix.DataUIPart? Type93 { get; set; } + public global::Phoenix.CreateExperimentResponseBody? Type93 { get; set; } /// /// /// - public global::Phoenix.Dataset? Type94 { get; set; } + public global::Phoenix.Experiment? Type94 { get; set; } /// /// /// - public global::Phoenix.DatasetExample? Type95 { get; set; } + public global::Phoenix.CreateExperimentRunRequestBody? Type95 { get; set; } /// /// /// - public global::Phoenix.DatasetVersion? Type96 { get; set; } + public global::System.DateTime? Type96 { get; set; } /// /// /// - public global::Phoenix.DatasetWithExampleCount? Type97 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBody? Type97 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBody? Type98 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBodyData? Type98 { get; set; } /// /// /// - public global::Phoenix.Data3? Type99 { get; set; } + public global::Phoenix.CreateProjectRequestBody? Type99 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type100 { get; set; } + public global::Phoenix.CreateProjectResponseBody? Type100 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type101 { get; set; } + public global::Phoenix.Project? Type101 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionsRequestBody? Type102 { get; set; } + public global::Phoenix.CreatePromptRequestBody? Type102 { get; set; } /// /// /// - public global::Phoenix.DynamicToolApprovalRequestedPart? Type103 { get; set; } + public global::Phoenix.PromptData? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type104 { get; set; } + public global::Phoenix.PromptVersionData? Type104 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type105 { get; set; } + public global::Phoenix.CreatePromptResponseBody? Type105 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalRequested? Type106 { get; set; } + public global::Phoenix.PromptVersion? Type106 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalResponded? Type107 { get; set; } + public global::Phoenix.CreateSessionNoteRequestBody? Type107 { get; set; } /// /// /// - public global::Phoenix.DynamicToolApprovalRespondedPart? Type108 { get; set; } + public global::Phoenix.SessionNoteData? Type108 { get; set; } /// /// /// - public global::Phoenix.DynamicToolInputAvailablePart? Type109 { get; set; } + public global::Phoenix.CreateSessionNoteResponseBody? Type109 { get; set; } /// /// /// - public global::Phoenix.DynamicToolInputStreamingPart? Type110 { get; set; } + public global::Phoenix.CreateSpanNoteRequestBody? Type110 { get; set; } /// /// /// - public global::Phoenix.DynamicToolOutputAvailablePart? Type111 { get; set; } + public global::Phoenix.SpanNoteData? Type111 { get; set; } /// /// /// - public global::Phoenix.DynamicToolOutputDeniedPart? Type112 { get; set; } + public global::Phoenix.CreateSpanNoteResponseBody? Type112 { get; set; } /// /// /// - public global::Phoenix.DynamicToolOutputErrorPart? Type113 { get; set; } + public global::Phoenix.CreateSpansRequestBody? Type113 { get; set; } /// /// /// - public global::Phoenix.ExperimentEvaluationResult? Type114 { get; set; } + public global::System.Collections.Generic.IList? Type114 { get; set; } /// /// /// - public global::Phoenix.ExperimentRun? Type115 { get; set; } + public global::Phoenix.Span? Type115 { get; set; } /// /// /// - public global::Phoenix.FileUIPart? Type116 { get; set; } + public global::Phoenix.CreateSpansResponseBody? Type116 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBody? Type117 { get; set; } + public global::Phoenix.CreateTraceNoteRequestBody? Type117 { get; set; } /// /// /// - public global::Phoenix.Data4? Type118 { get; set; } + public global::Phoenix.TraceNoteData? Type118 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type119 { get; set; } + public global::Phoenix.CreateTraceNoteResponseBody? Type119 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type120 { get; set; } + public global::Phoenix.CreateUserRequestBody? Type120 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBody? Type121 { get; set; } + public global::Phoenix.User? Type121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type122 { get; set; } + public global::Phoenix.LocalUserData? Type122 { get; set; } /// /// /// - public global::Phoenix.DataItem? Type123 { get; set; } + public global::Phoenix.OAuth2UserData? Type123 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type124 { get; set; } + public global::Phoenix.LDAPUserData? Type124 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type125 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type125 { get; set; } /// /// /// - public global::Phoenix.GetDatasetResponseBody? Type126 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type126 { get; set; } /// /// /// - public global::Phoenix.GetExperimentResponseBody? Type127 { get; set; } + public global::Phoenix.CreateUserResponseBody? Type127 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type128 { get; set; } + public global::Phoenix.Data2? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::Phoenix.LocalUser? Type129 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentEvaluation? Type130 { get; set; } + public global::Phoenix.OAuth2User? Type130 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type131 { get; set; } + public global::Phoenix.LDAPUser? Type131 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type132 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type132 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentRun? Type133 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type133 { get; set; } /// /// /// - public global::Phoenix.GetProjectResponseBody? Type134 { get; set; } + public global::Phoenix.Dataset? Type134 { get; set; } /// /// /// - public global::Phoenix.GetProjectsResponseBody? Type135 { get; set; } + public global::Phoenix.DatasetExample? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type136 { get; set; } + public global::Phoenix.DatasetVersion? Type136 { get; set; } /// /// /// - public global::Phoenix.GetPromptResponseBody? Type137 { get; set; } + public global::Phoenix.DatasetWithExampleCount? Type137 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionTagsResponseBody? Type138 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBody? Type138 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type139 { get; set; } + public global::Phoenix.Data3? Type139 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTag? Type140 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type140 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionsResponseBody? Type141 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type142 { get; set; } + public global::Phoenix.DeleteSessionsRequestBody? Type142 { get; set; } /// /// /// - public global::Phoenix.GetPromptsResponseBody? Type143 { get; set; } + public global::System.Collections.Generic.Dictionary? Type143 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type144 { get; set; } + public global::Phoenix.AnyOf? Type144 { get; set; } /// /// /// - public global::Phoenix.Prompt? Type145 { get; set; } + public global::Phoenix.ToolApprovalRequested? Type145 { get; set; } /// /// /// - public global::Phoenix.GetSessionResponseBody? Type146 { get; set; } + public global::Phoenix.ToolApprovalResponded? Type146 { get; set; } /// /// /// - public global::Phoenix.SessionData? Type147 { get; set; } + public global::Phoenix.ExperimentEvaluationResult? Type147 { get; set; } /// /// /// - public global::Phoenix.GetSessionsResponseBody? Type148 { get; set; } + public global::Phoenix.ExperimentRun? Type148 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBody? Type149 { get; set; } /// /// /// - public global::Phoenix.GetTracesResponseBody? Type150 { get; set; } + public global::Phoenix.Data4? Type150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type151 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type151 { get; set; } /// /// /// - public global::Phoenix.TraceData? Type152 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type152 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBody? Type153 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBody? Type153 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::Phoenix.DataItem2? Type155 { get; set; } + public global::Phoenix.DataItem? Type155 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type156 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type156 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type157 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type157 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBody? Type158 { get; set; } + public global::Phoenix.GetDatasetResponseBody? Type158 { get; set; } /// /// /// - public global::Phoenix.Data5? Type159 { get; set; } + public global::Phoenix.GetExperimentResponseBody? Type159 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type160 { get; set; } + public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type160 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::Phoenix.HTTPValidationError? Type162 { get; set; } + public global::Phoenix.IncompleteExperimentEvaluation? Type162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type163 { get; set; } + public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type163 { get; set; } /// /// /// - public global::Phoenix.ValidationError? Type164 { get; set; } + public global::System.Collections.Generic.IList? Type164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type165 { get; set; } + public global::Phoenix.IncompleteExperimentRun? Type165 { get; set; } /// /// /// - public global::Phoenix.LDAPUserRole? Type166 { get; set; } + public global::Phoenix.GetProjectResponseBody? Type166 { get; set; } /// /// /// - public global::Phoenix.LDAPUserDataRole? Type167 { get; set; } + public global::Phoenix.GetProjectsResponseBody? Type167 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesData? Type168 { get; set; } + public global::System.Collections.Generic.IList? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::Phoenix.GetPromptResponseBody? Type169 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesResponseBody? Type170 { get; set; } + public global::Phoenix.GetPromptVersionTagsResponseBody? Type170 { get; set; } /// /// /// - public global::Phoenix.ListDatasetVersionsResponseBody? Type171 { get; set; } + public global::System.Collections.Generic.IList? Type171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type172 { get; set; } + public global::Phoenix.PromptVersionTag? Type172 { get; set; } /// /// /// - public global::Phoenix.ListDatasetsResponseBody? Type173 { get; set; } + public global::Phoenix.GetPromptVersionsResponseBody? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::System.Collections.Generic.IList? Type174 { get; set; } /// /// /// - public global::Phoenix.ListExperimentRunsResponseBody? Type175 { get; set; } + public global::Phoenix.GetPromptsResponseBody? Type175 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type176 { get; set; } + public global::System.Collections.Generic.IList? Type176 { get; set; } /// /// /// - public global::Phoenix.ListExperimentsResponseBody? Type177 { get; set; } + public global::Phoenix.Prompt? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::Phoenix.GetSessionResponseBody? Type178 { get; set; } /// /// /// - public global::Phoenix.LocalUserRole? Type179 { get; set; } + public global::Phoenix.SessionData? Type179 { get; set; } /// /// /// - public global::Phoenix.LocalUserDataRole? Type180 { get; set; } + public global::Phoenix.GetSessionsResponseBody? Type180 { get; set; } /// /// /// - public global::Phoenix.ModelProvider? Type181 { get; set; } + public global::System.Collections.Generic.IList? Type181 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserRole? Type182 { get; set; } + public global::Phoenix.GetTracesResponseBody? Type182 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserDataRole? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::Phoenix.OtlpAnyValue? Type184 { get; set; } + public global::Phoenix.TraceData? Type184 { get; set; } /// /// /// - public global::Phoenix.OtlpArrayValue? Type185 { get; set; } + public global::Phoenix.GetUsersResponseBody? Type185 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type186 { get; set; } /// /// /// - public global::Phoenix.OtlpDoubleValue? Type187 { get; set; } + public global::Phoenix.DataItem2? Type187 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type188 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type189 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type189 { get; set; } /// /// /// - public global::Phoenix.OtlpEvent? Type190 { get; set; } + public global::Phoenix.GetViewerResponseBody? Type190 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type191 { get; set; } + public global::Phoenix.Data5? Type191 { get; set; } /// /// /// - public global::Phoenix.OtlpKeyValue? Type192 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type192 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type193 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type193 { get; set; } /// /// /// - public long? Type194 { get; set; } + public global::Phoenix.HTTPValidationError? Type194 { get; set; } /// /// /// - public global::Phoenix.OtlpKind? Type195 { get; set; } + public global::System.Collections.Generic.IList? Type195 { get; set; } /// /// /// - public global::Phoenix.OtlpSpan? Type196 { get; set; } + public global::Phoenix.ValidationError? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type198 { get; set; } + public global::Phoenix.LDAPUserRole? Type198 { get; set; } /// /// /// - public global::Phoenix.OtlpStatus? Type199 { get; set; } + public global::Phoenix.LDAPUserDataRole? Type199 { get; set; } /// /// /// - public global::Phoenix.OtlpSpansResponseBody? Type200 { get; set; } + public global::Phoenix.ListDatasetExamplesData? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::Phoenix.PlaygroundContext? Type202 { get; set; } + public global::Phoenix.ListDatasetExamplesResponseBody? Type202 { get; set; } /// /// /// - public global::Phoenix.ProjectContext? Type203 { get; set; } + public global::Phoenix.ListDatasetVersionsResponseBody? Type203 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParameters? Type204 { get; set; } + public global::System.Collections.Generic.IList? Type204 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContent? Type205 { get; set; } + public global::Phoenix.ListDatasetsResponseBody? Type205 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfig? Type206 { get; set; } + public global::System.Collections.Generic.IList? Type206 { get; set; } /// /// /// - public global::Phoenix.Thinking? Type207 { get; set; } + public global::Phoenix.ListExperimentRunsResponseBody? Type207 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type208 { get; set; } + public global::System.Collections.Generic.IList? Type208 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type209 { get; set; } + public global::Phoenix.ListExperimentsResponseBody? Type209 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type210 { get; set; } + public global::System.Collections.Generic.IList? Type210 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type211 { get; set; } + public global::Phoenix.LocalUserRole? Type211 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type212 { get; set; } + public global::Phoenix.LocalUserDataRole? Type212 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfigEffort? Type213 { get; set; } + public global::Phoenix.ModelProvider? Type213 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type214 { get; set; } + public global::Phoenix.OAuth2UserRole? Type214 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type215 { get; set; } + public global::Phoenix.OAuth2UserDataRole? Type215 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParameters? Type216 { get; set; } + public global::Phoenix.OtlpAnyValue? Type216 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParametersContent? Type217 { get; set; } + public global::Phoenix.OtlpArrayValue? Type217 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type218 { get; set; } + public global::Phoenix.AnyOf? Type218 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type219 { get; set; } + public global::Phoenix.OtlpDoubleValue? Type219 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type220 { get; set; } + public global::Phoenix.AnyOf? Type220 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParameters? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContent? Type222 { get; set; } + public global::Phoenix.OtlpEvent? Type222 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::Phoenix.PromptChatTemplate? Type224 { get; set; } + public global::Phoenix.OtlpKeyValue? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::Phoenix.AnyOf? Type225 { get; set; } /// /// /// - public global::Phoenix.PromptMessage? Type226 { get; set; } + public long? Type226 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParameters? Type227 { get; set; } + public global::Phoenix.OtlpKind? Type227 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type228 { get; set; } + public global::Phoenix.OtlpSpan? Type228 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type229 { get; set; } + public global::System.Collections.Generic.IList? Type229 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParameters? Type230 { get; set; } + public global::Phoenix.AnyOf? Type230 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContent? Type231 { get; set; } + public global::Phoenix.OtlpStatus? Type231 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type232 { get; set; } + public global::Phoenix.OtlpSpansResponseBody? Type232 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParameters? Type233 { get; set; } + public global::System.Collections.Generic.IList? Type233 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParametersContent? Type234 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParameters? Type234 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfig? Type235 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContent? Type235 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type236 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfig? Type236 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParameters? Type237 { get; set; } + public global::Phoenix.Thinking? Type237 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContent? Type238 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type238 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type239 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type239 { get; set; } /// /// /// - public global::Phoenix.PromptMessageRole? Type240 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type240 { get; set; } /// /// /// - public global::Phoenix.AnyOf>? Type241 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type241 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type242 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type242 { get; set; } /// /// /// - public global::Phoenix.ContentVariant2Item? Type243 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfigEffort? Type243 { get; set; } /// /// /// - public global::Phoenix.TextContentPart? Type244 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type244 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPart? Type245 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type245 { get; set; } /// /// /// - public global::Phoenix.ToolResultContentPart? Type246 { get; set; } + public global::Phoenix.PromptAwsInvocationParameters? Type246 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type247 { get; set; } + public global::Phoenix.PromptAwsInvocationParametersContent? Type247 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type248 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type248 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParameters? Type249 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type249 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContent? Type250 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type250 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type251 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParameters? Type251 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParameters? Type252 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContent? Type252 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContent? Type253 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type253 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type254 { get; set; } + public global::Phoenix.PromptChatTemplate? Type254 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParameters? Type255 { get; set; } + public global::System.Collections.Generic.IList? Type255 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContent? Type256 { get; set; } + public global::Phoenix.PromptMessage? Type256 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type257 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParameters? Type257 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParameters? Type258 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type258 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContent? Type259 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type259 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type260 { get; set; } + public global::Phoenix.PromptFireworksInvocationParameters? Type260 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchema? Type261 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContent? Type261 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type262 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type262 { get; set; } /// /// /// - public global::Phoenix.PromptStringTemplate? Type263 { get; set; } + public global::Phoenix.PromptGoogleInvocationParameters? Type263 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateFormat? Type264 { get; set; } + public global::Phoenix.PromptGoogleInvocationParametersContent? Type264 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateType? Type265 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfig? Type265 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParameters? Type266 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type266 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContent? Type267 { get; set; } + public global::Phoenix.PromptGroqInvocationParameters? Type267 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type268 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContent? Type268 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceNone? Type269 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type269 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceOneOrMore? Type270 { get; set; } + public global::Phoenix.PromptMessageRole? Type270 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type271 { get; set; } + public global::Phoenix.AnyOf>? Type271 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceZeroOrMore? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunction? Type273 { get; set; } + public global::Phoenix.ContentVariant2Item? Type273 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunctionDefinition? Type274 { get; set; } + public global::Phoenix.TextContentPart? Type274 { get; set; } /// /// /// - public global::Phoenix.PromptToolRaw? Type275 { get; set; } + public global::Phoenix.ToolCallContentPart? Type275 { get; set; } /// /// /// - public global::Phoenix.PromptTools? Type276 { get; set; } + public global::Phoenix.ToolResultContentPart? Type276 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type277 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type277 { get; set; } /// /// /// - public global::Phoenix.ToolsItem? Type278 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type278 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminator? Type279 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParameters? Type279 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminatorType? Type280 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContent? Type280 { get; set; } /// /// /// - public global::Phoenix.ToolChoice? Type281 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type281 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type282 { get; set; } + public global::Phoenix.PromptOllamaInvocationParameters? Type282 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type283 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContent? Type283 { get; set; } /// /// /// - public global::Phoenix.Template? Type284 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type284 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminator? Type285 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParameters? Type285 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type286 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContent? Type286 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters? Type287 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type287 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParameters? Type288 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParameters? Type288 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type289 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContent? Type289 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type290 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type290 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant1? Type291 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchema? Type291 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type292 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type292 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type293 { get; set; } + public global::Phoenix.PromptStringTemplate? Type293 { get; set; } /// /// /// - public global::Phoenix.Template2? Type294 { get; set; } + public global::Phoenix.PromptTemplateFormat? Type294 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type295 { get; set; } + public global::Phoenix.PromptTemplateType? Type295 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type296 { get; set; } + public global::Phoenix.PromptTogetherInvocationParameters? Type296 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters2? Type297 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContent? Type297 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type298 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type298 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type299 { get; set; } + public global::Phoenix.PromptToolChoiceNone? Type299 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant12? Type300 { get; set; } + public global::Phoenix.PromptToolChoiceOneOrMore? Type300 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type301 { get; set; } + public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type301 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type302 { get; set; } + public global::Phoenix.PromptToolChoiceZeroOrMore? Type302 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTagData? Type303 { get; set; } + public global::Phoenix.PromptToolFunction? Type303 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContent? Type304 { get; set; } + public global::Phoenix.PromptToolFunctionDefinition? Type304 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type305 { get; set; } + public global::Phoenix.PromptToolRaw? Type305 { get; set; } /// /// /// - public global::Phoenix.ReasoningUIPart? Type306 { get; set; } + public global::Phoenix.PromptTools? Type306 { get; set; } /// /// /// - public global::Phoenix.ReasoningUIPartState2? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type308 { get; set; } + public global::Phoenix.ToolsItem? Type308 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsResult? Type309 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminator? Type309 { get; set; } /// /// /// - public global::Phoenix.SecretKeyValue? Type310 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminatorType? Type310 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotation? Type311 { get; set; } + public global::Phoenix.ToolChoice? Type311 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationSource? Type312 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type312 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationAnnotatorKind? Type313 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type313 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type314 { get; set; } + public global::Phoenix.Template? Type314 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationsResponseBody? Type315 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminator? Type315 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type316 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type316 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type317 { get; set; } + public global::Phoenix.InvocationParameters? Type317 { get; set; } /// /// /// - public global::Phoenix.SessionTraceData? Type318 { get; set; } + public global::Phoenix.PromptXAIInvocationParameters? Type318 { get; set; } /// /// /// - public global::Phoenix.SourceDocumentUIPart? Type319 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type319 { get; set; } /// /// /// - public global::Phoenix.SourceUrlUIPart? Type320 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type320 { get; set; } /// /// /// - public global::Phoenix.SpanContext? Type321 { get; set; } + public global::Phoenix.ResponseFormatVariant1? Type321 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type322 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type322 { get; set; } /// /// /// - public global::Phoenix.SpanEvent? Type323 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type323 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotation? Type324 { get; set; } + public global::Phoenix.Template2? Type324 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationSource? Type325 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type325 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationAnnotatorKind? Type326 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type326 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type327 { get; set; } + public global::Phoenix.InvocationParameters2? Type327 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationsResponseBody? Type328 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type328 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type329 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type329 { get; set; } /// /// /// - public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type330 { get; set; } + public global::Phoenix.ResponseFormatVariant12? Type330 { get; set; } /// /// /// - public global::Phoenix.SpansResponseBody? Type331 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type331 { get; set; } /// /// /// - public global::Phoenix.StepStartUIPart? Type332 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type332 { get; set; } /// /// /// - public global::Phoenix.TextUIPart? Type333 { get; set; } + public global::Phoenix.PromptVersionTagData? Type333 { get; set; } /// /// /// - public global::Phoenix.TextUIPartState2? Type334 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContent? Type334 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalRequestedPart? Type335 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type335 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalRespondedPart? Type336 { get; set; } + public global::Phoenix.ReasoningUIPartState2? Type336 { get; set; } /// /// /// - public global::Phoenix.ToolCallFunction? Type337 { get; set; } + public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type337 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type338 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsResult? Type338 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type339 { get; set; } + public global::Phoenix.SecretKeyValue? Type339 { get; set; } /// /// /// - public global::Phoenix.ToolInputAvailablePart? Type340 { get; set; } + public global::Phoenix.SessionAnnotation? Type340 { get; set; } /// /// /// - public global::Phoenix.ToolInputStreamingPart? Type341 { get; set; } + public global::Phoenix.SessionAnnotationSource? Type341 { get; set; } /// /// /// - public global::Phoenix.ToolOutputAvailablePart? Type342 { get; set; } + public global::Phoenix.SessionAnnotationAnnotatorKind? Type342 { get; set; } /// /// /// - public global::Phoenix.ToolOutputDeniedPart? Type343 { get; set; } + public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type343 { get; set; } /// /// /// - public global::Phoenix.ToolOutputErrorPart? Type344 { get; set; } + public global::Phoenix.SessionAnnotationsResponseBody? Type344 { get; set; } /// /// /// - public global::Phoenix.AnyOf, object>? Type345 { get; set; } + public global::System.Collections.Generic.IList? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::System.Collections.Generic.IList? Type346 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotation? Type347 { get; set; } + public global::Phoenix.SessionTraceData? Type347 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationSource? Type348 { get; set; } + public global::Phoenix.SpanContext? Type348 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationAnnotatorKind? Type349 { get; set; } + public global::System.Collections.Generic.IList? Type349 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type350 { get; set; } + public global::Phoenix.SpanEvent? Type350 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationsResponseBody? Type351 { get; set; } + public global::Phoenix.SpanAnnotation? Type351 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type352 { get; set; } + public global::Phoenix.SpanAnnotationSource? Type352 { get; set; } /// /// /// - public global::Phoenix.TraceContext? Type353 { get; set; } + public global::Phoenix.SpanAnnotationAnnotatorKind? Type353 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type354 { get; set; } + public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type354 { get; set; } /// /// /// - public global::Phoenix.TraceSpanData? Type355 { get; set; } + public global::Phoenix.SpanAnnotationsResponseBody? Type355 { get; set; } /// /// /// - public global::Phoenix.UIMessage? Type356 { get; set; } + public global::System.Collections.Generic.IList? Type356 { get; set; } /// /// /// - public global::Phoenix.UIMessageRole? Type357 { get; set; } + public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type357 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBody? Type358 { get; set; } + public global::Phoenix.SpansResponseBody? Type358 { get; set; } /// /// /// - public global::Phoenix.Data6? Type359 { get; set; } + public global::Phoenix.TextUIPartState2? Type359 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type360 { get; set; } + public global::Phoenix.ToolCallFunction? Type360 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type361 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type361 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectRequestBody? Type362 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type362 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectResponseBody? Type363 { get; set; } + public global::Phoenix.AnyOf, object>? Type363 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetData? Type364 { get; set; } + public global::System.Collections.Generic.IList? Type364 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetResponseBody? Type365 { get; set; } + public global::Phoenix.TraceAnnotation? Type365 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type366 { get; set; } + public global::Phoenix.TraceAnnotationSource? Type366 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type367 { get; set; } + public global::Phoenix.TraceAnnotationAnnotatorKind? Type367 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type368 { get; set; } + public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type368 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type369 { get; set; } + public global::Phoenix.TraceAnnotationsResponseBody? Type369 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsRequest? Type370 { get; set; } + public global::System.Collections.Generic.IList? Type370 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type371 { get; set; } + public global::System.Collections.Generic.IList? Type371 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type372 { get; set; } + public global::Phoenix.TraceSpanData? Type372 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type373 { get; set; } + public global::Phoenix.UIMessage? Type373 { get; set; } /// /// /// - public global::Phoenix.RegenerateMessage? Type374 { get; set; } + public global::Phoenix.UIMessageRole? Type374 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type375 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBody? Type375 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type376 { get; set; } + public global::Phoenix.Data6? Type376 { get; set; } /// /// /// - public global::Phoenix.ContextsItem? Type377 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type377 { get; set; } /// /// /// - public global::Phoenix.RegenerateMessageContextDiscriminator? Type378 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type378 { get; set; } /// /// /// - public global::Phoenix.RegenerateMessageContextDiscriminatorType? Type379 { get; set; } + public global::Phoenix.UpdateProjectRequestBody? Type379 { get; set; } /// /// /// - public global::Phoenix.SubmitMessage? Type380 { get; set; } + public global::Phoenix.UpdateProjectResponseBody? Type380 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type381 { get; set; } + public global::Phoenix.UploadDatasetData? Type381 { get; set; } /// /// /// - public global::Phoenix.ContextsItem2? Type382 { get; set; } + public global::Phoenix.UploadDatasetResponseBody? Type382 { get; set; } /// /// /// - public global::Phoenix.SubmitMessageContextDiscriminator? Type383 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type383 { get; set; } /// /// /// - public global::Phoenix.SubmitMessageContextDiscriminatorType? Type384 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type384 { get; set; } /// /// /// - public global::Phoenix.SummarizeRequest? Type385 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type385 { get; set; } /// /// /// - public global::Phoenix.SummarizeResponse? Type386 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type386 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest? Type387 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsRequest? Type387 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction? Type388 { get; set; } + public global::System.Collections.Generic.IList? Type388 { get; set; } /// /// /// - public global::System.Collections.Generic.IList, object>>? Type389 { get; set; } + public global::System.Collections.Generic.IList>? Type389 { get; set; } /// /// /// - public global::Phoenix.OneOf, object>? Type390 { get; set; } + public global::Phoenix.AnyOf? Type390 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type391 { get; set; } + public global::Phoenix.SummarizeRequest? Type391 { get; set; } /// /// /// - public global::Phoenix.OneOf? Type392 { get; set; } + public global::System.Collections.Generic.IList? Type392 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest2? Type393 { get; set; } + public global::Phoenix.SummarizeResponse? Type393 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction2? Type394 { get; set; } + public global::Phoenix.UploadDatasetRequest? Type394 { get; set; } /// /// /// - public byte[]? Type395 { get; set; } + public global::Phoenix.UploadDatasetRequestAction? Type395 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostRequest? Type396 { get; set; } + public global::System.Collections.Generic.IList, object>>? Type396 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostRequestDiscriminator? Type397 { get; set; } + public global::Phoenix.OneOf, object>? Type397 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger? Type398 { get; set; } + public global::System.Collections.Generic.IList>? Type398 { get; set; } /// /// /// - public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type399 { get; set; } + public global::Phoenix.OneOf? Type399 { get; set; } /// /// /// - public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type400 { get; set; } + public global::Phoenix.UploadDatasetRequest2? Type400 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type401 { get; set; } + public global::Phoenix.UploadDatasetRequestAction2? Type401 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesSort? Type402 { get; set; } + public byte[]? Type402 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesOrder? Type403 { get; set; } + public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type403 { get; set; } /// /// /// - public global::Phoenix.ListProjectSessionsOrder? Type404 { get; set; } + public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type404 { get; set; } /// /// /// - public global::Phoenix.ChatChatPostProviderType? Type405 { get; set; } + public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type405 { get; set; } /// /// /// - public global::Phoenix.ChatChatPostOpenaiApiType? Type406 { get; set; } + public global::Phoenix.ListProjectTracesSort? Type406 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostProviderType? Type407 { get; set; } + public global::Phoenix.ListProjectTracesOrder? Type407 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostOpenaiApiType? Type408 { get; set; } + public global::Phoenix.ListProjectSessionsOrder? Type408 { get; set; } /// /// /// - public global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? Type409 { get; set; } + public global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType? Type409 { get; set; } /// /// /// - public global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? Type410 { get; set; } + public global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? Type410 { get; set; } + /// + /// + /// + public global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? Type411 { get; set; } + /// + /// + /// + public global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? Type412 { get; set; } /// /// @@ -1709,163 +1717,163 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::Phoenix.AnyOf>? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::Phoenix.AnyOf>? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::Phoenix.AnyOf, object>? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::Phoenix.AnyOf, object>? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List>? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostResponse.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadata.Json.g.cs similarity index 87% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostResponse.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadata.Json.g.cs index d605a0f..4bf94df 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostResponse.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadata.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatV2ChatV2PostResponse + public sealed partial class AssistantMessageMetadata { /// /// 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.ChatV2ChatV2PostResponse? FromJson( + public static global::Phoenix.AssistantMessageMetadata? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatV2ChatV2PostResponse), - jsonSerializerContext) as global::Phoenix.ChatV2ChatV2PostResponse; + typeof(global::Phoenix.AssistantMessageMetadata), + jsonSerializerContext) as global::Phoenix.AssistantMessageMetadata; } /// @@ -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.ChatV2ChatV2PostResponse? FromJson( + public static global::Phoenix.AssistantMessageMetadata? 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.ChatV2ChatV2PostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatV2ChatV2PostResponse; + typeof(global::Phoenix.AssistantMessageMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMessageMetadata; } /// @@ -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.AssistantMessageMetadata.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadata.g.cs new file mode 100644 index 0000000..e169992 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadata.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Wire schema for the chat stream's `message_metadata` payload. + /// + public sealed partial class AssistantMessageMetadata + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sessionId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string SessionId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("trace")] + public global::Phoenix.AssistantMessageMetadataTraceIds? Trace { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + public global::Phoenix.AssistantMessageMetadataUsage2? Usage { 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 AssistantMessageMetadata( + string sessionId, + global::Phoenix.AssistantMessageMetadataTraceIds? trace, + global::Phoenix.AssistantMessageMetadataUsage2? usage) + { + this.SessionId = sessionId ?? throw new global::System.ArgumentNullException(nameof(sessionId)); + this.Trace = trace; + this.Usage = usage; + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantMessageMetadata() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequest.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTrace.Json.g.cs similarity index 85% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequest.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTrace.Json.g.cs index b337049..5aba1d7 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequest.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTrace.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public readonly partial struct ChatV2ChatV2PostRequest + public sealed partial class AssistantMessageMetadataTrace { /// /// 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.ChatV2ChatV2PostRequest? FromJson( + public static global::Phoenix.AssistantMessageMetadataTrace? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatV2ChatV2PostRequest), - jsonSerializerContext) as global::Phoenix.ChatV2ChatV2PostRequest?; + typeof(global::Phoenix.AssistantMessageMetadataTrace), + jsonSerializerContext) as global::Phoenix.AssistantMessageMetadataTrace; } /// @@ -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.ChatV2ChatV2PostRequest? FromJson( + public static global::Phoenix.AssistantMessageMetadataTrace? 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.ChatV2ChatV2PostRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatV2ChatV2PostRequest?; + typeof(global::Phoenix.AssistantMessageMetadataTrace), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMessageMetadataTrace; } /// @@ -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.ChatChatPostProvider.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTrace.g.cs similarity index 88% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProvider.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTrace.g.cs index b920b65..d36ba4e 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProvider.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTrace.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// /// - public sealed partial class ChatChatPostProvider + public sealed partial class AssistantMessageMetadataTrace { /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTraceIds.Json.g.cs similarity index 85% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTraceIds.Json.g.cs index dec3d43..f84dcdd 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTraceIds.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatV2ChatV2PostProviderId + public sealed partial class AssistantMessageMetadataTraceIds { /// /// 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.ChatV2ChatV2PostProviderId? FromJson( + public static global::Phoenix.AssistantMessageMetadataTraceIds? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatV2ChatV2PostProviderId), - jsonSerializerContext) as global::Phoenix.ChatV2ChatV2PostProviderId; + typeof(global::Phoenix.AssistantMessageMetadataTraceIds), + jsonSerializerContext) as global::Phoenix.AssistantMessageMetadataTraceIds; } /// @@ -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.ChatV2ChatV2PostProviderId? FromJson( + public static global::Phoenix.AssistantMessageMetadataTraceIds? 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.ChatV2ChatV2PostProviderId), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatV2ChatV2PostProviderId; + typeof(global::Phoenix.AssistantMessageMetadataTraceIds), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMessageMetadataTraceIds; } /// @@ -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.AssistantMessageMetadataTraceIds.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTraceIds.g.cs new file mode 100644 index 0000000..7651ec7 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataTraceIds.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class AssistantMessageMetadataTraceIds + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("traceId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string TraceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rootSpanId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string RootSpanId { 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 AssistantMessageMetadataTraceIds( + string traceId, + string rootSpanId) + { + this.TraceId = traceId ?? throw new global::System.ArgumentNullException(nameof(traceId)); + this.RootSpanId = rootSpanId ?? throw new global::System.ArgumentNullException(nameof(rootSpanId)); + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantMessageMetadataTraceIds() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderId.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage.Json.g.cs similarity index 85% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderId.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage.Json.g.cs index 3e95cac..eea6006 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderId.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatChatPostProviderId + public sealed partial class AssistantMessageMetadataUsage { /// /// 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.ChatChatPostProviderId? FromJson( + public static global::Phoenix.AssistantMessageMetadataUsage? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatChatPostProviderId), - jsonSerializerContext) as global::Phoenix.ChatChatPostProviderId; + typeof(global::Phoenix.AssistantMessageMetadataUsage), + jsonSerializerContext) as global::Phoenix.AssistantMessageMetadataUsage; } /// @@ -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.ChatChatPostProviderId? FromJson( + public static global::Phoenix.AssistantMessageMetadataUsage? 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.ChatChatPostProviderId), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatChatPostProviderId; + typeof(global::Phoenix.AssistantMessageMetadataUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMessageMetadataUsage; } /// @@ -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.ChatChatPostProviderId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage.g.cs similarity index 88% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderId.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage.g.cs index 2361dd5..7a0951c 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderId.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// /// - public sealed partial class ChatChatPostProviderId + public sealed partial class AssistantMessageMetadataUsage { /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage2.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage2.Json.g.cs new file mode 100644 index 0000000..e504455 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class AssistantMessageMetadataUsage2 + { + /// + /// 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.AssistantMessageMetadataUsage2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.AssistantMessageMetadataUsage2), + jsonSerializerContext) as global::Phoenix.AssistantMessageMetadataUsage2; + } + + /// + /// 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.AssistantMessageMetadataUsage2? 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.AssistantMessageMetadataUsage2), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMessageMetadataUsage2; + } + + /// + /// 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.AssistantMessageMetadataUsage2.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage2.g.cs new file mode 100644 index 0000000..744e4ae --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsage2.g.cs @@ -0,0 +1,54 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class AssistantMessageMetadataUsage2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tokens")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Phoenix.AssistantMessageMetadataUsageTokens Tokens { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptDetails")] + public global::Phoenix.AssistantMessageMetadataUsageTokenDetails? PromptDetails { 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 AssistantMessageMetadataUsage2( + global::Phoenix.AssistantMessageMetadataUsageTokens tokens, + global::Phoenix.AssistantMessageMetadataUsageTokenDetails? promptDetails) + { + this.Tokens = tokens ?? throw new global::System.ArgumentNullException(nameof(tokens)); + this.PromptDetails = promptDetails; + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantMessageMetadataUsage2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequestDiscriminator.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsagePromptDetails.Json.g.cs similarity index 83% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequestDiscriminator.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsagePromptDetails.Json.g.cs index 9bb9ef9..718da30 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequestDiscriminator.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsagePromptDetails.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatV2ChatV2PostRequestDiscriminator + public sealed partial class AssistantMessageMetadataUsagePromptDetails { /// /// 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.ChatV2ChatV2PostRequestDiscriminator? FromJson( + public static global::Phoenix.AssistantMessageMetadataUsagePromptDetails? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatV2ChatV2PostRequestDiscriminator), - jsonSerializerContext) as global::Phoenix.ChatV2ChatV2PostRequestDiscriminator; + typeof(global::Phoenix.AssistantMessageMetadataUsagePromptDetails), + jsonSerializerContext) as global::Phoenix.AssistantMessageMetadataUsagePromptDetails; } /// @@ -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.ChatV2ChatV2PostRequestDiscriminator? FromJson( + public static global::Phoenix.AssistantMessageMetadataUsagePromptDetails? 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.ChatV2ChatV2PostRequestDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatV2ChatV2PostRequestDiscriminator; + typeof(global::Phoenix.AssistantMessageMetadataUsagePromptDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMessageMetadataUsagePromptDetails; } /// @@ -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.AssistantMessageMetadataUsagePromptDetails.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsagePromptDetails.g.cs new file mode 100644 index 0000000..a459d77 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsagePromptDetails.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class AssistantMessageMetadataUsagePromptDetails + { + + /// + /// 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.AssistantMessageMetadataUsageTokenDetails.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokenDetails.Json.g.cs new file mode 100644 index 0000000..54d9abb --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokenDetails.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class AssistantMessageMetadataUsageTokenDetails + { + /// + /// 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.AssistantMessageMetadataUsageTokenDetails? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.AssistantMessageMetadataUsageTokenDetails), + jsonSerializerContext) as global::Phoenix.AssistantMessageMetadataUsageTokenDetails; + } + + /// + /// 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.AssistantMessageMetadataUsageTokenDetails? 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.AssistantMessageMetadataUsageTokenDetails), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMessageMetadataUsageTokenDetails; + } + + /// + /// 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.AssistantMessageMetadataUsageTokenDetails.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokenDetails.g.cs new file mode 100644 index 0000000..847e7da --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokenDetails.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class AssistantMessageMetadataUsageTokenDetails + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cacheRead")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CacheRead { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cacheWrite")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int CacheWrite { 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 AssistantMessageMetadataUsageTokenDetails( + int cacheRead, + int cacheWrite) + { + this.CacheRead = cacheRead; + this.CacheWrite = cacheWrite; + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantMessageMetadataUsageTokenDetails() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokens.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokens.Json.g.cs new file mode 100644 index 0000000..4fb2894 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokens.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class AssistantMessageMetadataUsageTokens + { + /// + /// 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.AssistantMessageMetadataUsageTokens? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.AssistantMessageMetadataUsageTokens), + jsonSerializerContext) as global::Phoenix.AssistantMessageMetadataUsageTokens; + } + + /// + /// 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.AssistantMessageMetadataUsageTokens? 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.AssistantMessageMetadataUsageTokens), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMessageMetadataUsageTokens; + } + + /// + /// 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.AssistantMessageMetadataUsageTokens.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokens.g.cs new file mode 100644 index 0000000..0546bbb --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMessageMetadataUsageTokens.g.cs @@ -0,0 +1,65 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class AssistantMessageMetadataUsageTokens + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Prompt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("completion")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Completion { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Total { 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 AssistantMessageMetadataUsageTokens( + int prompt, + int completion, + int total) + { + this.Prompt = prompt; + this.Completion = completion; + this.Total = total; + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantMessageMetadataUsageTokens() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageMessageId.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessage.Json.g.cs similarity index 86% rename from src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageMessageId.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessage.Json.g.cs index 22845c3..e90ad26 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageMessageId.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessage.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class RegenerateMessageMessageId + public sealed partial class AssistantMetadataUIMessage { /// /// 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.RegenerateMessageMessageId? FromJson( + public static global::Phoenix.AssistantMetadataUIMessage? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.RegenerateMessageMessageId), - jsonSerializerContext) as global::Phoenix.RegenerateMessageMessageId; + typeof(global::Phoenix.AssistantMetadataUIMessage), + jsonSerializerContext) as global::Phoenix.AssistantMetadataUIMessage; } /// @@ -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.RegenerateMessageMessageId? FromJson( + public static global::Phoenix.AssistantMetadataUIMessage? 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.RegenerateMessageMessageId), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.RegenerateMessageMessageId; + typeof(global::Phoenix.AssistantMetadataUIMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMetadataUIMessage; } /// @@ -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.AssistantMetadataUIMessage.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessage.g.cs new file mode 100644 index 0000000..1990d77 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessage.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// `UIMessage` with `metadata` narrowed to `AssistantMessageMetadata`. + /// + public sealed partial class AssistantMetadataUIMessage + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.AssistantMetadataUIMessageRoleJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Phoenix.AssistantMetadataUIMessageRole Role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::Phoenix.AssistantMessageMetadata? Metadata { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parts")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Parts { 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 AssistantMetadataUIMessage( + string id, + global::Phoenix.AssistantMetadataUIMessageRole role, + global::System.Collections.Generic.IList> parts, + global::Phoenix.AssistantMessageMetadata? metadata) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Role = role; + this.Metadata = metadata; + this.Parts = parts ?? throw new global::System.ArgumentNullException(nameof(parts)); + } + + /// + /// Initializes a new instance of the class. + /// + public AssistantMetadataUIMessage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageMetadata.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageMetadata.Json.g.cs new file mode 100644 index 0000000..c0bf24a --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageMetadata.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class AssistantMetadataUIMessageMetadata + { + /// + /// 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.AssistantMetadataUIMessageMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.AssistantMetadataUIMessageMetadata), + jsonSerializerContext) as global::Phoenix.AssistantMetadataUIMessageMetadata; + } + + /// + /// 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.AssistantMetadataUIMessageMetadata? 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.AssistantMetadataUIMessageMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.AssistantMetadataUIMessageMetadata; + } + + /// + /// 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.ChatV2ChatV2PostProvider.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageMetadata.g.cs similarity index 87% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageMetadata.g.cs index ab7e404..719865c 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageMetadata.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// /// - public sealed partial class ChatV2ChatV2PostProvider + public sealed partial class AssistantMetadataUIMessageMetadata { /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequestDiscriminatorTrigger.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageRole.g.cs similarity index 50% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequestDiscriminatorTrigger.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageRole.g.cs index 7ab2ef3..3ca8077 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequestDiscriminatorTrigger.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.AssistantMetadataUIMessageRole.g.cs @@ -6,44 +6,50 @@ namespace Phoenix /// /// /// - public enum ChatV2ChatV2PostRequestDiscriminatorTrigger + public enum AssistantMetadataUIMessageRole { /// /// /// - RegenerateMessage, + Assistant, /// /// /// - SubmitMessage, + System, + /// + /// + /// + User, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatV2ChatV2PostRequestDiscriminatorTriggerExtensions + public static class AssistantMetadataUIMessageRoleExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatV2ChatV2PostRequestDiscriminatorTrigger value) + public static string ToValueString(this AssistantMetadataUIMessageRole value) { return value switch { - ChatV2ChatV2PostRequestDiscriminatorTrigger.RegenerateMessage => "regenerate-message", - ChatV2ChatV2PostRequestDiscriminatorTrigger.SubmitMessage => "submit-message", + AssistantMetadataUIMessageRole.Assistant => "assistant", + AssistantMetadataUIMessageRole.System => "system", + AssistantMetadataUIMessageRole.User => "user", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatV2ChatV2PostRequestDiscriminatorTrigger? ToEnum(string value) + public static AssistantMetadataUIMessageRole? ToEnum(string value) { return value switch { - "regenerate-message" => ChatV2ChatV2PostRequestDiscriminatorTrigger.RegenerateMessage, - "submit-message" => ChatV2ChatV2PostRequestDiscriminatorTrigger.SubmitMessage, + "assistant" => AssistantMetadataUIMessageRole.Assistant, + "system" => AssistantMetadataUIMessageRole.System, + "user" => AssistantMetadataUIMessageRole.User, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs similarity index 52% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostOpenaiApiType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs index 3aceb45..563231c 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostOpenaiApiType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// Default Value: responses /// - public enum ChatV2ChatV2PostOpenaiApiType + public enum ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType { /// /// @@ -21,29 +21,29 @@ public enum ChatV2ChatV2PostOpenaiApiType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatV2ChatV2PostOpenaiApiTypeExtensions + public static class ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatV2ChatV2PostOpenaiApiType value) + public static string ToValueString(this ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType value) { return value switch { - ChatV2ChatV2PostOpenaiApiType.ChatCompletions => "chat_completions", - ChatV2ChatV2PostOpenaiApiType.Responses => "responses", + ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.ChatCompletions => "chat_completions", + ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.Responses => "responses", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatV2ChatV2PostOpenaiApiType? ToEnum(string value) + public static ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType? ToEnum(string value) { return value switch { - "chat_completions" => ChatV2ChatV2PostOpenaiApiType.ChatCompletions, - "responses" => ChatV2ChatV2PostOpenaiApiType.Responses, + "chat_completions" => ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.ChatCompletions, + "responses" => ChatAgentsAgentIdSessionsSessionIdChatPostOpenaiApiType.Responses, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.Json.g.cs new file mode 100644 index 0000000..a90ec20 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class ChatAgentsAgentIdSessionsSessionIdChatPostProvider + { + /// + /// 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.ChatAgentsAgentIdSessionsSessionIdChatPostProvider? 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; + } + + /// + /// 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.ChatAgentsAgentIdSessionsSessionIdChatPostProvider? 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.ChatAgentsAgentIdSessionsSessionIdChatPostProvider), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProvider; + } + + /// + /// 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.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.g.cs new file mode 100644 index 0000000..dee3fc6 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProvider.g.cs @@ -0,0 +1,19 @@ + +#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.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.Json.g.cs new file mode 100644 index 0000000..eeb0de7 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class ChatAgentsAgentIdSessionsSessionIdChatPostProviderId + { + /// + /// 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.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId? 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; + } + + /// + /// 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.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId? 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.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId; + } + + /// + /// 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.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.g.cs new file mode 100644 index 0000000..63509d7 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderId.g.cs @@ -0,0 +1,19 @@ + +#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.ChatV2ChatV2PostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs similarity index 53% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs index e249afb..327f55b 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// /// - public enum ChatV2ChatV2PostProviderType + public enum ChatAgentsAgentIdSessionsSessionIdChatPostProviderType { /// /// @@ -21,29 +21,29 @@ public enum ChatV2ChatV2PostProviderType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatV2ChatV2PostProviderTypeExtensions + public static class ChatAgentsAgentIdSessionsSessionIdChatPostProviderTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatV2ChatV2PostProviderType value) + public static string ToValueString(this ChatAgentsAgentIdSessionsSessionIdChatPostProviderType value) { return value switch { - ChatV2ChatV2PostProviderType.Builtin => "builtin", - ChatV2ChatV2PostProviderType.Custom => "custom", + ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.Builtin => "builtin", + ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.Custom => "custom", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatV2ChatV2PostProviderType? ToEnum(string value) + public static ChatAgentsAgentIdSessionsSessionIdChatPostProviderType? ToEnum(string value) { return value switch { - "builtin" => ChatV2ChatV2PostProviderType.Builtin, - "custom" => ChatV2ChatV2PostProviderType.Custom, + "builtin" => ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.Builtin, + "custom" => ChatAgentsAgentIdSessionsSessionIdChatPostProviderType.Custom, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostOpenaiApiType.g.cs deleted file mode 100644 index f01d1b8..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostOpenaiApiType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// Default Value: responses - /// - public enum ChatChatPostOpenaiApiType - { - /// - /// - /// - ChatCompletions, - /// - /// - /// - Responses, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ChatChatPostOpenaiApiTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ChatChatPostOpenaiApiType value) - { - return value switch - { - ChatChatPostOpenaiApiType.ChatCompletions => "chat_completions", - ChatChatPostOpenaiApiType.Responses => "responses", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ChatChatPostOpenaiApiType? ToEnum(string value) - { - return value switch - { - "chat_completions" => ChatChatPostOpenaiApiType.ChatCompletions, - "responses" => ChatChatPostOpenaiApiType.Responses, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.Json.g.cs similarity index 88% rename from src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.Json.g.cs index e80726d..41b3d10 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public readonly partial struct ContextsItem + public readonly partial struct ChatContext { /// /// 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.ContextsItem? FromJson( + public static global::Phoenix.ChatContext? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ContextsItem), - jsonSerializerContext) as global::Phoenix.ContextsItem?; + typeof(global::Phoenix.ChatContext), + jsonSerializerContext) as global::Phoenix.ChatContext?; } /// @@ -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.ContextsItem? FromJson( + public static global::Phoenix.ChatContext? 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.ContextsItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ContextsItem?; + typeof(global::Phoenix.ChatContext), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatContext?; } /// @@ -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.ContextsItem2.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.g.cs similarity index 85% rename from src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem2.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.g.cs index a14861d..4cb9751 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem2.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContext.g.cs @@ -5,14 +5,17 @@ namespace Phoenix { /// - /// + /// Discriminated union of every UI-state context the agent understands.
+ /// Wrapped in ``RootModel`` so the generated OpenAPI schema exposes a single
+ /// named ``ChatContext`` component instead of inlining the ``oneOf`` at every
+ /// reference site. The actual member is accessible via ``.root``. ///
- public readonly partial struct ContextsItem2 : global::System.IEquatable + public readonly partial struct ChatContext : global::System.IEquatable { /// /// /// - public global::Phoenix.SubmitMessageContextDiscriminatorType? Type { get; } + public global::Phoenix.ChatContextDiscriminatorType? Type { get; } /// /// Per-turn browser clock context for resolving relative time requests. @@ -211,17 +214,17 @@ public bool TryPickPlayground( /// /// /// - public static implicit operator ContextsItem2(global::Phoenix.AppContext value) => new ContextsItem2((global::Phoenix.AppContext?)value); + public static implicit operator ChatContext(global::Phoenix.AppContext value) => new ChatContext((global::Phoenix.AppContext?)value); /// /// /// - public static implicit operator global::Phoenix.AppContext?(ContextsItem2 @this) => @this.App; + public static implicit operator global::Phoenix.AppContext?(ChatContext @this) => @this.App; /// /// /// - public ContextsItem2(global::Phoenix.AppContext? value) + public ChatContext(global::Phoenix.AppContext? value) { App = value; } @@ -229,22 +232,22 @@ public ContextsItem2(global::Phoenix.AppContext? value) /// /// /// - public static ContextsItem2 FromApp(global::Phoenix.AppContext? value) => new ContextsItem2(value); + public static ChatContext FromApp(global::Phoenix.AppContext? value) => new ChatContext(value); /// /// /// - public static implicit operator ContextsItem2(global::Phoenix.ProjectContext value) => new ContextsItem2((global::Phoenix.ProjectContext?)value); + public static implicit operator ChatContext(global::Phoenix.ProjectContext value) => new ChatContext((global::Phoenix.ProjectContext?)value); /// /// /// - public static implicit operator global::Phoenix.ProjectContext?(ContextsItem2 @this) => @this.Project; + public static implicit operator global::Phoenix.ProjectContext?(ChatContext @this) => @this.Project; /// /// /// - public ContextsItem2(global::Phoenix.ProjectContext? value) + public ChatContext(global::Phoenix.ProjectContext? value) { Project = value; } @@ -252,22 +255,22 @@ public ContextsItem2(global::Phoenix.ProjectContext? value) /// /// /// - public static ContextsItem2 FromProject(global::Phoenix.ProjectContext? value) => new ContextsItem2(value); + public static ChatContext FromProject(global::Phoenix.ProjectContext? value) => new ChatContext(value); /// /// /// - public static implicit operator ContextsItem2(global::Phoenix.TraceContext value) => new ContextsItem2((global::Phoenix.TraceContext?)value); + public static implicit operator ChatContext(global::Phoenix.TraceContext value) => new ChatContext((global::Phoenix.TraceContext?)value); /// /// /// - public static implicit operator global::Phoenix.TraceContext?(ContextsItem2 @this) => @this.Trace; + public static implicit operator global::Phoenix.TraceContext?(ChatContext @this) => @this.Trace; /// /// /// - public ContextsItem2(global::Phoenix.TraceContext? value) + public ChatContext(global::Phoenix.TraceContext? value) { Trace = value; } @@ -275,22 +278,22 @@ public ContextsItem2(global::Phoenix.TraceContext? value) /// /// /// - public static ContextsItem2 FromTrace(global::Phoenix.TraceContext? value) => new ContextsItem2(value); + public static ChatContext FromTrace(global::Phoenix.TraceContext? value) => new ChatContext(value); /// /// /// - public static implicit operator ContextsItem2(global::Phoenix.AgentSpanContext value) => new ContextsItem2((global::Phoenix.AgentSpanContext?)value); + public static implicit operator ChatContext(global::Phoenix.AgentSpanContext value) => new ChatContext((global::Phoenix.AgentSpanContext?)value); /// /// /// - public static implicit operator global::Phoenix.AgentSpanContext?(ContextsItem2 @this) => @this.Span; + public static implicit operator global::Phoenix.AgentSpanContext?(ChatContext @this) => @this.Span; /// /// /// - public ContextsItem2(global::Phoenix.AgentSpanContext? value) + public ChatContext(global::Phoenix.AgentSpanContext? value) { Span = value; } @@ -298,22 +301,22 @@ public ContextsItem2(global::Phoenix.AgentSpanContext? value) /// /// /// - public static ContextsItem2 FromSpan(global::Phoenix.AgentSpanContext? value) => new ContextsItem2(value); + public static ChatContext FromSpan(global::Phoenix.AgentSpanContext? value) => new ChatContext(value); /// /// /// - public static implicit operator ContextsItem2(global::Phoenix.PlaygroundContext value) => new ContextsItem2((global::Phoenix.PlaygroundContext?)value); + public static implicit operator ChatContext(global::Phoenix.PlaygroundContext value) => new ChatContext((global::Phoenix.PlaygroundContext?)value); /// /// /// - public static implicit operator global::Phoenix.PlaygroundContext?(ContextsItem2 @this) => @this.Playground; + public static implicit operator global::Phoenix.PlaygroundContext?(ChatContext @this) => @this.Playground; /// /// /// - public ContextsItem2(global::Phoenix.PlaygroundContext? value) + public ChatContext(global::Phoenix.PlaygroundContext? value) { Playground = value; } @@ -321,13 +324,13 @@ public ContextsItem2(global::Phoenix.PlaygroundContext? value) /// /// /// - public static ContextsItem2 FromPlayground(global::Phoenix.PlaygroundContext? value) => new ContextsItem2(value); + public static ChatContext FromPlayground(global::Phoenix.PlaygroundContext? value) => new ChatContext(value); /// /// /// - public ContextsItem2( - global::Phoenix.SubmitMessageContextDiscriminatorType? type, + public ChatContext( + global::Phoenix.ChatContextDiscriminatorType? type, global::Phoenix.AppContext? app, global::Phoenix.ProjectContext? project, global::Phoenix.TraceContext? trace, @@ -524,7 +527,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(ContextsItem2 other) + public bool Equals(ChatContext other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(App, other.App) && @@ -538,15 +541,15 @@ public bool Equals(ContextsItem2 other) /// /// /// - public static bool operator ==(ContextsItem2 obj1, ContextsItem2 obj2) + public static bool operator ==(ChatContext obj1, ChatContext obj2) { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(ContextsItem2 obj1, ContextsItem2 obj2) + public static bool operator !=(ChatContext obj1, ChatContext obj2) { return !(obj1 == obj2); } @@ -556,7 +559,7 @@ public bool Equals(ContextsItem2 other) /// public override bool Equals(object? obj) { - return obj is ContextsItem2 o && Equals(o); + return obj is ChatContext o && Equals(o); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminator.Json.g.cs similarity index 87% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminator.Json.g.cs index ad4588c..61b4960 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatV2ChatV2PostProvider + public sealed partial class ChatContextDiscriminator { /// /// 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.ChatV2ChatV2PostProvider? FromJson( + public static global::Phoenix.ChatContextDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatV2ChatV2PostProvider), - jsonSerializerContext) as global::Phoenix.ChatV2ChatV2PostProvider; + typeof(global::Phoenix.ChatContextDiscriminator), + jsonSerializerContext) as global::Phoenix.ChatContextDiscriminator; } /// @@ -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.ChatV2ChatV2PostProvider? FromJson( + public static global::Phoenix.ChatContextDiscriminator? 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.ChatV2ChatV2PostProvider), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatV2ChatV2PostProvider; + typeof(global::Phoenix.ChatContextDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatContextDiscriminator; } /// @@ -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.SubmitMessageContextDiscriminator.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminator.g.cs similarity index 60% rename from src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessageContextDiscriminator.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminator.g.cs index af7dc45..94e069e 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessageContextDiscriminator.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminator.g.cs @@ -6,14 +6,14 @@ namespace Phoenix /// /// /// - public sealed partial class SubmitMessageContextDiscriminator + public sealed partial class ChatContextDiscriminator { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.SubmitMessageContextDiscriminatorTypeJsonConverter))] - public global::Phoenix.SubmitMessageContextDiscriminatorType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ChatContextDiscriminatorTypeJsonConverter))] + public global::Phoenix.ChatContextDiscriminatorType? Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +22,22 @@ public sealed partial class SubmitMessageContextDiscriminator public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public SubmitMessageContextDiscriminator( - global::Phoenix.SubmitMessageContextDiscriminatorType? type) + public ChatContextDiscriminator( + global::Phoenix.ChatContextDiscriminatorType? type) { this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public SubmitMessageContextDiscriminator() + public ChatContextDiscriminator() { } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessageContextDiscriminatorType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminatorType.g.cs similarity index 50% rename from src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessageContextDiscriminatorType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminatorType.g.cs index d24ac3c..20a5bc6 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessageContextDiscriminatorType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatContextDiscriminatorType.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// /// - public enum SubmitMessageContextDiscriminatorType + public enum ChatContextDiscriminatorType { /// /// @@ -33,35 +33,35 @@ public enum SubmitMessageContextDiscriminatorType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class SubmitMessageContextDiscriminatorTypeExtensions + public static class ChatContextDiscriminatorTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this SubmitMessageContextDiscriminatorType value) + public static string ToValueString(this ChatContextDiscriminatorType value) { return value switch { - SubmitMessageContextDiscriminatorType.App => "app", - SubmitMessageContextDiscriminatorType.Playground => "playground", - SubmitMessageContextDiscriminatorType.Project => "project", - SubmitMessageContextDiscriminatorType.Span => "span", - SubmitMessageContextDiscriminatorType.Trace => "trace", + ChatContextDiscriminatorType.App => "app", + ChatContextDiscriminatorType.Playground => "playground", + ChatContextDiscriminatorType.Project => "project", + ChatContextDiscriminatorType.Span => "span", + ChatContextDiscriminatorType.Trace => "trace", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static SubmitMessageContextDiscriminatorType? ToEnum(string value) + public static ChatContextDiscriminatorType? ToEnum(string value) { return value switch { - "app" => SubmitMessageContextDiscriminatorType.App, - "playground" => SubmitMessageContextDiscriminatorType.Playground, - "project" => SubmitMessageContextDiscriminatorType.Project, - "span" => SubmitMessageContextDiscriminatorType.Span, - "trace" => SubmitMessageContextDiscriminatorType.Trace, + "app" => ChatContextDiscriminatorType.App, + "playground" => ChatContextDiscriminatorType.Playground, + "project" => ChatContextDiscriminatorType.Project, + "span" => ChatContextDiscriminatorType.Span, + "trace" => ChatContextDiscriminatorType.Trace, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostResponse.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessage.Json.g.cs similarity index 87% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostResponse.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessage.Json.g.cs index f530fd7..ca59e8f 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostResponse.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessage.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatChatPostResponse + public sealed partial class ChatRegenerateMessage { /// /// 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.ChatChatPostResponse? FromJson( + public static global::Phoenix.ChatRegenerateMessage? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatChatPostResponse), - jsonSerializerContext) as global::Phoenix.ChatChatPostResponse; + typeof(global::Phoenix.ChatRegenerateMessage), + jsonSerializerContext) as global::Phoenix.ChatRegenerateMessage; } /// @@ -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.ChatChatPostResponse? FromJson( + public static global::Phoenix.ChatRegenerateMessage? 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.ChatChatPostResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatChatPostResponse; + typeof(global::Phoenix.ChatRegenerateMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatRegenerateMessage; } /// @@ -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.RegenerateMessage.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessage.g.cs similarity index 73% rename from src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessage.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessage.g.cs index 104ae4d..e56ee2e 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessage.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessage.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// Regenerate message extended with Phoenix-specific fields. /// - public sealed partial class RegenerateMessage + public sealed partial class ChatRegenerateMessage { /// /// @@ -27,7 +27,7 @@ public sealed partial class RegenerateMessage /// [global::System.Text.Json.Serialization.JsonPropertyName("messages")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Messages { get; set; } + public required global::System.Collections.Generic.IList Messages { get; set; } /// /// @@ -35,11 +35,23 @@ public sealed partial class RegenerateMessage [global::System.Text.Json.Serialization.JsonPropertyName("messageId")] public string? MessageId { get; set; } + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ingestTraces")] + public bool? IngestTraces { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exportRemoteTraces")] + public bool? ExportRemoteTraces { get; set; } + /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("contexts")] - public global::System.Collections.Generic.IList? Contexts { get; set; } + public global::System.Collections.Generic.IList? Contexts { get; set; } /// /// Runtime capability state sent by the browser for a chat turn. @@ -47,13 +59,6 @@ public sealed partial class RegenerateMessage [global::System.Text.Json.Serialization.JsonPropertyName("capabilities")] public global::Phoenix.AgentCapabilities? Capabilities { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sessionId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SessionId { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -61,12 +66,17 @@ public sealed partial class RegenerateMessage public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// - /// /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// /// /// /// Runtime capability state sent by the browser for a chat turn. @@ -75,12 +85,13 @@ public sealed partial class RegenerateMessage #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public RegenerateMessage( + public ChatRegenerateMessage( string id, - global::System.Collections.Generic.IList messages, - string sessionId, + global::System.Collections.Generic.IList messages, string? messageId, - global::System.Collections.Generic.IList? contexts, + bool? ingestTraces, + bool? exportRemoteTraces, + global::System.Collections.Generic.IList? contexts, global::Phoenix.AgentCapabilities? capabilities, string trigger = "regenerate-message") { @@ -88,15 +99,16 @@ public RegenerateMessage( this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); this.MessageId = messageId; + this.IngestTraces = ingestTraces; + this.ExportRemoteTraces = exportRemoteTraces; this.Contexts = contexts; this.Capabilities = capabilities; - this.SessionId = sessionId ?? throw new global::System.ArgumentNullException(nameof(sessionId)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public RegenerateMessage() + public ChatRegenerateMessage() { } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageMessageId.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageMessageId.Json.g.cs new file mode 100644 index 0000000..a45b6b3 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageMessageId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class ChatRegenerateMessageMessageId + { + /// + /// 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.ChatRegenerateMessageMessageId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.ChatRegenerateMessageMessageId), + jsonSerializerContext) as global::Phoenix.ChatRegenerateMessageMessageId; + } + + /// + /// 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.ChatRegenerateMessageMessageId? 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.ChatRegenerateMessageMessageId), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatRegenerateMessageMessageId; + } + + /// + /// 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.ChatChatPostResponse.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageMessageId.g.cs similarity index 88% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostResponse.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageMessageId.g.cs index 8da1f45..e119f23 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostResponse.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRegenerateMessageMessageId.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// /// - public sealed partial class ChatChatPostResponse + public sealed partial class ChatRegenerateMessageMessageId { /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessage.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequest.Json.g.cs similarity index 88% rename from src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessage.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRequest.Json.g.cs index e9d9e87..440bf39 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessage.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class SubmitMessage + public readonly partial struct ChatRequest { /// /// 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.SubmitMessage? FromJson( + public static global::Phoenix.ChatRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.SubmitMessage), - jsonSerializerContext) as global::Phoenix.SubmitMessage; + typeof(global::Phoenix.ChatRequest), + jsonSerializerContext) as global::Phoenix.ChatRequest?; } /// @@ -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.SubmitMessage? FromJson( + public static global::Phoenix.ChatRequest? 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.SubmitMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.SubmitMessage; + typeof(global::Phoenix.ChatRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatRequest?; } /// @@ -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.ChatV2ChatV2PostRequest.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequest.g.cs similarity index 65% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequest.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRequest.g.cs index d644fa3..2d39a11 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequest.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequest.g.cs @@ -5,22 +5,22 @@ namespace Phoenix { /// - /// + /// Discriminated union of chat request payloads. /// - public readonly partial struct ChatV2ChatV2PostRequest : global::System.IEquatable + public readonly partial struct ChatRequest : global::System.IEquatable { /// /// /// - public global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger? Trigger { get; } + public global::Phoenix.ChatRequestDiscriminatorTrigger? Trigger { get; } /// /// Submit message extended with Phoenix-specific fields. /// #if NET6_0_OR_GREATER - public global::Phoenix.SubmitMessage? SubmitMessage { get; init; } + public global::Phoenix.ChatSubmitMessage? SubmitMessage { get; init; } #else - public global::Phoenix.SubmitMessage? SubmitMessage { get; } + public global::Phoenix.ChatSubmitMessage? SubmitMessage { get; } #endif /// @@ -38,7 +38,7 @@ public bool TryPickSubmitMessage( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Phoenix.SubmitMessage? value) + out global::Phoenix.ChatSubmitMessage? value) { value = SubmitMessage; return IsSubmitMessage; @@ -47,7 +47,7 @@ public bool TryPickSubmitMessage( /// /// /// - public global::Phoenix.SubmitMessage PickSubmitMessage() => IsSubmitMessage + public global::Phoenix.ChatSubmitMessage PickSubmitMessage() => IsSubmitMessage ? SubmitMessage! : throw new global::System.InvalidOperationException($"Expected union variant 'SubmitMessage' but the value was {ToString()}."); @@ -55,9 +55,9 @@ public bool TryPickSubmitMessage( /// Regenerate message extended with Phoenix-specific fields. /// #if NET6_0_OR_GREATER - public global::Phoenix.RegenerateMessage? RegenerateMessage { get; init; } + public global::Phoenix.ChatRegenerateMessage? RegenerateMessage { get; init; } #else - public global::Phoenix.RegenerateMessage? RegenerateMessage { get; } + public global::Phoenix.ChatRegenerateMessage? RegenerateMessage { get; } #endif /// @@ -75,7 +75,7 @@ public bool TryPickRegenerateMessage( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Phoenix.RegenerateMessage? value) + out global::Phoenix.ChatRegenerateMessage? value) { value = RegenerateMessage; return IsRegenerateMessage; @@ -84,23 +84,23 @@ public bool TryPickRegenerateMessage( /// /// /// - public global::Phoenix.RegenerateMessage PickRegenerateMessage() => IsRegenerateMessage + public global::Phoenix.ChatRegenerateMessage PickRegenerateMessage() => IsRegenerateMessage ? RegenerateMessage! : throw new global::System.InvalidOperationException($"Expected union variant 'RegenerateMessage' but the value was {ToString()}."); /// /// /// - public static implicit operator ChatV2ChatV2PostRequest(global::Phoenix.SubmitMessage value) => new ChatV2ChatV2PostRequest((global::Phoenix.SubmitMessage?)value); + public static implicit operator ChatRequest(global::Phoenix.ChatSubmitMessage value) => new ChatRequest((global::Phoenix.ChatSubmitMessage?)value); /// /// /// - public static implicit operator global::Phoenix.SubmitMessage?(ChatV2ChatV2PostRequest @this) => @this.SubmitMessage; + public static implicit operator global::Phoenix.ChatSubmitMessage?(ChatRequest @this) => @this.SubmitMessage; /// /// /// - public ChatV2ChatV2PostRequest(global::Phoenix.SubmitMessage? value) + public ChatRequest(global::Phoenix.ChatSubmitMessage? value) { SubmitMessage = value; } @@ -108,22 +108,22 @@ public ChatV2ChatV2PostRequest(global::Phoenix.SubmitMessage? value) /// /// /// - public static ChatV2ChatV2PostRequest FromSubmitMessage(global::Phoenix.SubmitMessage? value) => new ChatV2ChatV2PostRequest(value); + public static ChatRequest FromSubmitMessage(global::Phoenix.ChatSubmitMessage? value) => new ChatRequest(value); /// /// /// - public static implicit operator ChatV2ChatV2PostRequest(global::Phoenix.RegenerateMessage value) => new ChatV2ChatV2PostRequest((global::Phoenix.RegenerateMessage?)value); + public static implicit operator ChatRequest(global::Phoenix.ChatRegenerateMessage value) => new ChatRequest((global::Phoenix.ChatRegenerateMessage?)value); /// /// /// - public static implicit operator global::Phoenix.RegenerateMessage?(ChatV2ChatV2PostRequest @this) => @this.RegenerateMessage; + public static implicit operator global::Phoenix.ChatRegenerateMessage?(ChatRequest @this) => @this.RegenerateMessage; /// /// /// - public ChatV2ChatV2PostRequest(global::Phoenix.RegenerateMessage? value) + public ChatRequest(global::Phoenix.ChatRegenerateMessage? value) { RegenerateMessage = value; } @@ -131,15 +131,15 @@ public ChatV2ChatV2PostRequest(global::Phoenix.RegenerateMessage? value) /// /// /// - public static ChatV2ChatV2PostRequest FromRegenerateMessage(global::Phoenix.RegenerateMessage? value) => new ChatV2ChatV2PostRequest(value); + public static ChatRequest FromRegenerateMessage(global::Phoenix.ChatRegenerateMessage? value) => new ChatRequest(value); /// /// /// - public ChatV2ChatV2PostRequest( - global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger? trigger, - global::Phoenix.SubmitMessage? submitMessage, - global::Phoenix.RegenerateMessage? regenerateMessage + public ChatRequest( + global::Phoenix.ChatRequestDiscriminatorTrigger? trigger, + global::Phoenix.ChatSubmitMessage? submitMessage, + global::Phoenix.ChatRegenerateMessage? regenerateMessage ) { Trigger = trigger; @@ -176,8 +176,8 @@ public bool Validate() /// /// public TResult? Match( - global::System.Func? submitMessage = null, - global::System.Func? regenerateMessage = null, + global::System.Func? submitMessage = null, + global::System.Func? regenerateMessage = null, bool validate = true) { if (validate) @@ -201,9 +201,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? submitMessage = null, + global::System.Action? submitMessage = null, - global::System.Action? regenerateMessage = null, + global::System.Action? regenerateMessage = null, bool validate = true) { if (validate) @@ -225,8 +225,8 @@ public void Match( /// /// public void Switch( - global::System.Action? submitMessage = null, - global::System.Action? regenerateMessage = null, + global::System.Action? submitMessage = null, + global::System.Action? regenerateMessage = null, bool validate = true) { if (validate) @@ -252,9 +252,9 @@ public override int GetHashCode() var fields = new object?[] { SubmitMessage, - typeof(global::Phoenix.SubmitMessage), + typeof(global::Phoenix.ChatSubmitMessage), RegenerateMessage, - typeof(global::Phoenix.RegenerateMessage), + typeof(global::Phoenix.ChatRegenerateMessage), }; const int offset = unchecked((int)2166136261); const int prime = 16777619; @@ -268,26 +268,26 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(ChatV2ChatV2PostRequest other) + public bool Equals(ChatRequest other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(SubmitMessage, other.SubmitMessage) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RegenerateMessage, other.RegenerateMessage) + global::System.Collections.Generic.EqualityComparer.Default.Equals(SubmitMessage, other.SubmitMessage) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RegenerateMessage, other.RegenerateMessage) ; } /// /// /// - public static bool operator ==(ChatV2ChatV2PostRequest obj1, ChatV2ChatV2PostRequest obj2) + public static bool operator ==(ChatRequest obj1, ChatRequest obj2) { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(ChatV2ChatV2PostRequest obj1, ChatV2ChatV2PostRequest obj2) + public static bool operator !=(ChatRequest obj1, ChatRequest obj2) { return !(obj1 == obj2); } @@ -297,7 +297,7 @@ public bool Equals(ChatV2ChatV2PostRequest other) /// public override bool Equals(object? obj) { - return obj is ChatV2ChatV2PostRequest o && Equals(o); + return obj is ChatRequest o && Equals(o); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProvider.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequestDiscriminator.Json.g.cs similarity index 86% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProvider.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRequestDiscriminator.Json.g.cs index a766d90..b00c215 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProvider.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequestDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatChatPostProvider + public sealed partial class ChatRequestDiscriminator { /// /// 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.ChatChatPostProvider? FromJson( + public static global::Phoenix.ChatRequestDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatChatPostProvider), - jsonSerializerContext) as global::Phoenix.ChatChatPostProvider; + typeof(global::Phoenix.ChatRequestDiscriminator), + jsonSerializerContext) as global::Phoenix.ChatRequestDiscriminator; } /// @@ -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.ChatChatPostProvider? FromJson( + public static global::Phoenix.ChatRequestDiscriminator? 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.ChatChatPostProvider), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatChatPostProvider; + typeof(global::Phoenix.ChatRequestDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatRequestDiscriminator; } /// @@ -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.ChatV2ChatV2PostRequestDiscriminator.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequestDiscriminator.g.cs similarity index 59% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequestDiscriminator.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRequestDiscriminator.g.cs index b820169..e3eb120 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRequestDiscriminator.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequestDiscriminator.g.cs @@ -6,14 +6,14 @@ namespace Phoenix /// /// /// - public sealed partial class ChatV2ChatV2PostRequestDiscriminator + public sealed partial class ChatRequestDiscriminator { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("trigger")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostRequestDiscriminatorTriggerJsonConverter))] - public global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger? Trigger { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ChatRequestDiscriminatorTriggerJsonConverter))] + public global::Phoenix.ChatRequestDiscriminatorTrigger? Trigger { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +22,22 @@ public sealed partial class ChatV2ChatV2PostRequestDiscriminator public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatV2ChatV2PostRequestDiscriminator( - global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger? trigger) + public ChatRequestDiscriminator( + global::Phoenix.ChatRequestDiscriminatorTrigger? trigger) { this.Trigger = trigger; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatV2ChatV2PostRequestDiscriminator() + public ChatRequestDiscriminator() { } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequestDiscriminatorTrigger.g.cs similarity index 54% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatRequestDiscriminatorTrigger.g.cs index e5a2060..40d54a9 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatRequestDiscriminatorTrigger.g.cs @@ -6,44 +6,44 @@ namespace Phoenix /// /// /// - public enum ChatChatPostProviderType + public enum ChatRequestDiscriminatorTrigger { /// /// /// - Builtin, + RegenerateMessage, /// /// /// - Custom, + SubmitMessage, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatChatPostProviderTypeExtensions + public static class ChatRequestDiscriminatorTriggerExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatChatPostProviderType value) + public static string ToValueString(this ChatRequestDiscriminatorTrigger value) { return value switch { - ChatChatPostProviderType.Builtin => "builtin", - ChatChatPostProviderType.Custom => "custom", + ChatRequestDiscriminatorTrigger.RegenerateMessage => "regenerate-message", + ChatRequestDiscriminatorTrigger.SubmitMessage => "submit-message", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatChatPostProviderType? ToEnum(string value) + public static ChatRequestDiscriminatorTrigger? ToEnum(string value) { return value switch { - "builtin" => ChatChatPostProviderType.Builtin, - "custom" => ChatChatPostProviderType.Custom, + "regenerate-message" => ChatRequestDiscriminatorTrigger.RegenerateMessage, + "submit-message" => ChatRequestDiscriminatorTrigger.SubmitMessage, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessage.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.Json.g.cs similarity index 87% rename from src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessage.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.Json.g.cs index 17bc8b6..a4f24ad 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessage.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class RegenerateMessage + public sealed partial class ChatSubmitMessage { /// /// 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.RegenerateMessage? FromJson( + public static global::Phoenix.ChatSubmitMessage? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.RegenerateMessage), - jsonSerializerContext) as global::Phoenix.RegenerateMessage; + typeof(global::Phoenix.ChatSubmitMessage), + jsonSerializerContext) as global::Phoenix.ChatSubmitMessage; } /// @@ -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.RegenerateMessage? FromJson( + public static global::Phoenix.ChatSubmitMessage? 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.RegenerateMessage), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.RegenerateMessage; + typeof(global::Phoenix.ChatSubmitMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatSubmitMessage; } /// @@ -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.SubmitMessage.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.g.cs similarity index 71% rename from src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessage.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.g.cs index d1ab7a6..09bf0b2 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessage.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatSubmitMessage.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// Submit message extended with Phoenix-specific fields. /// - public sealed partial class SubmitMessage + public sealed partial class ChatSubmitMessage { /// /// Default Value: submit-message @@ -26,13 +26,25 @@ public sealed partial class SubmitMessage /// [global::System.Text.Json.Serialization.JsonPropertyName("messages")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Messages { get; set; } + public required global::System.Collections.Generic.IList Messages { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ingestTraces")] + public bool? IngestTraces { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exportRemoteTraces")] + public bool? ExportRemoteTraces { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("contexts")] - public global::System.Collections.Generic.IList? Contexts { get; set; } + public global::System.Collections.Generic.IList? Contexts { get; set; } /// /// Runtime capability state sent by the browser for a chat turn. @@ -40,13 +52,6 @@ public sealed partial class SubmitMessage [global::System.Text.Json.Serialization.JsonPropertyName("capabilities")] public global::Phoenix.AgentCapabilities? Capabilities { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sessionId")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string SessionId { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,14 +59,19 @@ public sealed partial class SubmitMessage public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// - /// /// /// Default Value: submit-message /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// /// /// /// Runtime capability state sent by the browser for a chat turn. @@ -69,26 +79,28 @@ public sealed partial class SubmitMessage #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public SubmitMessage( + public ChatSubmitMessage( string id, - global::System.Collections.Generic.IList messages, - string sessionId, + global::System.Collections.Generic.IList messages, string? trigger, - global::System.Collections.Generic.IList? contexts, + bool? ingestTraces, + bool? exportRemoteTraces, + global::System.Collections.Generic.IList? contexts, global::Phoenix.AgentCapabilities? capabilities) { this.Trigger = trigger; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); + this.IngestTraces = ingestTraces; + this.ExportRemoteTraces = exportRemoteTraces; this.Contexts = contexts; this.Capabilities = capabilities; - this.SessionId = sessionId ?? throw new global::System.ArgumentNullException(nameof(sessionId)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public SubmitMessage() + public ChatSubmitMessage() { } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.g.cs deleted file mode 100644 index f0e64bb..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public sealed partial class ChatV2ChatV2PostProviderId - { - - /// - /// 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.ChatV2ChatV2PostResponse.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostResponse.g.cs deleted file mode 100644 index 77e5e84..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostResponse.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public sealed partial class ChatV2ChatV2PostResponse - { - - /// - /// 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.ContextsItem.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem.g.cs deleted file mode 100644 index 791d191..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem.g.cs +++ /dev/null @@ -1,562 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public readonly partial struct ContextsItem : global::System.IEquatable - { - /// - /// - /// - public global::Phoenix.RegenerateMessageContextDiscriminatorType? Type { get; } - - /// - /// Per-turn browser clock context for resolving relative time requests. - /// -#if NET6_0_OR_GREATER - public global::Phoenix.AppContext? App { get; init; } -#else - public global::Phoenix.AppContext? App { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(App))] -#endif - public bool IsApp => App != null; - - /// - /// - /// - public bool TryPickApp( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Phoenix.AppContext? value) - { - value = App; - return IsApp; - } - - /// - /// - /// - public global::Phoenix.AppContext PickApp() => IsApp - ? App! - : throw new global::System.InvalidOperationException($"Expected union variant 'App' but the value was {ToString()}."); - - /// - /// Project the user is currently viewing.
- /// ``span_filter`` carries the project-scoped span filter expression when the
- /// span filter field is mounted — empty string when the field is mounted with
- /// no condition applied, ``None`` when the field is not present at all.
- /// ``root_spans_only`` carries the current state of the spans-table root vs.
- /// all toggle when that toggle is mounted — ``True`` when the table is
- /// restricted to root spans, ``False`` when it shows every span, ``None``
- /// when the toggle is not present (e.g. on the traces tab). - ///
-#if NET6_0_OR_GREATER - public global::Phoenix.ProjectContext? Project { get; init; } -#else - public global::Phoenix.ProjectContext? Project { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Project))] -#endif - public bool IsProject => Project != null; - - /// - /// - /// - public bool TryPickProject( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Phoenix.ProjectContext? value) - { - value = Project; - return IsProject; - } - - /// - /// - /// - public global::Phoenix.ProjectContext PickProject() => IsProject - ? Project! - : throw new global::System.InvalidOperationException($"Expected union variant 'Project' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::Phoenix.TraceContext? Trace { get; init; } -#else - public global::Phoenix.TraceContext? Trace { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Trace))] -#endif - public bool IsTrace => Trace != null; - - /// - /// - /// - public bool TryPickTrace( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Phoenix.TraceContext? value) - { - value = Trace; - return IsTrace; - } - - /// - /// - /// - public global::Phoenix.TraceContext PickTrace() => IsTrace - ? Trace! - : throw new global::System.InvalidOperationException($"Expected union variant 'Trace' but the value was {ToString()}."); - - /// - /// Span the user has selected.
- /// Exactly one of ``span_node_id`` (relay) or ``otel_span_id`` (OpenTelemetry
- /// hex) must be set. ``project_node_id`` is optional because a span can be
- /// selected from views outside a project route. - ///
-#if NET6_0_OR_GREATER - public global::Phoenix.AgentSpanContext? Span { get; init; } -#else - public global::Phoenix.AgentSpanContext? Span { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Span))] -#endif - public bool IsSpan => Span != null; - - /// - /// - /// - public bool TryPickSpan( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Phoenix.AgentSpanContext? value) - { - value = Span; - return IsSpan; - } - - /// - /// - /// - public global::Phoenix.AgentSpanContext PickSpan() => IsSpan - ? Span! - : throw new global::System.InvalidOperationException($"Expected union variant 'Span' but the value was {ToString()}."); - - /// - /// Playground prompt editor state mounted in the current browser route. - /// -#if NET6_0_OR_GREATER - public global::Phoenix.PlaygroundContext? Playground { get; init; } -#else - public global::Phoenix.PlaygroundContext? Playground { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Playground))] -#endif - public bool IsPlayground => Playground != null; - - /// - /// - /// - public bool TryPickPlayground( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Phoenix.PlaygroundContext? value) - { - value = Playground; - return IsPlayground; - } - - /// - /// - /// - public global::Phoenix.PlaygroundContext PickPlayground() => IsPlayground - ? Playground! - : throw new global::System.InvalidOperationException($"Expected union variant 'Playground' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator ContextsItem(global::Phoenix.AppContext value) => new ContextsItem((global::Phoenix.AppContext?)value); - - /// - /// - /// - public static implicit operator global::Phoenix.AppContext?(ContextsItem @this) => @this.App; - - /// - /// - /// - public ContextsItem(global::Phoenix.AppContext? value) - { - App = value; - } - - /// - /// - /// - public static ContextsItem FromApp(global::Phoenix.AppContext? value) => new ContextsItem(value); - - /// - /// - /// - public static implicit operator ContextsItem(global::Phoenix.ProjectContext value) => new ContextsItem((global::Phoenix.ProjectContext?)value); - - /// - /// - /// - public static implicit operator global::Phoenix.ProjectContext?(ContextsItem @this) => @this.Project; - - /// - /// - /// - public ContextsItem(global::Phoenix.ProjectContext? value) - { - Project = value; - } - - /// - /// - /// - public static ContextsItem FromProject(global::Phoenix.ProjectContext? value) => new ContextsItem(value); - - /// - /// - /// - public static implicit operator ContextsItem(global::Phoenix.TraceContext value) => new ContextsItem((global::Phoenix.TraceContext?)value); - - /// - /// - /// - public static implicit operator global::Phoenix.TraceContext?(ContextsItem @this) => @this.Trace; - - /// - /// - /// - public ContextsItem(global::Phoenix.TraceContext? value) - { - Trace = value; - } - - /// - /// - /// - public static ContextsItem FromTrace(global::Phoenix.TraceContext? value) => new ContextsItem(value); - - /// - /// - /// - public static implicit operator ContextsItem(global::Phoenix.AgentSpanContext value) => new ContextsItem((global::Phoenix.AgentSpanContext?)value); - - /// - /// - /// - public static implicit operator global::Phoenix.AgentSpanContext?(ContextsItem @this) => @this.Span; - - /// - /// - /// - public ContextsItem(global::Phoenix.AgentSpanContext? value) - { - Span = value; - } - - /// - /// - /// - public static ContextsItem FromSpan(global::Phoenix.AgentSpanContext? value) => new ContextsItem(value); - - /// - /// - /// - public static implicit operator ContextsItem(global::Phoenix.PlaygroundContext value) => new ContextsItem((global::Phoenix.PlaygroundContext?)value); - - /// - /// - /// - public static implicit operator global::Phoenix.PlaygroundContext?(ContextsItem @this) => @this.Playground; - - /// - /// - /// - public ContextsItem(global::Phoenix.PlaygroundContext? value) - { - Playground = value; - } - - /// - /// - /// - public static ContextsItem FromPlayground(global::Phoenix.PlaygroundContext? value) => new ContextsItem(value); - - /// - /// - /// - public ContextsItem( - global::Phoenix.RegenerateMessageContextDiscriminatorType? type, - global::Phoenix.AppContext? app, - global::Phoenix.ProjectContext? project, - global::Phoenix.TraceContext? trace, - global::Phoenix.AgentSpanContext? span, - global::Phoenix.PlaygroundContext? playground - ) - { - Type = type; - - App = app; - Project = project; - Trace = trace; - Span = span; - Playground = playground; - } - - /// - /// - /// - public object? Object => - Playground as object ?? - Span as object ?? - Trace as object ?? - Project as object ?? - App as object - ; - - /// - /// - /// - public override string? ToString() => - App?.ToString() ?? - Project?.ToString() ?? - Trace?.ToString() ?? - Span?.ToString() ?? - Playground?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsApp && !IsProject && !IsTrace && !IsSpan && !IsPlayground || !IsApp && IsProject && !IsTrace && !IsSpan && !IsPlayground || !IsApp && !IsProject && IsTrace && !IsSpan && !IsPlayground || !IsApp && !IsProject && !IsTrace && IsSpan && !IsPlayground || !IsApp && !IsProject && !IsTrace && !IsSpan && IsPlayground; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? app = null, - global::System.Func? project = null, - global::System.Func? trace = null, - global::System.Func? span = null, - global::System.Func? playground = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApp && app != null) - { - return app(App!); - } - else if (IsProject && project != null) - { - return project(Project!); - } - else if (IsTrace && trace != null) - { - return trace(Trace!); - } - else if (IsSpan && span != null) - { - return span(Span!); - } - else if (IsPlayground && playground != null) - { - return playground(Playground!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? app = null, - - global::System.Action? project = null, - - global::System.Action? trace = null, - - global::System.Action? span = null, - - global::System.Action? playground = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApp) - { - app?.Invoke(App!); - } - else if (IsProject) - { - project?.Invoke(Project!); - } - else if (IsTrace) - { - trace?.Invoke(Trace!); - } - else if (IsSpan) - { - span?.Invoke(Span!); - } - else if (IsPlayground) - { - playground?.Invoke(Playground!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? app = null, - global::System.Action? project = null, - global::System.Action? trace = null, - global::System.Action? span = null, - global::System.Action? playground = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsApp) - { - app?.Invoke(App!); - } - else if (IsProject) - { - project?.Invoke(Project!); - } - else if (IsTrace) - { - trace?.Invoke(Trace!); - } - else if (IsSpan) - { - span?.Invoke(Span!); - } - else if (IsPlayground) - { - playground?.Invoke(Playground!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - App, - typeof(global::Phoenix.AppContext), - Project, - typeof(global::Phoenix.ProjectContext), - Trace, - typeof(global::Phoenix.TraceContext), - Span, - typeof(global::Phoenix.AgentSpanContext), - Playground, - typeof(global::Phoenix.PlaygroundContext), - }; - 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(ContextsItem other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(App, other.App) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Project, other.Project) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Trace, other.Trace) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Span, other.Span) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Playground, other.Playground) - ; - } - - /// - /// - /// - public static bool operator ==(ContextsItem obj1, ContextsItem obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ContextsItem obj1, ContextsItem obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ContextsItem o && Equals(o); - } - } -} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem2.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem2.Json.g.cs deleted file mode 100644 index bb1dcbb..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ContextsItem2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Phoenix -{ - public readonly partial struct ContextsItem2 - { - /// - /// 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.ContextsItem2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Phoenix.ContextsItem2), - jsonSerializerContext) as global::Phoenix.ContextsItem2?; - } - - /// - /// 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.ContextsItem2? 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.ContextsItem2), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ContextsItem2?; - } - - /// - /// 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.RegenerateMessageContextDiscriminator.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminator.Json.g.cs deleted file mode 100644 index 3d16d39..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminator.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Phoenix -{ - public sealed partial class RegenerateMessageContextDiscriminator - { - /// - /// 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.RegenerateMessageContextDiscriminator? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Phoenix.RegenerateMessageContextDiscriminator), - jsonSerializerContext) as global::Phoenix.RegenerateMessageContextDiscriminator; - } - - /// - /// 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.RegenerateMessageContextDiscriminator? 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.RegenerateMessageContextDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.RegenerateMessageContextDiscriminator; - } - - /// - /// 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.RegenerateMessageContextDiscriminator.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminator.g.cs deleted file mode 100644 index c520050..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminator.g.cs +++ /dev/null @@ -1,45 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public sealed partial class RegenerateMessageContextDiscriminator - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.RegenerateMessageContextDiscriminatorTypeJsonConverter))] - public global::Phoenix.RegenerateMessageContextDiscriminatorType? Type { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RegenerateMessageContextDiscriminator( - global::Phoenix.RegenerateMessageContextDiscriminatorType? type) - { - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public RegenerateMessageContextDiscriminator() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminatorType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminatorType.g.cs deleted file mode 100644 index 14e6532..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageContextDiscriminatorType.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public enum RegenerateMessageContextDiscriminatorType - { - /// - /// - /// - App, - /// - /// - /// - Playground, - /// - /// - /// - Project, - /// - /// - /// - Span, - /// - /// - /// - Trace, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RegenerateMessageContextDiscriminatorTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RegenerateMessageContextDiscriminatorType value) - { - return value switch - { - RegenerateMessageContextDiscriminatorType.App => "app", - RegenerateMessageContextDiscriminatorType.Playground => "playground", - RegenerateMessageContextDiscriminatorType.Project => "project", - RegenerateMessageContextDiscriminatorType.Span => "span", - RegenerateMessageContextDiscriminatorType.Trace => "trace", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RegenerateMessageContextDiscriminatorType? ToEnum(string value) - { - return value switch - { - "app" => RegenerateMessageContextDiscriminatorType.App, - "playground" => RegenerateMessageContextDiscriminatorType.Playground, - "project" => RegenerateMessageContextDiscriminatorType.Project, - "span" => RegenerateMessageContextDiscriminatorType.Span, - "trace" => RegenerateMessageContextDiscriminatorType.Trace, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageMessageId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageMessageId.g.cs deleted file mode 100644 index e88cc81..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.RegenerateMessageMessageId.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public sealed partial class RegenerateMessageMessageId - { - - /// - /// 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.SubmitMessageContextDiscriminator.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessageContextDiscriminator.Json.g.cs deleted file mode 100644 index bdba565..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SubmitMessageContextDiscriminator.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Phoenix -{ - public sealed partial class SubmitMessageContextDiscriminator - { - /// - /// 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.SubmitMessageContextDiscriminator? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Phoenix.SubmitMessageContextDiscriminator), - jsonSerializerContext) as global::Phoenix.SubmitMessageContextDiscriminator; - } - - /// - /// 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.SubmitMessageContextDiscriminator? 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.SubmitMessageContextDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.SubmitMessageContextDiscriminator; - } - - /// - /// 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.SummarizeRequest.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.g.cs index 55780a1..2e2b3dd 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.g.cs @@ -10,6 +10,18 @@ namespace Phoenix ///
public sealed partial class SummarizeRequest { + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ingestTraces")] + public bool? IngestTraces { get; set; } + + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exportRemoteTraces")] + public bool? ExportRemoteTraces { get; set; } + /// /// /// @@ -27,12 +39,22 @@ public sealed partial class SummarizeRequest /// Initializes a new instance of the class. ///
/// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SummarizeRequest( - global::System.Collections.Generic.IList messages) + global::System.Collections.Generic.IList messages, + bool? ingestTraces, + bool? exportRemoteTraces) { + this.IngestTraces = ingestTraces; + this.ExportRemoteTraces = exportRemoteTraces; this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); } diff --git a/src/libs/Phoenix/openapi.json b/src/libs/Phoenix/openapi.json index e5269f9..9c07e9f 100644 --- a/src/libs/Phoenix/openapi.json +++ b/src/libs/Phoenix/openapi.json @@ -6490,113 +6490,32 @@ } } }, - "/chat": { + "/agents/{agent_id}/sessions/{session_id}/chat": { "post": { "tags": [ "chat" ], "summary": "Chat", - "operationId": "chat_chat_post", + "operationId": "chat_agents__agent_id__sessions__session_id__chat_post", "parameters": [ { - "name": "provider_type", - "in": "query", + "name": "agent_id", + "in": "path", "required": true, "schema": { - "enum": [ - "custom", - "builtin" - ], "type": "string", - "title": "Provider Type" + "title": "Agent Id" } }, { - "name": "model_name", - "in": "query", + "name": "session_id", + "in": "path", "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" - } - } - ], - "responses": { - "200": { - "description": "Successful Response", - "content": { - "application/json": { - "schema": {} - } + "title": "Session Id" } }, - "422": { - "description": "Validation Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - } - } - } - }, - "/chat-v2": { - "post": { - "tags": [ - "chat" - ], - "summary": "Chat V2", - "operationId": "chat_v2_chat_v2_post", - "parameters": [ { "name": "provider_type", "in": "query", @@ -6671,32 +6590,19 @@ "content": { "application/json": { "schema": { - "oneOf": [ - { - "$ref": "#/components/schemas/_SubmitMessage" - }, - { - "$ref": "#/components/schemas/_RegenerateMessage" - } - ], - "discriminator": { - "propertyName": "trigger", - "mapping": { - "submit-message": "#/components/schemas/_SubmitMessage", - "regenerate-message": "#/components/schemas/_RegenerateMessage" - } - }, - "title": "Body" + "$ref": "#/components/schemas/ChatRequest" } } } }, "responses": { "200": { - "description": "Successful Response", + "description": "Vercel-AI-style SSE stream. The turn ends with a `message-metadata` chunk whose `messageMetadata` payload matches `AssistantMessageMetadata`. Declared here so the model is included in the generated OpenAPI components.", "content": { "application/json": { - "schema": {} + "schema": { + "$ref": "#/components/schemas/AssistantMessageMetadata" + } } } }, @@ -7165,8 +7071,230 @@ "currentDateTime", "timeZone" ], - "title": "AppContext", - "description": "Per-turn browser clock context for resolving relative time requests." + "title": "AppContext", + "description": "Per-turn browser clock context for resolving relative time requests." + }, + "AssistantMessageMetadata": { + "properties": { + "sessionId": { + "type": "string", + "title": "Sessionid" + }, + "trace": { + "anyOf": [ + { + "$ref": "#/components/schemas/AssistantMessageMetadataTraceIds" + }, + { + "type": "null" + } + ] + }, + "usage": { + "anyOf": [ + { + "$ref": "#/components/schemas/AssistantMessageMetadataUsage" + }, + { + "type": "null" + } + ] + } + }, + "type": "object", + "required": [ + "sessionId" + ], + "title": "AssistantMessageMetadata", + "description": "Wire schema for the chat stream's `message_metadata` payload." + }, + "AssistantMessageMetadataTraceIds": { + "properties": { + "traceId": { + "type": "string", + "title": "Traceid" + }, + "rootSpanId": { + "type": "string", + "title": "Rootspanid" + } + }, + "type": "object", + "required": [ + "traceId", + "rootSpanId" + ], + "title": "AssistantMessageMetadataTraceIds" + }, + "AssistantMessageMetadataUsage": { + "properties": { + "tokens": { + "$ref": "#/components/schemas/AssistantMessageMetadataUsageTokens" + }, + "promptDetails": { + "anyOf": [ + { + "$ref": "#/components/schemas/AssistantMessageMetadataUsageTokenDetails" + }, + { + "type": "null" + } + ] + } + }, + "type": "object", + "required": [ + "tokens" + ], + "title": "AssistantMessageMetadataUsage" + }, + "AssistantMessageMetadataUsageTokenDetails": { + "properties": { + "cacheRead": { + "type": "integer", + "title": "Cacheread" + }, + "cacheWrite": { + "type": "integer", + "title": "Cachewrite" + } + }, + "type": "object", + "required": [ + "cacheRead", + "cacheWrite" + ], + "title": "AssistantMessageMetadataUsageTokenDetails" + }, + "AssistantMessageMetadataUsageTokens": { + "properties": { + "prompt": { + "type": "integer", + "title": "Prompt" + }, + "completion": { + "type": "integer", + "title": "Completion" + }, + "total": { + "type": "integer", + "title": "Total" + } + }, + "type": "object", + "required": [ + "prompt", + "completion", + "total" + ], + "title": "AssistantMessageMetadataUsageTokens" + }, + "AssistantMetadataUIMessage": { + "properties": { + "id": { + "type": "string", + "title": "Id" + }, + "role": { + "type": "string", + "enum": [ + "system", + "user", + "assistant" + ], + "title": "Role" + }, + "metadata": { + "anyOf": [ + { + "$ref": "#/components/schemas/AssistantMessageMetadata" + }, + { + "type": "null" + } + ] + }, + "parts": { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/TextUIPart" + }, + { + "$ref": "#/components/schemas/ReasoningUIPart" + }, + { + "$ref": "#/components/schemas/ToolInputStreamingPart" + }, + { + "$ref": "#/components/schemas/ToolInputAvailablePart" + }, + { + "$ref": "#/components/schemas/ToolOutputAvailablePart" + }, + { + "$ref": "#/components/schemas/ToolOutputErrorPart" + }, + { + "$ref": "#/components/schemas/ToolApprovalRequestedPart" + }, + { + "$ref": "#/components/schemas/ToolApprovalRespondedPart" + }, + { + "$ref": "#/components/schemas/ToolOutputDeniedPart" + }, + { + "$ref": "#/components/schemas/DynamicToolInputStreamingPart" + }, + { + "$ref": "#/components/schemas/DynamicToolInputAvailablePart" + }, + { + "$ref": "#/components/schemas/DynamicToolOutputAvailablePart" + }, + { + "$ref": "#/components/schemas/DynamicToolOutputErrorPart" + }, + { + "$ref": "#/components/schemas/DynamicToolApprovalRequestedPart" + }, + { + "$ref": "#/components/schemas/DynamicToolApprovalRespondedPart" + }, + { + "$ref": "#/components/schemas/DynamicToolOutputDeniedPart" + }, + { + "$ref": "#/components/schemas/SourceUrlUIPart" + }, + { + "$ref": "#/components/schemas/SourceDocumentUIPart" + }, + { + "$ref": "#/components/schemas/FileUIPart" + }, + { + "$ref": "#/components/schemas/DataUIPart" + }, + { + "$ref": "#/components/schemas/StepStartUIPart" + } + ] + }, + "type": "array", + "title": "Parts" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "id", + "role", + "parts" + ], + "title": "AssistantMetadataUIMessage", + "description": "`UIMessage` with `metadata` narrowed to `AssistantMessageMetadata`." }, "CategoricalAnnotationConfig": { "properties": { @@ -7281,6 +7409,165 @@ ], "title": "CategoricalAnnotationValue" }, + "ChatContext": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppContext" + }, + { + "$ref": "#/components/schemas/ProjectContext" + }, + { + "$ref": "#/components/schemas/TraceContext" + }, + { + "$ref": "#/components/schemas/AgentSpanContext" + }, + { + "$ref": "#/components/schemas/PlaygroundContext" + } + ], + "title": "ChatContext", + "description": "Discriminated union of every UI-state context the agent understands.\n\nWrapped in ``RootModel`` so the generated OpenAPI schema exposes a single\nnamed ``ChatContext`` component instead of inlining the ``oneOf`` at every\nreference site. The actual member is accessible via ``.root``.", + "discriminator": { + "propertyName": "type", + "mapping": { + "app": "#/components/schemas/AppContext", + "playground": "#/components/schemas/PlaygroundContext", + "project": "#/components/schemas/ProjectContext", + "span": "#/components/schemas/AgentSpanContext", + "trace": "#/components/schemas/TraceContext" + } + } + }, + "ChatRegenerateMessage": { + "properties": { + "trigger": { + "type": "string", + "const": "regenerate-message", + "title": "Trigger" + }, + "id": { + "type": "string", + "title": "Id" + }, + "messages": { + "items": { + "$ref": "#/components/schemas/AssistantMetadataUIMessage" + }, + "type": "array", + "title": "Messages" + }, + "messageId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Messageid" + }, + "ingestTraces": { + "type": "boolean", + "title": "Ingesttraces", + "default": false + }, + "exportRemoteTraces": { + "type": "boolean", + "title": "Exportremotetraces", + "default": false + }, + "contexts": { + "items": { + "$ref": "#/components/schemas/ChatContext" + }, + "type": "array", + "title": "Contexts" + }, + "capabilities": { + "$ref": "#/components/schemas/AgentCapabilities" + } + }, + "additionalProperties": true, + "type": "object", + "required": [ + "trigger", + "id", + "messages" + ], + "title": "ChatRegenerateMessage", + "description": "Regenerate message extended with Phoenix-specific fields." + }, + "ChatRequest": { + "oneOf": [ + { + "$ref": "#/components/schemas/ChatSubmitMessage" + }, + { + "$ref": "#/components/schemas/ChatRegenerateMessage" + } + ], + "title": "ChatRequest", + "description": "Discriminated union of chat request payloads.", + "discriminator": { + "propertyName": "trigger", + "mapping": { + "regenerate-message": "#/components/schemas/ChatRegenerateMessage", + "submit-message": "#/components/schemas/ChatSubmitMessage" + } + } + }, + "ChatSubmitMessage": { + "properties": { + "trigger": { + "type": "string", + "const": "submit-message", + "title": "Trigger", + "default": "submit-message" + }, + "id": { + "type": "string", + "title": "Id" + }, + "messages": { + "items": { + "$ref": "#/components/schemas/AssistantMetadataUIMessage" + }, + "type": "array", + "title": "Messages" + }, + "ingestTraces": { + "type": "boolean", + "title": "Ingesttraces", + "default": false + }, + "exportRemoteTraces": { + "type": "boolean", + "title": "Exportremotetraces", + "default": false + }, + "contexts": { + "items": { + "$ref": "#/components/schemas/ChatContext" + }, + "type": "array", + "title": "Contexts" + }, + "capabilities": { + "$ref": "#/components/schemas/AgentCapabilities" + } + }, + "additionalProperties": true, + "type": "object", + "required": [ + "id", + "messages" + ], + "title": "ChatSubmitMessage", + "description": "Submit message extended with Phoenix-specific fields." + }, "ContinuousAnnotationConfig": { "properties": { "name": { @@ -15114,159 +15401,18 @@ ], "title": "ValidationError" }, - "_RegenerateMessage": { - "properties": { - "trigger": { - "type": "string", - "const": "regenerate-message", - "title": "Trigger" - }, - "id": { - "type": "string", - "title": "Id" - }, - "messages": { - "items": { - "$ref": "#/components/schemas/UIMessage" - }, - "type": "array", - "title": "Messages" - }, - "messageId": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Messageid" - }, - "contexts": { - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppContext" - }, - { - "$ref": "#/components/schemas/ProjectContext" - }, - { - "$ref": "#/components/schemas/TraceContext" - }, - { - "$ref": "#/components/schemas/AgentSpanContext" - }, - { - "$ref": "#/components/schemas/PlaygroundContext" - } - ], - "discriminator": { - "propertyName": "type", - "mapping": { - "app": "#/components/schemas/AppContext", - "playground": "#/components/schemas/PlaygroundContext", - "project": "#/components/schemas/ProjectContext", - "span": "#/components/schemas/AgentSpanContext", - "trace": "#/components/schemas/TraceContext" - } - } - }, - "type": "array", - "title": "Contexts" - }, - "capabilities": { - "$ref": "#/components/schemas/AgentCapabilities" - }, - "sessionId": { - "type": "string", - "title": "Sessionid" - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "trigger", - "id", - "messages", - "sessionId" - ], - "title": "_RegenerateMessage", - "description": "Regenerate message extended with Phoenix-specific fields." - }, - "_SubmitMessage": { + "_SummarizeRequest": { "properties": { - "trigger": { - "type": "string", - "const": "submit-message", - "title": "Trigger", - "default": "submit-message" - }, - "id": { - "type": "string", - "title": "Id" - }, - "messages": { - "items": { - "$ref": "#/components/schemas/UIMessage" - }, - "type": "array", - "title": "Messages" - }, - "contexts": { - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppContext" - }, - { - "$ref": "#/components/schemas/ProjectContext" - }, - { - "$ref": "#/components/schemas/TraceContext" - }, - { - "$ref": "#/components/schemas/AgentSpanContext" - }, - { - "$ref": "#/components/schemas/PlaygroundContext" - } - ], - "discriminator": { - "propertyName": "type", - "mapping": { - "app": "#/components/schemas/AppContext", - "playground": "#/components/schemas/PlaygroundContext", - "project": "#/components/schemas/ProjectContext", - "span": "#/components/schemas/AgentSpanContext", - "trace": "#/components/schemas/TraceContext" - } - } - }, - "type": "array", - "title": "Contexts" + "ingestTraces": { + "type": "boolean", + "title": "Ingesttraces", + "default": false }, - "capabilities": { - "$ref": "#/components/schemas/AgentCapabilities" + "exportRemoteTraces": { + "type": "boolean", + "title": "Exportremotetraces", + "default": false }, - "sessionId": { - "type": "string", - "title": "Sessionid" - } - }, - "additionalProperties": true, - "type": "object", - "required": [ - "id", - "messages", - "sessionId" - ], - "title": "_SubmitMessage", - "description": "Submit message extended with Phoenix-specific fields." - }, - "_SummarizeRequest": { - "properties": { "messages": { "items": { "$ref": "#/components/schemas/UIMessage"