diff --git a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatChatPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatChatPost.g.cs index 0bed70a..cc486e9 100644 --- a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatChatPost.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatChatPost.g.cs @@ -27,11 +27,19 @@ public partial class ChatClient }; partial void PrepareChatChatPostArguments( global::System.Net.Http.HttpClient httpClient, - ref global::Phoenix.ChatChatPostRoot root); + 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.ChatChatPostRoot root); + 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); @@ -44,17 +52,31 @@ partial void ProcessChatChatPostResponseContent( /// /// 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.ChatChatPostRoot root, + 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( - root: root, + providerType: providerType, + modelName: modelName, + providerId: providerId, + provider: provider, + openaiApiType: openaiApiType, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -64,12 +86,22 @@ partial void ProcessChatChatPostResponseContent( /// /// 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.ChatChatPostRoot root, + 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) { @@ -77,7 +109,11 @@ partial void ProcessChatChatPostResponseContent( client: HttpClient); PrepareChatChatPostArguments( httpClient: HttpClient, - root: ref root); + providerType: ref providerType, + modelName: ref modelName, + providerId: ref providerId, + provider: provider, + openaiApiType: ref openaiApiType); var __authorizations = global::Phoenix.EndPointSecurityResolver.ResolveAuthorizations( @@ -106,7 +142,11 @@ partial void ProcessChatChatPostResponseContent( path: "/chat", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("root", root.ToString() ?? string.Empty) + .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( @@ -148,7 +188,11 @@ partial void ProcessChatChatPostResponseContent( PrepareChatChatPostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - root: root!); + providerType: providerType!, + modelName: modelName!, + providerId: providerId, + provider: provider, + openaiApiType: openaiApiType); return __httpRequest; } diff --git a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatV2ChatV2Post.g.cs b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatV2ChatV2Post.g.cs index 33390f8..2f642fb 100644 --- a/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatV2ChatV2Post.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.ChatClient.ChatV2ChatV2Post.g.cs @@ -27,12 +27,20 @@ public partial class ChatClient }; partial void PrepareChatV2ChatV2PostArguments( global::System.Net.Http.HttpClient httpClient, - ref global::Phoenix.ChatV2ChatV2PostRoot root, + ref global::Phoenix.ChatV2ChatV2PostProviderType providerType, + ref string modelName, + ref string? providerId, + global::Phoenix.ModelProvider? provider, + ref global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType, global::Phoenix.ChatV2ChatV2PostRequest request); partial void PrepareChatV2ChatV2PostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Phoenix.ChatV2ChatV2PostRoot root, + global::Phoenix.ChatV2ChatV2PostProviderType providerType, + string modelName, + string? providerId, + global::Phoenix.ModelProvider? provider, + global::Phoenix.ChatV2ChatV2PostOpenaiApiType? openaiApiType, global::Phoenix.ChatV2ChatV2PostRequest request); partial void ProcessChatV2ChatV2PostResponse( global::System.Net.Http.HttpClient httpClient, @@ -46,22 +54,36 @@ partial void ProcessChatV2ChatV2PostResponseContent( /// /// 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.ChatV2ChatV2PostRoot root, + 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) { var __response = await ChatV2ChatV2PostAsResponseAsync( - root: root, + providerType: providerType, + modelName: modelName, request: request, + providerId: providerId, + provider: provider, + openaiApiType: openaiApiType, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -71,15 +93,25 @@ partial void ProcessChatV2ChatV2PostResponseContent( /// /// 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> ChatV2ChatV2PostAsResponseAsync( - global::Phoenix.ChatV2ChatV2PostRoot root, + 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) { @@ -87,7 +119,11 @@ partial void ProcessChatV2ChatV2PostResponseContent( client: HttpClient); PrepareChatV2ChatV2PostArguments( httpClient: HttpClient, - root: ref root, + providerType: ref providerType, + modelName: ref modelName, + providerId: ref providerId, + provider: provider, + openaiApiType: ref openaiApiType, request: request); @@ -117,7 +153,11 @@ partial void ProcessChatV2ChatV2PostResponseContent( path: "/chat-v2", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddRequiredParameter("root", root.ToString() ?? string.Empty) + .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( @@ -165,7 +205,11 @@ partial void ProcessChatV2ChatV2PostResponseContent( PrepareChatV2ChatV2PostRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - root: root!, + providerType: providerType!, + modelName: modelName!, + providerId: providerId, + provider: provider, + openaiApiType: openaiApiType, request: request); return __httpRequest; @@ -482,12 +526,22 @@ partial void ProcessChatV2ChatV2PostResponseContent( /// /// 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.ChatV2ChatV2PostRoot root, + 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) { @@ -496,7 +550,11 @@ partial void ProcessChatV2ChatV2PostResponseContent( }; return await ChatV2ChatV2PostAsync( - root: root, + providerType: providerType, + modelName: modelName, + providerId: providerId, + provider: provider, + openaiApiType: openaiApiType, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs new file mode 100644 index 0000000..81dd4db --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.ChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs @@ -0,0 +1,596 @@ + +#nullable enable + +namespace Phoenix +{ + public partial class ChatClient + { + + + private static readonly global::Phoenix.EndPointSecurityRequirement s_SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostSecurityRequirement0 = + 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_SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostSecurityRequirements = + new global::Phoenix.EndPointSecurityRequirement[] + { s_SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostSecurityRequirement0, + }; + partial void PrepareSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string agentId, + ref string sessionId, + ref global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, + ref string modelName, + ref string? providerId, + global::Phoenix.ModelProvider? provider, + ref global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType, + global::Phoenix.SummarizeRequest request); + partial void PrepareSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string agentId, + string sessionId, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, + string modelName, + string? providerId, + global::Phoenix.ModelProvider? provider, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType, + global::Phoenix.SummarizeRequest request); + partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Summarize Endpoint + /// + /// + /// + /// + /// + /// + /// + /// + /// 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 SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( + string agentId, + string sessionId, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, + string modelName, + + global::Phoenix.SummarizeRequest request, + string? providerId = default, + global::Phoenix.ModelProvider? provider = default, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + global::Phoenix.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsResponseAsync( + agentId: agentId, + sessionId: sessionId, + providerType: providerType, + modelName: modelName, + + request: request, + providerId: providerId, + provider: provider, + openaiApiType: openaiApiType, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Summarize Endpoint + /// + /// + /// + /// + /// + /// + /// + /// + /// 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> SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsResponseAsync( + string agentId, + string sessionId, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, + string modelName, + + global::Phoenix.SummarizeRequest request, + string? providerId = default, + global::Phoenix.ModelProvider? provider = default, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + global::Phoenix.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostArguments( + httpClient: HttpClient, + agentId: ref agentId, + sessionId: ref sessionId, + providerType: ref providerType, + modelName: ref modelName, + providerId: ref providerId, + provider: provider, + openaiApiType: ref openaiApiType, + request: request); + + + var __authorizations = global::Phoenix.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostSecurityRequirements, + operationName: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync"); + + 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: $"/agents/{agentId}/sessions/{sessionId}/summary", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddRequiredParameter("provider_type", providerType.ToValueString()) + .AddRequiredParameter("model_name", modelName) + .AddOptionalParameter("provider_id", providerId) + .AddOptionalParameter("provider", provider?.ToString()) + .AddOptionalParameter("openai_api_type", openaiApiType?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); + __path = global::Phoenix.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Phoenix.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + agentId: agentId!, + sessionId: sessionId!, + providerType: providerType!, + modelName: modelName!, + providerId: providerId, + provider: provider, + openaiApiType: openaiApiType, + request: request); + + 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: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost", + methodName: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/summary\"", + 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: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost", + methodName: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/summary\"", + 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: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost", + methodName: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/summary\"", + 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); + ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Phoenix.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Phoenix.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost", + methodName: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/summary\"", + 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: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost", + methodName: "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync", + pathTemplate: "$\"/agents/{agentId}/sessions/{sessionId}/summary\"", + 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); + ProcessSummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Phoenix.SummarizeResponse.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: __value); + } + 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(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Phoenix.SummarizeResponse.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: __value); + } + 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(); + } + } + /// + /// Summarize Endpoint + /// + /// + /// + /// + /// + /// + /// + /// + /// 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 SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( + string agentId, + string sessionId, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, + string modelName, + global::System.Collections.Generic.IList messages, + string? providerId = default, + global::Phoenix.ModelProvider? provider = default, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + global::Phoenix.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Phoenix.SummarizeRequest + { + Messages = messages, + }; + + return await SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( + agentId: agentId, + sessionId: sessionId, + providerType: providerType, + modelName: modelName, + providerId: providerId, + provider: provider, + openaiApiType: openaiApiType, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatChatPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatChatPost.g.cs index 22cca2b..38a3b0b 100644 --- a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatChatPost.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatChatPost.g.cs @@ -7,23 +7,43 @@ public partial interface IChatClient /// /// Chat /// - /// + /// + /// + /// + /// + /// + /// 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.ChatChatPostRoot root, + 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); /// /// Chat /// - /// + /// + /// + /// + /// + /// + /// 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.ChatChatPostRoot root, + 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); } diff --git a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatV2ChatV2Post.g.cs b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatV2ChatV2Post.g.cs index 3eb47d7..c3b9a88 100644 --- a/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatV2ChatV2Post.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.IChatClient.ChatV2ChatV2Post.g.cs @@ -7,40 +7,70 @@ 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.ChatV2ChatV2PostRoot root, + 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.ChatV2ChatV2PostRoot root, + 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.ChatV2ChatV2PostRoot root, + 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); } diff --git a/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs b/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs new file mode 100644 index 0000000..e2811e3 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.IChatClient.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPost.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +namespace Phoenix +{ + public partial interface IChatClient + { + /// + /// Summarize Endpoint + /// + /// + /// + /// + /// + /// + /// + /// + /// 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 SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( + string agentId, + string sessionId, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, + string modelName, + + global::Phoenix.SummarizeRequest request, + string? providerId = default, + global::Phoenix.ModelProvider? provider = default, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + global::Phoenix.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Summarize Endpoint + /// + /// + /// + /// + /// + /// + /// + /// + /// 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> SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsResponseAsync( + string agentId, + string sessionId, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, + string modelName, + + global::Phoenix.SummarizeRequest request, + string? providerId = default, + global::Phoenix.ModelProvider? provider = default, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + global::Phoenix.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Summarize Endpoint + /// + /// + /// + /// + /// + /// + /// + /// + /// 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 SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostAsync( + string agentId, + string sessionId, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType providerType, + string modelName, + global::System.Collections.Generic.IList messages, + string? providerId = default, + global::Phoenix.ModelProvider? provider = default, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? openaiApiType = default, + global::Phoenix.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostRootDiscriminatorProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiType.g.cs similarity index 66% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostRootDiscriminatorProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiType.g.cs index f984871..129a2a2 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostRootDiscriminatorProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiType.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatChatPostRootDiscriminatorProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatChatPostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatChatPostRootDiscriminatorProviderType Read( + public override global::Phoenix.ChatChatPostOpenaiApiType 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 ChatChatPostRootDiscriminatorProviderTypeJsonConverter : glo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatChatPostRootDiscriminatorProviderTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.ChatChatPostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatChatPostRootDiscriminatorProviderTypeJsonConverter : glo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatChatPostRootDiscriminatorProviderType)numValue; + return (global::Phoenix.ChatChatPostOpenaiApiType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatChatPostRootDiscriminatorProviderType); + return default(global::Phoenix.ChatChatPostOpenaiApiType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatChatPostRootDiscriminatorProviderTypeJsonConverter : glo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatChatPostRootDiscriminatorProviderType value, + global::Phoenix.ChatChatPostOpenaiApiType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.ChatChatPostRootDiscriminatorProviderTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.ChatChatPostOpenaiApiTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostRootDiscriminatorProviderTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeNullable.g.cs similarity index 67% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostRootDiscriminatorProviderTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeNullable.g.cs index d2701bb..7021839 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostRootDiscriminatorProviderTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatChatPostRootDiscriminatorProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatChatPostOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatChatPostRootDiscriminatorProviderType? Read( + public override global::Phoenix.ChatChatPostOpenaiApiType? 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 ChatChatPostRootDiscriminatorProviderTypeNullableJsonConvert var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatChatPostRootDiscriminatorProviderTypeExtensions.ToEnum(stringValue); + return global::Phoenix.ChatChatPostOpenaiApiTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatChatPostRootDiscriminatorProviderTypeNullableJsonConvert case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatChatPostRootDiscriminatorProviderType)numValue; + return (global::Phoenix.ChatChatPostOpenaiApiType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatChatPostRootDiscriminatorProviderType?); + return default(global::Phoenix.ChatChatPostOpenaiApiType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatChatPostRootDiscriminatorProviderTypeNullableJsonConvert /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatChatPostRootDiscriminatorProviderType? value, + global::Phoenix.ChatChatPostOpenaiApiType? 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.ChatChatPostRootDiscriminatorProviderTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.ChatChatPostOpenaiApiTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderChatSearchParamsOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderType.g.cs similarity index 62% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderChatSearchParamsOpenaiApiType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderType.g.cs index 577d9f5..3dcdf67 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderChatSearchParamsOpenaiApiType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderType.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class BuiltInProviderChatSearchParamsOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatChatPostProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType Read( + public override global::Phoenix.ChatChatPostProviderType 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 BuiltInProviderChatSearchParamsOpenaiApiTypeJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.ChatChatPostProviderTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class BuiltInProviderChatSearchParamsOpenaiApiTypeJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType)numValue; + return (global::Phoenix.ChatChatPostProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType); + return default(global::Phoenix.ChatChatPostProviderType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class BuiltInProviderChatSearchParamsOpenaiApiTypeJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType value, + global::Phoenix.ChatChatPostProviderType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.ChatChatPostProviderTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderChatSearchParamsOpenaiApiTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderTypeNullable.g.cs similarity index 64% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderChatSearchParamsOpenaiApiTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderTypeNullable.g.cs index e7a32db..4dcd59c 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.BuiltInProviderChatSearchParamsOpenaiApiTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostProviderTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class BuiltInProviderChatSearchParamsOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatChatPostProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType? Read( + public override global::Phoenix.ChatChatPostProviderType? 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 BuiltInProviderChatSearchParamsOpenaiApiTypeNullableJsonConv var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiTypeExtensions.ToEnum(stringValue); + return global::Phoenix.ChatChatPostProviderTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class BuiltInProviderChatSearchParamsOpenaiApiTypeNullableJsonConv case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType)numValue; + return (global::Phoenix.ChatChatPostProviderType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType?); + return default(global::Phoenix.ChatChatPostProviderType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class BuiltInProviderChatSearchParamsOpenaiApiTypeNullableJsonConv /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType? value, + global::Phoenix.ChatChatPostProviderType? 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.BuiltInProviderChatSearchParamsOpenaiApiTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.ChatChatPostProviderTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostRoot.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostRoot.g.cs deleted file mode 100644 index eb50f94..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatChatPostRoot.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Phoenix.JsonConverters -{ - /// - public class ChatChatPostRootJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Phoenix.ChatChatPostRoot 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.ChatChatPostRootDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ChatChatPostRootDiscriminator)}"); - var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - - global::Phoenix.CustomProviderChatSearchParams? custom = default; - if (discriminator?.ProviderType == global::Phoenix.ChatChatPostRootDiscriminatorProviderType.Custom) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderChatSearchParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.CustomProviderChatSearchParams)}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Phoenix.BuiltInProviderChatSearchParams? builtin = default; - if (discriminator?.ProviderType == global::Phoenix.ChatChatPostRootDiscriminatorProviderType.Builtin) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderChatSearchParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.BuiltInProviderChatSearchParams)}"); - builtin = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - - var __value = new global::Phoenix.ChatChatPostRoot( - discriminator?.ProviderType, - custom, - - builtin - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatChatPostRoot value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsCustom) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderChatSearchParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.CustomProviderChatSearchParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); - } - else if (value.IsBuiltin) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderChatSearchParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.BuiltInProviderChatSearchParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Builtin!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRootDiscriminatorProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiType.g.cs similarity index 68% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRootDiscriminatorProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiType.g.cs index bf42013..7f0e57a 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRootDiscriminatorProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiType.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatV2ChatV2PostRootDiscriminatorProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatV2ChatV2PostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType Read( + public override global::Phoenix.ChatV2ChatV2PostOpenaiApiType 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 ChatV2ChatV2PostRootDiscriminatorProviderTypeJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderTypeExtensions.ToEnum(stringValue) ?? default; + return global::Phoenix.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatV2ChatV2PostRootDiscriminatorProviderTypeJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType)numValue; + return (global::Phoenix.ChatV2ChatV2PostOpenaiApiType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType); + return default(global::Phoenix.ChatV2ChatV2PostOpenaiApiType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatV2ChatV2PostRootDiscriminatorProviderTypeJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType value, + global::Phoenix.ChatV2ChatV2PostOpenaiApiType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Phoenix.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRootDiscriminatorProviderTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeNullable.g.cs similarity index 69% rename from src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRootDiscriminatorProviderTypeNullable.g.cs rename to src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeNullable.g.cs index 37f8cb6..becee01 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRootDiscriminatorProviderTypeNullable.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Phoenix.JsonConverters { /// - public sealed class ChatV2ChatV2PostRootDiscriminatorProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType? Read( + public override global::Phoenix.ChatV2ChatV2PostOpenaiApiType? 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 ChatV2ChatV2PostRootDiscriminatorProviderTypeNullableJsonCon var stringValue = reader.GetString(); if (stringValue != null) { - return global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderTypeExtensions.ToEnum(stringValue); + return global::Phoenix.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatV2ChatV2PostRootDiscriminatorProviderTypeNullableJsonCon case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType)numValue; + return (global::Phoenix.ChatV2ChatV2PostOpenaiApiType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType?); + return default(global::Phoenix.ChatV2ChatV2PostOpenaiApiType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatV2ChatV2PostRootDiscriminatorProviderTypeNullableJsonCon /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType? value, + global::Phoenix.ChatV2ChatV2PostOpenaiApiType? 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.ChatV2ChatV2PostRootDiscriminatorProviderTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Phoenix.ChatV2ChatV2PostOpenaiApiTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderType.g.cs new file mode 100644 index 0000000..68c2c49 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class ChatV2ChatV2PostProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.ChatV2ChatV2PostProviderType 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.ChatV2ChatV2PostProviderTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.ChatV2ChatV2PostProviderType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.ChatV2ChatV2PostProviderType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.ChatV2ChatV2PostProviderType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Phoenix.ChatV2ChatV2PostProviderTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeNullable.g.cs new file mode 100644 index 0000000..4cd1628 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class ChatV2ChatV2PostProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.ChatV2ChatV2PostProviderType? 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.ChatV2ChatV2PostProviderTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.ChatV2ChatV2PostProviderType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.ChatV2ChatV2PostProviderType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.ChatV2ChatV2PostProviderType? 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.ChatV2ChatV2PostProviderTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRoot.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRoot.g.cs deleted file mode 100644 index f837dad..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.ChatV2ChatV2PostRoot.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Phoenix.JsonConverters -{ - /// - public class ChatV2ChatV2PostRootJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Phoenix.ChatV2ChatV2PostRoot 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.ChatV2ChatV2PostRootDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.ChatV2ChatV2PostRootDiscriminator)}"); - var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); - - global::Phoenix.CustomProviderChatSearchParams? custom = default; - if (discriminator?.ProviderType == global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType.Custom) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderChatSearchParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.CustomProviderChatSearchParams)}"); - custom = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - global::Phoenix.BuiltInProviderChatSearchParams? builtin = default; - if (discriminator?.ProviderType == global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType.Builtin) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderChatSearchParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Phoenix.BuiltInProviderChatSearchParams)}"); - builtin = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - - var __value = new global::Phoenix.ChatV2ChatV2PostRoot( - discriminator?.ProviderType, - custom, - - builtin - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Phoenix.ChatV2ChatV2PostRoot value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsCustom) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.CustomProviderChatSearchParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.CustomProviderChatSearchParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Custom!, typeInfo); - } - else if (value.IsBuiltin) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Phoenix.BuiltInProviderChatSearchParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Phoenix.BuiltInProviderChatSearchParams).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Builtin!, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs new file mode 100644 index 0000000..0541dbc --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullable.g.cs new file mode 100644 index 0000000..4273768 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs new file mode 100644 index 0000000..4380aab --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullable.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullable.g.cs new file mode 100644 index 0000000..4f943d8 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Phoenix.JsonConverters +{ + /// + public sealed class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs index c67a0d8..d589a50 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContext.g.cs @@ -13,10 +13,6 @@ namespace Phoenix DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { - typeof(global::Phoenix.JsonConverters.BuiltInProviderChatSearchParamsOpenaiApiTypeJsonConverter), - - typeof(global::Phoenix.JsonConverters.BuiltInProviderChatSearchParamsOpenaiApiTypeNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.CreateAnnotationConfigDataDiscriminatorTypeJsonConverter), typeof(global::Phoenix.JsonConverters.CreateAnnotationConfigDataDiscriminatorTypeNullableJsonConverter), @@ -313,13 +309,29 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.ListProjectSessionsOrderNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatChatPostRootDiscriminatorProviderTypeJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatChatPostProviderTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatChatPostProviderTypeNullableJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatChatPostOpenaiApiTypeNullableJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostProviderTypeNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatChatPostRootDiscriminatorProviderTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostRootDiscriminatorProviderTypeJsonConverter), + typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostOpenaiApiTypeNullableJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostRootDiscriminatorProviderTypeNullableJsonConverter), + typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeNullableJsonConverter), + + typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeJsonConverter), + + typeof(global::Phoenix.JsonConverters.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeNullableJsonConverter), typeof(global::Phoenix.JsonConverters.CreateAnnotationConfigDataJsonConverter), @@ -367,10 +379,6 @@ namespace Phoenix typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostRequestJsonConverter), - typeof(global::Phoenix.JsonConverters.ChatChatPostRootJsonConverter), - - typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostRootJsonConverter), - typeof(global::Phoenix.JsonConverters.AnyOfJsonConverter), typeof(global::Phoenix.JsonConverters.AnyOfJsonConverter), @@ -461,9 +469,6 @@ 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.BuiltInProviderChatSearchParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ModelProvider), TypeInfoPropertyName = "ModelProvider2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType), TypeInfoPropertyName = "BuiltInProviderChatSearchParamsOpenaiApiType2")] [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))] @@ -524,7 +529,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.CustomProviderChatSearchParams))] [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))] @@ -613,6 +617,7 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.LocalUserRole), TypeInfoPropertyName = "LocalUserRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.LocalUserDataRole), TypeInfoPropertyName = "LocalUserDataRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ModelProvider), TypeInfoPropertyName = "ModelProvider2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OAuth2UserRole), TypeInfoPropertyName = "OAuth2UserRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OAuth2UserDataRole), TypeInfoPropertyName = "OAuth2UserDataRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.OtlpAnyValue))] @@ -817,6 +822,8 @@ namespace Phoenix [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::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")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList, object>>))] @@ -835,12 +842,12 @@ namespace Phoenix [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ListProjectTracesSort), TypeInfoPropertyName = "ListProjectTracesSort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ListProjectTracesOrder), TypeInfoPropertyName = "ListProjectTracesOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ListProjectSessionsOrder), TypeInfoPropertyName = "ListProjectSessionsOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatChatPostRoot), TypeInfoPropertyName = "ChatChatPostRoot2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatChatPostRootDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatChatPostRootDiscriminatorProviderType), TypeInfoPropertyName = "ChatChatPostRootDiscriminatorProviderType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatV2ChatV2PostRoot), TypeInfoPropertyName = "ChatV2ChatV2PostRoot2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatV2ChatV2PostRootDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType), TypeInfoPropertyName = "ChatV2ChatV2PostRootDiscriminatorProviderType2")] + [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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType), TypeInfoPropertyName = "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType), TypeInfoPropertyName = "SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Phoenix.AnyOf?), TypeInfoPropertyName = "StepStartUIPart_4f65f1009b57fac6")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs index 56b9835..ed69218 100644 --- a/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.JsonSerializerContextTypes.g.cs @@ -160,1515 +160,1511 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Phoenix.BuiltInProviderChatSearchParams? Type33 { get; set; } + public global::Phoenix.CategoricalAnnotationConfig? Type33 { get; set; } /// /// /// - public global::Phoenix.ModelProvider? Type34 { get; set; } + public global::Phoenix.OptimizationDirection? Type34 { get; set; } /// /// /// - public global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType? Type35 { get; set; } + public global::System.Collections.Generic.IList? Type35 { get; set; } /// /// /// - public global::Phoenix.CategoricalAnnotationConfig? Type36 { get; set; } + public global::Phoenix.CategoricalAnnotationValue? Type36 { get; set; } /// /// /// - public global::Phoenix.OptimizationDirection? Type37 { get; set; } + public global::Phoenix.CategoricalAnnotationConfigData? Type37 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type38 { get; set; } + public global::Phoenix.ContinuousAnnotationConfig? Type38 { get; set; } /// /// /// - public global::Phoenix.CategoricalAnnotationValue? Type39 { get; set; } + public global::Phoenix.ContinuousAnnotationConfigData? Type39 { get; set; } /// /// /// - public global::Phoenix.CategoricalAnnotationConfigData? Type40 { get; set; } + public global::Phoenix.CreateAnnotationConfigData? Type40 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfig? Type41 { get; set; } + public global::Phoenix.FreeformAnnotationConfigData? Type41 { get; set; } /// /// /// - public global::Phoenix.ContinuousAnnotationConfigData? Type42 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type42 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigData? Type43 { get; set; } + public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type43 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfigData? Type44 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBody? Type44 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminator? Type45 { get; set; } + public global::Phoenix.Data? Type45 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigDataDiscriminatorType? Type46 { get; set; } + public global::Phoenix.FreeformAnnotationConfig? Type46 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBody? Type47 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type47 { get; set; } /// /// /// - public global::Phoenix.Data? Type48 { get; set; } + public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type48 { get; set; } /// /// /// - public global::Phoenix.FreeformAnnotationConfig? Type49 { get; set; } + public global::Phoenix.CreateExperimentRequestBody? Type49 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminator? Type50 { get; set; } + public global::System.Collections.Generic.IList? Type50 { get; set; } /// /// /// - public global::Phoenix.CreateAnnotationConfigResponseBodyDataDiscriminatorType? Type51 { get; set; } + public int? Type51 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRequestBody? Type52 { get; set; } + public global::Phoenix.CreateExperimentResponseBody? Type52 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type53 { get; set; } + public global::Phoenix.Experiment? Type53 { get; set; } /// /// /// - public int? Type54 { get; set; } + public global::Phoenix.CreateExperimentRunRequestBody? Type54 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentResponseBody? Type55 { get; set; } + public global::System.DateTime? Type55 { get; set; } /// /// /// - public global::Phoenix.Experiment? Type56 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBody? Type56 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunRequestBody? Type57 { get; set; } + public global::Phoenix.CreateExperimentRunResponseBodyData? Type57 { get; set; } /// /// /// - public global::System.DateTime? Type58 { get; set; } + public global::Phoenix.CreateProjectRequestBody? Type58 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBody? Type59 { get; set; } + public global::Phoenix.CreateProjectResponseBody? Type59 { get; set; } /// /// /// - public global::Phoenix.CreateExperimentRunResponseBodyData? Type60 { get; set; } + public global::Phoenix.Project? Type60 { get; set; } /// /// /// - public global::Phoenix.CreateProjectRequestBody? Type61 { get; set; } + public global::Phoenix.CreatePromptRequestBody? Type61 { get; set; } /// /// /// - public global::Phoenix.CreateProjectResponseBody? Type62 { get; set; } + public global::Phoenix.PromptData? Type62 { get; set; } /// /// /// - public global::Phoenix.Project? Type63 { get; set; } + public global::Phoenix.PromptVersionData? Type63 { get; set; } /// /// /// - public global::Phoenix.CreatePromptRequestBody? Type64 { get; set; } + public global::Phoenix.CreatePromptResponseBody? Type64 { get; set; } /// /// /// - public global::Phoenix.PromptData? Type65 { get; set; } + public global::Phoenix.PromptVersion? Type65 { get; set; } /// /// /// - public global::Phoenix.PromptVersionData? Type66 { get; set; } + public global::Phoenix.CreateSessionNoteRequestBody? Type66 { get; set; } /// /// /// - public global::Phoenix.CreatePromptResponseBody? Type67 { get; set; } + public global::Phoenix.SessionNoteData? Type67 { get; set; } /// /// /// - public global::Phoenix.PromptVersion? Type68 { get; set; } + public global::Phoenix.CreateSessionNoteResponseBody? Type68 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteRequestBody? Type69 { get; set; } + public global::Phoenix.CreateSpanNoteRequestBody? Type69 { get; set; } /// /// /// - public global::Phoenix.SessionNoteData? Type70 { get; set; } + public global::Phoenix.SpanNoteData? Type70 { get; set; } /// /// /// - public global::Phoenix.CreateSessionNoteResponseBody? Type71 { get; set; } + public global::Phoenix.CreateSpanNoteResponseBody? Type71 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteRequestBody? Type72 { get; set; } + public global::Phoenix.CreateSpansRequestBody? Type72 { get; set; } /// /// /// - public global::Phoenix.SpanNoteData? Type73 { get; set; } + public global::System.Collections.Generic.IList? Type73 { get; set; } /// /// /// - public global::Phoenix.CreateSpanNoteResponseBody? Type74 { get; set; } + public global::Phoenix.Span? Type74 { get; set; } /// /// /// - public global::Phoenix.CreateSpansRequestBody? Type75 { get; set; } + public global::Phoenix.CreateSpansResponseBody? Type75 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type76 { get; set; } + public global::Phoenix.CreateTraceNoteRequestBody? Type76 { get; set; } /// /// /// - public global::Phoenix.Span? Type77 { get; set; } + public global::Phoenix.TraceNoteData? Type77 { get; set; } /// /// /// - public global::Phoenix.CreateSpansResponseBody? Type78 { get; set; } + public global::Phoenix.CreateTraceNoteResponseBody? Type78 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteRequestBody? Type79 { get; set; } + public global::Phoenix.CreateUserRequestBody? Type79 { get; set; } /// /// /// - public global::Phoenix.TraceNoteData? Type80 { get; set; } + public global::Phoenix.User? Type80 { get; set; } /// /// /// - public global::Phoenix.CreateTraceNoteResponseBody? Type81 { get; set; } + public global::Phoenix.LocalUserData? Type81 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBody? Type82 { get; set; } + public global::Phoenix.OAuth2UserData? Type82 { get; set; } /// /// /// - public global::Phoenix.User? Type83 { get; set; } + public global::Phoenix.LDAPUserData? Type83 { get; set; } /// /// /// - public global::Phoenix.LocalUserData? Type84 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type84 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserData? Type85 { get; set; } + public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type85 { get; set; } /// /// /// - public global::Phoenix.LDAPUserData? Type86 { get; set; } + public global::Phoenix.CreateUserResponseBody? Type86 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminator? Type87 { get; set; } + public global::Phoenix.Data2? Type87 { get; set; } /// /// /// - public global::Phoenix.CreateUserRequestBodyUserDiscriminatorAuthMethod? Type88 { get; set; } + public global::Phoenix.LocalUser? Type88 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBody? Type89 { get; set; } + public global::Phoenix.OAuth2User? Type89 { get; set; } /// /// /// - public global::Phoenix.Data2? Type90 { get; set; } + public global::Phoenix.LDAPUser? Type90 { get; set; } /// /// /// - public global::Phoenix.LocalUser? Type91 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type91 { get; set; } /// /// /// - public global::Phoenix.OAuth2User? Type92 { get; set; } + public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type92 { get; set; } /// /// /// - public global::Phoenix.LDAPUser? Type93 { get; set; } + public global::Phoenix.DataUIPart? Type93 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminator? Type94 { get; set; } + public global::Phoenix.Dataset? Type94 { get; set; } /// /// /// - public global::Phoenix.CreateUserResponseBodyDataDiscriminatorAuthMethod? Type95 { get; set; } + public global::Phoenix.DatasetExample? Type95 { get; set; } /// /// /// - public global::Phoenix.CustomProviderChatSearchParams? Type96 { get; set; } + public global::Phoenix.DatasetVersion? Type96 { get; set; } /// /// /// - public global::Phoenix.DataUIPart? Type97 { get; set; } + public global::Phoenix.DatasetWithExampleCount? Type97 { get; set; } /// /// /// - public global::Phoenix.Dataset? Type98 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBody? Type98 { get; set; } /// /// /// - public global::Phoenix.DatasetExample? Type99 { get; set; } + public global::Phoenix.Data3? Type99 { get; set; } /// /// /// - public global::Phoenix.DatasetVersion? Type100 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type100 { get; set; } /// /// /// - public global::Phoenix.DatasetWithExampleCount? Type101 { get; set; } + public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type101 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBody? Type102 { get; set; } + public global::Phoenix.DeleteSessionsRequestBody? Type102 { get; set; } /// /// /// - public global::Phoenix.Data3? Type103 { get; set; } + public global::Phoenix.DynamicToolApprovalRequestedPart? Type103 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminator? Type104 { get; set; } + public global::System.Collections.Generic.Dictionary? Type104 { get; set; } /// /// /// - public global::Phoenix.DeleteAnnotationConfigResponseBodyDataDiscriminatorType? Type105 { get; set; } + public global::Phoenix.AnyOf? Type105 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionsRequestBody? Type106 { get; set; } + public global::Phoenix.ToolApprovalRequested? Type106 { get; set; } /// /// /// - public global::Phoenix.DynamicToolApprovalRequestedPart? Type107 { get; set; } + public global::Phoenix.ToolApprovalResponded? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type108 { get; set; } + public global::Phoenix.DynamicToolApprovalRespondedPart? Type108 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type109 { get; set; } + public global::Phoenix.DynamicToolInputAvailablePart? Type109 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalRequested? Type110 { get; set; } + public global::Phoenix.DynamicToolInputStreamingPart? Type110 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalResponded? Type111 { get; set; } + public global::Phoenix.DynamicToolOutputAvailablePart? Type111 { get; set; } /// /// /// - public global::Phoenix.DynamicToolApprovalRespondedPart? Type112 { get; set; } + public global::Phoenix.DynamicToolOutputDeniedPart? Type112 { get; set; } /// /// /// - public global::Phoenix.DynamicToolInputAvailablePart? Type113 { get; set; } + public global::Phoenix.DynamicToolOutputErrorPart? Type113 { get; set; } /// /// /// - public global::Phoenix.DynamicToolInputStreamingPart? Type114 { get; set; } + public global::Phoenix.ExperimentEvaluationResult? Type114 { get; set; } /// /// /// - public global::Phoenix.DynamicToolOutputAvailablePart? Type115 { get; set; } + public global::Phoenix.ExperimentRun? Type115 { get; set; } /// /// /// - public global::Phoenix.DynamicToolOutputDeniedPart? Type116 { get; set; } + public global::Phoenix.FileUIPart? Type116 { get; set; } /// /// /// - public global::Phoenix.DynamicToolOutputErrorPart? Type117 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBody? Type117 { get; set; } /// /// /// - public global::Phoenix.ExperimentEvaluationResult? Type118 { get; set; } + public global::Phoenix.Data4? Type118 { get; set; } /// /// /// - public global::Phoenix.ExperimentRun? Type119 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type119 { get; set; } /// /// /// - public global::Phoenix.FileUIPart? Type120 { get; set; } + public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type120 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBody? Type121 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBody? Type121 { get; set; } /// /// /// - public global::Phoenix.Data4? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminator? Type123 { get; set; } + public global::Phoenix.DataItem? Type123 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigResponseBodyDataDiscriminatorType? Type124 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type124 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBody? Type125 { get; set; } + public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type126 { get; set; } + public global::Phoenix.GetDatasetResponseBody? Type126 { get; set; } /// /// /// - public global::Phoenix.DataItem? Type127 { get; set; } + public global::Phoenix.GetExperimentResponseBody? Type127 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminator? Type128 { get; set; } + public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type128 { get; set; } /// /// /// - public global::Phoenix.GetAnnotationConfigsResponseBodyDataItemDiscriminatorType? Type129 { get; set; } + public global::System.Collections.Generic.IList? Type129 { get; set; } /// /// /// - public global::Phoenix.GetDatasetResponseBody? Type130 { get; set; } + public global::Phoenix.IncompleteExperimentEvaluation? Type130 { get; set; } /// /// /// - public global::Phoenix.GetExperimentResponseBody? Type131 { get; set; } + public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type131 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteEvaluationsResponseBody? Type132 { get; set; } + public global::System.Collections.Generic.IList? Type132 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type133 { get; set; } + public global::Phoenix.IncompleteExperimentRun? Type133 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentEvaluation? Type134 { get; set; } + public global::Phoenix.GetProjectResponseBody? Type134 { get; set; } /// /// /// - public global::Phoenix.GetIncompleteExperimentRunsResponseBody? Type135 { get; set; } + public global::Phoenix.GetProjectsResponseBody? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type136 { get; set; } + public global::System.Collections.Generic.IList? Type136 { get; set; } /// /// /// - public global::Phoenix.IncompleteExperimentRun? Type137 { get; set; } + public global::Phoenix.GetPromptResponseBody? Type137 { get; set; } /// /// /// - public global::Phoenix.GetProjectResponseBody? Type138 { get; set; } + public global::Phoenix.GetPromptVersionTagsResponseBody? Type138 { get; set; } /// /// /// - public global::Phoenix.GetProjectsResponseBody? Type139 { get; set; } + public global::System.Collections.Generic.IList? Type139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type140 { get; set; } + public global::Phoenix.PromptVersionTag? Type140 { get; set; } /// /// /// - public global::Phoenix.GetPromptResponseBody? Type141 { get; set; } + public global::Phoenix.GetPromptVersionsResponseBody? Type141 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionTagsResponseBody? Type142 { get; set; } + public global::System.Collections.Generic.IList? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type143 { get; set; } + public global::Phoenix.GetPromptsResponseBody? Type143 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTag? Type144 { get; set; } + public global::System.Collections.Generic.IList? Type144 { get; set; } /// /// /// - public global::Phoenix.GetPromptVersionsResponseBody? Type145 { get; set; } + public global::Phoenix.Prompt? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type146 { get; set; } + public global::Phoenix.GetSessionResponseBody? Type146 { get; set; } /// /// /// - public global::Phoenix.GetPromptsResponseBody? Type147 { get; set; } + public global::Phoenix.SessionData? Type147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type148 { get; set; } + public global::Phoenix.GetSessionsResponseBody? Type148 { get; set; } /// /// /// - public global::Phoenix.Prompt? Type149 { get; set; } + public global::System.Collections.Generic.IList? Type149 { get; set; } /// /// /// - public global::Phoenix.GetSessionResponseBody? Type150 { get; set; } + public global::Phoenix.GetTracesResponseBody? Type150 { get; set; } /// /// /// - public global::Phoenix.SessionData? Type151 { get; set; } + public global::System.Collections.Generic.IList? Type151 { get; set; } /// /// /// - public global::Phoenix.GetSessionsResponseBody? Type152 { get; set; } + public global::Phoenix.TraceData? Type152 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type153 { get; set; } + public global::Phoenix.GetUsersResponseBody? Type153 { get; set; } /// /// /// - public global::Phoenix.GetTracesResponseBody? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type155 { get; set; } + public global::Phoenix.DataItem2? Type155 { get; set; } /// /// /// - public global::Phoenix.TraceData? Type156 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type156 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBody? Type157 { get; set; } + public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type158 { get; set; } + public global::Phoenix.GetViewerResponseBody? Type158 { get; set; } /// /// /// - public global::Phoenix.DataItem2? Type159 { get; set; } + public global::Phoenix.Data5? Type159 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminator? Type160 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type160 { get; set; } /// /// /// - public global::Phoenix.GetUsersResponseBodyDataItemDiscriminatorAuthMethod? Type161 { get; set; } + public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type161 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBody? Type162 { get; set; } + public global::Phoenix.HTTPValidationError? Type162 { get; set; } /// /// /// - public global::Phoenix.Data5? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminator? Type164 { get; set; } + public global::Phoenix.ValidationError? Type164 { get; set; } /// /// /// - public global::Phoenix.GetViewerResponseBodyDataDiscriminatorAuthMethod? Type165 { get; set; } + public global::System.Collections.Generic.IList? Type165 { get; set; } /// /// /// - public global::Phoenix.HTTPValidationError? Type166 { get; set; } + public global::Phoenix.LDAPUserRole? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::Phoenix.LDAPUserDataRole? Type167 { get; set; } /// /// /// - public global::Phoenix.ValidationError? Type168 { get; set; } + public global::Phoenix.ListDatasetExamplesData? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::Phoenix.LDAPUserRole? Type170 { get; set; } + public global::Phoenix.ListDatasetExamplesResponseBody? Type170 { get; set; } /// /// /// - public global::Phoenix.LDAPUserDataRole? Type171 { get; set; } + public global::Phoenix.ListDatasetVersionsResponseBody? Type171 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesData? Type172 { get; set; } + public global::System.Collections.Generic.IList? Type172 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type173 { get; set; } + public global::Phoenix.ListDatasetsResponseBody? Type173 { get; set; } /// /// /// - public global::Phoenix.ListDatasetExamplesResponseBody? Type174 { get; set; } + public global::System.Collections.Generic.IList? Type174 { get; set; } /// /// /// - public global::Phoenix.ListDatasetVersionsResponseBody? Type175 { get; set; } + public global::Phoenix.ListExperimentRunsResponseBody? Type175 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type176 { get; set; } + public global::System.Collections.Generic.IList? Type176 { get; set; } /// /// /// - public global::Phoenix.ListDatasetsResponseBody? Type177 { get; set; } + public global::Phoenix.ListExperimentsResponseBody? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::Phoenix.ListExperimentRunsResponseBody? Type179 { get; set; } + public global::Phoenix.LocalUserRole? Type179 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type180 { get; set; } + public global::Phoenix.LocalUserDataRole? Type180 { get; set; } /// /// /// - public global::Phoenix.ListExperimentsResponseBody? Type181 { get; set; } + public global::Phoenix.ModelProvider? Type181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type182 { get; set; } + public global::Phoenix.OAuth2UserRole? Type182 { get; set; } /// /// /// - public global::Phoenix.LocalUserRole? Type183 { get; set; } + public global::Phoenix.OAuth2UserDataRole? Type183 { get; set; } /// /// /// - public global::Phoenix.LocalUserDataRole? Type184 { get; set; } + public global::Phoenix.OtlpAnyValue? Type184 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserRole? Type185 { get; set; } + public global::Phoenix.OtlpArrayValue? Type185 { get; set; } /// /// /// - public global::Phoenix.OAuth2UserDataRole? Type186 { get; set; } + public global::Phoenix.AnyOf? Type186 { get; set; } /// /// /// - public global::Phoenix.OtlpAnyValue? Type187 { get; set; } + public global::Phoenix.OtlpDoubleValue? Type187 { get; set; } /// /// /// - public global::Phoenix.OtlpArrayValue? Type188 { get; set; } + public global::Phoenix.AnyOf? Type188 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::Phoenix.OtlpDoubleValue? Type190 { get; set; } + public global::Phoenix.OtlpEvent? Type190 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type191 { get; set; } + public global::System.Collections.Generic.IList? Type191 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::Phoenix.OtlpKeyValue? Type192 { get; set; } /// /// /// - public global::Phoenix.OtlpEvent? Type193 { get; set; } + public global::Phoenix.AnyOf? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type194 { get; set; } + public long? Type194 { get; set; } /// /// /// - public global::Phoenix.OtlpKeyValue? Type195 { get; set; } + public global::Phoenix.OtlpKind? Type195 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type196 { get; set; } + public global::Phoenix.OtlpSpan? Type196 { get; set; } /// /// /// - public long? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::Phoenix.OtlpKind? Type198 { get; set; } + public global::Phoenix.AnyOf? Type198 { get; set; } /// /// /// - public global::Phoenix.OtlpSpan? Type199 { get; set; } + public global::Phoenix.OtlpStatus? Type199 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::Phoenix.OtlpSpansResponseBody? Type200 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::Phoenix.OtlpStatus? Type202 { get; set; } + public global::Phoenix.ProjectContext? Type202 { get; set; } /// /// /// - public global::Phoenix.OtlpSpansResponseBody? Type203 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParameters? Type203 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type204 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContent? Type204 { get; set; } /// /// /// - public global::Phoenix.ProjectContext? Type205 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfig? Type205 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParameters? Type206 { get; set; } + public global::Phoenix.Thinking? Type206 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContent? Type207 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type207 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfig? Type208 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type208 { get; set; } /// /// /// - public global::Phoenix.Thinking? Type209 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type209 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigDisabled? Type210 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type210 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabled? Type211 { get; set; } + public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type211 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptive? Type212 { get; set; } + public global::Phoenix.PromptAnthropicOutputConfigEffort? Type212 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminator? Type213 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type213 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicInvocationParametersContentThinkingDiscriminatorType? Type214 { get; set; } + public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type214 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicOutputConfigEffort? Type215 { get; set; } + public global::Phoenix.PromptAwsInvocationParameters? Type215 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigAdaptiveDisplay? Type216 { get; set; } + public global::Phoenix.PromptAwsInvocationParametersContent? Type216 { get; set; } /// /// /// - public global::Phoenix.PromptAnthropicThinkingConfigEnabledDisplay? Type217 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type217 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParameters? Type218 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type218 { get; set; } /// /// /// - public global::Phoenix.PromptAwsInvocationParametersContent? Type219 { get; set; } + public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type219 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParameters? Type220 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParameters? Type220 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContent? Type221 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContent? Type221 { get; set; } /// /// /// - public global::Phoenix.PromptAzureOpenAIInvocationParametersContentReasoningEffort? Type222 { get; set; } + public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type222 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParameters? Type223 { get; set; } + public global::Phoenix.PromptChatTemplate? Type223 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContent? Type224 { get; set; } + public global::System.Collections.Generic.IList? Type224 { get; set; } /// /// /// - public global::Phoenix.PromptCerebrasInvocationParametersContentReasoningEffort? Type225 { get; set; } + public global::Phoenix.PromptMessage? Type225 { get; set; } /// /// /// - public global::Phoenix.PromptChatTemplate? Type226 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParameters? Type226 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type227 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type227 { get; set; } /// /// /// - public global::Phoenix.PromptMessage? Type228 { get; set; } + public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type228 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParameters? Type229 { get; set; } + public global::Phoenix.PromptFireworksInvocationParameters? Type229 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContent? Type230 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContent? Type230 { get; set; } /// /// /// - public global::Phoenix.PromptDeepSeekInvocationParametersContentReasoningEffort? Type231 { get; set; } + public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type231 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParameters? Type232 { get; set; } + public global::Phoenix.PromptGoogleInvocationParameters? Type232 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContent? Type233 { get; set; } + public global::Phoenix.PromptGoogleInvocationParametersContent? Type233 { get; set; } /// /// /// - public global::Phoenix.PromptFireworksInvocationParametersContentReasoningEffort? Type234 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfig? Type234 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParameters? Type235 { get; set; } + public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type235 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleInvocationParametersContent? Type236 { get; set; } + public global::Phoenix.PromptGroqInvocationParameters? Type236 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfig? Type237 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContent? Type237 { get; set; } /// /// /// - public global::Phoenix.PromptGoogleThinkingConfigThinkingLevel? Type238 { get; set; } + public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type238 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParameters? Type239 { get; set; } + public global::Phoenix.PromptMessageRole? Type239 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContent? Type240 { get; set; } + public global::Phoenix.AnyOf>? Type240 { get; set; } /// /// /// - public global::Phoenix.PromptGroqInvocationParametersContentReasoningEffort? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::Phoenix.PromptMessageRole? Type242 { get; set; } + public global::Phoenix.ContentVariant2Item? Type242 { get; set; } /// /// /// - public global::Phoenix.AnyOf>? Type243 { get; set; } + public global::Phoenix.TextContentPart? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::Phoenix.ToolCallContentPart? Type244 { get; set; } /// /// /// - public global::Phoenix.ContentVariant2Item? Type245 { get; set; } + public global::Phoenix.ToolResultContentPart? Type245 { get; set; } /// /// /// - public global::Phoenix.TextContentPart? Type246 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type246 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPart? Type247 { get; set; } + public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type247 { get; set; } /// /// /// - public global::Phoenix.ToolResultContentPart? Type248 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParameters? Type248 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminator? Type249 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContent? Type249 { get; set; } /// /// /// - public global::Phoenix.PromptMessageContentVariant2ItemDiscriminatorType? Type250 { get; set; } + public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type250 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParameters? Type251 { get; set; } + public global::Phoenix.PromptOllamaInvocationParameters? Type251 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContent? Type252 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContent? Type252 { get; set; } /// /// /// - public global::Phoenix.PromptMoonshotInvocationParametersContentReasoningEffort? Type253 { get; set; } + public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type253 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParameters? Type254 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParameters? Type254 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContent? Type255 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContent? Type255 { get; set; } /// /// /// - public global::Phoenix.PromptOllamaInvocationParametersContentReasoningEffort? Type256 { get; set; } + public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type256 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParameters? Type257 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParameters? Type257 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContent? Type258 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContent? Type258 { get; set; } /// /// /// - public global::Phoenix.PromptOpenAIInvocationParametersContentReasoningEffort? Type259 { get; set; } + public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type259 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParameters? Type260 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchema? Type260 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContent? Type261 { get; set; } + public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type261 { get; set; } /// /// /// - public global::Phoenix.PromptPerplexityInvocationParametersContentReasoningEffort? Type262 { get; set; } + public global::Phoenix.PromptStringTemplate? Type262 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchema? Type263 { get; set; } + public global::Phoenix.PromptTemplateFormat? Type263 { get; set; } /// /// /// - public global::Phoenix.PromptResponseFormatJSONSchemaDefinition? Type264 { get; set; } + public global::Phoenix.PromptTemplateType? Type264 { get; set; } /// /// /// - public global::Phoenix.PromptStringTemplate? Type265 { get; set; } + public global::Phoenix.PromptTogetherInvocationParameters? Type265 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateFormat? Type266 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContent? Type266 { get; set; } /// /// /// - public global::Phoenix.PromptTemplateType? Type267 { get; set; } + public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type267 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParameters? Type268 { get; set; } + public global::Phoenix.PromptToolChoiceNone? Type268 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContent? Type269 { get; set; } + public global::Phoenix.PromptToolChoiceOneOrMore? Type269 { get; set; } /// /// /// - public global::Phoenix.PromptTogetherInvocationParametersContentReasoningEffort? Type270 { get; set; } + public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type270 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceNone? Type271 { get; set; } + public global::Phoenix.PromptToolChoiceZeroOrMore? Type271 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceOneOrMore? Type272 { get; set; } + public global::Phoenix.PromptToolFunction? Type272 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceSpecificFunctionTool? Type273 { get; set; } + public global::Phoenix.PromptToolFunctionDefinition? Type273 { get; set; } /// /// /// - public global::Phoenix.PromptToolChoiceZeroOrMore? Type274 { get; set; } + public global::Phoenix.PromptToolRaw? Type274 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunction? Type275 { get; set; } + public global::Phoenix.PromptTools? Type275 { get; set; } /// /// /// - public global::Phoenix.PromptToolFunctionDefinition? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::Phoenix.PromptToolRaw? Type277 { get; set; } + public global::Phoenix.ToolsItem? Type277 { get; set; } /// /// /// - public global::Phoenix.PromptTools? Type278 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminator? Type278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type279 { get; set; } + public global::Phoenix.PromptToolsToolDiscriminatorType? Type279 { get; set; } /// /// /// - public global::Phoenix.ToolsItem? Type280 { get; set; } + public global::Phoenix.ToolChoice? Type280 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminator? Type281 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type281 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolDiscriminatorType? Type282 { get; set; } + public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type282 { get; set; } /// /// /// - public global::Phoenix.ToolChoice? Type283 { get; set; } + public global::Phoenix.Template? Type283 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminator? Type284 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminator? Type284 { get; set; } /// /// /// - public global::Phoenix.PromptToolsToolChoiceDiscriminatorType? Type285 { get; set; } + public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type285 { get; set; } /// /// /// - public global::Phoenix.Template? Type286 { get; set; } + public global::Phoenix.InvocationParameters? Type286 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminator? Type287 { get; set; } + public global::Phoenix.PromptXAIInvocationParameters? Type287 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTemplateDiscriminatorType? Type288 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type288 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters? Type289 { get; set; } + public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type289 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParameters? Type290 { get; set; } + public global::Phoenix.ResponseFormatVariant1? Type290 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminator? Type291 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type291 { get; set; } /// /// /// - public global::Phoenix.PromptVersionInvocationParametersDiscriminatorType? Type292 { get; set; } + public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type292 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant1? Type293 { get; set; } + public global::Phoenix.Template2? Type293 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1Discriminator? Type294 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type294 { get; set; } /// /// /// - public global::Phoenix.PromptVersionResponseFormatVariant1DiscriminatorType? Type295 { get; set; } + public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type295 { get; set; } /// /// /// - public global::Phoenix.Template2? Type296 { get; set; } + public global::Phoenix.InvocationParameters2? Type296 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminator? Type297 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type297 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataTemplateDiscriminatorType? Type298 { get; set; } + public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type298 { get; set; } /// /// /// - public global::Phoenix.InvocationParameters2? Type299 { get; set; } + public global::Phoenix.ResponseFormatVariant12? Type299 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminator? Type300 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type300 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataInvocationParametersDiscriminatorType? Type301 { get; set; } + public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type301 { get; set; } /// /// /// - public global::Phoenix.ResponseFormatVariant12? Type302 { get; set; } + public global::Phoenix.PromptVersionTagData? Type302 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1Discriminator? Type303 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContent? Type303 { get; set; } /// /// /// - public global::Phoenix.PromptVersionDataResponseFormatVariant1DiscriminatorType? Type304 { get; set; } + public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type304 { get; set; } /// /// /// - public global::Phoenix.PromptVersionTagData? Type305 { get; set; } + public global::Phoenix.ReasoningUIPart? Type305 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContent? Type306 { get; set; } + public global::Phoenix.ReasoningUIPartState2? Type306 { get; set; } /// /// /// - public global::Phoenix.PromptXAIInvocationParametersContentReasoningEffort? Type307 { get; set; } + public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type307 { get; set; } /// /// /// - public global::Phoenix.ReasoningUIPart? Type308 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsResult? Type308 { get; set; } /// /// /// - public global::Phoenix.ReasoningUIPartState2? Type309 { get; set; } + public global::Phoenix.SecretKeyValue? Type309 { get; set; } /// /// /// - public global::Phoenix.ResponseBodyUpsertOrDeleteSecretsResult? Type310 { get; set; } + public global::Phoenix.SessionAnnotation? Type310 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsResult? Type311 { get; set; } + public global::Phoenix.SessionAnnotationSource? Type311 { get; set; } /// /// /// - public global::Phoenix.SecretKeyValue? Type312 { get; set; } + public global::Phoenix.SessionAnnotationAnnotatorKind? Type312 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotation? Type313 { get; set; } + public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type313 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationSource? Type314 { get; set; } + public global::Phoenix.SessionAnnotationsResponseBody? Type314 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationAnnotatorKind? Type315 { get; set; } + public global::System.Collections.Generic.IList? Type315 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationDataAnnotatorKind? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type316 { get; set; } /// /// /// - public global::Phoenix.SessionAnnotationsResponseBody? Type317 { get; set; } + public global::Phoenix.SessionTraceData? Type317 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type318 { get; set; } + public global::Phoenix.SourceDocumentUIPart? Type318 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type319 { get; set; } + public global::Phoenix.SourceUrlUIPart? Type319 { get; set; } /// /// /// - public global::Phoenix.SessionTraceData? Type320 { get; set; } + public global::Phoenix.SpanContext? Type320 { get; set; } /// /// /// - public global::Phoenix.SourceDocumentUIPart? Type321 { get; set; } + public global::System.Collections.Generic.IList? Type321 { get; set; } /// /// /// - public global::Phoenix.SourceUrlUIPart? Type322 { get; set; } + public global::Phoenix.SpanEvent? Type322 { get; set; } /// /// /// - public global::Phoenix.SpanContext? Type323 { get; set; } + public global::Phoenix.SpanAnnotation? Type323 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type324 { get; set; } + public global::Phoenix.SpanAnnotationSource? Type324 { get; set; } /// /// /// - public global::Phoenix.SpanEvent? Type325 { get; set; } + public global::Phoenix.SpanAnnotationAnnotatorKind? Type325 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotation? Type326 { get; set; } + public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type326 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationSource? Type327 { get; set; } + public global::Phoenix.SpanAnnotationsResponseBody? Type327 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationAnnotatorKind? Type328 { get; set; } + public global::System.Collections.Generic.IList? Type328 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationDataAnnotatorKind? Type329 { get; set; } + public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type329 { get; set; } /// /// /// - public global::Phoenix.SpanAnnotationsResponseBody? Type330 { get; set; } + public global::Phoenix.SpansResponseBody? Type330 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type331 { get; set; } + public global::Phoenix.StepStartUIPart? Type331 { get; set; } /// /// /// - public global::Phoenix.SpanDocumentAnnotationDataAnnotatorKind? Type332 { get; set; } + public global::Phoenix.TextUIPart? Type332 { get; set; } /// /// /// - public global::Phoenix.SpansResponseBody? Type333 { get; set; } + public global::Phoenix.TextUIPartState2? Type333 { get; set; } /// /// /// - public global::Phoenix.StepStartUIPart? Type334 { get; set; } + public global::Phoenix.ToolApprovalRequestedPart? Type334 { get; set; } /// /// /// - public global::Phoenix.TextUIPart? Type335 { get; set; } + public global::Phoenix.ToolApprovalRespondedPart? Type335 { get; set; } /// /// /// - public global::Phoenix.TextUIPartState2? Type336 { get; set; } + public global::Phoenix.ToolCallFunction? Type336 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalRequestedPart? Type337 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type337 { get; set; } /// /// /// - public global::Phoenix.ToolApprovalRespondedPart? Type338 { get; set; } + public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type338 { get; set; } /// /// /// - public global::Phoenix.ToolCallFunction? Type339 { get; set; } + public global::Phoenix.ToolInputAvailablePart? Type339 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminator? Type340 { get; set; } + public global::Phoenix.ToolInputStreamingPart? Type340 { get; set; } /// /// /// - public global::Phoenix.ToolCallContentPartToolCallDiscriminatorType? Type341 { get; set; } + public global::Phoenix.ToolOutputAvailablePart? Type341 { get; set; } /// /// /// - public global::Phoenix.ToolInputAvailablePart? Type342 { get; set; } + public global::Phoenix.ToolOutputDeniedPart? Type342 { get; set; } /// /// /// - public global::Phoenix.ToolInputStreamingPart? Type343 { get; set; } + public global::Phoenix.ToolOutputErrorPart? Type343 { get; set; } /// /// /// - public global::Phoenix.ToolOutputAvailablePart? Type344 { get; set; } + public global::Phoenix.AnyOf, object>? Type344 { get; set; } /// /// /// - public global::Phoenix.ToolOutputDeniedPart? Type345 { get; set; } + public global::System.Collections.Generic.IList? Type345 { get; set; } /// /// /// - public global::Phoenix.ToolOutputErrorPart? Type346 { get; set; } + public global::Phoenix.TraceAnnotation? Type346 { get; set; } /// /// /// - public global::Phoenix.AnyOf, object>? Type347 { get; set; } + public global::Phoenix.TraceAnnotationSource? Type347 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type348 { get; set; } + public global::Phoenix.TraceAnnotationAnnotatorKind? Type348 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotation? Type349 { get; set; } + public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type349 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationSource? Type350 { get; set; } + public global::Phoenix.TraceAnnotationsResponseBody? Type350 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationAnnotatorKind? Type351 { get; set; } + public global::System.Collections.Generic.IList? Type351 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationDataAnnotatorKind? Type352 { get; set; } + public global::Phoenix.TraceContext? Type352 { get; set; } /// /// /// - public global::Phoenix.TraceAnnotationsResponseBody? Type353 { get; set; } + public global::System.Collections.Generic.IList? Type353 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type354 { get; set; } + public global::Phoenix.TraceSpanData? Type354 { get; set; } /// /// /// - public global::Phoenix.TraceContext? Type355 { get; set; } + public global::Phoenix.UIMessage? Type355 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type356 { get; set; } + public global::Phoenix.UIMessageRole? Type356 { get; set; } /// /// /// - public global::Phoenix.TraceSpanData? Type357 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBody? Type357 { get; set; } /// /// /// - public global::Phoenix.UIMessage? Type358 { get; set; } + public global::Phoenix.Data6? Type358 { get; set; } /// /// /// - public global::Phoenix.UIMessageRole? Type359 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type359 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBody? Type360 { get; set; } + public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type360 { get; set; } /// /// /// - public global::Phoenix.Data6? Type361 { get; set; } + public global::Phoenix.UpdateProjectRequestBody? Type361 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminator? Type362 { get; set; } + public global::Phoenix.UpdateProjectResponseBody? Type362 { get; set; } /// /// /// - public global::Phoenix.UpdateAnnotationConfigResponseBodyDataDiscriminatorType? Type363 { get; set; } + public global::Phoenix.UploadDatasetData? Type363 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectRequestBody? Type364 { get; set; } + public global::Phoenix.UploadDatasetResponseBody? Type364 { get; set; } /// /// /// - public global::Phoenix.UpdateProjectResponseBody? Type365 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type365 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetData? Type366 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type366 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetResponseBody? Type367 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type367 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBody? Type368 { get; set; } + public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type368 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationRequestBodyAnnotatorKind? Type369 { get; set; } + public global::Phoenix.UpsertOrDeleteSecretsRequest? Type369 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBody? Type370 { get; set; } + public global::System.Collections.Generic.IList? Type370 { get; set; } /// /// /// - public global::Phoenix.UpsertExperimentEvaluationResponseBodyData? Type371 { get; set; } + public global::System.Collections.Generic.IList>? Type371 { get; set; } /// /// /// - public global::Phoenix.UpsertOrDeleteSecretsRequest? Type372 { get; set; } + public global::Phoenix.AnyOf? Type372 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type373 { get; set; } + public global::Phoenix.RegenerateMessage? Type373 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type374 { get; set; } + public global::System.Collections.Generic.IList? Type374 { get; set; } /// /// /// - public global::Phoenix.AnyOf? Type375 { get; set; } + public global::System.Collections.Generic.IList? Type375 { get; set; } /// /// /// - public global::Phoenix.RegenerateMessage? Type376 { get; set; } + public global::Phoenix.ContextsItem? Type376 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type377 { get; set; } + public global::Phoenix.RegenerateMessageContextDiscriminator? Type377 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type378 { get; set; } + public global::Phoenix.RegenerateMessageContextDiscriminatorType? Type378 { get; set; } /// /// /// - public global::Phoenix.ContextsItem? Type379 { get; set; } + public global::Phoenix.SubmitMessage? Type379 { get; set; } /// /// /// - public global::Phoenix.RegenerateMessageContextDiscriminator? Type380 { get; set; } + public global::System.Collections.Generic.IList? Type380 { get; set; } /// /// /// - public global::Phoenix.RegenerateMessageContextDiscriminatorType? Type381 { get; set; } + public global::Phoenix.ContextsItem2? Type381 { get; set; } /// /// /// - public global::Phoenix.SubmitMessage? Type382 { get; set; } + public global::Phoenix.SubmitMessageContextDiscriminator? Type382 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type383 { get; set; } + public global::Phoenix.SubmitMessageContextDiscriminatorType? Type383 { get; set; } /// /// /// - public global::Phoenix.ContextsItem2? Type384 { get; set; } + public global::Phoenix.SummarizeRequest? Type384 { get; set; } /// /// /// - public global::Phoenix.SubmitMessageContextDiscriminator? Type385 { get; set; } + public global::Phoenix.SummarizeResponse? Type385 { get; set; } /// /// /// - public global::Phoenix.SubmitMessageContextDiscriminatorType? Type386 { get; set; } + public global::Phoenix.UploadDatasetRequest? Type386 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest? Type387 { get; set; } + public global::Phoenix.UploadDatasetRequestAction? Type387 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction? Type388 { get; set; } + public global::System.Collections.Generic.IList, object>>? Type388 { get; set; } /// /// /// - public global::System.Collections.Generic.IList, object>>? Type389 { get; set; } + public global::Phoenix.OneOf, object>? Type389 { get; set; } /// /// /// - public global::Phoenix.OneOf, object>? Type390 { get; set; } + public global::System.Collections.Generic.IList>? Type390 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type391 { get; set; } + public global::Phoenix.OneOf? Type391 { get; set; } /// /// /// - public global::Phoenix.OneOf? Type392 { get; set; } + public global::Phoenix.UploadDatasetRequest2? Type392 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequest2? Type393 { get; set; } + public global::Phoenix.UploadDatasetRequestAction2? Type393 { get; set; } /// /// /// - public global::Phoenix.UploadDatasetRequestAction2? Type394 { get; set; } + public byte[]? Type394 { get; set; } /// /// /// - public byte[]? Type395 { get; set; } + public global::Phoenix.ChatV2ChatV2PostRequest? Type395 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostRequest? Type396 { get; set; } + public global::Phoenix.ChatV2ChatV2PostRequestDiscriminator? Type396 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostRequestDiscriminator? Type397 { get; set; } + public global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger? Type397 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostRequestDiscriminatorTrigger? Type398 { get; set; } + public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type398 { get; set; } /// /// /// - public global::Phoenix.DeleteSpanAnnotationsAnnotatorKind2? Type399 { get; set; } + public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type399 { get; set; } /// /// /// - public global::Phoenix.DeleteTraceAnnotationsAnnotatorKind2? Type400 { get; set; } + public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type400 { get; set; } /// /// /// - public global::Phoenix.DeleteSessionAnnotationsAnnotatorKind2? Type401 { get; set; } + public global::Phoenix.ListProjectTracesSort? Type401 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesSort? Type402 { get; set; } + public global::Phoenix.ListProjectTracesOrder? Type402 { get; set; } /// /// /// - public global::Phoenix.ListProjectTracesOrder? Type403 { get; set; } + public global::Phoenix.ListProjectSessionsOrder? Type403 { get; set; } /// /// /// - public global::Phoenix.ListProjectSessionsOrder? Type404 { get; set; } + public global::Phoenix.ChatChatPostProviderType? Type404 { get; set; } /// /// /// - public global::Phoenix.ChatChatPostRoot? Type405 { get; set; } + public global::Phoenix.ChatChatPostOpenaiApiType? Type405 { get; set; } /// /// /// - public global::Phoenix.ChatChatPostRootDiscriminator? Type406 { get; set; } + public global::Phoenix.ChatV2ChatV2PostProviderType? Type406 { get; set; } /// /// /// - public global::Phoenix.ChatChatPostRootDiscriminatorProviderType? Type407 { get; set; } + public global::Phoenix.ChatV2ChatV2PostOpenaiApiType? Type407 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostRoot? Type408 { get; set; } + public global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? Type408 { get; set; } /// /// /// - public global::Phoenix.ChatV2ChatV2PostRootDiscriminator? Type409 { get; set; } - /// - /// - /// - public global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType? Type410 { get; set; } + public global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? Type409 { get; set; } /// /// diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderChatSearchParams.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderChatSearchParams.g.cs deleted file mode 100644 index f37eda7..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderChatSearchParams.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// Chat against a Phoenix built-in provider.
- /// Credentials and connection details (base URL, Azure endpoint, AWS
- /// region) are resolved from the secret store first and the process
- /// environment second. ``openai_api_type`` is honoured by the OpenAI and
- /// Azure OpenAI branches; other providers ignore it. - ///
- public sealed partial class BuiltInProviderChatSearchParams - { - /// - /// - /// - /// "builtin" - [global::System.Text.Json.Serialization.JsonPropertyName("provider_type")] - public string ProviderType { get; set; } = "builtin"; - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ModelProviderJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Phoenix.ModelProvider Provider { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model_name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ModelName { get; set; } - - /// - /// Default Value: responses - /// - [global::System.Text.Json.Serialization.JsonPropertyName("openai_api_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.BuiltInProviderChatSearchParamsOpenaiApiTypeJsonConverter))] - public global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType? OpenaiApiType { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// - /// Default Value: responses - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BuiltInProviderChatSearchParams( - global::Phoenix.ModelProvider provider, - string modelName, - global::Phoenix.BuiltInProviderChatSearchParamsOpenaiApiType? openaiApiType, - string providerType = "builtin") - { - this.ProviderType = providerType; - this.Provider = provider; - this.ModelName = modelName ?? throw new global::System.ArgumentNullException(nameof(modelName)); - this.OpenaiApiType = openaiApiType; - } - - /// - /// Initializes a new instance of the class. - /// - public BuiltInProviderChatSearchParams() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderChatSearchParamsOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostOpenaiApiType.g.cs similarity index 55% rename from src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderChatSearchParamsOpenaiApiType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostOpenaiApiType.g.cs index 56c67b9..f01d1b8 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderChatSearchParamsOpenaiApiType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostOpenaiApiType.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// Default Value: responses /// - public enum BuiltInProviderChatSearchParamsOpenaiApiType + public enum ChatChatPostOpenaiApiType { /// /// @@ -21,29 +21,29 @@ public enum BuiltInProviderChatSearchParamsOpenaiApiType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class BuiltInProviderChatSearchParamsOpenaiApiTypeExtensions + public static class ChatChatPostOpenaiApiTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this BuiltInProviderChatSearchParamsOpenaiApiType value) + public static string ToValueString(this ChatChatPostOpenaiApiType value) { return value switch { - BuiltInProviderChatSearchParamsOpenaiApiType.ChatCompletions => "chat_completions", - BuiltInProviderChatSearchParamsOpenaiApiType.Responses => "responses", + ChatChatPostOpenaiApiType.ChatCompletions => "chat_completions", + ChatChatPostOpenaiApiType.Responses => "responses", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static BuiltInProviderChatSearchParamsOpenaiApiType? ToEnum(string value) + public static ChatChatPostOpenaiApiType? ToEnum(string value) { return value switch { - "chat_completions" => BuiltInProviderChatSearchParamsOpenaiApiType.ChatCompletions, - "responses" => BuiltInProviderChatSearchParamsOpenaiApiType.Responses, + "chat_completions" => ChatChatPostOpenaiApiType.ChatCompletions, + "responses" => ChatChatPostOpenaiApiType.Responses, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRoot.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProvider.Json.g.cs similarity index 88% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRoot.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProvider.Json.g.cs index f26750f..a766d90 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRoot.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProvider.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public readonly partial struct ChatChatPostRoot + public sealed partial class ChatChatPostProvider { /// /// 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.ChatChatPostRoot? FromJson( + public static global::Phoenix.ChatChatPostProvider? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatChatPostRoot), - jsonSerializerContext) as global::Phoenix.ChatChatPostRoot?; + typeof(global::Phoenix.ChatChatPostProvider), + jsonSerializerContext) as global::Phoenix.ChatChatPostProvider; } /// @@ -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.ChatChatPostRoot? FromJson( + public static global::Phoenix.ChatChatPostProvider? 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.ChatChatPostRoot), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatChatPostRoot?; + typeof(global::Phoenix.ChatChatPostProvider), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatChatPostProvider; } /// @@ -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.ChatChatPostProvider.g.cs new file mode 100644 index 0000000..d9c0abb --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProvider.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class ChatChatPostProvider + { + + /// + /// 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.ChatChatPostRootDiscriminator.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderId.Json.g.cs similarity index 86% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRootDiscriminator.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderId.Json.g.cs index b4745eb..3e95cac 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRootDiscriminator.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderId.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatChatPostRootDiscriminator + public sealed partial class ChatChatPostProviderId { /// /// 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.ChatChatPostRootDiscriminator? FromJson( + public static global::Phoenix.ChatChatPostProviderId? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatChatPostRootDiscriminator), - jsonSerializerContext) as global::Phoenix.ChatChatPostRootDiscriminator; + typeof(global::Phoenix.ChatChatPostProviderId), + jsonSerializerContext) as global::Phoenix.ChatChatPostProviderId; } /// @@ -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.ChatChatPostRootDiscriminator? FromJson( + public static global::Phoenix.ChatChatPostProviderId? 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.ChatChatPostRootDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatChatPostRootDiscriminator; + typeof(global::Phoenix.ChatChatPostProviderId), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatChatPostProviderId; } /// @@ -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.ChatChatPostProviderId.g.cs new file mode 100644 index 0000000..bbfca18 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderId.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class ChatChatPostProviderId + { + + /// + /// 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.ChatChatPostRootDiscriminatorProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderType.g.cs similarity index 56% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRootDiscriminatorProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderType.g.cs index ed6c683..e5a2060 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRootDiscriminatorProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostProviderType.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// /// - public enum ChatChatPostRootDiscriminatorProviderType + public enum ChatChatPostProviderType { /// /// @@ -21,29 +21,29 @@ public enum ChatChatPostRootDiscriminatorProviderType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatChatPostRootDiscriminatorProviderTypeExtensions + public static class ChatChatPostProviderTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatChatPostRootDiscriminatorProviderType value) + public static string ToValueString(this ChatChatPostProviderType value) { return value switch { - ChatChatPostRootDiscriminatorProviderType.Builtin => "builtin", - ChatChatPostRootDiscriminatorProviderType.Custom => "custom", + ChatChatPostProviderType.Builtin => "builtin", + ChatChatPostProviderType.Custom => "custom", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatChatPostRootDiscriminatorProviderType? ToEnum(string value) + public static ChatChatPostProviderType? ToEnum(string value) { return value switch { - "builtin" => ChatChatPostRootDiscriminatorProviderType.Builtin, - "custom" => ChatChatPostRootDiscriminatorProviderType.Custom, + "builtin" => ChatChatPostProviderType.Builtin, + "custom" => ChatChatPostProviderType.Custom, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRoot.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRoot.g.cs deleted file mode 100644 index ed0572f..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRoot.g.cs +++ /dev/null @@ -1,287 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public readonly partial struct ChatChatPostRoot : global::System.IEquatable - { - /// - /// - /// - public global::Phoenix.ChatChatPostRootDiscriminatorProviderType? ProviderType { get; } - - /// - /// Chat against a stored custom provider record.
- /// The wire format of ``provider_id`` is a relay GlobalID (e.g.
- /// ``UHJvdmlkZXI6MTM=``). It is decoded to its integer node ID at
- /// parse time so downstream consumers don't need to know the GlobalID
- /// encoding. - ///
-#if NET6_0_OR_GREATER - public global::Phoenix.CustomProviderChatSearchParams? Custom { get; init; } -#else - public global::Phoenix.CustomProviderChatSearchParams? Custom { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] -#endif - public bool IsCustom => Custom != null; - - /// - /// - /// - public bool TryPickCustom( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Phoenix.CustomProviderChatSearchParams? value) - { - value = Custom; - return IsCustom; - } - - /// - /// Chat against a Phoenix built-in provider.
- /// Credentials and connection details (base URL, Azure endpoint, AWS
- /// region) are resolved from the secret store first and the process
- /// environment second. ``openai_api_type`` is honoured by the OpenAI and
- /// Azure OpenAI branches; other providers ignore it. - ///
-#if NET6_0_OR_GREATER - public global::Phoenix.BuiltInProviderChatSearchParams? Builtin { get; init; } -#else - public global::Phoenix.BuiltInProviderChatSearchParams? Builtin { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Builtin))] -#endif - public bool IsBuiltin => Builtin != null; - - /// - /// - /// - public bool TryPickBuiltin( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Phoenix.BuiltInProviderChatSearchParams? value) - { - value = Builtin; - return IsBuiltin; - } - /// - /// - /// - public static implicit operator ChatChatPostRoot(global::Phoenix.CustomProviderChatSearchParams value) => new ChatChatPostRoot((global::Phoenix.CustomProviderChatSearchParams?)value); - - /// - /// - /// - public static implicit operator global::Phoenix.CustomProviderChatSearchParams?(ChatChatPostRoot @this) => @this.Custom; - - /// - /// - /// - public ChatChatPostRoot(global::Phoenix.CustomProviderChatSearchParams? value) - { - Custom = value; - } - - /// - /// - /// - public static implicit operator ChatChatPostRoot(global::Phoenix.BuiltInProviderChatSearchParams value) => new ChatChatPostRoot((global::Phoenix.BuiltInProviderChatSearchParams?)value); - - /// - /// - /// - public static implicit operator global::Phoenix.BuiltInProviderChatSearchParams?(ChatChatPostRoot @this) => @this.Builtin; - - /// - /// - /// - public ChatChatPostRoot(global::Phoenix.BuiltInProviderChatSearchParams? value) - { - Builtin = value; - } - - /// - /// - /// - public ChatChatPostRoot( - global::Phoenix.ChatChatPostRootDiscriminatorProviderType? providerType, - global::Phoenix.CustomProviderChatSearchParams? custom, - global::Phoenix.BuiltInProviderChatSearchParams? builtin - ) - { - ProviderType = providerType; - - Custom = custom; - Builtin = builtin; - } - - /// - /// - /// - public object? Object => - Builtin as object ?? - Custom as object - ; - - /// - /// - /// - public override string? ToString() => - Custom?.ToString() ?? - Builtin?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsCustom && !IsBuiltin || !IsCustom && IsBuiltin; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? custom = null, - global::System.Func? builtin = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsCustom && custom != null) - { - return custom(Custom!); - } - else if (IsBuiltin && builtin != null) - { - return builtin(Builtin!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? custom = null, - - global::System.Action? builtin = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsCustom) - { - custom?.Invoke(Custom!); - } - else if (IsBuiltin) - { - builtin?.Invoke(Builtin!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? custom = null, - global::System.Action? builtin = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsCustom) - { - custom?.Invoke(Custom!); - } - else if (IsBuiltin) - { - builtin?.Invoke(Builtin!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Custom, - typeof(global::Phoenix.CustomProviderChatSearchParams), - Builtin, - typeof(global::Phoenix.BuiltInProviderChatSearchParams), - }; - 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(ChatChatPostRoot other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Builtin, other.Builtin) - ; - } - - /// - /// - /// - public static bool operator ==(ChatChatPostRoot obj1, ChatChatPostRoot obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ChatChatPostRoot obj1, ChatChatPostRoot obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ChatChatPostRoot o && Equals(o); - } - } -} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostOpenaiApiType.g.cs new file mode 100644 index 0000000..3aceb45 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostOpenaiApiType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Default Value: responses + /// + public enum ChatV2ChatV2PostOpenaiApiType + { + /// + /// + /// + ChatCompletions, + /// + /// + /// + Responses, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatV2ChatV2PostOpenaiApiTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatV2ChatV2PostOpenaiApiType value) + { + return value switch + { + ChatV2ChatV2PostOpenaiApiType.ChatCompletions => "chat_completions", + ChatV2ChatV2PostOpenaiApiType.Responses => "responses", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatV2ChatV2PostOpenaiApiType? ToEnum(string value) + { + return value switch + { + "chat_completions" => ChatV2ChatV2PostOpenaiApiType.ChatCompletions, + "responses" => ChatV2ChatV2PostOpenaiApiType.Responses, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRoot.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.Json.g.cs similarity index 87% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRoot.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.Json.g.cs index 4a1dcf1..ad4588c 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRoot.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public readonly partial struct ChatV2ChatV2PostRoot + public sealed partial class ChatV2ChatV2PostProvider { /// /// 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.ChatV2ChatV2PostRoot? FromJson( + public static global::Phoenix.ChatV2ChatV2PostProvider? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatV2ChatV2PostRoot), - jsonSerializerContext) as global::Phoenix.ChatV2ChatV2PostRoot?; + typeof(global::Phoenix.ChatV2ChatV2PostProvider), + jsonSerializerContext) as global::Phoenix.ChatV2ChatV2PostProvider; } /// @@ -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.ChatV2ChatV2PostRoot? FromJson( + public static global::Phoenix.ChatV2ChatV2PostProvider? 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.ChatV2ChatV2PostRoot), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatV2ChatV2PostRoot?; + typeof(global::Phoenix.ChatV2ChatV2PostProvider), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatV2ChatV2PostProvider; } /// @@ -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.ChatV2ChatV2PostProvider.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.g.cs new file mode 100644 index 0000000..1254e1d --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProvider.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class ChatV2ChatV2PostProvider + { + + /// + /// 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.ChatV2ChatV2PostRootDiscriminator.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.Json.g.cs similarity index 86% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRootDiscriminator.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.Json.g.cs index 61085d1..dec3d43 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRootDiscriminator.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class ChatV2ChatV2PostRootDiscriminator + public sealed partial class ChatV2ChatV2PostProviderId { /// /// 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.ChatV2ChatV2PostRootDiscriminator? FromJson( + public static global::Phoenix.ChatV2ChatV2PostProviderId? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.ChatV2ChatV2PostRootDiscriminator), - jsonSerializerContext) as global::Phoenix.ChatV2ChatV2PostRootDiscriminator; + typeof(global::Phoenix.ChatV2ChatV2PostProviderId), + jsonSerializerContext) as global::Phoenix.ChatV2ChatV2PostProviderId; } /// @@ -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.ChatV2ChatV2PostRootDiscriminator? FromJson( + public static global::Phoenix.ChatV2ChatV2PostProviderId? 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.ChatV2ChatV2PostRootDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatV2ChatV2PostRootDiscriminator; + typeof(global::Phoenix.ChatV2ChatV2PostProviderId), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.ChatV2ChatV2PostProviderId; } /// @@ -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.ChatV2ChatV2PostProviderId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.g.cs new file mode 100644 index 0000000..6805aaa --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderId.g.cs @@ -0,0 +1,18 @@ + +#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.ChatV2ChatV2PostRootDiscriminatorProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderType.g.cs similarity index 59% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRootDiscriminatorProviderType.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderType.g.cs index c8d40f6..e249afb 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRootDiscriminatorProviderType.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostProviderType.g.cs @@ -6,7 +6,7 @@ namespace Phoenix /// /// /// - public enum ChatV2ChatV2PostRootDiscriminatorProviderType + public enum ChatV2ChatV2PostProviderType { /// /// @@ -21,29 +21,29 @@ public enum ChatV2ChatV2PostRootDiscriminatorProviderType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatV2ChatV2PostRootDiscriminatorProviderTypeExtensions + public static class ChatV2ChatV2PostProviderTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatV2ChatV2PostRootDiscriminatorProviderType value) + public static string ToValueString(this ChatV2ChatV2PostProviderType value) { return value switch { - ChatV2ChatV2PostRootDiscriminatorProviderType.Builtin => "builtin", - ChatV2ChatV2PostRootDiscriminatorProviderType.Custom => "custom", + ChatV2ChatV2PostProviderType.Builtin => "builtin", + ChatV2ChatV2PostProviderType.Custom => "custom", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatV2ChatV2PostRootDiscriminatorProviderType? ToEnum(string value) + public static ChatV2ChatV2PostProviderType? ToEnum(string value) { return value switch { - "builtin" => ChatV2ChatV2PostRootDiscriminatorProviderType.Builtin, - "custom" => ChatV2ChatV2PostRootDiscriminatorProviderType.Custom, + "builtin" => ChatV2ChatV2PostProviderType.Builtin, + "custom" => ChatV2ChatV2PostProviderType.Custom, _ => null, }; } diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRoot.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRoot.g.cs deleted file mode 100644 index 4feb6e1..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRoot.g.cs +++ /dev/null @@ -1,287 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public readonly partial struct ChatV2ChatV2PostRoot : global::System.IEquatable - { - /// - /// - /// - public global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType? ProviderType { get; } - - /// - /// Chat against a stored custom provider record.
- /// The wire format of ``provider_id`` is a relay GlobalID (e.g.
- /// ``UHJvdmlkZXI6MTM=``). It is decoded to its integer node ID at
- /// parse time so downstream consumers don't need to know the GlobalID
- /// encoding. - ///
-#if NET6_0_OR_GREATER - public global::Phoenix.CustomProviderChatSearchParams? Custom { get; init; } -#else - public global::Phoenix.CustomProviderChatSearchParams? Custom { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Custom))] -#endif - public bool IsCustom => Custom != null; - - /// - /// - /// - public bool TryPickCustom( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Phoenix.CustomProviderChatSearchParams? value) - { - value = Custom; - return IsCustom; - } - - /// - /// Chat against a Phoenix built-in provider.
- /// Credentials and connection details (base URL, Azure endpoint, AWS
- /// region) are resolved from the secret store first and the process
- /// environment second. ``openai_api_type`` is honoured by the OpenAI and
- /// Azure OpenAI branches; other providers ignore it. - ///
-#if NET6_0_OR_GREATER - public global::Phoenix.BuiltInProviderChatSearchParams? Builtin { get; init; } -#else - public global::Phoenix.BuiltInProviderChatSearchParams? Builtin { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Builtin))] -#endif - public bool IsBuiltin => Builtin != null; - - /// - /// - /// - public bool TryPickBuiltin( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Phoenix.BuiltInProviderChatSearchParams? value) - { - value = Builtin; - return IsBuiltin; - } - /// - /// - /// - public static implicit operator ChatV2ChatV2PostRoot(global::Phoenix.CustomProviderChatSearchParams value) => new ChatV2ChatV2PostRoot((global::Phoenix.CustomProviderChatSearchParams?)value); - - /// - /// - /// - public static implicit operator global::Phoenix.CustomProviderChatSearchParams?(ChatV2ChatV2PostRoot @this) => @this.Custom; - - /// - /// - /// - public ChatV2ChatV2PostRoot(global::Phoenix.CustomProviderChatSearchParams? value) - { - Custom = value; - } - - /// - /// - /// - public static implicit operator ChatV2ChatV2PostRoot(global::Phoenix.BuiltInProviderChatSearchParams value) => new ChatV2ChatV2PostRoot((global::Phoenix.BuiltInProviderChatSearchParams?)value); - - /// - /// - /// - public static implicit operator global::Phoenix.BuiltInProviderChatSearchParams?(ChatV2ChatV2PostRoot @this) => @this.Builtin; - - /// - /// - /// - public ChatV2ChatV2PostRoot(global::Phoenix.BuiltInProviderChatSearchParams? value) - { - Builtin = value; - } - - /// - /// - /// - public ChatV2ChatV2PostRoot( - global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType? providerType, - global::Phoenix.CustomProviderChatSearchParams? custom, - global::Phoenix.BuiltInProviderChatSearchParams? builtin - ) - { - ProviderType = providerType; - - Custom = custom; - Builtin = builtin; - } - - /// - /// - /// - public object? Object => - Builtin as object ?? - Custom as object - ; - - /// - /// - /// - public override string? ToString() => - Custom?.ToString() ?? - Builtin?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsCustom && !IsBuiltin || !IsCustom && IsBuiltin; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? custom = null, - global::System.Func? builtin = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsCustom && custom != null) - { - return custom(Custom!); - } - else if (IsBuiltin && builtin != null) - { - return builtin(Builtin!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? custom = null, - - global::System.Action? builtin = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsCustom) - { - custom?.Invoke(Custom!); - } - else if (IsBuiltin) - { - builtin?.Invoke(Builtin!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? custom = null, - global::System.Action? builtin = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsCustom) - { - custom?.Invoke(Custom!); - } - else if (IsBuiltin) - { - builtin?.Invoke(Builtin!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Custom, - typeof(global::Phoenix.CustomProviderChatSearchParams), - Builtin, - typeof(global::Phoenix.BuiltInProviderChatSearchParams), - }; - 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(ChatV2ChatV2PostRoot other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Custom, other.Custom) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Builtin, other.Builtin) - ; - } - - /// - /// - /// - public static bool operator ==(ChatV2ChatV2PostRoot obj1, ChatV2ChatV2PostRoot obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ChatV2ChatV2PostRoot obj1, ChatV2ChatV2PostRoot obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ChatV2ChatV2PostRoot o && Equals(o); - } - } -} diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRootDiscriminator.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRootDiscriminator.g.cs deleted file mode 100644 index 91acfb7..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatV2ChatV2PostRootDiscriminator.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// - /// - public sealed partial class ChatV2ChatV2PostRootDiscriminator - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ChatV2ChatV2PostRootDiscriminatorProviderTypeJsonConverter))] - public global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType? ProviderType { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ChatV2ChatV2PostRootDiscriminator( - global::Phoenix.ChatV2ChatV2PostRootDiscriminatorProviderType? providerType) - { - this.ProviderType = providerType; - } - - /// - /// Initializes a new instance of the class. - /// - public ChatV2ChatV2PostRootDiscriminator() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderChatSearchParams.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderChatSearchParams.g.cs deleted file mode 100644 index acb8576..0000000 --- a/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderChatSearchParams.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace Phoenix -{ - /// - /// Chat against a stored custom provider record.
- /// The wire format of ``provider_id`` is a relay GlobalID (e.g.
- /// ``UHJvdmlkZXI6MTM=``). It is decoded to its integer node ID at
- /// parse time so downstream consumers don't need to know the GlobalID
- /// encoding. - ///
- public sealed partial class CustomProviderChatSearchParams - { - /// - /// - /// - /// "custom" - [global::System.Text.Json.Serialization.JsonPropertyName("provider_type")] - public string ProviderType { get; set; } = "custom"; - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int ProviderId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model_name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ModelName { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CustomProviderChatSearchParams( - int providerId, - string modelName, - string providerType = "custom") - { - this.ProviderType = providerType; - this.ProviderId = providerId; - this.ModelName = modelName ?? throw new global::System.ArgumentNullException(nameof(modelName)); - } - - /// - /// Initializes a new instance of the class. - /// - public CustomProviderChatSearchParams() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs new file mode 100644 index 0000000..01c5268 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Default Value: responses + /// + public enum SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType + { + /// + /// + /// + ChatCompletions, + /// + /// + /// + Responses, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType value) + { + return value switch + { + SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.ChatCompletions => "chat_completions", + SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.Responses => "responses", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType? ToEnum(string value) + { + return value switch + { + "chat_completions" => SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.ChatCompletions, + "responses" => SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostOpenaiApiType.Responses, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderChatSearchParams.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.Json.g.cs similarity index 79% rename from src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderChatSearchParams.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.Json.g.cs index 8bb2573..0ed0392 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.BuiltInProviderChatSearchParams.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class BuiltInProviderChatSearchParams + public sealed partial class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider { /// /// 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.BuiltInProviderChatSearchParams? FromJson( + public static global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.BuiltInProviderChatSearchParams), - jsonSerializerContext) as global::Phoenix.BuiltInProviderChatSearchParams; + typeof(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider), + jsonSerializerContext) as global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider; } /// @@ -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.BuiltInProviderChatSearchParams? FromJson( + public static global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider? 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.BuiltInProviderChatSearchParams), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.BuiltInProviderChatSearchParams; + typeof(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider; } /// @@ -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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.g.cs new file mode 100644 index 0000000..699c154 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProvider + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.Json.g.cs new file mode 100644 index 0000000..398afa5 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId + { + /// + /// 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId), + jsonSerializerContext) as global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId; + } + + /// + /// 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId? 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId; + } + + /// + /// 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.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.g.cs new file mode 100644 index 0000000..5dfa029 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public sealed partial class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderId + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs new file mode 100644 index 0000000..9ec70a3 --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// + /// + public enum SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType + { + /// + /// + /// + Builtin, + /// + /// + /// + Custom, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType value) + { + return value switch + { + SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.Builtin => "builtin", + SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.Custom => "custom", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType? ToEnum(string value) + { + return value switch + { + "builtin" => SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.Builtin, + "custom" => SummarizeEndpointAgentsAgentIdSessionsSessionIdSummaryPostProviderType.Custom, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderChatSearchParams.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.Json.g.cs similarity index 85% rename from src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderChatSearchParams.Json.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.Json.g.cs index 54a7eca..ccef855 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.CustomProviderChatSearchParams.Json.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Phoenix { - public sealed partial class CustomProviderChatSearchParams + public sealed partial class SummarizeRequest { /// /// 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.CustomProviderChatSearchParams? FromJson( + public static global::Phoenix.SummarizeRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Phoenix.CustomProviderChatSearchParams), - jsonSerializerContext) as global::Phoenix.CustomProviderChatSearchParams; + typeof(global::Phoenix.SummarizeRequest), + jsonSerializerContext) as global::Phoenix.SummarizeRequest; } /// @@ -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.CustomProviderChatSearchParams? FromJson( + public static global::Phoenix.SummarizeRequest? 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.CustomProviderChatSearchParams), - jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.CustomProviderChatSearchParams; + typeof(global::Phoenix.SummarizeRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.SummarizeRequest; } /// @@ -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.SummarizeRequest.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.g.cs new file mode 100644 index 0000000..ad8f19f --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeRequest.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace Phoenix +{ + /// + /// Body for POST /agents/{agent_id}/sessions/{session_id}/summary.
+ /// Carries the Vercel-style messages array; the backend owns the prompt and
+ /// the structured-output tool schema. + ///
+ public sealed partial class SummarizeRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Messages { 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 SummarizeRequest( + global::System.Collections.Generic.IList messages) + { + this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); + } + + /// + /// Initializes a new instance of the class. + /// + public SummarizeRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeResponse.Json.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeResponse.Json.g.cs new file mode 100644 index 0000000..eea82ba --- /dev/null +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Phoenix +{ + public sealed partial class SummarizeResponse + { + /// + /// 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.SummarizeResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Phoenix.SummarizeResponse), + jsonSerializerContext) as global::Phoenix.SummarizeResponse; + } + + /// + /// 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.SummarizeResponse? 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.SummarizeResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Phoenix.SummarizeResponse; + } + + /// + /// 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.ChatChatPostRootDiscriminator.g.cs b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeResponse.g.cs similarity index 50% rename from src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRootDiscriminator.g.cs rename to src/libs/Phoenix/Generated/Phoenix.Models.SummarizeResponse.g.cs index f54a3d3..c0eec04 100644 --- a/src/libs/Phoenix/Generated/Phoenix.Models.ChatChatPostRootDiscriminator.g.cs +++ b/src/libs/Phoenix/Generated/Phoenix.Models.SummarizeResponse.g.cs @@ -6,14 +6,14 @@ namespace Phoenix /// /// /// - public sealed partial class ChatChatPostRootDiscriminator + public sealed partial class SummarizeResponse { /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("provider_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Phoenix.JsonConverters.ChatChatPostRootDiscriminatorProviderTypeJsonConverter))] - public global::Phoenix.ChatChatPostRootDiscriminatorProviderType? ProviderType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Summary { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,22 +22,22 @@ public sealed partial class ChatChatPostRootDiscriminator 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 ChatChatPostRootDiscriminator( - global::Phoenix.ChatChatPostRootDiscriminatorProviderType? providerType) + public SummarizeResponse( + string summary) { - this.ProviderType = providerType; + this.Summary = summary ?? throw new global::System.ArgumentNullException(nameof(summary)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatChatPostRootDiscriminator() + public SummarizeResponse() { } } diff --git a/src/libs/Phoenix/openapi.json b/src/libs/Phoenix/openapi.json index 381c2be..4d84d58 100644 --- a/src/libs/Phoenix/openapi.json +++ b/src/libs/Phoenix/openapi.json @@ -6499,26 +6499,71 @@ "operationId": "chat_chat_post", "parameters": [ { - "name": "root", + "name": "provider_type", "in": "query", "required": true, "schema": { - "oneOf": [ + "enum": [ + "custom", + "builtin" + ], + "type": "string", + "title": "Provider Type" + } + }, + { + "name": "model_name", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Model Name" + } + }, + { + "name": "provider_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ { - "$ref": "#/components/schemas/CustomProviderChatSearchParams" + "type": "string" }, { - "$ref": "#/components/schemas/BuiltInProviderChatSearchParams" + "type": "null" } ], - "discriminator": { - "propertyName": "provider_type", - "mapping": { - "custom": "#/components/schemas/CustomProviderChatSearchParams", - "builtin": "#/components/schemas/BuiltInProviderChatSearchParams" + "title": "Provider Id" + } + }, + { + "name": "provider", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ModelProvider" + }, + { + "type": "null" } - }, - "title": "Root" + ], + "title": "Provider" + } + }, + { + "name": "openai_api_type", + "in": "query", + "required": false, + "schema": { + "enum": [ + "chat_completions", + "responses" + ], + "type": "string", + "default": "responses", + "title": "Openai Api Type" } } ], @@ -6553,26 +6598,71 @@ "operationId": "chat_v2_chat_v2_post", "parameters": [ { - "name": "root", + "name": "provider_type", "in": "query", "required": true, "schema": { - "oneOf": [ + "enum": [ + "custom", + "builtin" + ], + "type": "string", + "title": "Provider Type" + } + }, + { + "name": "model_name", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Model Name" + } + }, + { + "name": "provider_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ { - "$ref": "#/components/schemas/CustomProviderChatSearchParams" + "type": "string" }, { - "$ref": "#/components/schemas/BuiltInProviderChatSearchParams" + "type": "null" } ], - "discriminator": { - "propertyName": "provider_type", - "mapping": { - "custom": "#/components/schemas/CustomProviderChatSearchParams", - "builtin": "#/components/schemas/BuiltInProviderChatSearchParams" + "title": "Provider Id" + } + }, + { + "name": "provider", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ModelProvider" + }, + { + "type": "null" } - }, - "title": "Root" + ], + "title": "Provider" + } + }, + { + "name": "openai_api_type", + "in": "query", + "required": false, + "schema": { + "enum": [ + "chat_completions", + "responses" + ], + "type": "string", + "default": "responses", + "title": "Openai Api Type" } } ], @@ -6623,6 +6713,135 @@ } } }, + "/agents/{agent_id}/sessions/{session_id}/summary": { + "post": { + "tags": [ + "chat" + ], + "summary": "Summarize Endpoint", + "operationId": "summarize_endpoint_agents__agent_id__sessions__session_id__summary_post", + "parameters": [ + { + "name": "agent_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Agent Id" + } + }, + { + "name": "session_id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "title": "Session Id" + } + }, + { + "name": "provider_type", + "in": "query", + "required": true, + "schema": { + "enum": [ + "custom", + "builtin" + ], + "type": "string", + "title": "Provider Type" + } + }, + { + "name": "model_name", + "in": "query", + "required": true, + "schema": { + "type": "string", + "title": "Model Name" + } + }, + { + "name": "provider_id", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Provider Id" + } + }, + { + "name": "provider", + "in": "query", + "required": false, + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ModelProvider" + }, + { + "type": "null" + } + ], + "title": "Provider" + } + }, + { + "name": "openai_api_type", + "in": "query", + "required": false, + "schema": { + "enum": [ + "chat_completions", + "responses" + ], + "type": "string", + "default": "responses", + "title": "Openai Api Type" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/_SummarizeRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/_SummarizeResponse" + } + } + } + }, + "422": { + "description": "Validation Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + } + } + } + }, "/arize_phoenix_version": { "get": { "summary": "Version", @@ -6949,39 +7168,6 @@ "title": "AppContext", "description": "Per-turn browser clock context for resolving relative time requests." }, - "BuiltInProviderChatSearchParams": { - "properties": { - "provider_type": { - "type": "string", - "const": "builtin", - "title": "Provider Type" - }, - "provider": { - "$ref": "#/components/schemas/ModelProvider" - }, - "model_name": { - "type": "string", - "title": "Model Name" - }, - "openai_api_type": { - "type": "string", - "enum": [ - "chat_completions", - "responses" - ], - "title": "Openai Api Type", - "default": "responses" - } - }, - "type": "object", - "required": [ - "provider_type", - "provider", - "model_name" - ], - "title": "BuiltInProviderChatSearchParams", - "description": "Chat against a Phoenix built-in provider.\n\nCredentials and connection details (base URL, Azure endpoint, AWS\nregion) are resolved from the secret store first and the process\nenvironment second. ``openai_api_type`` is honoured by the OpenAI and\nAzure OpenAI branches; other providers ignore it." - }, "CategoricalAnnotationConfig": { "properties": { "name": { @@ -7684,31 +7870,6 @@ ], "title": "CreateUserResponseBody" }, - "CustomProviderChatSearchParams": { - "properties": { - "provider_type": { - "type": "string", - "const": "custom", - "title": "Provider Type" - }, - "provider_id": { - "type": "integer", - "title": "Provider Id" - }, - "model_name": { - "type": "string", - "title": "Model Name" - } - }, - "type": "object", - "required": [ - "provider_type", - "provider_id", - "model_name" - ], - "title": "CustomProviderChatSearchParams", - "description": "Chat against a stored custom provider record.\n\nThe wire format of ``provider_id`` is a relay GlobalID (e.g.\n``UHJvdmlkZXI6MTM=``). It is decoded to its integer node ID at\nparse time so downstream consumers don't need to know the GlobalID\nencoding." - }, "DataUIPart": { "properties": { "type": { @@ -15072,6 +15233,36 @@ ], "title": "_SubmitMessage", "description": "Submit message extended with Phoenix-specific fields." + }, + "_SummarizeRequest": { + "properties": { + "messages": { + "items": { + "$ref": "#/components/schemas/UIMessage" + }, + "type": "array", + "title": "Messages" + } + }, + "type": "object", + "required": [ + "messages" + ], + "title": "_SummarizeRequest", + "description": "Body for POST /agents/{agent_id}/sessions/{session_id}/summary.\n\nCarries the Vercel-style messages array; the backend owns the prompt and\nthe structured-output tool schema." + }, + "_SummarizeResponse": { + "properties": { + "summary": { + "type": "string", + "title": "Summary" + } + }, + "type": "object", + "required": [ + "summary" + ], + "title": "_SummarizeResponse" } } },