From 8bd1ab0f6b7b1be7f451d7a6916f2cb14a674614 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 25 Apr 2026 21:28:32 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Braintrust.BraintrustClient.g.cs | 9 - ...rust.CorsClient.OptionsEvalStatusPage.g.cs | 350 ----- ...st.CorsClient.OptionsEvalStatusPageId.g.cs | 358 ----- ...tusPagesClient.DeleteEvalStatusPageId.g.cs | 583 ------- ...alStatusPagesClient.GetEvalStatusPage.g.cs | 633 -------- ...StatusPagesClient.GetEvalStatusPageId.g.cs | 583 ------- ...atusPagesClient.PatchEvalStatusPageId.g.cs | 648 -------- ...lStatusPagesClient.PostEvalStatusPage.g.cs | 640 -------- ...alStatusPagesClient.PutEvalStatusPage.g.cs | 640 -------- .../Braintrust.EvalStatusPagesClient.g.cs | 115 -- ...t.ExperimentsClient.PatchExperimentId.g.cs | 5 + ...rust.ExperimentsClient.PostExperiment.g.cs | 5 + .../Braintrust.IBraintrustClient.g.cs | 5 - ...ust.ICorsClient.OptionsEvalStatusPage.g.cs | 18 - ...t.ICorsClient.OptionsEvalStatusPageId.g.cs | 22 - ...tusPagesClient.DeleteEvalStatusPageId.g.cs | 22 - ...alStatusPagesClient.GetEvalStatusPage.g.cs | 44 - ...StatusPagesClient.GetEvalStatusPageId.g.cs | 22 - ...atusPagesClient.PatchEvalStatusPageId.g.cs | 59 - ...lStatusPagesClient.PostEvalStatusPage.g.cs | 55 - ...alStatusPagesClient.PutEvalStatusPage.g.cs | 55 - .../Braintrust.IEvalStatusPagesClient.g.cs | 48 - ....IExperimentsClient.PatchExperimentId.g.cs | 4 + ...ust.IExperimentsClient.PostExperiment.g.cs | 4 + ...onfigVariant2CredentialsVariant1Type.g.cs} | 14 +- ...iant2CredentialsVariant1TypeNullable.g.cs} | 14 +- ...onfigVariant2CredentialsVariant2Type.g.cs} | 14 +- ...iant2CredentialsVariant2TypeNullable.g.cs} | 14 +- ...onfigVariant2CredentialsVariant1Type.g.cs} | 14 +- ...iant2CredentialsVariant1TypeNullable.g.cs} | 14 +- ...ConfigVariant2CredentialsVariant2Type.g.cs | 53 + ...iant2CredentialsVariant2TypeNullable.g.cs} | 14 +- ...onfigVariant2CredentialsVariant1Type.g.cs} | 14 +- ...iant2CredentialsVariant1TypeNullable.g.cs} | 14 +- ...onfigVariant2CredentialsVariant2Type.g.cs} | 14 +- ...riant2CredentialsVariant2TypeNullable.g.cs | 60 + ...Braintrust.JsonConverters.ViewOptions.g.cs | 2 + .../Braintrust.JsonSerializerContext.g.cs | 113 +- ...Braintrust.JsonSerializerContextTypes.g.cs | 1268 +++++++-------- ...raintrust.Models.CreateEvalStatusPage.g.cs | 105 -- .../Braintrust.Models.CreateExperiment.g.cs | 11 + ...reateExperimentInternalMetadata.Json.g.cs} | 22 +- ...dels.CreateExperimentInternalMetadata.g.cs | 45 + ...entInternalMetadataDatasetFilter.Json.g.cs | 92 ++ ...perimentInternalMetadataDatasetFilter.g.cs | 18 + ...CreateProjectAutomationConfigVariant2.g.cs | 19 +- ...nfigVariant2CredentialsVariant1.Json.g.cs} | 22 +- ...ionConfigVariant2CredentialsVariant1.g.cs} | 16 +- ...onfigVariant2CredentialsVariant1Type.g.cs} | 12 +- ...onfigVariant2CredentialsVariant2.Json.g.cs | 92 ++ ...tionConfigVariant2CredentialsVariant2.g.cs | 56 + ...ConfigVariant2CredentialsVariant2Type.g.cs | 45 + .../Braintrust.Models.EvalStatusPage.g.cs | 150 -- ...raintrust.Models.EvalStatusPageConfig.g.cs | 112 -- ....Models.EvalStatusPageConfigSortOrder.g.cs | 51 - .../Braintrust.Models.Experiment.g.cs | 11 + ...dels.ExperimentInternalMetadata.Json.g.cs} | 22 +- ...ust.Models.ExperimentInternalMetadata.g.cs | 45 + ...ntInternalMetadataDatasetFilter.Json.g.cs} | 22 +- ...perimentInternalMetadataDatasetFilter.g.cs | 18 + ...Braintrust.Models.PatchEvalStatusPage.g.cs | 90 -- .../Braintrust.Models.PatchExperiment.g.cs | 11 + ...PatchExperimentInternalMetadata.Json.g.cs} | 22 +- ...dels.PatchExperimentInternalMetadata.g.cs} | 27 +- ...ntInternalMetadataDatasetFilter.Json.g.cs} | 22 +- ...perimentInternalMetadataDatasetFilter.g.cs | 18 + ....PatchProjectAutomationConfigVariant2.g.cs | 19 +- ...nfigVariant2CredentialsVariant1.Json.g.cs} | 22 +- ...ionConfigVariant2CredentialsVariant1.g.cs} | 16 +- ...onfigVariant2CredentialsVariant1Type.g.cs} | 12 +- ...onfigVariant2CredentialsVariant2.Json.g.cs | 92 ++ ...tionConfigVariant2CredentialsVariant2.g.cs | 56 + ...ConfigVariant2CredentialsVariant2Type.g.cs | 45 + ...odels.ProjectAutomationConfigVariant2.g.cs | 19 +- ...nfigVariant2CredentialsVariant1.Json.g.cs} | 22 +- ...ionConfigVariant2CredentialsVariant1.g.cs} | 16 +- ...onfigVariant2CredentialsVariant1Type.g.cs} | 12 +- ...onfigVariant2CredentialsVariant2.Json.g.cs | 92 ++ ...tionConfigVariant2CredentialsVariant2.g.cs | 56 + ...onfigVariant2CredentialsVariant2Type.g.cs} | 22 +- ...raintrust.Models.RunEvalDataDatasetId.g.cs | 22 + ....Models.RunEvalDataProjectDatasetName.g.cs | 22 + ...st.Models.ViewOptionsTableViewOptions.g.cs | 18 + ...ViewOptionsTableViewOptionsQueryShape.g.cs | 6 + src/libs/Braintrust/openapi.yaml | 1375 +++-------------- 85 files changed, 2225 insertions(+), 7458 deletions(-) delete mode 100644 src/libs/Braintrust/Generated/Braintrust.CorsClient.OptionsEvalStatusPage.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.CorsClient.OptionsEvalStatusPageId.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.DeleteEvalStatusPageId.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.GetEvalStatusPage.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.GetEvalStatusPageId.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PatchEvalStatusPageId.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PostEvalStatusPage.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PutEvalStatusPage.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.ICorsClient.OptionsEvalStatusPage.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.ICorsClient.OptionsEvalStatusPageId.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.DeleteEvalStatusPageId.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.GetEvalStatusPage.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.GetEvalStatusPageId.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PatchEvalStatusPageId.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PostEvalStatusPage.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PutEvalStatusPage.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.g.cs rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsType.g.cs => Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs} (77%) rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs => Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs} (78%) rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.EvalStatusPageConfigSortOrder.g.cs => Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs} (58%) rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.EvalStatusPageThemeNullable.g.cs => Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs} (60%) rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsType.g.cs => Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs} (77%) rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs => Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs} (78%) create mode 100644 src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.EvalStatusPageConfigSortOrderNullable.g.cs => Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs} (61%) rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsType.g.cs => Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs} (79%) rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs => Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs} (80%) rename src/libs/Braintrust/Generated/{Braintrust.JsonConverters.EvalStatusPageTheme.g.cs => Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs} (59%) create mode 100644 src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.CreateEvalStatusPage.g.cs rename src/libs/Braintrust/Generated/{Braintrust.Models.CreateEvalStatusPage.Json.g.cs => Braintrust.Models.CreateExperimentInternalMetadata.Json.g.cs} (85%) create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadata.g.cs create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadataDatasetFilter.Json.g.cs create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadataDatasetFilter.g.cs rename src/libs/Braintrust/Generated/{Braintrust.Models.CreateProjectAutomationConfigVariant2Credentials.Json.g.cs => Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs} (93%) rename src/libs/Braintrust/Generated/{Braintrust.Models.CreateProjectAutomationConfigVariant2Credentials.g.cs => Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1.g.cs} (85%) rename src/libs/Braintrust/Generated/{Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsType.g.cs => Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs} (84%) create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2.g.cs create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPage.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfig.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfigSortOrder.g.cs rename src/libs/Braintrust/Generated/{Braintrust.Models.EvalStatusPageConfig.Json.g.cs => Braintrust.Models.ExperimentInternalMetadata.Json.g.cs} (85%) create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadata.g.cs rename src/libs/Braintrust/Generated/{Braintrust.Models.EvalStatusPage.Json.g.cs => Braintrust.Models.ExperimentInternalMetadataDatasetFilter.Json.g.cs} (83%) create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadataDatasetFilter.g.cs delete mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.PatchEvalStatusPage.g.cs rename src/libs/Braintrust/Generated/{Braintrust.Models.PatchEvalStatusPage.Json.g.cs => Braintrust.Models.PatchExperimentInternalMetadata.Json.g.cs} (85%) rename src/libs/Braintrust/Generated/{Braintrust.Models.GetEvalStatusPageResponse.g.cs => Braintrust.Models.PatchExperimentInternalMetadata.g.cs} (50%) rename src/libs/Braintrust/Generated/{Braintrust.Models.GetEvalStatusPageResponse.Json.g.cs => Braintrust.Models.PatchExperimentInternalMetadataDatasetFilter.Json.g.cs} (82%) create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadataDatasetFilter.g.cs rename src/libs/Braintrust/Generated/{Braintrust.Models.PatchProjectAutomationConfigVariant2Credentials.Json.g.cs => Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs} (93%) rename src/libs/Braintrust/Generated/{Braintrust.Models.PatchProjectAutomationConfigVariant2Credentials.g.cs => Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1.g.cs} (85%) rename src/libs/Braintrust/Generated/{Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsType.g.cs => Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs} (75%) create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2.g.cs create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs rename src/libs/Braintrust/Generated/{Braintrust.Models.ProjectAutomationConfigVariant2Credentials.Json.g.cs => Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs} (91%) rename src/libs/Braintrust/Generated/{Braintrust.Models.ProjectAutomationConfigVariant2Credentials.g.cs => Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1.g.cs} (86%) rename src/libs/Braintrust/Generated/{Braintrust.Models.ProjectAutomationConfigVariant2CredentialsType.g.cs => Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs} (77%) create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs create mode 100644 src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2.g.cs rename src/libs/Braintrust/Generated/{Braintrust.Models.EvalStatusPageTheme.g.cs => Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs} (53%) diff --git a/src/libs/Braintrust/Generated/Braintrust.BraintrustClient.g.cs b/src/libs/Braintrust/Generated/Braintrust.BraintrustClient.g.cs index 991dcc4..fafad29 100644 --- a/src/libs/Braintrust/Generated/Braintrust.BraintrustClient.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.BraintrustClient.g.cs @@ -123,15 +123,6 @@ public sealed partial class BraintrustClient : global::Braintrust.IBraintrustCli JsonSerializerContext = JsonSerializerContext, }; - /// - /// - /// - public EvalStatusPagesClient EvalStatusPages => new EvalStatusPagesClient(HttpClient, authorizations: Authorizations, options: Options) - { - ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, - }; - /// /// /// diff --git a/src/libs/Braintrust/Generated/Braintrust.CorsClient.OptionsEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.CorsClient.OptionsEvalStatusPage.g.cs deleted file mode 100644 index a1789b3..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.CorsClient.OptionsEvalStatusPage.g.cs +++ /dev/null @@ -1,350 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - public partial class CorsClient - { - partial void PrepareOptionsEvalStatusPageArguments( - global::System.Net.Http.HttpClient httpClient); - partial void PrepareOptionsEvalStatusPageRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessOptionsEvalStatusPageResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Enable CORS (`/v1/eval_status_page`)
- /// Enable CORS - ///
- /// 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 OptionsEvalStatusPageAsync( - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareOptionsEvalStatusPageArguments( - httpClient: HttpClient); - - using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - var __pathBuilder = new global::Braintrust.PathBuilder( - path: "/v1/eval_status_page", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Braintrust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Options, - 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 - global::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareOptionsEvalStatusPageRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest); - - 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::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPage", - methodName: "OptionsEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPage", - methodName: "OptionsEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPage", - methodName: "OptionsEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessOptionsEvalStatusPageResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPage", - methodName: "OptionsEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPage", - methodName: "OptionsEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // The request was unacceptable, often due to missing a required parameter - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - string? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - 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); - - try - { - __response.EnsureSuccessStatusCode(); - - } - catch (global::System.Exception __ex) - { - throw new global::Braintrust.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(); - } - 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::Braintrust.ApiException( - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.CorsClient.OptionsEvalStatusPageId.g.cs b/src/libs/Braintrust/Generated/Braintrust.CorsClient.OptionsEvalStatusPageId.g.cs deleted file mode 100644 index 0991609..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.CorsClient.OptionsEvalStatusPageId.g.cs +++ /dev/null @@ -1,358 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - public partial class CorsClient - { - partial void PrepareOptionsEvalStatusPageIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid evalStatusPageId); - partial void PrepareOptionsEvalStatusPageIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid evalStatusPageId); - partial void ProcessOptionsEvalStatusPageIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - /// - /// Enable CORS (`/v1/eval_status_page/{eval_status_page_id}`)
- /// Enable CORS - ///
- /// - /// EvalStatusPage id - /// - /// 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 OptionsEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareOptionsEvalStatusPageIdArguments( - httpClient: HttpClient, - evalStatusPageId: ref evalStatusPageId); - - using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - var __pathBuilder = new global::Braintrust.PathBuilder( - path: $"/v1/eval_status_page/{evalStatusPageId}", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Braintrust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Options, - 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 - global::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareOptionsEvalStatusPageIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - evalStatusPageId: evalStatusPageId); - - 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::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPageId", - methodName: "OptionsEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPageId", - methodName: "OptionsEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPageId", - methodName: "OptionsEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessOptionsEvalStatusPageIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPageId", - methodName: "OptionsEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "OptionsEvalStatusPageId", - methodName: "OptionsEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "OPTIONS", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // The request was unacceptable, often due to missing a required parameter - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - string? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - 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); - - try - { - __response.EnsureSuccessStatusCode(); - - } - catch (global::System.Exception __ex) - { - throw new global::Braintrust.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(); - } - 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::Braintrust.ApiException( - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.DeleteEvalStatusPageId.g.cs b/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.DeleteEvalStatusPageId.g.cs deleted file mode 100644 index 290db58..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.DeleteEvalStatusPageId.g.cs +++ /dev/null @@ -1,583 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - public partial class EvalStatusPagesClient - { - - - private static readonly global::Braintrust.EndPointSecurityRequirement s_DeleteEvalStatusPageIdSecurityRequirement0 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { new global::Braintrust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - - private static readonly global::Braintrust.EndPointSecurityRequirement s_DeleteEvalStatusPageIdSecurityRequirement1 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { - }, - }; - private static readonly global::Braintrust.EndPointSecurityRequirement[] s_DeleteEvalStatusPageIdSecurityRequirements = - new global::Braintrust.EndPointSecurityRequirement[] - { s_DeleteEvalStatusPageIdSecurityRequirement0, - s_DeleteEvalStatusPageIdSecurityRequirement1, - }; - partial void PrepareDeleteEvalStatusPageIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid evalStatusPageId); - partial void PrepareDeleteEvalStatusPageIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid evalStatusPageId); - partial void ProcessDeleteEvalStatusPageIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessDeleteEvalStatusPageIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Delete eval_status_page
- /// Delete a eval_status_page object by its id - ///
- /// - /// EvalStatusPage id - /// - /// 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 DeleteEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareDeleteEvalStatusPageIdArguments( - httpClient: HttpClient, - evalStatusPageId: ref evalStatusPageId); - - - var __authorizations = global::Braintrust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_DeleteEvalStatusPageIdSecurityRequirements, - operationName: "DeleteEvalStatusPageIdAsync"); - - using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - var __pathBuilder = new global::Braintrust.PathBuilder( - path: $"/v1/eval_status_page/{evalStatusPageId}", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Braintrust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareDeleteEvalStatusPageIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - evalStatusPageId: evalStatusPageId); - - 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::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteEvalStatusPageId", - methodName: "DeleteEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteEvalStatusPageId", - methodName: "DeleteEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteEvalStatusPageId", - methodName: "DeleteEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessDeleteEvalStatusPageIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteEvalStatusPageId", - methodName: "DeleteEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "DeleteEvalStatusPageId", - methodName: "DeleteEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "DELETE", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // The request was unacceptable, often due to missing a required parameter - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - string? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // No valid API key provided - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - string? __value_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // The API key doesn’t have permissions to perform the request - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - string? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Too many requests hit the API too quickly. We recommend an exponential backoff of your requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::System.Exception? __exception_429 = null; - string? __value_429 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - else - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_429 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Something went wrong on Braintrust's end. (These are rare.) - if ((int)__response.StatusCode == 500) - { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - string? __value_500 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - else - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_500 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - 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); - ProcessDeleteEvalStatusPageIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::Braintrust.EvalStatusPage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw new global::Braintrust.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); - - return - await global::Braintrust.EvalStatusPage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::Braintrust.ApiException( - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.GetEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.GetEvalStatusPage.g.cs deleted file mode 100644 index 1f39ee8..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.GetEvalStatusPage.g.cs +++ /dev/null @@ -1,633 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - public partial class EvalStatusPagesClient - { - - - private static readonly global::Braintrust.EndPointSecurityRequirement s_GetEvalStatusPageSecurityRequirement0 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { new global::Braintrust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - - private static readonly global::Braintrust.EndPointSecurityRequirement s_GetEvalStatusPageSecurityRequirement1 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { - }, - }; - private static readonly global::Braintrust.EndPointSecurityRequirement[] s_GetEvalStatusPageSecurityRequirements = - new global::Braintrust.EndPointSecurityRequirement[] - { s_GetEvalStatusPageSecurityRequirement0, - s_GetEvalStatusPageSecurityRequirement1, - }; - partial void PrepareGetEvalStatusPageArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? limit, - ref global::System.Guid? startingAfter, - ref global::System.Guid? endingBefore, - ref global::Braintrust.Ids? ids, - ref string? evalStatusPageName, - ref string? orgName); - partial void PrepareGetEvalStatusPageRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? limit, - global::System.Guid? startingAfter, - global::System.Guid? endingBefore, - global::Braintrust.Ids? ids, - string? evalStatusPageName, - string? orgName); - partial void ProcessGetEvalStatusPageResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetEvalStatusPageResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List eval_status_pages
- /// List out all eval_status_pages. The eval_status_pages are sorted by creation date, with the most recently-created eval_status_pages coming first - ///
- /// - /// Limit the number of objects to return - /// - /// - /// Pagination cursor id.
- /// For example, if the final item in the last page you fetched had an id of `foo`, pass `starting_after=foo` to fetch the next page. Note: you may only pass one of `starting_after` and `ending_before` - /// - /// - /// Pagination cursor id.
- /// For example, if the initial item in the last page you fetched had an id of `foo`, pass `ending_before=foo` to fetch the previous page. Note: you may only pass one of `starting_after` and `ending_before` - /// - /// - /// Filter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times - /// - /// - /// Name of the eval_status_page to search for - /// - /// - /// Filter search results to within a particular organization - /// - /// 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 GetEvalStatusPageAsync( - int? limit = default, - global::System.Guid? startingAfter = default, - global::System.Guid? endingBefore = default, - global::Braintrust.Ids? ids = default, - string? evalStatusPageName = default, - string? orgName = default, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetEvalStatusPageArguments( - httpClient: HttpClient, - limit: ref limit, - startingAfter: ref startingAfter, - endingBefore: ref endingBefore, - ids: ref ids, - evalStatusPageName: ref evalStatusPageName, - orgName: ref orgName); - - - var __authorizations = global::Braintrust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetEvalStatusPageSecurityRequirements, - operationName: "GetEvalStatusPageAsync"); - - using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - var __pathBuilder = new global::Braintrust.PathBuilder( - path: "/v1/eval_status_page", - baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("limit", limit?.ToString()) - .AddOptionalParameter("starting_after", startingAfter?.ToString()) - .AddOptionalParameter("ending_before", endingBefore?.ToString()) - .AddOptionalParameter("ids", ids?.ToString()) - .AddOptionalParameter("eval_status_page_name", evalStatusPageName) - .AddOptionalParameter("org_name", orgName) - ; - var __path = __pathBuilder.ToString(); - __path = global::Braintrust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetEvalStatusPageRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - limit: limit, - startingAfter: startingAfter, - endingBefore: endingBefore, - ids: ids, - evalStatusPageName: evalStatusPageName, - orgName: orgName); - - 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::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPage", - methodName: "GetEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPage", - methodName: "GetEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPage", - methodName: "GetEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetEvalStatusPageResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPage", - methodName: "GetEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPage", - methodName: "GetEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // The request was unacceptable, often due to missing a required parameter - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - string? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // No valid API key provided - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - string? __value_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // The API key doesn’t have permissions to perform the request - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - string? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Too many requests hit the API too quickly. We recommend an exponential backoff of your requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::System.Exception? __exception_429 = null; - string? __value_429 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - else - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_429 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Something went wrong on Braintrust's end. (These are rare.) - if ((int)__response.StatusCode == 500) - { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - string? __value_500 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - else - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_500 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - 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); - ProcessGetEvalStatusPageResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::Braintrust.GetEvalStatusPageResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw new global::Braintrust.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); - - return - await global::Braintrust.GetEvalStatusPageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::Braintrust.ApiException( - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.GetEvalStatusPageId.g.cs b/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.GetEvalStatusPageId.g.cs deleted file mode 100644 index ade81d4..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.GetEvalStatusPageId.g.cs +++ /dev/null @@ -1,583 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - public partial class EvalStatusPagesClient - { - - - private static readonly global::Braintrust.EndPointSecurityRequirement s_GetEvalStatusPageIdSecurityRequirement0 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { new global::Braintrust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - - private static readonly global::Braintrust.EndPointSecurityRequirement s_GetEvalStatusPageIdSecurityRequirement1 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { - }, - }; - private static readonly global::Braintrust.EndPointSecurityRequirement[] s_GetEvalStatusPageIdSecurityRequirements = - new global::Braintrust.EndPointSecurityRequirement[] - { s_GetEvalStatusPageIdSecurityRequirement0, - s_GetEvalStatusPageIdSecurityRequirement1, - }; - partial void PrepareGetEvalStatusPageIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid evalStatusPageId); - partial void PrepareGetEvalStatusPageIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid evalStatusPageId); - partial void ProcessGetEvalStatusPageIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessGetEvalStatusPageIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Get eval_status_page
- /// Get a eval_status_page object by its id - ///
- /// - /// EvalStatusPage id - /// - /// 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 GetEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareGetEvalStatusPageIdArguments( - httpClient: HttpClient, - evalStatusPageId: ref evalStatusPageId); - - - var __authorizations = global::Braintrust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_GetEvalStatusPageIdSecurityRequirements, - operationName: "GetEvalStatusPageIdAsync"); - - using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - var __pathBuilder = new global::Braintrust.PathBuilder( - path: $"/v1/eval_status_page/{evalStatusPageId}", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Braintrust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - global::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareGetEvalStatusPageIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - evalStatusPageId: evalStatusPageId); - - 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::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPageId", - methodName: "GetEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPageId", - methodName: "GetEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPageId", - methodName: "GetEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessGetEvalStatusPageIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPageId", - methodName: "GetEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "GetEvalStatusPageId", - methodName: "GetEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "GET", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // The request was unacceptable, often due to missing a required parameter - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - string? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // No valid API key provided - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - string? __value_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // The API key doesn’t have permissions to perform the request - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - string? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Too many requests hit the API too quickly. We recommend an exponential backoff of your requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::System.Exception? __exception_429 = null; - string? __value_429 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - else - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_429 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Something went wrong on Braintrust's end. (These are rare.) - if ((int)__response.StatusCode == 500) - { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - string? __value_500 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - else - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_500 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - 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); - ProcessGetEvalStatusPageIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::Braintrust.EvalStatusPage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw new global::Braintrust.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); - - return - await global::Braintrust.EvalStatusPage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::Braintrust.ApiException( - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PatchEvalStatusPageId.g.cs b/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PatchEvalStatusPageId.g.cs deleted file mode 100644 index 9bddcd1..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PatchEvalStatusPageId.g.cs +++ /dev/null @@ -1,648 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - public partial class EvalStatusPagesClient - { - - - private static readonly global::Braintrust.EndPointSecurityRequirement s_PatchEvalStatusPageIdSecurityRequirement0 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { new global::Braintrust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - - private static readonly global::Braintrust.EndPointSecurityRequirement s_PatchEvalStatusPageIdSecurityRequirement1 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { - }, - }; - private static readonly global::Braintrust.EndPointSecurityRequirement[] s_PatchEvalStatusPageIdSecurityRequirements = - new global::Braintrust.EndPointSecurityRequirement[] - { s_PatchEvalStatusPageIdSecurityRequirement0, - s_PatchEvalStatusPageIdSecurityRequirement1, - }; - partial void PreparePatchEvalStatusPageIdArguments( - global::System.Net.Http.HttpClient httpClient, - ref global::System.Guid evalStatusPageId, - global::Braintrust.PatchEvalStatusPage request); - partial void PreparePatchEvalStatusPageIdRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::System.Guid evalStatusPageId, - global::Braintrust.PatchEvalStatusPage request); - partial void ProcessPatchEvalStatusPageIdResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessPatchEvalStatusPageIdResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Partially update eval_status_page
- /// Partially update a eval_status_page object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null. - ///
- /// - /// EvalStatusPage id - /// - /// - /// 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 PatchEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - - global::Braintrust.PatchEvalStatusPage request, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PreparePatchEvalStatusPageIdArguments( - httpClient: HttpClient, - evalStatusPageId: ref evalStatusPageId, - request: request); - - - var __authorizations = global::Braintrust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_PatchEvalStatusPageIdSecurityRequirements, - operationName: "PatchEvalStatusPageIdAsync"); - - using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - var __pathBuilder = new global::Braintrust.PathBuilder( - path: $"/v1/eval_status_page/{evalStatusPageId}", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Braintrust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: new global::System.Net.Http.HttpMethod("PATCH"), - 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::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PreparePatchEvalStatusPageIdRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - evalStatusPageId: evalStatusPageId, - 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::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PatchEvalStatusPageId", - methodName: "PatchEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PatchEvalStatusPageId", - methodName: "PatchEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PatchEvalStatusPageId", - methodName: "PatchEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessPatchEvalStatusPageIdResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PatchEvalStatusPageId", - methodName: "PatchEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PatchEvalStatusPageId", - methodName: "PatchEvalStatusPageIdAsync", - pathTemplate: "$\"/v1/eval_status_page/{evalStatusPageId}\"", - httpMethod: "PATCH", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // The request was unacceptable, often due to missing a required parameter - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - string? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // No valid API key provided - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - string? __value_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // The API key doesn’t have permissions to perform the request - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - string? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Too many requests hit the API too quickly. We recommend an exponential backoff of your requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::System.Exception? __exception_429 = null; - string? __value_429 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - else - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_429 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Something went wrong on Braintrust's end. (These are rare.) - if ((int)__response.StatusCode == 500) - { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - string? __value_500 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - else - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_500 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - 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); - ProcessPatchEvalStatusPageIdResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::Braintrust.EvalStatusPage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw new global::Braintrust.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); - - return - await global::Braintrust.EvalStatusPage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::Braintrust.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(); - } - } - /// - /// Partially update eval_status_page
- /// Partially update a eval_status_page object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null. - ///
- /// - /// EvalStatusPage id - /// - /// - /// Name of the eval status page - /// - /// - /// Textual description of the eval status page - /// - /// - /// URL of the logo to display on the page - /// - /// - /// The theme for the page - /// - /// - /// Configuration for what data to display - /// - /// 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 PatchEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - string? name = default, - string? description = default, - string? logoUrl = default, - global::Braintrust.EvalStatusPageTheme? theme = default, - global::Braintrust.EvalStatusPageConfig? config = default, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Braintrust.PatchEvalStatusPage - { - Name = name, - Description = description, - LogoUrl = logoUrl, - Theme = theme, - Config = config, - }; - - return await PatchEvalStatusPageIdAsync( - evalStatusPageId: evalStatusPageId, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PostEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PostEvalStatusPage.g.cs deleted file mode 100644 index 3a0070f..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PostEvalStatusPage.g.cs +++ /dev/null @@ -1,640 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - public partial class EvalStatusPagesClient - { - - - private static readonly global::Braintrust.EndPointSecurityRequirement s_PostEvalStatusPageSecurityRequirement0 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { new global::Braintrust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - - private static readonly global::Braintrust.EndPointSecurityRequirement s_PostEvalStatusPageSecurityRequirement1 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { - }, - }; - private static readonly global::Braintrust.EndPointSecurityRequirement[] s_PostEvalStatusPageSecurityRequirements = - new global::Braintrust.EndPointSecurityRequirement[] - { s_PostEvalStatusPageSecurityRequirement0, - s_PostEvalStatusPageSecurityRequirement1, - }; - partial void PreparePostEvalStatusPageArguments( - global::System.Net.Http.HttpClient httpClient, - global::Braintrust.CreateEvalStatusPage request); - partial void PreparePostEvalStatusPageRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Braintrust.CreateEvalStatusPage request); - partial void ProcessPostEvalStatusPageResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessPostEvalStatusPageResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create eval_status_page
- /// Create a new eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will return the existing eval_status_page unmodified - ///
- /// - /// 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 PostEvalStatusPageAsync( - - global::Braintrust.CreateEvalStatusPage request, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PreparePostEvalStatusPageArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Braintrust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_PostEvalStatusPageSecurityRequirements, - operationName: "PostEvalStatusPageAsync"); - - using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - var __pathBuilder = new global::Braintrust.PathBuilder( - path: "/v1/eval_status_page", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Braintrust.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::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PreparePostEvalStatusPageRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - 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::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEvalStatusPage", - methodName: "PostEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEvalStatusPage", - methodName: "PostEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEvalStatusPage", - methodName: "PostEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessPostEvalStatusPageResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEvalStatusPage", - methodName: "PostEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PostEvalStatusPage", - methodName: "PostEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // The request was unacceptable, often due to missing a required parameter - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - string? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // No valid API key provided - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - string? __value_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // The API key doesn’t have permissions to perform the request - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - string? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Too many requests hit the API too quickly. We recommend an exponential backoff of your requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::System.Exception? __exception_429 = null; - string? __value_429 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - else - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_429 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Something went wrong on Braintrust's end. (These are rare.) - if ((int)__response.StatusCode == 500) - { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - string? __value_500 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - else - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_500 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - 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); - ProcessPostEvalStatusPageResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::Braintrust.EvalStatusPage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw new global::Braintrust.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); - - return - await global::Braintrust.EvalStatusPage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::Braintrust.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(); - } - } - /// - /// Create eval_status_page
- /// Create a new eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will return the existing eval_status_page unmodified - ///
- /// - /// Unique identifier for the project that the eval status page belongs under - /// - /// - /// Name of the eval status page - /// - /// - /// Textual description of the eval status page - /// - /// - /// URL of the logo to display on the page - /// - /// - /// The theme for the page - /// - /// - /// Configuration for what data to display - /// - /// 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 PostEvalStatusPageAsync( - global::System.Guid projectId, - string name, - global::Braintrust.EvalStatusPageTheme theme, - global::Braintrust.EvalStatusPageConfig config, - string? description = default, - string? logoUrl = default, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Braintrust.CreateEvalStatusPage - { - ProjectId = projectId, - Name = name, - Description = description, - LogoUrl = logoUrl, - Theme = theme, - Config = config, - }; - - return await PostEvalStatusPageAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PutEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PutEvalStatusPage.g.cs deleted file mode 100644 index ce7ea78..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.PutEvalStatusPage.g.cs +++ /dev/null @@ -1,640 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - public partial class EvalStatusPagesClient - { - - - private static readonly global::Braintrust.EndPointSecurityRequirement s_PutEvalStatusPageSecurityRequirement0 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { new global::Braintrust.EndPointAuthorizationRequirement - { - Type = "Http", - SchemeId = "BearerAuth", - Location = "Header", - Name = "Bearer", - FriendlyName = "Bearer", - }, - }, - }; - - private static readonly global::Braintrust.EndPointSecurityRequirement s_PutEvalStatusPageSecurityRequirement1 = - new global::Braintrust.EndPointSecurityRequirement - { - Authorizations = new global::Braintrust.EndPointAuthorizationRequirement[] - { - }, - }; - private static readonly global::Braintrust.EndPointSecurityRequirement[] s_PutEvalStatusPageSecurityRequirements = - new global::Braintrust.EndPointSecurityRequirement[] - { s_PutEvalStatusPageSecurityRequirement0, - s_PutEvalStatusPageSecurityRequirement1, - }; - partial void PreparePutEvalStatusPageArguments( - global::System.Net.Http.HttpClient httpClient, - global::Braintrust.CreateEvalStatusPage request); - partial void PreparePutEvalStatusPageRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Braintrust.CreateEvalStatusPage request); - partial void ProcessPutEvalStatusPageResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessPutEvalStatusPageResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Create or replace eval_status_page
- /// Create or replace eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will replace the existing eval_status_page with the provided fields - ///
- /// - /// 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 PutEvalStatusPageAsync( - - global::Braintrust.CreateEvalStatusPage request, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PreparePutEvalStatusPageArguments( - httpClient: HttpClient, - request: request); - - - var __authorizations = global::Braintrust.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_PutEvalStatusPageSecurityRequirements, - operationName: "PutEvalStatusPageAsync"); - - using var __timeoutCancellationTokenSource = global::Braintrust.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Braintrust.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Braintrust.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - var __pathBuilder = new global::Braintrust.PathBuilder( - path: "/v1/eval_status_page", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Braintrust.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Put, - 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::Braintrust.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PreparePutEvalStatusPageRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - 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::Braintrust.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PutEvalStatusPage", - methodName: "PutEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PutEvalStatusPage", - methodName: "PutEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest!, - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Braintrust.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PutEvalStatusPage", - methodName: "PutEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Braintrust.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessPutEvalStatusPageResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PutEvalStatusPage", - methodName: "PutEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Braintrust.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Braintrust.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "PutEvalStatusPage", - methodName: "PutEvalStatusPageAsync", - pathTemplate: "\"/v1/eval_status_page\"", - httpMethod: "PUT", - baseUri: BaseUri, - request: __httpRequest!, - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // The request was unacceptable, often due to missing a required parameter - if ((int)__response.StatusCode == 400) - { - string? __content_400 = null; - global::System.Exception? __exception_400 = null; - string? __value_400 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - else - { - __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_400 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_400, - statusCode: __response.StatusCode) - { - ResponseBody = __content_400, - ResponseObject = __value_400, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // No valid API key provided - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - global::System.Exception? __exception_401 = null; - string? __value_401 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - else - { - __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_401 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_401 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_401, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // The API key doesn’t have permissions to perform the request - if ((int)__response.StatusCode == 403) - { - string? __content_403 = null; - global::System.Exception? __exception_403 = null; - string? __value_403 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - else - { - __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_403 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_403, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_403 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_403, - statusCode: __response.StatusCode) - { - ResponseBody = __content_403, - ResponseObject = __value_403, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Too many requests hit the API too quickly. We recommend an exponential backoff of your requests - if ((int)__response.StatusCode == 429) - { - string? __content_429 = null; - global::System.Exception? __exception_429 = null; - string? __value_429 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - else - { - __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_429 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_429, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_429 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_429, - statusCode: __response.StatusCode) - { - ResponseBody = __content_429, - ResponseObject = __value_429, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // Something went wrong on Braintrust's end. (These are rare.) - if ((int)__response.StatusCode == 500) - { - string? __content_500 = null; - global::System.Exception? __exception_500 = null; - string? __value_500 = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - else - { - __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_500 = __ex; - } - - throw new global::Braintrust.ApiException( - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_500, - statusCode: __response.StatusCode) - { - ResponseBody = __content_500, - ResponseObject = __value_500, - 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); - ProcessPutEvalStatusPageResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - return - global::Braintrust.EvalStatusPage.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - catch (global::System.Exception __ex) - { - throw new global::Braintrust.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); - - return - await global::Braintrust.EvalStatusPage.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - 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::Braintrust.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(); - } - } - /// - /// Create or replace eval_status_page
- /// Create or replace eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will replace the existing eval_status_page with the provided fields - ///
- /// - /// Unique identifier for the project that the eval status page belongs under - /// - /// - /// Name of the eval status page - /// - /// - /// Textual description of the eval status page - /// - /// - /// URL of the logo to display on the page - /// - /// - /// The theme for the page - /// - /// - /// Configuration for what data to display - /// - /// 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 PutEvalStatusPageAsync( - global::System.Guid projectId, - string name, - global::Braintrust.EvalStatusPageTheme theme, - global::Braintrust.EvalStatusPageConfig config, - string? description = default, - string? logoUrl = default, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Braintrust.CreateEvalStatusPage - { - ProjectId = projectId, - Name = name, - Description = description, - LogoUrl = logoUrl, - Theme = theme, - Config = config, - }; - - return await PutEvalStatusPageAsync( - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.g.cs b/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.g.cs deleted file mode 100644 index 1963f61..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.EvalStatusPagesClient.g.cs +++ /dev/null @@ -1,115 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public sealed partial class EvalStatusPagesClient : global::Braintrust.IEvalStatusPagesClient, global::System.IDisposable - { - /// - /// - /// - public const string DefaultBaseUrl = "https://api.braintrust.dev/"; - - private bool _disposeHttpClient = true; - - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - public System.Uri? BaseUri => HttpClient.BaseAddress; - - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - public bool ReadResponseAsString { get; set; } -#if DEBUG - = true; -#endif - - /// - public global::Braintrust.AutoSDKClientOptions Options { get; } - /// - /// - /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Braintrust.SourceGenerationContext.Default; - - - /// - /// Creates a new instance of the EvalStatusPagesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Dispose the HttpClient when the instance is disposed. True by default. - public EvalStatusPagesClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - bool disposeHttpClient = true) : this( - httpClient, - baseUri, - authorizations, - options: null, - disposeHttpClient: disposeHttpClient) - { - } - - /// - /// Creates a new instance of the EvalStatusPagesClient. - /// If no httpClient is provided, a new one will be created. - /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - /// - /// The HttpClient instance. If not provided, a new one will be created. - /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. - /// The authorizations to use for the requests. - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// Dispose the HttpClient when the instance is disposed. True by default. - public EvalStatusPagesClient( - global::System.Net.Http.HttpClient? httpClient = null, - global::System.Uri? baseUri = null, - global::System.Collections.Generic.List? authorizations = null, - global::Braintrust.AutoSDKClientOptions? options = null, - bool disposeHttpClient = true) - { - - HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); - HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); - Authorizations = authorizations ?? new global::System.Collections.Generic.List(); - Options = options ?? new global::Braintrust.AutoSDKClientOptions(); - _disposeHttpClient = disposeHttpClient; - - Initialized(HttpClient); - } - - /// - public void Dispose() - { - if (_disposeHttpClient) - { - HttpClient.Dispose(); - } - } - - partial void Initialized( - global::System.Net.Http.HttpClient client); - partial void PrepareArguments( - global::System.Net.Http.HttpClient client); - partial void PrepareRequest( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpRequestMessage request); - partial void ProcessResponse( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response); - partial void ProcessResponseContent( - global::System.Net.Http.HttpClient client, - global::System.Net.Http.HttpResponseMessage response, - ref string content); - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.ExperimentsClient.PatchExperimentId.g.cs b/src/libs/Braintrust/Generated/Braintrust.ExperimentsClient.PatchExperimentId.g.cs index 0e7fb6a..d6dbe83 100644 --- a/src/libs/Braintrust/Generated/Braintrust.ExperimentsClient.PatchExperimentId.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.ExperimentsClient.PatchExperimentId.g.cs @@ -619,6 +619,9 @@ partial void ProcessPatchExperimentIdResponseContent( /// /// Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified. /// + /// + /// Braintrust-controlled metadata about the experiment. + /// /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -645,6 +648,7 @@ partial void ProcessPatchExperimentIdResponseContent( global::System.Guid? baseExpId = default, global::System.Guid? datasetId = default, string? datasetVersion = default, + global::Braintrust.PatchExperimentInternalMetadata? internalMetadata = default, global::System.Guid? parametersId = default, string? parametersVersion = default, bool? @public = default, @@ -661,6 +665,7 @@ partial void ProcessPatchExperimentIdResponseContent( BaseExpId = baseExpId, DatasetId = datasetId, DatasetVersion = datasetVersion, + InternalMetadata = internalMetadata, ParametersId = parametersId, ParametersVersion = parametersVersion, Public = @public, diff --git a/src/libs/Braintrust/Generated/Braintrust.ExperimentsClient.PostExperiment.g.cs b/src/libs/Braintrust/Generated/Braintrust.ExperimentsClient.PostExperiment.g.cs index e52fb5c..046e77a 100644 --- a/src/libs/Braintrust/Generated/Braintrust.ExperimentsClient.PostExperiment.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.ExperimentsClient.PostExperiment.g.cs @@ -611,6 +611,9 @@ partial void ProcessPostExperimentResponseContent( /// /// Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified. /// + /// + /// Braintrust-controlled metadata about the experiment. + /// /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -640,6 +643,7 @@ partial void ProcessPostExperimentResponseContent( global::System.Guid? baseExpId = default, global::System.Guid? datasetId = default, string? datasetVersion = default, + global::Braintrust.CreateExperimentInternalMetadata? internalMetadata = default, global::System.Guid? parametersId = default, string? parametersVersion = default, bool? @public = default, @@ -658,6 +662,7 @@ partial void ProcessPostExperimentResponseContent( BaseExpId = baseExpId, DatasetId = datasetId, DatasetVersion = datasetVersion, + InternalMetadata = internalMetadata, ParametersId = parametersId, ParametersVersion = parametersVersion, Public = @public, diff --git a/src/libs/Braintrust/Generated/Braintrust.IBraintrustClient.g.cs b/src/libs/Braintrust/Generated/Braintrust.IBraintrustClient.g.cs index 5284288..2f8ba1e 100644 --- a/src/libs/Braintrust/Generated/Braintrust.IBraintrustClient.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.IBraintrustClient.g.cs @@ -92,11 +92,6 @@ public partial interface IBraintrustClient : global::System.IDisposable /// public EnvironmentsClient Environments { get; } - /// - /// - /// - public EvalStatusPagesClient EvalStatusPages { get; } - /// /// /// diff --git a/src/libs/Braintrust/Generated/Braintrust.ICorsClient.OptionsEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.ICorsClient.OptionsEvalStatusPage.g.cs deleted file mode 100644 index cdf71e5..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.ICorsClient.OptionsEvalStatusPage.g.cs +++ /dev/null @@ -1,18 +0,0 @@ -#nullable enable - -namespace Braintrust -{ - public partial interface ICorsClient - { - /// - /// Enable CORS (`/v1/eval_status_page`)
- /// Enable CORS - ///
- /// 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 OptionsEvalStatusPageAsync( - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.ICorsClient.OptionsEvalStatusPageId.g.cs b/src/libs/Braintrust/Generated/Braintrust.ICorsClient.OptionsEvalStatusPageId.g.cs deleted file mode 100644 index 8dfeda9..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.ICorsClient.OptionsEvalStatusPageId.g.cs +++ /dev/null @@ -1,22 +0,0 @@ -#nullable enable - -namespace Braintrust -{ - public partial interface ICorsClient - { - /// - /// Enable CORS (`/v1/eval_status_page/{eval_status_page_id}`)
- /// Enable CORS - ///
- /// - /// EvalStatusPage id - /// - /// 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 OptionsEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.DeleteEvalStatusPageId.g.cs b/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.DeleteEvalStatusPageId.g.cs deleted file mode 100644 index e5f9b5d..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.DeleteEvalStatusPageId.g.cs +++ /dev/null @@ -1,22 +0,0 @@ -#nullable enable - -namespace Braintrust -{ - public partial interface IEvalStatusPagesClient - { - /// - /// Delete eval_status_page
- /// Delete a eval_status_page object by its id - ///
- /// - /// EvalStatusPage id - /// - /// 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 DeleteEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.GetEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.GetEvalStatusPage.g.cs deleted file mode 100644 index ce533d4..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.GetEvalStatusPage.g.cs +++ /dev/null @@ -1,44 +0,0 @@ -#nullable enable - -namespace Braintrust -{ - public partial interface IEvalStatusPagesClient - { - /// - /// List eval_status_pages
- /// List out all eval_status_pages. The eval_status_pages are sorted by creation date, with the most recently-created eval_status_pages coming first - ///
- /// - /// Limit the number of objects to return - /// - /// - /// Pagination cursor id.
- /// For example, if the final item in the last page you fetched had an id of `foo`, pass `starting_after=foo` to fetch the next page. Note: you may only pass one of `starting_after` and `ending_before` - /// - /// - /// Pagination cursor id.
- /// For example, if the initial item in the last page you fetched had an id of `foo`, pass `ending_before=foo` to fetch the previous page. Note: you may only pass one of `starting_after` and `ending_before` - /// - /// - /// Filter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times - /// - /// - /// Name of the eval_status_page to search for - /// - /// - /// Filter search results to within a particular organization - /// - /// 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 GetEvalStatusPageAsync( - int? limit = default, - global::System.Guid? startingAfter = default, - global::System.Guid? endingBefore = default, - global::Braintrust.Ids? ids = default, - string? evalStatusPageName = default, - string? orgName = default, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.GetEvalStatusPageId.g.cs b/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.GetEvalStatusPageId.g.cs deleted file mode 100644 index b2f745f..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.GetEvalStatusPageId.g.cs +++ /dev/null @@ -1,22 +0,0 @@ -#nullable enable - -namespace Braintrust -{ - public partial interface IEvalStatusPagesClient - { - /// - /// Get eval_status_page
- /// Get a eval_status_page object by its id - ///
- /// - /// EvalStatusPage id - /// - /// 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 GetEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PatchEvalStatusPageId.g.cs b/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PatchEvalStatusPageId.g.cs deleted file mode 100644 index c21342d..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PatchEvalStatusPageId.g.cs +++ /dev/null @@ -1,59 +0,0 @@ -#nullable enable - -namespace Braintrust -{ - public partial interface IEvalStatusPagesClient - { - /// - /// Partially update eval_status_page
- /// Partially update a eval_status_page object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null. - ///
- /// - /// EvalStatusPage id - /// - /// - /// 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 PatchEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - - global::Braintrust.PatchEvalStatusPage request, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Partially update eval_status_page
- /// Partially update a eval_status_page object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null. - ///
- /// - /// EvalStatusPage id - /// - /// - /// Name of the eval status page - /// - /// - /// Textual description of the eval status page - /// - /// - /// URL of the logo to display on the page - /// - /// - /// The theme for the page - /// - /// - /// Configuration for what data to display - /// - /// 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 PatchEvalStatusPageIdAsync( - global::System.Guid evalStatusPageId, - string? name = default, - string? description = default, - string? logoUrl = default, - global::Braintrust.EvalStatusPageTheme? theme = default, - global::Braintrust.EvalStatusPageConfig? config = default, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PostEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PostEvalStatusPage.g.cs deleted file mode 100644 index 6e324e6..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PostEvalStatusPage.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -#nullable enable - -namespace Braintrust -{ - public partial interface IEvalStatusPagesClient - { - /// - /// Create eval_status_page
- /// Create a new eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will return the existing eval_status_page unmodified - ///
- /// - /// 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 PostEvalStatusPageAsync( - - global::Braintrust.CreateEvalStatusPage request, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create eval_status_page
- /// Create a new eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will return the existing eval_status_page unmodified - ///
- /// - /// Unique identifier for the project that the eval status page belongs under - /// - /// - /// Name of the eval status page - /// - /// - /// Textual description of the eval status page - /// - /// - /// URL of the logo to display on the page - /// - /// - /// The theme for the page - /// - /// - /// Configuration for what data to display - /// - /// 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 PostEvalStatusPageAsync( - global::System.Guid projectId, - string name, - global::Braintrust.EvalStatusPageTheme theme, - global::Braintrust.EvalStatusPageConfig config, - string? description = default, - string? logoUrl = default, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PutEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PutEvalStatusPage.g.cs deleted file mode 100644 index c074556..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.PutEvalStatusPage.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -#nullable enable - -namespace Braintrust -{ - public partial interface IEvalStatusPagesClient - { - /// - /// Create or replace eval_status_page
- /// Create or replace eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will replace the existing eval_status_page with the provided fields - ///
- /// - /// 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 PutEvalStatusPageAsync( - - global::Braintrust.CreateEvalStatusPage request, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Create or replace eval_status_page
- /// Create or replace eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will replace the existing eval_status_page with the provided fields - ///
- /// - /// Unique identifier for the project that the eval status page belongs under - /// - /// - /// Name of the eval status page - /// - /// - /// Textual description of the eval status page - /// - /// - /// URL of the logo to display on the page - /// - /// - /// The theme for the page - /// - /// - /// Configuration for what data to display - /// - /// 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 PutEvalStatusPageAsync( - global::System.Guid projectId, - string name, - global::Braintrust.EvalStatusPageTheme theme, - global::Braintrust.EvalStatusPageConfig config, - string? description = default, - string? logoUrl = default, - global::Braintrust.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.g.cs b/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.g.cs deleted file mode 100644 index d673107..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.IEvalStatusPagesClient.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - /// - /// If no httpClient is provided, a new one will be created.
- /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. - ///
- public partial interface IEvalStatusPagesClient : global::System.IDisposable - { - /// - /// The HttpClient instance. - /// - public global::System.Net.Http.HttpClient HttpClient { get; } - - /// - /// The base URL for the API. - /// - public System.Uri? BaseUri { get; } - - /// - /// The authorizations to use for the requests. - /// - public global::System.Collections.Generic.List Authorizations { get; } - - /// - /// Gets or sets a value indicating whether the response content should be read as a string. - /// True by default in debug builds, false otherwise. - /// When false, successful responses are deserialized directly from the response stream for better performance. - /// Error responses are always read as strings regardless of this setting, - /// ensuring is populated. - /// - public bool ReadResponseAsString { get; set; } - /// - /// Client-wide request defaults such as headers, query parameters, retries, and timeout. - /// - public global::Braintrust.AutoSDKClientOptions Options { get; } - - - /// - /// - /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } - - - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.IExperimentsClient.PatchExperimentId.g.cs b/src/libs/Braintrust/Generated/Braintrust.IExperimentsClient.PatchExperimentId.g.cs index b808961..3a08520 100644 --- a/src/libs/Braintrust/Generated/Braintrust.IExperimentsClient.PatchExperimentId.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.IExperimentsClient.PatchExperimentId.g.cs @@ -46,6 +46,9 @@ public partial interface IExperimentsClient /// /// Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified. /// + /// + /// Braintrust-controlled metadata about the experiment. + /// /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -72,6 +75,7 @@ public partial interface IExperimentsClient global::System.Guid? baseExpId = default, global::System.Guid? datasetId = default, string? datasetVersion = default, + global::Braintrust.PatchExperimentInternalMetadata? internalMetadata = default, global::System.Guid? parametersId = default, string? parametersVersion = default, bool? @public = default, diff --git a/src/libs/Braintrust/Generated/Braintrust.IExperimentsClient.PostExperiment.g.cs b/src/libs/Braintrust/Generated/Braintrust.IExperimentsClient.PostExperiment.g.cs index 0dec0a1..af3c8e3 100644 --- a/src/libs/Braintrust/Generated/Braintrust.IExperimentsClient.PostExperiment.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.IExperimentsClient.PostExperiment.g.cs @@ -42,6 +42,9 @@ public partial interface IExperimentsClient /// /// Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified. /// + /// + /// Braintrust-controlled metadata about the experiment. + /// /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -71,6 +74,7 @@ public partial interface IExperimentsClient global::System.Guid? baseExpId = default, global::System.Guid? datasetId = default, string? datasetVersion = default, + global::Braintrust.CreateExperimentInternalMetadata? internalMetadata = default, global::System.Guid? parametersId = default, string? parametersVersion = default, bool? @public = default, diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsType.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs similarity index 77% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsType.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs index 12ad99d..ac187d8 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsType.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class CreateProjectAutomationConfigVariant2CredentialsTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateProjectAutomationConfigVariant2CredentialsVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType Read( + public override global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type 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 CreateProjectAutomationConfigVariant2CredentialsTypeJsonConv var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsTypeExtensions.ToEnum(stringValue) ?? default; + return global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class CreateProjectAutomationConfigVariant2CredentialsTypeJsonConv case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType)numValue; + return (global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType); + return default(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class CreateProjectAutomationConfigVariant2CredentialsTypeJsonConv /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType value, + global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs similarity index 78% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs index c3ed668..dbde56d 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class CreateProjectAutomationConfigVariant2CredentialsTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateProjectAutomationConfigVariant2CredentialsVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType? Read( + public override global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type? 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 CreateProjectAutomationConfigVariant2CredentialsTypeNullable var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsTypeExtensions.ToEnum(stringValue); + return global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class CreateProjectAutomationConfigVariant2CredentialsTypeNullable case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType)numValue; + return (global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType?); + return default(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class CreateProjectAutomationConfigVariant2CredentialsTypeNullable /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType? value, + global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type? 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::Braintrust.CreateProjectAutomationConfigVariant2CredentialsTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageConfigSortOrder.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs similarity index 58% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageConfigSortOrder.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs index 372c080..e581a9e 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageConfigSortOrder.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class EvalStatusPageConfigSortOrderJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateProjectAutomationConfigVariant2CredentialsVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.EvalStatusPageConfigSortOrder Read( + public override global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type 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 EvalStatusPageConfigSortOrderJsonConverter : global::System. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.EvalStatusPageConfigSortOrderExtensions.ToEnum(stringValue) ?? default; + return global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class EvalStatusPageConfigSortOrderJsonConverter : global::System. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.EvalStatusPageConfigSortOrder)numValue; + return (global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.EvalStatusPageConfigSortOrder); + return default(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class EvalStatusPageConfigSortOrderJsonConverter : global::System. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.EvalStatusPageConfigSortOrder value, + global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Braintrust.EvalStatusPageConfigSortOrderExtensions.ToValueString(value)); + writer.WriteStringValue(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageThemeNullable.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs similarity index 60% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageThemeNullable.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs index 46899f3..d68821e 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageThemeNullable.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class EvalStatusPageThemeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateProjectAutomationConfigVariant2CredentialsVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.EvalStatusPageTheme? Read( + public override global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type? 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 EvalStatusPageThemeNullableJsonConverter : global::System.Te var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.EvalStatusPageThemeExtensions.ToEnum(stringValue); + return global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class EvalStatusPageThemeNullableJsonConverter : global::System.Te case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.EvalStatusPageTheme)numValue; + return (global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.EvalStatusPageTheme?); + return default(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class EvalStatusPageThemeNullableJsonConverter : global::System.Te /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.EvalStatusPageTheme? value, + global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type? 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::Braintrust.EvalStatusPageThemeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsType.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs similarity index 77% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsType.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs index d23c7c0..dd07acb 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsType.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class PatchProjectAutomationConfigVariant2CredentialsTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class PatchProjectAutomationConfigVariant2CredentialsVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType Read( + public override global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type 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 PatchProjectAutomationConfigVariant2CredentialsTypeJsonConve var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsTypeExtensions.ToEnum(stringValue) ?? default; + return global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class PatchProjectAutomationConfigVariant2CredentialsTypeJsonConve case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType)numValue; + return (global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType); + return default(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class PatchProjectAutomationConfigVariant2CredentialsTypeJsonConve /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType value, + global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs similarity index 78% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs index c0020be..fce3db9 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class PatchProjectAutomationConfigVariant2CredentialsTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class PatchProjectAutomationConfigVariant2CredentialsVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType? Read( + public override global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type? 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 PatchProjectAutomationConfigVariant2CredentialsTypeNullableJ var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsTypeExtensions.ToEnum(stringValue); + return global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class PatchProjectAutomationConfigVariant2CredentialsTypeNullableJ case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType)numValue; + return (global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType?); + return default(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class PatchProjectAutomationConfigVariant2CredentialsTypeNullableJ /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType? value, + global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type? 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::Braintrust.PatchProjectAutomationConfigVariant2CredentialsTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs new file mode 100644 index 0000000..065c8b8 --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Braintrust.JsonConverters +{ + /// + public sealed class PatchProjectAutomationConfigVariant2CredentialsVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type 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::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageConfigSortOrderNullable.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs similarity index 61% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageConfigSortOrderNullable.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs index 29c1f24..d4c6b82 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageConfigSortOrderNullable.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class EvalStatusPageConfigSortOrderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class PatchProjectAutomationConfigVariant2CredentialsVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.EvalStatusPageConfigSortOrder? Read( + public override global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type? 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 EvalStatusPageConfigSortOrderNullableJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.EvalStatusPageConfigSortOrderExtensions.ToEnum(stringValue); + return global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class EvalStatusPageConfigSortOrderNullableJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.EvalStatusPageConfigSortOrder)numValue; + return (global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.EvalStatusPageConfigSortOrder?); + return default(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class EvalStatusPageConfigSortOrderNullableJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.EvalStatusPageConfigSortOrder? value, + global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type? 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::Braintrust.EvalStatusPageConfigSortOrderExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsType.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs similarity index 79% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsType.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs index ddfa0f9..c0307a3 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsType.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class ProjectAutomationConfigVariant2CredentialsTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ProjectAutomationConfigVariant2CredentialsVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.ProjectAutomationConfigVariant2CredentialsType Read( + public override global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type 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 ProjectAutomationConfigVariant2CredentialsTypeJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.ProjectAutomationConfigVariant2CredentialsTypeExtensions.ToEnum(stringValue) ?? default; + return global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ProjectAutomationConfigVariant2CredentialsTypeJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.ProjectAutomationConfigVariant2CredentialsType)numValue; + return (global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.ProjectAutomationConfigVariant2CredentialsType); + return default(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ProjectAutomationConfigVariant2CredentialsTypeJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.ProjectAutomationConfigVariant2CredentialsType value, + global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Braintrust.ProjectAutomationConfigVariant2CredentialsTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs similarity index 80% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs index 31ca34b..8c50b67 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsTypeNullable.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class ProjectAutomationConfigVariant2CredentialsTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ProjectAutomationConfigVariant2CredentialsVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.ProjectAutomationConfigVariant2CredentialsType? Read( + public override global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type? 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 ProjectAutomationConfigVariant2CredentialsTypeNullableJsonCo var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.ProjectAutomationConfigVariant2CredentialsTypeExtensions.ToEnum(stringValue); + return global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ProjectAutomationConfigVariant2CredentialsTypeNullableJsonCo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.ProjectAutomationConfigVariant2CredentialsType)numValue; + return (global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.ProjectAutomationConfigVariant2CredentialsType?); + return default(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ProjectAutomationConfigVariant2CredentialsTypeNullableJsonCo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.ProjectAutomationConfigVariant2CredentialsType? value, + global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type? 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::Braintrust.ProjectAutomationConfigVariant2CredentialsTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageTheme.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs similarity index 59% rename from src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageTheme.g.cs rename to src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs index a9706d8..e30cf3f 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.EvalStatusPageTheme.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs @@ -3,10 +3,10 @@ namespace Braintrust.JsonConverters { /// - public sealed class EvalStatusPageThemeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ProjectAutomationConfigVariant2CredentialsVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Braintrust.EvalStatusPageTheme Read( + public override global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type 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 EvalStatusPageThemeJsonConverter : global::System.Text.Json. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Braintrust.EvalStatusPageThemeExtensions.ToEnum(stringValue) ?? default; + return global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class EvalStatusPageThemeJsonConverter : global::System.Text.Json. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Braintrust.EvalStatusPageTheme)numValue; + return (global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Braintrust.EvalStatusPageTheme); + return default(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class EvalStatusPageThemeJsonConverter : global::System.Text.Json. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Braintrust.EvalStatusPageTheme value, + global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Braintrust.EvalStatusPageThemeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs new file mode 100644 index 0000000..854be5d --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Braintrust.JsonConverters +{ + /// + public sealed class ProjectAutomationConfigVariant2CredentialsVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type? 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::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type? 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::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ViewOptions.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ViewOptions.g.cs index ce726fd..5fe800d 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ViewOptions.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonConverters.ViewOptions.g.cs @@ -50,6 +50,7 @@ public class ViewOptionsJsonConverter : global::System.Text.Json.Serialization.J var __score1 = 0; if (__jsonProps.Contains("chartAnnotations")) __score1++; if (__jsonProps.Contains("chartHeight")) __score1++; + if (__jsonProps.Contains("cluster")) __score1++; if (__jsonProps.Contains("columnOrder")) __score1++; if (__jsonProps.Contains("columnSizing")) __score1++; if (__jsonProps.Contains("columnVisibility")) __score1++; @@ -64,6 +65,7 @@ public class ViewOptionsJsonConverter : global::System.Text.Json.Serialization.J if (__jsonProps.Contains("symbolGrouping.value")) __score1++; if (__jsonProps.Contains("tallGroupRows")) __score1++; if (__jsonProps.Contains("timeRangeFilter")) __score1++; + if (__jsonProps.Contains("topicMapReportKey")) __score1++; if (__jsonProps.Contains("xAxis")) __score1++; if (__jsonProps.Contains("xAxis.type")) __score1++; if (__jsonProps.Contains("xAxis.value")) __score1++; diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContext.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContext.g.cs index 33cd9e4..e2577c8 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContext.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContext.g.cs @@ -257,18 +257,6 @@ namespace Braintrust typeof(global::Braintrust.JsonConverters.PermissionNullableJsonConverter), - typeof(global::Braintrust.JsonConverters.RetentionObjectTypeJsonConverter), - - typeof(global::Braintrust.JsonConverters.RetentionObjectTypeNullableJsonConverter), - - typeof(global::Braintrust.JsonConverters.TopicMapFunctionAutomationFunctionVariant2FunctionTypeJsonConverter), - - typeof(global::Braintrust.JsonConverters.TopicMapFunctionAutomationFunctionVariant2FunctionTypeNullableJsonConverter), - - typeof(global::Braintrust.JsonConverters.TopicMapFunctionAutomationFunctionVariant2GlobalTypeJsonConverter), - - typeof(global::Braintrust.JsonConverters.TopicMapFunctionAutomationFunctionVariant2GlobalTypeNullableJsonConverter), - typeof(global::Braintrust.JsonConverters.SpanScopeTypeJsonConverter), typeof(global::Braintrust.JsonConverters.SpanScopeTypeNullableJsonConverter), @@ -281,6 +269,18 @@ namespace Braintrust typeof(global::Braintrust.JsonConverters.GroupScopeTypeNullableJsonConverter), + typeof(global::Braintrust.JsonConverters.RetentionObjectTypeJsonConverter), + + typeof(global::Braintrust.JsonConverters.RetentionObjectTypeNullableJsonConverter), + + typeof(global::Braintrust.JsonConverters.TopicMapFunctionAutomationFunctionVariant2FunctionTypeJsonConverter), + + typeof(global::Braintrust.JsonConverters.TopicMapFunctionAutomationFunctionVariant2FunctionTypeNullableJsonConverter), + + typeof(global::Braintrust.JsonConverters.TopicMapFunctionAutomationFunctionVariant2GlobalTypeJsonConverter), + + typeof(global::Braintrust.JsonConverters.TopicMapFunctionAutomationFunctionVariant2GlobalTypeNullableJsonConverter), + typeof(global::Braintrust.JsonConverters.TopicAutomationDataScopeVariant1TypeJsonConverter), typeof(global::Braintrust.JsonConverters.TopicAutomationDataScopeVariant1TypeNullableJsonConverter), @@ -337,9 +337,13 @@ namespace Braintrust typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2FormatNullableJsonConverter), - typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsTypeJsonConverter), + typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1TypeJsonConverter), + + typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1TypeNullableJsonConverter), - typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsTypeNullableJsonConverter), + typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2TypeJsonConverter), + + typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2TypeNullableJsonConverter), typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant3EventTypeJsonConverter), @@ -389,9 +393,13 @@ namespace Braintrust typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2FormatNullableJsonConverter), - typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsTypeJsonConverter), + typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeJsonConverter), + + typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeNullableJsonConverter), + + typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeJsonConverter), - typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsTypeNullableJsonConverter), + typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeNullableJsonConverter), typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant3EventTypeJsonConverter), @@ -441,9 +449,13 @@ namespace Braintrust typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2FormatNullableJsonConverter), - typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsTypeJsonConverter), + typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeJsonConverter), - typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsTypeNullableJsonConverter), + typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeNullableJsonConverter), + + typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeJsonConverter), + + typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeNullableJsonConverter), typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant3EventTypeJsonConverter), @@ -469,14 +481,6 @@ namespace Braintrust typeof(global::Braintrust.JsonConverters.OnlineScoreConfigScorerVariant2GlobalTypeNullableJsonConverter), - typeof(global::Braintrust.JsonConverters.EvalStatusPageThemeJsonConverter), - - typeof(global::Braintrust.JsonConverters.EvalStatusPageThemeNullableJsonConverter), - - typeof(global::Braintrust.JsonConverters.EvalStatusPageConfigSortOrderJsonConverter), - - typeof(global::Braintrust.JsonConverters.EvalStatusPageConfigSortOrderNullableJsonConverter), - typeof(global::Braintrust.JsonConverters.CodeBundleRuntimeContextRuntimeJsonConverter), typeof(global::Braintrust.JsonConverters.CodeBundleRuntimeContextRuntimeNullableJsonConverter), @@ -849,6 +853,10 @@ namespace Braintrust typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), + typeof(global::Braintrust.JsonConverters.AnyOfJsonConverter), + + typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), + typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), @@ -857,6 +865,10 @@ namespace Braintrust typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), + typeof(global::Braintrust.JsonConverters.AnyOfJsonConverter), + + typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), + typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), @@ -865,6 +877,10 @@ namespace Braintrust typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), + typeof(global::Braintrust.JsonConverters.AnyOfJsonConverter), + + typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), + typeof(global::Braintrust.JsonConverters.OneOfJsonConverter), typeof(global::Braintrust.JsonConverters.AllOfJsonConverter?>), @@ -1003,8 +1019,11 @@ namespace Braintrust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.RepoInfo))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.Experiment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ExperimentInternalMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateExperiment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateExperimentInternalMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchExperiment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchExperimentInternalMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.InsertExperimentEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.InsertExperimentEventMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.InsertExperimentEventMetrics))] @@ -1179,6 +1198,12 @@ namespace Braintrust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.AclBatchUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.User))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.SpanScope))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.SpanScopeType), TypeInfoPropertyName = "SpanScopeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TraceScope))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TraceScopeType), TypeInfoPropertyName = "TraceScopeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GroupScope))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GroupScopeType), TypeInfoPropertyName = "GroupScopeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.RetentionObjectType), TypeInfoPropertyName = "RetentionObjectType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapFunctionAutomation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.AllOf?>), TypeInfoPropertyName = "TopicMapFunctionAutomationFunctionVariant2Global_31dc6848fbb9ed5d")] @@ -1187,12 +1212,6 @@ namespace Braintrust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapFunctionAutomationFunctionVariant2FunctionType), TypeInfoPropertyName = "TopicMapFunctionAutomationFunctionVariant2FunctionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapFunctionAutomationFunctionVariant2Global))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicMapFunctionAutomationFunctionVariant2GlobalType), TypeInfoPropertyName = "TopicMapFunctionAutomationFunctionVariant2GlobalType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.SpanScope))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.SpanScopeType), TypeInfoPropertyName = "SpanScopeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TraceScope))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TraceScopeType), TypeInfoPropertyName = "TraceScopeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GroupScope))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GroupScopeType), TypeInfoPropertyName = "GroupScopeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicAutomationDataScope), TypeInfoPropertyName = "TopicAutomationDataScope2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicAutomationDataScopeVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.TopicAutomationDataScopeVariant1Type), TypeInfoPropertyName = "TopicAutomationDataScopeVariant1Type2")] @@ -1232,8 +1251,11 @@ namespace Braintrust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3Type), TypeInfoPropertyName = "ProjectAutomationConfigVariant2ExportDefinitionVariant3Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant2Format), TypeInfoPropertyName = "ProjectAutomationConfigVariant2Format2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant2Credentials))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant2CredentialsType), TypeInfoPropertyName = "ProjectAutomationConfigVariant2CredentialsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.OneOf), TypeInfoPropertyName = "OneOfProjectAutomationConfigVariant2CredentialsVariant1ProjectAutomationConfigVariant2CredentialsVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type), TypeInfoPropertyName = "ProjectAutomationConfigVariant2CredentialsVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type), TypeInfoPropertyName = "ProjectAutomationConfigVariant2CredentialsVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant3EventType), TypeInfoPropertyName = "ProjectAutomationConfigVariant3EventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.ProjectAutomationConfigVariant4))] @@ -1262,8 +1284,11 @@ namespace Braintrust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3Type), TypeInfoPropertyName = "CreateProjectAutomationConfigVariant2ExportDefinitionVariant3Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant2Format), TypeInfoPropertyName = "CreateProjectAutomationConfigVariant2Format2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant2Credentials))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType), TypeInfoPropertyName = "CreateProjectAutomationConfigVariant2CredentialsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.OneOf), TypeInfoPropertyName = "OneOfCreateProjectAutomationConfigVariant2CredentialsVariant1CreateProjectAutomationConfigVariant2CredentialsVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type), TypeInfoPropertyName = "CreateProjectAutomationConfigVariant2CredentialsVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type), TypeInfoPropertyName = "CreateProjectAutomationConfigVariant2CredentialsVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant3EventType), TypeInfoPropertyName = "CreateProjectAutomationConfigVariant3EventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateProjectAutomationConfigVariant4))] @@ -1292,8 +1317,11 @@ namespace Braintrust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3Type), TypeInfoPropertyName = "PatchProjectAutomationConfigVariant2ExportDefinitionVariant3Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant2Format), TypeInfoPropertyName = "PatchProjectAutomationConfigVariant2Format2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant2Credentials))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType), TypeInfoPropertyName = "PatchProjectAutomationConfigVariant2CredentialsType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.OneOf), TypeInfoPropertyName = "OneOfPatchProjectAutomationConfigVariant2CredentialsVariant1PatchProjectAutomationConfigVariant2CredentialsVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type), TypeInfoPropertyName = "PatchProjectAutomationConfigVariant2CredentialsVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type), TypeInfoPropertyName = "PatchProjectAutomationConfigVariant2CredentialsVariant2Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant3EventType), TypeInfoPropertyName = "PatchProjectAutomationConfigVariant3EventType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchProjectAutomationConfigVariant4))] @@ -1324,12 +1352,6 @@ namespace Braintrust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.SpanIFrame))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateSpanIFrame))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchSpanIFrame))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.EvalStatusPageTheme), TypeInfoPropertyName = "EvalStatusPageTheme2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.EvalStatusPageConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.EvalStatusPageConfigSortOrder), TypeInfoPropertyName = "EvalStatusPageConfigSortOrder2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.EvalStatusPage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CreateEvalStatusPage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.PatchEvalStatusPage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CodeBundle))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CodeBundleRuntimeContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.CodeBundleRuntimeContextRuntime), TypeInfoPropertyName = "CodeBundleRuntimeContextRuntime2")] @@ -1614,8 +1636,6 @@ namespace Braintrust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GetSpanIframeResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GetEvalStatusPageResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GetFunctionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Braintrust.GetViewResponse))] @@ -1704,7 +1724,6 @@ namespace Braintrust [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContextTypes.g.cs b/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContextTypes.g.cs index f8451e7..f249c47 100644 --- a/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContextTypes.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.JsonSerializerContextTypes.g.cs @@ -352,2475 +352,2483 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Braintrust.CreateExperiment? Type81 { get; set; } + public global::Braintrust.ExperimentInternalMetadata? Type81 { get; set; } /// /// /// - public global::Braintrust.PatchExperiment? Type82 { get; set; } + public global::Braintrust.CreateExperiment? Type82 { get; set; } /// /// /// - public global::Braintrust.InsertExperimentEvent? Type83 { get; set; } + public global::Braintrust.CreateExperimentInternalMetadata? Type83 { get; set; } /// /// /// - public global::Braintrust.InsertExperimentEventMetadata? Type84 { get; set; } + public global::Braintrust.PatchExperiment? Type84 { get; set; } /// /// /// - public global::Braintrust.InsertExperimentEventMetrics? Type85 { get; set; } + public global::Braintrust.PatchExperimentInternalMetadata? Type85 { get; set; } /// /// /// - public global::Braintrust.InsertExperimentEventContext? Type86 { get; set; } + public global::Braintrust.InsertExperimentEvent? Type86 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type87 { get; set; } + public global::Braintrust.InsertExperimentEventMetadata? Type87 { get; set; } /// /// /// - public global::Braintrust.InsertExperimentEventArrayDeleteItem? Type88 { get; set; } + public global::Braintrust.InsertExperimentEventMetrics? Type88 { get; set; } /// /// /// - public global::Braintrust.InsertExperimentEventRequest? Type89 { get; set; } + public global::Braintrust.InsertExperimentEventContext? Type89 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type90 { get; set; } + public global::System.Collections.Generic.IList? Type90 { get; set; } /// /// /// - public global::Braintrust.ExperimentEvent? Type91 { get; set; } + public global::Braintrust.InsertExperimentEventArrayDeleteItem? Type91 { get; set; } /// /// /// - public global::Braintrust.ExperimentEventMetadata? Type92 { get; set; } + public global::Braintrust.InsertExperimentEventRequest? Type92 { get; set; } /// /// /// - public global::Braintrust.ExperimentEventMetrics? Type93 { get; set; } + public global::System.Collections.Generic.IList? Type93 { get; set; } /// /// /// - public global::Braintrust.ExperimentEventContext? Type94 { get; set; } + public global::Braintrust.ExperimentEvent? Type94 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type95 { get; set; } + public global::Braintrust.ExperimentEventMetadata? Type95 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type96 { get; set; } + public global::Braintrust.ExperimentEventMetrics? Type96 { get; set; } /// /// /// - public global::Braintrust.ExperimentEventClassification? Type97 { get; set; } + public global::Braintrust.ExperimentEventContext? Type97 { get; set; } /// /// /// - public global::Braintrust.FetchExperimentEventsResponse? Type98 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::System.Collections.Generic.IList? Type99 { get; set; } /// /// /// - public global::Braintrust.FeedbackExperimentItem? Type100 { get; set; } + public global::Braintrust.ExperimentEventClassification? Type100 { get; set; } /// /// /// - public global::Braintrust.FeedbackExperimentItemSource? Type101 { get; set; } + public global::Braintrust.FetchExperimentEventsResponse? Type101 { get; set; } /// /// /// - public global::Braintrust.FeedbackExperimentEventRequest? Type102 { get; set; } + public global::System.Collections.Generic.IList? Type102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type103 { get; set; } + public global::Braintrust.FeedbackExperimentItem? Type103 { get; set; } /// /// /// - public global::Braintrust.ScoreSummary? Type104 { get; set; } + public global::Braintrust.FeedbackExperimentItemSource? Type104 { get; set; } /// /// /// - public global::Braintrust.MetricSummary? Type105 { get; set; } + public global::Braintrust.FeedbackExperimentEventRequest? Type105 { get; set; } /// /// /// - public global::Braintrust.SummarizeExperimentResponse? Type106 { get; set; } + public global::System.Collections.Generic.IList? Type106 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type107 { get; set; } + public global::Braintrust.ScoreSummary? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type108 { get; set; } + public global::Braintrust.MetricSummary? Type108 { get; set; } /// /// /// - public global::Braintrust.Dataset? Type109 { get; set; } + public global::Braintrust.SummarizeExperimentResponse? Type109 { get; set; } /// /// /// - public global::Braintrust.CreateDataset? Type110 { get; set; } + public global::System.Collections.Generic.Dictionary? Type110 { get; set; } /// /// /// - public global::Braintrust.PatchDataset? Type111 { get; set; } + public global::System.Collections.Generic.Dictionary? Type111 { get; set; } /// /// /// - public global::Braintrust.InsertDatasetEvent? Type112 { get; set; } + public global::Braintrust.Dataset? Type112 { get; set; } /// /// /// - public global::Braintrust.InsertDatasetEventMetadata? Type113 { get; set; } + public global::Braintrust.CreateDataset? Type113 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type114 { get; set; } + public global::Braintrust.PatchDataset? Type114 { get; set; } /// /// /// - public global::Braintrust.InsertDatasetEventArrayDeleteItem? Type115 { get; set; } + public global::Braintrust.InsertDatasetEvent? Type115 { get; set; } /// /// /// - public global::Braintrust.InsertDatasetEventRequest? Type116 { get; set; } + public global::Braintrust.InsertDatasetEventMetadata? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type117 { get; set; } + public global::System.Collections.Generic.IList? Type117 { get; set; } /// /// /// - public global::Braintrust.DatasetEvent? Type118 { get; set; } + public global::Braintrust.InsertDatasetEventArrayDeleteItem? Type118 { get; set; } /// /// /// - public global::Braintrust.DatasetEventMetadata? Type119 { get; set; } + public global::Braintrust.InsertDatasetEventRequest? Type119 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type120 { get; set; } + public global::System.Collections.Generic.IList? Type120 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type121 { get; set; } + public global::Braintrust.DatasetEvent? Type121 { get; set; } /// /// /// - public global::Braintrust.DatasetEventClassification? Type122 { get; set; } + public global::Braintrust.DatasetEventMetadata? Type122 { get; set; } /// /// /// - public global::Braintrust.FetchDatasetEventsResponse? Type123 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type123 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type124 { get; set; } + public global::System.Collections.Generic.IList? Type124 { get; set; } /// /// /// - public global::Braintrust.FeedbackDatasetItem? Type125 { get; set; } + public global::Braintrust.DatasetEventClassification? Type125 { get; set; } /// /// /// - public global::Braintrust.FeedbackDatasetItemSource? Type126 { get; set; } + public global::Braintrust.FetchDatasetEventsResponse? Type126 { get; set; } /// /// /// - public global::Braintrust.FeedbackDatasetEventRequest? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type128 { get; set; } + public global::Braintrust.FeedbackDatasetItem? Type128 { get; set; } /// /// /// - public global::Braintrust.DataSummary? Type129 { get; set; } + public global::Braintrust.FeedbackDatasetItemSource? Type129 { get; set; } /// /// /// - public global::Braintrust.SummarizeDatasetResponse? Type130 { get; set; } + public global::Braintrust.FeedbackDatasetEventRequest? Type130 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartText? Type131 { get; set; } + public global::System.Collections.Generic.IList? Type131 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartTextType? Type132 { get; set; } + public global::Braintrust.DataSummary? Type132 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartTextCacheControl? Type133 { get; set; } + public global::Braintrust.SummarizeDatasetResponse? Type133 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartTextCacheControlType? Type134 { get; set; } + public global::Braintrust.ChatCompletionContentPartText? Type134 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartTextWithTitle? Type135 { get; set; } + public global::Braintrust.ChatCompletionContentPartTextType? Type135 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartTextWithTitleType? Type136 { get; set; } + public global::Braintrust.ChatCompletionContentPartTextCacheControl? Type136 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartTextWithTitleCacheControl? Type137 { get; set; } + public global::Braintrust.ChatCompletionContentPartTextCacheControlType? Type137 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartTextWithTitleCacheControlType? Type138 { get; set; } + public global::Braintrust.ChatCompletionContentPartTextWithTitle? Type138 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartImageWithTitle? Type139 { get; set; } + public global::Braintrust.ChatCompletionContentPartTextWithTitleType? Type139 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartImageWithTitleImageUrl? Type140 { get; set; } + public global::Braintrust.ChatCompletionContentPartTextWithTitleCacheControl? Type140 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartImageWithTitleImageUrlDetailAuto? Type141 { get; set; } + public global::Braintrust.ChatCompletionContentPartTextWithTitleCacheControlType? Type141 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartImageWithTitleImageUrlDetailLow? Type142 { get; set; } + public global::Braintrust.ChatCompletionContentPartImageWithTitle? Type142 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartImageWithTitleImageUrlDetailHigh? Type143 { get; set; } + public global::Braintrust.ChatCompletionContentPartImageWithTitleImageUrl? Type143 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartImageWithTitleType? Type144 { get; set; } + public global::Braintrust.ChatCompletionContentPartImageWithTitleImageUrlDetailAuto? Type144 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartFileFile? Type145 { get; set; } + public global::Braintrust.ChatCompletionContentPartImageWithTitleImageUrlDetailLow? Type145 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartFileWithTitle? Type146 { get; set; } + public global::Braintrust.ChatCompletionContentPartImageWithTitleImageUrlDetailHigh? Type146 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPartFileWithTitleType? Type147 { get; set; } + public global::Braintrust.ChatCompletionContentPartImageWithTitleType? Type147 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionContentPart? Type148 { get; set; } + public global::Braintrust.ChatCompletionContentPartFileFile? Type148 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageToolCall? Type149 { get; set; } + public global::Braintrust.ChatCompletionContentPartFileWithTitle? Type149 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageToolCallFunction? Type150 { get; set; } + public global::Braintrust.ChatCompletionContentPartFileWithTitleType? Type150 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageToolCallType? Type151 { get; set; } + public global::Braintrust.ChatCompletionContentPart? Type151 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageReasoning? Type152 { get; set; } + public global::Braintrust.ChatCompletionMessageToolCall? Type152 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParam? Type153 { get; set; } + public global::Braintrust.ChatCompletionMessageToolCallFunction? Type153 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamSystem? Type154 { get; set; } + public global::Braintrust.ChatCompletionMessageToolCallType? Type154 { get; set; } /// /// /// - public global::Braintrust.AnyOf>? Type155 { get; set; } + public global::Braintrust.ChatCompletionMessageReasoning? Type155 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type156 { get; set; } + public global::Braintrust.ChatCompletionMessageParam? Type156 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamSystemRole? Type157 { get; set; } + public global::Braintrust.ChatCompletionMessageParamSystem? Type157 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamUser? Type158 { get; set; } + public global::Braintrust.AnyOf>? Type158 { get; set; } /// /// /// - public global::Braintrust.AnyOf>? Type159 { get; set; } + public global::System.Collections.Generic.IList? Type159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type160 { get; set; } + public global::Braintrust.ChatCompletionMessageParamSystemRole? Type160 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamUserRole? Type161 { get; set; } + public global::Braintrust.ChatCompletionMessageParamUser? Type161 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamAssistant? Type162 { get; set; } + public global::Braintrust.AnyOf>? Type162 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamAssistantRole? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::Braintrust.AnyOf, object>? Type164 { get; set; } + public global::Braintrust.ChatCompletionMessageParamUserRole? Type164 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamAssistantFunctionCall? Type165 { get; set; } + public global::Braintrust.ChatCompletionMessageParamAssistant? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type166 { get; set; } + public global::Braintrust.ChatCompletionMessageParamAssistantRole? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::Braintrust.AnyOf, object>? Type167 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamTool? Type168 { get; set; } + public global::Braintrust.ChatCompletionMessageParamAssistantFunctionCall? Type168 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamToolRole? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamFunction? Type170 { get; set; } + public global::System.Collections.Generic.IList? Type170 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamFunctionRole? Type171 { get; set; } + public global::Braintrust.ChatCompletionMessageParamTool? Type171 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamDeveloper? Type172 { get; set; } + public global::Braintrust.ChatCompletionMessageParamToolRole? Type172 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamDeveloperRole? Type173 { get; set; } + public global::Braintrust.ChatCompletionMessageParamFunction? Type173 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamFallback? Type174 { get; set; } + public global::Braintrust.ChatCompletionMessageParamFunctionRole? Type174 { get; set; } /// /// /// - public global::Braintrust.ChatCompletionMessageParamFallbackRole? Type175 { get; set; } + public global::Braintrust.ChatCompletionMessageParamDeveloper? Type175 { get; set; } /// /// /// - public global::Braintrust.PromptBlockDataNullish? Type176 { get; set; } + public global::Braintrust.ChatCompletionMessageParamDeveloperRole? Type176 { get; set; } /// /// /// - public global::Braintrust.PromptBlockDataNullishChat? Type177 { get; set; } + public global::Braintrust.ChatCompletionMessageParamFallback? Type177 { get; set; } /// /// /// - public global::Braintrust.PromptBlockDataNullishChatType? Type178 { get; set; } + public global::Braintrust.ChatCompletionMessageParamFallbackRole? Type178 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type179 { get; set; } + public global::Braintrust.PromptBlockDataNullish? Type179 { get; set; } /// /// /// - public global::Braintrust.PromptBlockDataNullishCompletion? Type180 { get; set; } + public global::Braintrust.PromptBlockDataNullishChat? Type180 { get; set; } /// /// /// - public global::Braintrust.PromptBlockDataNullishCompletionType? Type181 { get; set; } + public global::Braintrust.PromptBlockDataNullishChatType? Type181 { get; set; } /// /// /// - public global::Braintrust.ResponseFormatJsonSchema? Type182 { get; set; } + public global::System.Collections.Generic.IList? Type182 { get; set; } /// /// /// - public global::Braintrust.AnyOf, string>? Type183 { get; set; } + public global::Braintrust.PromptBlockDataNullishCompletion? Type183 { get; set; } /// /// /// - public global::Braintrust.ResponseFormatNullish? Type184 { get; set; } + public global::Braintrust.PromptBlockDataNullishCompletionType? Type184 { get; set; } /// /// /// - public global::Braintrust.ResponseFormatNullishJsonObject? Type185 { get; set; } + public global::Braintrust.ResponseFormatJsonSchema? Type185 { get; set; } /// /// /// - public global::Braintrust.ResponseFormatNullishJsonObjectType? Type186 { get; set; } + public global::Braintrust.AnyOf, string>? Type186 { get; set; } /// /// /// - public global::Braintrust.ResponseFormatNullishJsonSchema? Type187 { get; set; } + public global::Braintrust.ResponseFormatNullish? Type187 { get; set; } /// /// /// - public global::Braintrust.ResponseFormatNullishJsonSchemaType? Type188 { get; set; } + public global::Braintrust.ResponseFormatNullishJsonObject? Type188 { get; set; } /// /// /// - public global::Braintrust.ResponseFormatNullishText? Type189 { get; set; } + public global::Braintrust.ResponseFormatNullishJsonObjectType? Type189 { get; set; } /// /// /// - public global::Braintrust.ResponseFormatNullishTextType? Type190 { get; set; } + public global::Braintrust.ResponseFormatNullishJsonSchema? Type190 { get; set; } /// /// /// - public global::Braintrust.ModelParams? Type191 { get; set; } + public global::Braintrust.ResponseFormatNullishJsonSchemaType? Type191 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParams? Type192 { get; set; } + public global::Braintrust.ResponseFormatNullishText? Type192 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceAuto? Type193 { get; set; } + public global::Braintrust.ResponseFormatNullishTextType? Type193 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceNone? Type194 { get; set; } + public global::Braintrust.ModelParams? Type194 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceRequired? Type195 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParams? Type195 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceFunction? Type196 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceAuto? Type196 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceFunctionType? Type197 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceNone? Type197 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceFunctionFunction? Type198 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceRequired? Type198 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsFunctionCallAuto? Type199 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceFunction? Type199 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsFunctionCallNone? Type200 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceFunctionType? Type200 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsFunctionCallFunction? Type201 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsToolChoiceFunctionFunction? Type201 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsReasoningEffort? Type202 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsFunctionCallAuto? Type202 { get; set; } /// /// /// - public global::Braintrust.ModelParamsOpenAIModelParamsVerbosity? Type203 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsFunctionCallNone? Type203 { get; set; } /// /// /// - public global::Braintrust.ModelParamsAnthropicModelParams? Type204 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsFunctionCallFunction? Type204 { get; set; } /// /// /// - public global::Braintrust.ModelParamsGoogleModelParams? Type205 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsReasoningEffort? Type205 { get; set; } /// /// /// - public global::Braintrust.ModelParamsWindowAIModelParams? Type206 { get; set; } + public global::Braintrust.ModelParamsOpenAIModelParamsVerbosity? Type206 { get; set; } /// /// /// - public global::Braintrust.ModelParamsJsCompletionParams? Type207 { get; set; } + public global::Braintrust.ModelParamsAnthropicModelParams? Type207 { get; set; } /// /// /// - public global::Braintrust.PromptOptionsNullish? Type208 { get; set; } + public global::Braintrust.ModelParamsGoogleModelParams? Type208 { get; set; } /// /// /// - public global::Braintrust.PromptParserNullish? Type209 { get; set; } + public global::Braintrust.ModelParamsWindowAIModelParams? Type209 { get; set; } /// /// /// - public global::Braintrust.PromptParserNullishType? Type210 { get; set; } + public global::Braintrust.ModelParamsJsCompletionParams? Type210 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type211 { get; set; } + public global::Braintrust.PromptOptionsNullish? Type211 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullish? Type212 { get; set; } + public global::Braintrust.PromptParserNullish? Type212 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type213 { get; set; } + public global::Braintrust.PromptParserNullishType? Type213 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishToolFunctionVariant2Function? Type214 { get; set; } + public global::System.Collections.Generic.Dictionary? Type214 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishToolFunctionVariant2FunctionType? Type215 { get; set; } + public global::Braintrust.PromptDataNullish? Type215 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishToolFunctionVariant2Global? Type216 { get; set; } + public global::Braintrust.AnyOf? Type216 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishToolFunctionVariant2GlobalType? Type217 { get; set; } + public global::Braintrust.PromptDataNullishToolFunctionVariant2Function? Type217 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishTemplateFormat? Type218 { get; set; } + public global::Braintrust.PromptDataNullishToolFunctionVariant2FunctionType? Type218 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitions? Type219 { get; set; } + public global::Braintrust.PromptDataNullishToolFunctionVariant2Global? Type219 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitionsType? Type220 { get; set; } + public global::Braintrust.PromptDataNullishToolFunctionVariant2GlobalType? Type220 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServers? Type221 { get; set; } + public global::Braintrust.PromptDataNullishTemplateFormat? Type221 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServersType? Type222 { get; set; } + public global::Braintrust.PromptDataNullishMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitions? Type222 { get; set; } /// /// /// - public global::Braintrust.PromptDataNullishOrigin? Type223 { get; set; } + public global::Braintrust.PromptDataNullishMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitionsType? Type223 { get; set; } /// /// /// - public global::Braintrust.FunctionTypeEnumNullish? Type224 { get; set; } + public global::Braintrust.PromptDataNullishMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServers? Type224 { get; set; } /// /// /// - public global::Braintrust.Prompt? Type225 { get; set; } + public global::Braintrust.PromptDataNullishMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServersType? Type225 { get; set; } /// /// /// - public global::Braintrust.PromptLogId? Type226 { get; set; } + public global::Braintrust.PromptDataNullishOrigin? Type226 { get; set; } /// /// /// - public global::Braintrust.CreatePrompt? Type227 { get; set; } + public global::Braintrust.FunctionTypeEnumNullish? Type227 { get; set; } /// /// /// - public global::Braintrust.PatchPrompt? Type228 { get; set; } + public global::Braintrust.Prompt? Type228 { get; set; } /// /// /// - public global::Braintrust.Permission? Type229 { get; set; } + public global::Braintrust.PromptLogId? Type229 { get; set; } /// /// /// - public global::Braintrust.Role? Type230 { get; set; } + public global::Braintrust.CreatePrompt? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::Braintrust.PatchPrompt? Type231 { get; set; } /// /// /// - public global::Braintrust.RoleMemberPermission? Type232 { get; set; } + public global::Braintrust.Permission? Type232 { get; set; } /// /// /// - public global::Braintrust.CreateRole? Type233 { get; set; } + public global::Braintrust.Role? Type233 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type234 { get; set; } + public global::System.Collections.Generic.IList? Type234 { get; set; } /// /// /// - public global::Braintrust.CreateRoleMemberPermission? Type235 { get; set; } + public global::Braintrust.RoleMemberPermission? Type235 { get; set; } /// /// /// - public global::Braintrust.PatchRole? Type236 { get; set; } + public global::Braintrust.CreateRole? Type236 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type237 { get; set; } + public global::System.Collections.Generic.IList? Type237 { get; set; } /// /// /// - public global::Braintrust.PatchRoleAddMemberPermission? Type238 { get; set; } + public global::Braintrust.CreateRoleMemberPermission? Type238 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type239 { get; set; } + public global::Braintrust.PatchRole? Type239 { get; set; } /// /// /// - public global::Braintrust.PatchRoleRemoveMemberPermission? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type240 { get; set; } /// /// /// - public global::Braintrust.Group? Type241 { get; set; } + public global::Braintrust.PatchRoleAddMemberPermission? Type241 { get; set; } /// /// /// - public global::Braintrust.CreateGroup? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::Braintrust.PatchGroup? Type243 { get; set; } + public global::Braintrust.PatchRoleRemoveMemberPermission? Type243 { get; set; } /// /// /// - public global::Braintrust.Acl? Type244 { get; set; } + public global::Braintrust.Group? Type244 { get; set; } /// /// /// - public global::Braintrust.AclItem? Type245 { get; set; } + public global::Braintrust.CreateGroup? Type245 { get; set; } /// /// /// - public global::Braintrust.AclBatchUpdateResponse? Type246 { get; set; } + public global::Braintrust.PatchGroup? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::Braintrust.Acl? Type247 { get; set; } /// /// /// - public global::Braintrust.AclBatchUpdateRequest? Type248 { get; set; } + public global::Braintrust.AclItem? Type248 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type249 { get; set; } + public global::Braintrust.AclBatchUpdateResponse? Type249 { get; set; } /// /// /// - public global::Braintrust.User? Type250 { get; set; } + public global::System.Collections.Generic.IList? Type250 { get; set; } /// /// /// - public global::Braintrust.RetentionObjectType? Type251 { get; set; } + public global::Braintrust.AclBatchUpdateRequest? Type251 { get; set; } /// /// /// - public global::Braintrust.TopicMapFunctionAutomation? Type252 { get; set; } + public global::System.Collections.Generic.IList? Type252 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type253 { get; set; } + public global::Braintrust.User? Type253 { get; set; } /// /// /// - public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2Function? Type254 { get; set; } + public global::Braintrust.SpanScope? Type254 { get; set; } /// /// /// - public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2FunctionType? Type255 { get; set; } + public global::Braintrust.SpanScopeType? Type255 { get; set; } /// /// /// - public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2Global? Type256 { get; set; } + public global::Braintrust.TraceScope? Type256 { get; set; } /// /// /// - public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2GlobalType? Type257 { get; set; } + public global::Braintrust.TraceScopeType? Type257 { get; set; } /// /// /// - public global::Braintrust.SpanScope? Type258 { get; set; } + public global::Braintrust.GroupScope? Type258 { get; set; } /// /// /// - public global::Braintrust.SpanScopeType? Type259 { get; set; } + public global::Braintrust.GroupScopeType? Type259 { get; set; } /// /// /// - public global::Braintrust.TraceScope? Type260 { get; set; } + public global::Braintrust.RetentionObjectType? Type260 { get; set; } /// /// /// - public global::Braintrust.TraceScopeType? Type261 { get; set; } + public global::Braintrust.TopicMapFunctionAutomation? Type261 { get; set; } /// /// /// - public global::Braintrust.GroupScope? Type262 { get; set; } + public global::Braintrust.AnyOf? Type262 { get; set; } /// /// /// - public global::Braintrust.GroupScopeType? Type263 { get; set; } + public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2Function? Type263 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationDataScope? Type264 { get; set; } + public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2FunctionType? Type264 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationDataScopeVariant1? Type265 { get; set; } + public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2Global? Type265 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationDataScopeVariant1Type? Type266 { get; set; } + public global::Braintrust.TopicMapFunctionAutomationFunctionVariant2GlobalType? Type266 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationDataScopeVariant2? Type267 { get; set; } + public global::Braintrust.TopicAutomationDataScope? Type267 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationDataScopeVariant2Type? Type268 { get; set; } + public global::Braintrust.TopicAutomationDataScopeVariant1? Type268 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationDataScopeVariant3? Type269 { get; set; } + public global::Braintrust.TopicAutomationDataScopeVariant1Type? Type269 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationDataScopeVariant3Type? Type270 { get; set; } + public global::Braintrust.TopicAutomationDataScopeVariant2? Type270 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationConfig? Type271 { get; set; } + public global::Braintrust.TopicAutomationDataScopeVariant2Type? Type271 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationConfigEventType? Type272 { get; set; } + public global::Braintrust.TopicAutomationDataScopeVariant3? Type272 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type273 { get; set; } + public global::Braintrust.TopicAutomationDataScopeVariant3Type? Type273 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2Function? Type274 { get; set; } + public global::Braintrust.TopicAutomationConfig? Type274 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2FunctionType? Type275 { get; set; } + public global::Braintrust.TopicAutomationConfigEventType? Type275 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2Global? Type276 { get; set; } + public global::Braintrust.AnyOf? Type276 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2GlobalType? Type277 { get; set; } + public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2Function? Type277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type278 { get; set; } + public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2FunctionType? Type278 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type279 { get; set; } + public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2Global? Type279 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type280 { get; set; } + public global::Braintrust.TopicAutomationConfigFacetFunctionVariant2GlobalType? Type280 { get; set; } /// /// /// - public global::Braintrust.TopicAutomationConfigBackfillTimeRange? Type281 { get; set; } + public global::System.Collections.Generic.IList? Type281 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomation? Type282 { get; set; } + public global::Braintrust.AnyOf? Type282 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant1? Type283 { get; set; } + public global::Braintrust.AnyOf? Type283 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant1EventType? Type284 { get; set; } + public global::Braintrust.TopicAutomationConfigBackfillTimeRange? Type284 { get; set; } /// /// /// - public global::Braintrust.OneOf? Type285 { get; set; } + public global::Braintrust.ProjectAutomation? Type285 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant1? Type286 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant1? Type286 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant1Type? Type287 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant1EventType? Type287 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant2? Type288 { get; set; } + public global::Braintrust.OneOf? Type288 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant2Type? Type289 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant1? Type289 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2? Type290 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant1Type? Type290 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2EventType? Type291 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant2? Type291 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant1? Type292 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant1ActionVariant2Type? Type292 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type293 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2? Type293 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant2? Type294 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2EventType? Type294 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type295 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant1? Type295 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3? Type296 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type296 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type297 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant2? Type297 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2Format? Type298 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type298 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2Credentials? Type299 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3? Type299 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant2CredentialsType? Type300 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type300 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant3? Type301 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2Format? Type301 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant3EventType? Type302 { get; set; } + public global::Braintrust.OneOf? Type302 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant4? Type303 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1? Type303 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant4EventType? Type304 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type? Type304 { get; set; } /// /// /// - public global::Braintrust.OneOf? Type305 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2? Type305 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant1? Type306 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type? Type306 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant1Type? Type307 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant3? Type307 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant2? Type308 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant3EventType? Type308 { get; set; } /// /// /// - public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant2Type? Type309 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant4? Type309 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomation? Type310 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant4EventType? Type310 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant1? Type311 { get; set; } + public global::Braintrust.OneOf? Type311 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant1EventType? Type312 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant1? Type312 { get; set; } /// /// /// - public global::Braintrust.OneOf? Type313 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant1Type? Type313 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant1? Type314 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant2? Type314 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant1Type? Type315 { get; set; } + public global::Braintrust.ProjectAutomationConfigVariant4ActionVariant2Type? Type315 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant2? Type316 { get; set; } + public global::Braintrust.CreateProjectAutomation? Type316 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant2Type? Type317 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant1? Type317 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2? Type318 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant1EventType? Type318 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2EventType? Type319 { get; set; } + public global::Braintrust.OneOf? Type319 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant1? Type320 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant1? Type320 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type321 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant1Type? Type321 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant2? Type322 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant2? Type322 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type323 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant1ActionVariant2Type? Type323 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3? Type324 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2? Type324 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type325 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2EventType? Type325 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2Format? Type326 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant1? Type326 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2Credentials? Type327 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type327 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType? Type328 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant2? Type328 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant3? Type329 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type329 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant3EventType? Type330 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3? Type330 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant4? Type331 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type331 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant4EventType? Type332 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2Format? Type332 { get; set; } /// /// /// - public global::Braintrust.OneOf? Type333 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1? Type333 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant1? Type334 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type? Type334 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant1Type? Type335 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2? Type335 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant2? Type336 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type? Type336 { get; set; } /// /// /// - public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant2Type? Type337 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant3? Type337 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomation? Type338 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant3EventType? Type338 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant1? Type339 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant4? Type339 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant1EventType? Type340 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant4EventType? Type340 { get; set; } /// /// /// - public global::Braintrust.OneOf? Type341 { get; set; } + public global::Braintrust.OneOf? Type341 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant1? Type342 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant1? Type342 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant1Type? Type343 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant1Type? Type343 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant2? Type344 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant2? Type344 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant2Type? Type345 { get; set; } + public global::Braintrust.CreateProjectAutomationConfigVariant4ActionVariant2Type? Type345 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2? Type346 { get; set; } + public global::Braintrust.PatchProjectAutomation? Type346 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2EventType? Type347 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant1? Type347 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant1? Type348 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant1EventType? Type348 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type349 { get; set; } + public global::Braintrust.OneOf? Type349 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant2? Type350 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant1? Type350 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type351 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant1Type? Type351 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3? Type352 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant2? Type352 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type353 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant1ActionVariant2Type? Type353 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2Format? Type354 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2? Type354 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2Credentials? Type355 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2EventType? Type355 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType? Type356 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant1? Type356 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant3? Type357 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant1Type? Type357 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant3EventType? Type358 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant2? Type358 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant4? Type359 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant2Type? Type359 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant4EventType? Type360 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3? Type360 { get; set; } /// /// /// - public global::Braintrust.OneOf? Type361 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2ExportDefinitionVariant3Type? Type361 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant1? Type362 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2Format? Type362 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant1Type? Type363 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1? Type363 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant2? Type364 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type? Type364 { get; set; } /// /// /// - public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant2Type? Type365 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2? Type365 { get; set; } /// /// /// - public global::Braintrust.ProjectScoreCategory? Type366 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type? Type366 { get; set; } /// /// /// - public global::Braintrust.ProjectScoreCategories? Type367 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant3? Type367 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type368 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant3EventType? Type368 { get; set; } /// /// /// - public global::Braintrust.OnlineScoreConfig? Type369 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant4? Type369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>>? Type370 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant4EventType? Type370 { get; set; } /// /// /// - public global::Braintrust.AllOf?>? Type371 { get; set; } + public global::Braintrust.OneOf? Type371 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type372 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant1? Type372 { get; set; } /// /// /// - public global::Braintrust.OnlineScoreConfigScorerVariant2Function? Type373 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant1Type? Type373 { get; set; } /// /// /// - public global::Braintrust.OnlineScoreConfigScorerVariant2FunctionType? Type374 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant2? Type374 { get; set; } /// /// /// - public global::Braintrust.OnlineScoreConfigScorerVariant2Global? Type375 { get; set; } + public global::Braintrust.PatchProjectAutomationConfigVariant4ActionVariant2Type? Type375 { get; set; } /// /// /// - public global::Braintrust.OnlineScoreConfigScorerVariant2GlobalType? Type376 { get; set; } + public global::Braintrust.ProjectScoreCategory? Type376 { get; set; } /// /// /// - public global::Braintrust.ProjectScoreConfig? Type377 { get; set; } + public global::Braintrust.ProjectScoreCategories? Type377 { get; set; } /// /// /// - public global::Braintrust.ProjectScore? Type378 { get; set; } + public global::System.Collections.Generic.IList? Type378 { get; set; } /// /// /// - public global::Braintrust.CreateProjectScore? Type379 { get; set; } + public global::Braintrust.OnlineScoreConfig? Type379 { get; set; } /// /// /// - public global::Braintrust.PatchProjectScore? Type380 { get; set; } + public global::System.Collections.Generic.IList?>>? Type380 { get; set; } /// /// /// - public global::Braintrust.ProjectTag? Type381 { get; set; } + public global::Braintrust.AllOf?>? Type381 { get; set; } /// /// /// - public global::Braintrust.CreateProjectTag? Type382 { get; set; } + public global::Braintrust.AnyOf? Type382 { get; set; } /// /// /// - public global::Braintrust.PatchProjectTag? Type383 { get; set; } + public global::Braintrust.OnlineScoreConfigScorerVariant2Function? Type383 { get; set; } /// /// /// - public global::Braintrust.SpanIFrame? Type384 { get; set; } + public global::Braintrust.OnlineScoreConfigScorerVariant2FunctionType? Type384 { get; set; } /// /// /// - public global::Braintrust.CreateSpanIFrame? Type385 { get; set; } + public global::Braintrust.OnlineScoreConfigScorerVariant2Global? Type385 { get; set; } /// /// /// - public global::Braintrust.PatchSpanIFrame? Type386 { get; set; } + public global::Braintrust.OnlineScoreConfigScorerVariant2GlobalType? Type386 { get; set; } /// /// /// - public global::Braintrust.EvalStatusPageTheme? Type387 { get; set; } + public global::Braintrust.ProjectScoreConfig? Type387 { get; set; } /// /// /// - public global::Braintrust.EvalStatusPageConfig? Type388 { get; set; } + public global::Braintrust.ProjectScore? Type388 { get; set; } /// /// /// - public global::Braintrust.EvalStatusPageConfigSortOrder? Type389 { get; set; } + public global::Braintrust.CreateProjectScore? Type389 { get; set; } /// /// /// - public global::Braintrust.EvalStatusPage? Type390 { get; set; } + public global::Braintrust.PatchProjectScore? Type390 { get; set; } /// /// /// - public global::Braintrust.CreateEvalStatusPage? Type391 { get; set; } + public global::Braintrust.ProjectTag? Type391 { get; set; } /// /// /// - public global::Braintrust.PatchEvalStatusPage? Type392 { get; set; } + public global::Braintrust.CreateProjectTag? Type392 { get; set; } /// /// /// - public global::Braintrust.CodeBundle? Type393 { get; set; } + public global::Braintrust.PatchProjectTag? Type393 { get; set; } /// /// /// - public global::Braintrust.CodeBundleRuntimeContext? Type394 { get; set; } + public global::Braintrust.SpanIFrame? Type394 { get; set; } /// /// /// - public global::Braintrust.CodeBundleRuntimeContextRuntime? Type395 { get; set; } + public global::Braintrust.CreateSpanIFrame? Type395 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type396 { get; set; } + public global::Braintrust.PatchSpanIFrame? Type396 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationExperiment? Type397 { get; set; } + public global::Braintrust.CodeBundle? Type397 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationExperimentType? Type398 { get; set; } + public global::Braintrust.CodeBundleRuntimeContext? Type398 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type399 { get; set; } + public global::Braintrust.CodeBundleRuntimeContextRuntime? Type399 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationExperimentPositionVariant1? Type400 { get; set; } + public global::Braintrust.AnyOf? Type400 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationExperimentPositionVariant1Type? Type401 { get; set; } + public global::Braintrust.CodeBundleLocationExperiment? Type401 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationExperimentPositionScorer? Type402 { get; set; } + public global::Braintrust.CodeBundleLocationExperimentType? Type402 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationExperimentPositionScorerType? Type403 { get; set; } + public global::Braintrust.AnyOf? Type403 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationFunction? Type404 { get; set; } + public global::Braintrust.CodeBundleLocationExperimentPositionVariant1? Type404 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationFunctionType? Type405 { get; set; } + public global::Braintrust.CodeBundleLocationExperimentPositionVariant1Type? Type405 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationVariant3? Type406 { get; set; } + public global::Braintrust.CodeBundleLocationExperimentPositionScorer? Type406 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationVariant3Type? Type407 { get; set; } + public global::Braintrust.CodeBundleLocationExperimentPositionScorerType? Type407 { get; set; } /// /// /// - public global::Braintrust.OneOf? Type408 { get; set; } + public global::Braintrust.CodeBundleLocationFunction? Type408 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant1? Type409 { get; set; } + public global::Braintrust.CodeBundleLocationFunctionType? Type409 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant1Provider? Type410 { get; set; } + public global::Braintrust.CodeBundleLocationVariant3? Type410 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant2? Type411 { get; set; } + public global::Braintrust.CodeBundleLocationVariant3Type? Type411 { get; set; } /// /// /// - public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant2Provider? Type412 { get; set; } + public global::Braintrust.OneOf? Type412 { get; set; } /// /// /// - public global::Braintrust.PromptBlockData? Type413 { get; set; } + public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant1? Type413 { get; set; } /// /// /// - public global::Braintrust.PromptBlockDataChat? Type414 { get; set; } + public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant1Provider? Type414 { get; set; } /// /// /// - public global::Braintrust.PromptBlockDataChatType? Type415 { get; set; } + public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant2? Type415 { get; set; } /// /// /// - public global::Braintrust.PromptBlockDataCompletion? Type416 { get; set; } + public global::Braintrust.CodeBundleLocationVariant3SandboxSpecVariant2Provider? Type416 { get; set; } /// /// /// - public global::Braintrust.PromptBlockDataCompletionType? Type417 { get; set; } + public global::Braintrust.PromptBlockData? Type417 { get; set; } /// /// /// - public global::Braintrust.GraphNode? Type418 { get; set; } + public global::Braintrust.PromptBlockDataChat? Type418 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant1? Type419 { get; set; } + public global::Braintrust.PromptBlockDataChatType? Type419 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant1Position? Type420 { get; set; } + public global::Braintrust.PromptBlockDataCompletion? Type420 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant1Type? Type421 { get; set; } + public global::Braintrust.PromptBlockDataCompletionType? Type421 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant2? Type422 { get; set; } + public global::Braintrust.GraphNode? Type422 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant2Position? Type423 { get; set; } + public global::Braintrust.GraphNodeVariant1? Type423 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant2Type? Type424 { get; set; } + public global::Braintrust.GraphNodeVariant1Position? Type424 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant3? Type425 { get; set; } + public global::Braintrust.GraphNodeVariant1Type? Type425 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant3Position? Type426 { get; set; } + public global::Braintrust.GraphNodeVariant2? Type426 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant3Type? Type427 { get; set; } + public global::Braintrust.GraphNodeVariant2Position? Type427 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant4? Type428 { get; set; } + public global::Braintrust.GraphNodeVariant2Type? Type428 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant4Position? Type429 { get; set; } + public global::Braintrust.GraphNodeVariant3? Type429 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant4Type? Type430 { get; set; } + public global::Braintrust.GraphNodeVariant3Position? Type430 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant5? Type431 { get; set; } + public global::Braintrust.GraphNodeVariant3Type? Type431 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant5Position? Type432 { get; set; } + public global::Braintrust.GraphNodeVariant4? Type432 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant5Type? Type433 { get; set; } + public global::Braintrust.GraphNodeVariant4Position? Type433 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant6? Type434 { get; set; } + public global::Braintrust.GraphNodeVariant4Type? Type434 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant6Position? Type435 { get; set; } + public global::Braintrust.GraphNodeVariant5? Type435 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant6Type? Type436 { get; set; } + public global::Braintrust.GraphNodeVariant5Position? Type436 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant7? Type437 { get; set; } + public global::Braintrust.GraphNodeVariant5Type? Type437 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant7Position? Type438 { get; set; } + public global::Braintrust.GraphNodeVariant6? Type438 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant7Type? Type439 { get; set; } + public global::Braintrust.GraphNodeVariant6Position? Type439 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant8? Type440 { get; set; } + public global::Braintrust.GraphNodeVariant6Type? Type440 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant8Position? Type441 { get; set; } + public global::Braintrust.GraphNodeVariant7? Type441 { get; set; } /// /// /// - public global::Braintrust.GraphNodeVariant8Type? Type442 { get; set; } + public global::Braintrust.GraphNodeVariant7Position? Type442 { get; set; } /// /// /// - public global::Braintrust.GraphEdge? Type443 { get; set; } + public global::Braintrust.GraphNodeVariant7Type? Type443 { get; set; } /// /// /// - public global::Braintrust.GraphEdgeSource? Type444 { get; set; } + public global::Braintrust.GraphNodeVariant8? Type444 { get; set; } /// /// /// - public global::Braintrust.GraphEdgeTarget? Type445 { get; set; } + public global::Braintrust.GraphNodeVariant8Position? Type445 { get; set; } /// /// /// - public global::Braintrust.GraphEdgePurpose? Type446 { get; set; } + public global::Braintrust.GraphNodeVariant8Type? Type446 { get; set; } /// /// /// - public global::Braintrust.GraphData? Type447 { get; set; } + public global::Braintrust.GraphEdge? Type447 { get; set; } /// /// /// - public global::Braintrust.GraphDataType? Type448 { get; set; } + public global::Braintrust.GraphEdgeSource? Type448 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type449 { get; set; } + public global::Braintrust.GraphEdgeTarget? Type449 { get; set; } /// /// /// - public global::Braintrust.FacetData? Type450 { get; set; } + public global::Braintrust.GraphEdgePurpose? Type450 { get; set; } /// /// /// - public global::Braintrust.FacetDataType? Type451 { get; set; } + public global::Braintrust.GraphData? Type451 { get; set; } /// /// /// - public global::Braintrust.AllOf? Type452 { get; set; } + public global::Braintrust.GraphDataType? Type452 { get; set; } /// /// /// - public global::Braintrust.TopicMapGenerationSettings? Type453 { get; set; } + public global::System.Collections.Generic.Dictionary? Type453 { get; set; } /// /// /// - public global::Braintrust.TopicMapGenerationSettingsAlgorithm? Type454 { get; set; } + public global::Braintrust.FacetData? Type454 { get; set; } /// /// /// - public global::Braintrust.TopicMapGenerationSettingsDimensionReduction? Type455 { get; set; } + public global::Braintrust.FacetDataType? Type455 { get; set; } /// /// /// - public global::Braintrust.TopicMapData? Type456 { get; set; } + public global::Braintrust.AllOf? Type456 { get; set; } /// /// /// - public global::Braintrust.TopicMapDataType? Type457 { get; set; } + public global::Braintrust.TopicMapGenerationSettings? Type457 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type458 { get; set; } + public global::Braintrust.TopicMapGenerationSettingsAlgorithm? Type458 { get; set; } /// /// /// - public global::Braintrust.BatchedFacetData? Type459 { get; set; } + public global::Braintrust.TopicMapGenerationSettingsDimensionReduction? Type459 { get; set; } /// /// /// - public global::Braintrust.BatchedFacetDataType? Type460 { get; set; } + public global::Braintrust.TopicMapData? Type460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type461 { get; set; } + public global::Braintrust.TopicMapDataType? Type461 { get; set; } /// /// /// - public global::Braintrust.BatchedFacetDataFacet? Type462 { get; set; } + public global::System.Collections.Generic.Dictionary? Type462 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type463 { get; set; } + public global::Braintrust.BatchedFacetData? Type463 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type464 { get; set; } + public global::Braintrust.BatchedFacetDataType? Type464 { get; set; } /// /// /// - public global::Braintrust.BatchedFacetDataTopicMap? Type465 { get; set; } + public global::System.Collections.Generic.IList? Type465 { get; set; } /// /// /// - public global::Braintrust.FunctionData? Type466 { get; set; } + public global::Braintrust.BatchedFacetDataFacet? Type466 { get; set; } /// /// /// - public global::Braintrust.FunctionDataPrompt? Type467 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type467 { get; set; } /// /// /// - public global::Braintrust.FunctionDataPromptType? Type468 { get; set; } + public global::System.Collections.Generic.IList? Type468 { get; set; } /// /// /// - public global::Braintrust.FunctionDataCode? Type469 { get; set; } + public global::Braintrust.BatchedFacetDataTopicMap? Type469 { get; set; } /// /// /// - public global::Braintrust.FunctionDataCodeType? Type470 { get; set; } + public global::Braintrust.FunctionData? Type470 { get; set; } /// /// /// - public global::Braintrust.AnyOf?, global::Braintrust.FunctionDataCodeData2>? Type471 { get; set; } + public global::Braintrust.FunctionDataPrompt? Type471 { get; set; } /// /// /// - public global::Braintrust.AllOf? Type472 { get; set; } + public global::Braintrust.FunctionDataPromptType? Type472 { get; set; } /// /// /// - public global::Braintrust.FunctionDataCodeData? Type473 { get; set; } + public global::Braintrust.FunctionDataCode? Type473 { get; set; } /// /// /// - public global::Braintrust.FunctionDataCodeDataType? Type474 { get; set; } + public global::Braintrust.FunctionDataCodeType? Type474 { get; set; } /// /// /// - public global::Braintrust.FunctionDataCodeData2? Type475 { get; set; } + public global::Braintrust.AnyOf?, global::Braintrust.FunctionDataCodeData2>? Type475 { get; set; } /// /// /// - public global::Braintrust.FunctionDataCodeDataType2? Type476 { get; set; } + public global::Braintrust.AllOf? Type476 { get; set; } /// /// /// - public global::Braintrust.FunctionDataCodeDataRuntimeContext? Type477 { get; set; } + public global::Braintrust.FunctionDataCodeData? Type477 { get; set; } /// /// /// - public global::Braintrust.FunctionDataCodeDataRuntimeContextRuntime? Type478 { get; set; } + public global::Braintrust.FunctionDataCodeDataType? Type478 { get; set; } /// /// /// - public global::Braintrust.FunctionDataRemoteEval? Type479 { get; set; } + public global::Braintrust.FunctionDataCodeData2? Type479 { get; set; } /// /// /// - public global::Braintrust.FunctionDataRemoteEvalType? Type480 { get; set; } + public global::Braintrust.FunctionDataCodeDataType2? Type480 { get; set; } /// /// /// - public global::Braintrust.FunctionDataGlobal? Type481 { get; set; } + public global::Braintrust.FunctionDataCodeDataRuntimeContext? Type481 { get; set; } /// /// /// - public global::Braintrust.FunctionDataGlobalType? Type482 { get; set; } + public global::Braintrust.FunctionDataCodeDataRuntimeContextRuntime? Type482 { get; set; } /// /// /// - public global::Braintrust.FunctionDataParameters? Type483 { get; set; } + public global::Braintrust.FunctionDataRemoteEval? Type483 { get; set; } /// /// /// - public global::Braintrust.FunctionDataParametersType? Type484 { get; set; } + public global::Braintrust.FunctionDataRemoteEvalType? Type484 { get; set; } /// /// /// - public global::Braintrust.FunctionDataParametersSchema? Type485 { get; set; } + public global::Braintrust.FunctionDataGlobal? Type485 { get; set; } /// /// /// - public global::Braintrust.FunctionDataParametersSchemaType? Type486 { get; set; } + public global::Braintrust.FunctionDataGlobalType? Type486 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type487 { get; set; } + public global::Braintrust.FunctionDataParameters? Type487 { get; set; } /// /// /// - public global::Braintrust.AllOf? Type488 { get; set; } + public global::Braintrust.FunctionDataParametersType? Type488 { get; set; } /// /// /// - public global::Braintrust.Function2? Type489 { get; set; } + public global::Braintrust.FunctionDataParametersSchema? Type489 { get; set; } /// /// /// - public global::Braintrust.FunctionLogId? Type490 { get; set; } + public global::Braintrust.FunctionDataParametersSchemaType? Type490 { get; set; } /// /// /// - public global::Braintrust.FunctionOrigin? Type491 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type491 { get; set; } /// /// /// - public global::Braintrust.FunctionFunctionSchema? Type492 { get; set; } + public global::Braintrust.AllOf? Type492 { get; set; } /// /// /// - public global::Braintrust.CreateFunction? Type493 { get; set; } + public global::Braintrust.Function2? Type493 { get; set; } /// /// /// - public global::Braintrust.CreateFunctionOrigin? Type494 { get; set; } + public global::Braintrust.FunctionLogId? Type494 { get; set; } /// /// /// - public global::Braintrust.CreateFunctionFunctionSchema? Type495 { get; set; } + public global::Braintrust.FunctionOrigin? Type495 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullish? Type496 { get; set; } + public global::Braintrust.FunctionFunctionSchema? Type496 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishPrompt? Type497 { get; set; } + public global::Braintrust.CreateFunction? Type497 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishPromptType? Type498 { get; set; } + public global::Braintrust.CreateFunctionOrigin? Type498 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishCode? Type499 { get; set; } + public global::Braintrust.CreateFunctionFunctionSchema? Type499 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishCodeType? Type500 { get; set; } + public global::Braintrust.FunctionDataNullish? Type500 { get; set; } /// /// /// - public global::Braintrust.AnyOf?, global::Braintrust.FunctionDataNullishCodeData2>? Type501 { get; set; } + public global::Braintrust.FunctionDataNullishPrompt? Type501 { get; set; } /// /// /// - public global::Braintrust.AllOf? Type502 { get; set; } + public global::Braintrust.FunctionDataNullishPromptType? Type502 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishCodeData? Type503 { get; set; } + public global::Braintrust.FunctionDataNullishCode? Type503 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishCodeDataType? Type504 { get; set; } + public global::Braintrust.FunctionDataNullishCodeType? Type504 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishCodeData2? Type505 { get; set; } + public global::Braintrust.AnyOf?, global::Braintrust.FunctionDataNullishCodeData2>? Type505 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishCodeDataType2? Type506 { get; set; } + public global::Braintrust.AllOf? Type506 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishCodeDataRuntimeContext? Type507 { get; set; } + public global::Braintrust.FunctionDataNullishCodeData? Type507 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishCodeDataRuntimeContextRuntime? Type508 { get; set; } + public global::Braintrust.FunctionDataNullishCodeDataType? Type508 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishRemoteEval? Type509 { get; set; } + public global::Braintrust.FunctionDataNullishCodeData2? Type509 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishRemoteEvalType? Type510 { get; set; } + public global::Braintrust.FunctionDataNullishCodeDataType2? Type510 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishGlobal? Type511 { get; set; } + public global::Braintrust.FunctionDataNullishCodeDataRuntimeContext? Type511 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishGlobalType? Type512 { get; set; } + public global::Braintrust.FunctionDataNullishCodeDataRuntimeContextRuntime? Type512 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishParameters? Type513 { get; set; } + public global::Braintrust.FunctionDataNullishRemoteEval? Type513 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishParametersType? Type514 { get; set; } + public global::Braintrust.FunctionDataNullishRemoteEvalType? Type514 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishParametersSchema? Type515 { get; set; } + public global::Braintrust.FunctionDataNullishGlobal? Type515 { get; set; } /// /// /// - public global::Braintrust.FunctionDataNullishParametersSchemaType? Type516 { get; set; } + public global::Braintrust.FunctionDataNullishGlobalType? Type516 { get; set; } /// /// /// - public global::Braintrust.PatchFunction? Type517 { get; set; } + public global::Braintrust.FunctionDataNullishParameters? Type517 { get; set; } /// /// /// - public global::Braintrust.InvokeParent? Type518 { get; set; } + public global::Braintrust.FunctionDataNullishParametersType? Type518 { get; set; } /// /// /// - public global::Braintrust.InvokeParentSpanParentStruct? Type519 { get; set; } + public global::Braintrust.FunctionDataNullishParametersSchema? Type519 { get; set; } /// /// /// - public global::Braintrust.InvokeParentSpanParentStructObjectType? Type520 { get; set; } + public global::Braintrust.FunctionDataNullishParametersSchemaType? Type520 { get; set; } /// /// /// - public global::Braintrust.InvokeParentSpanParentStructRowIds? Type521 { get; set; } + public global::Braintrust.PatchFunction? Type521 { get; set; } /// /// /// - public global::Braintrust.StreamingMode? Type522 { get; set; } + public global::Braintrust.InvokeParent? Type522 { get; set; } /// /// /// - public global::Braintrust.InvokeApi? Type523 { get; set; } + public global::Braintrust.InvokeParentSpanParentStruct? Type523 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type524 { get; set; } + public global::Braintrust.InvokeParentSpanParentStructObjectType? Type524 { get; set; } /// /// /// - public global::Braintrust.InvokeApiMcpAuth2? Type525 { get; set; } + public global::Braintrust.InvokeParentSpanParentStructRowIds? Type525 { get; set; } /// /// /// - public global::Braintrust.ViewDataSearch? Type526 { get; set; } + public global::Braintrust.StreamingMode? Type526 { get; set; } /// /// /// - public global::Braintrust.ViewData? Type527 { get; set; } + public global::Braintrust.InvokeApi? Type527 { get; set; } /// /// /// - public global::Braintrust.ViewOptions? Type528 { get; set; } + public global::System.Collections.Generic.Dictionary? Type528 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsMonitorViewOptions? Type529 { get; set; } + public global::Braintrust.InvokeApiMcpAuth2? Type529 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsMonitorViewOptionsViewType? Type530 { get; set; } + public global::Braintrust.ViewDataSearch? Type530 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsMonitorViewOptionsOptions? Type531 { get; set; } + public global::Braintrust.ViewData? Type531 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsMonitorViewOptionsOptionsSpanType? Type532 { get; set; } + public global::Braintrust.ViewOptions? Type532 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type533 { get; set; } + public global::Braintrust.ViewOptionsMonitorViewOptions? Type533 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsMonitorViewOptionsOptionsType? Type534 { get; set; } + public global::Braintrust.ViewOptionsMonitorViewOptionsViewType? Type534 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptions? Type535 { get; set; } + public global::Braintrust.ViewOptionsMonitorViewOptionsOptions? Type535 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type536 { get; set; } + public global::Braintrust.ViewOptionsMonitorViewOptionsOptionsSpanType? Type536 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsExcludedMeasure? Type537 { get; set; } + public global::System.Collections.Generic.Dictionary? Type537 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsExcludedMeasureType? Type538 { get; set; } + public global::Braintrust.ViewOptionsMonitorViewOptionsOptionsType? Type538 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsYMetric? Type539 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptions? Type539 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsYMetricType? Type540 { get; set; } + public global::System.Collections.Generic.IList? Type540 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsXAxis? Type541 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsExcludedMeasure? Type541 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsXAxisType? Type542 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsExcludedMeasureType? Type542 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsSymbolGrouping? Type543 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsYMetric? Type543 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsSymbolGroupingType? Type544 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsYMetricType? Type544 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type545 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsXAxis? Type545 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsChartAnnotation? Type546 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsXAxisType? Type546 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type547 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsSymbolGrouping? Type547 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsTimeRangeFilter? Type548 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsSymbolGroupingType? Type548 { get; set; } /// /// /// - public global::Braintrust.ViewOptionsTableViewOptionsQueryShape? Type549 { get; set; } + public global::System.Collections.Generic.IList? Type549 { get; set; } /// /// /// - public global::Braintrust.View? Type550 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsChartAnnotation? Type550 { get; set; } /// /// /// - public global::Braintrust.ViewViewType? Type551 { get; set; } + public global::Braintrust.AnyOf? Type551 { get; set; } /// /// /// - public global::Braintrust.CreateView? Type552 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsTimeRangeFilter? Type552 { get; set; } /// /// /// - public global::Braintrust.CreateViewViewType? Type553 { get; set; } + public global::Braintrust.ViewOptionsTableViewOptionsQueryShape? Type553 { get; set; } /// /// /// - public global::Braintrust.PatchView? Type554 { get; set; } + public global::Braintrust.View? Type554 { get; set; } /// /// /// - public global::Braintrust.PatchViewViewType? Type555 { get; set; } + public global::Braintrust.ViewViewType? Type555 { get; set; } /// /// /// - public global::Braintrust.DeleteView? Type556 { get; set; } + public global::Braintrust.CreateView? Type556 { get; set; } /// /// /// - public global::Braintrust.ImageRenderingMode? Type557 { get; set; } + public global::Braintrust.CreateViewViewType? Type557 { get; set; } /// /// /// - public global::Braintrust.Organization? Type558 { get; set; } + public global::Braintrust.PatchView? Type558 { get; set; } /// /// /// - public global::Braintrust.PatchOrganization? Type559 { get; set; } + public global::Braintrust.PatchViewViewType? Type559 { get; set; } /// /// /// - public global::Braintrust.PatchOrganizationMembersOutput? Type560 { get; set; } + public global::Braintrust.DeleteView? Type560 { get; set; } /// /// /// - public global::Braintrust.PatchOrganizationMembersOutputStatus? Type561 { get; set; } + public global::Braintrust.ImageRenderingMode? Type561 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type562 { get; set; } + public global::Braintrust.Organization? Type562 { get; set; } /// /// /// - public global::Braintrust.PatchOrganizationMembersOutputAddedUser? Type563 { get; set; } + public global::Braintrust.PatchOrganization? Type563 { get; set; } /// /// /// - public global::Braintrust.PatchOrganizationMembers? Type564 { get; set; } + public global::Braintrust.PatchOrganizationMembersOutput? Type564 { get; set; } /// /// /// - public global::Braintrust.PatchOrganizationMembersInviteUsers? Type565 { get; set; } + public global::Braintrust.PatchOrganizationMembersOutputStatus? Type565 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type566 { get; set; } + public global::System.Collections.Generic.IList? Type566 { get; set; } /// /// /// - public global::Braintrust.PatchOrganizationMembersInviteUsersServiceAccount? Type567 { get; set; } + public global::Braintrust.PatchOrganizationMembersOutputAddedUser? Type567 { get; set; } /// /// /// - public global::Braintrust.PatchOrganizationMembersRemoveUsers? Type568 { get; set; } + public global::Braintrust.PatchOrganizationMembers? Type568 { get; set; } /// /// /// - public global::Braintrust.CreateApiKeyOutput? Type569 { get; set; } + public global::Braintrust.PatchOrganizationMembersInviteUsers? Type569 { get; set; } /// /// /// - public global::Braintrust.ApiKey? Type570 { get; set; } + public global::System.Collections.Generic.IList? Type570 { get; set; } /// /// /// - public global::Braintrust.CreateServiceTokenOutput? Type571 { get; set; } + public global::Braintrust.PatchOrganizationMembersInviteUsersServiceAccount? Type571 { get; set; } /// /// /// - public global::Braintrust.ServiceToken? Type572 { get; set; } + public global::Braintrust.PatchOrganizationMembersRemoveUsers? Type572 { get; set; } /// /// /// - public global::Braintrust.DeleteServiceToken? Type573 { get; set; } + public global::Braintrust.CreateApiKeyOutput? Type573 { get; set; } /// /// /// - public global::Braintrust.AISecret? Type574 { get; set; } + public global::Braintrust.ApiKey? Type574 { get; set; } /// /// /// - public global::Braintrust.CreateAISecret? Type575 { get; set; } + public global::Braintrust.CreateServiceTokenOutput? Type575 { get; set; } /// /// /// - public global::Braintrust.DeleteAISecret? Type576 { get; set; } + public global::Braintrust.ServiceToken? Type576 { get; set; } /// /// /// - public global::Braintrust.PatchAISecret? Type577 { get; set; } + public global::Braintrust.DeleteServiceToken? Type577 { get; set; } /// /// /// - public global::Braintrust.EnvVar? Type578 { get; set; } + public global::Braintrust.AISecret? Type578 { get; set; } /// /// /// - public global::Braintrust.EnvVarObjectType2? Type579 { get; set; } + public global::Braintrust.CreateAISecret? Type579 { get; set; } /// /// /// - public global::Braintrust.EnvVarSecretCategory? Type580 { get; set; } + public global::Braintrust.DeleteAISecret? Type580 { get; set; } /// /// /// - public global::Braintrust.MCPServer? Type581 { get; set; } + public global::Braintrust.PatchAISecret? Type581 { get; set; } /// /// /// - public global::Braintrust.CreateMCPServer? Type582 { get; set; } + public global::Braintrust.EnvVar? Type582 { get; set; } /// /// /// - public global::Braintrust.PatchMCPServer? Type583 { get; set; } + public global::Braintrust.EnvVarObjectType2? Type583 { get; set; } /// /// /// - public global::Braintrust.DatasetSnapshot? Type584 { get; set; } + public global::Braintrust.EnvVarSecretCategory? Type584 { get; set; } /// /// /// - public global::Braintrust.CreateDatasetSnapshot? Type585 { get; set; } + public global::Braintrust.MCPServer? Type585 { get; set; } /// /// /// - public global::Braintrust.PatchDatasetSnapshot? Type586 { get; set; } + public global::Braintrust.CreateMCPServer? Type586 { get; set; } /// /// /// - public global::Braintrust.Environment? Type587 { get; set; } + public global::Braintrust.PatchMCPServer? Type587 { get; set; } /// /// /// - public global::Braintrust.CreateEnvironment? Type588 { get; set; } + public global::Braintrust.DatasetSnapshot? Type588 { get; set; } /// /// /// - public global::Braintrust.PatchEnvironment? Type589 { get; set; } + public global::Braintrust.CreateDatasetSnapshot? Type589 { get; set; } /// /// /// - public global::Braintrust.CrossObjectInsertResponse? Type590 { get; set; } + public global::Braintrust.PatchDatasetSnapshot? Type590 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type591 { get; set; } + public global::Braintrust.Environment? Type591 { get; set; } /// /// /// - public global::Braintrust.CrossObjectInsertRequest? Type592 { get; set; } + public global::Braintrust.CreateEnvironment? Type592 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type593 { get; set; } + public global::Braintrust.PatchEnvironment? Type593 { get; set; } /// /// /// - public global::Braintrust.CrossObjectInsertRequestExperiment2? Type594 { get; set; } + public global::Braintrust.CrossObjectInsertResponse? Type594 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type595 { get; set; } + public global::System.Collections.Generic.Dictionary? Type595 { get; set; } /// /// /// - public global::Braintrust.CrossObjectInsertRequestDataset2? Type596 { get; set; } + public global::Braintrust.CrossObjectInsertRequest? Type596 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type597 { get; set; } + public global::System.Collections.Generic.Dictionary? Type597 { get; set; } /// /// /// - public global::Braintrust.CrossObjectInsertRequestProjectLogs2? Type598 { get; set; } + public global::Braintrust.CrossObjectInsertRequestExperiment2? Type598 { get; set; } /// /// /// - public global::Braintrust.PromptData? Type599 { get; set; } + public global::System.Collections.Generic.Dictionary? Type599 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>>? Type600 { get; set; } + public global::Braintrust.CrossObjectInsertRequestDataset2? Type600 { get; set; } /// /// /// - public global::Braintrust.AllOf?>? Type601 { get; set; } + public global::System.Collections.Generic.Dictionary? Type601 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type602 { get; set; } + public global::Braintrust.CrossObjectInsertRequestProjectLogs2? Type602 { get; set; } /// /// /// - public global::Braintrust.PromptDataToolFunctionVariant2Function? Type603 { get; set; } + public global::Braintrust.PromptData? Type603 { get; set; } /// /// /// - public global::Braintrust.PromptDataToolFunctionVariant2FunctionType? Type604 { get; set; } + public global::System.Collections.Generic.IList?>>? Type604 { get; set; } /// /// /// - public global::Braintrust.PromptDataToolFunctionVariant2Global? Type605 { get; set; } + public global::Braintrust.AllOf?>? Type605 { get; set; } /// /// /// - public global::Braintrust.PromptDataToolFunctionVariant2GlobalType? Type606 { get; set; } + public global::Braintrust.AnyOf? Type606 { get; set; } /// /// /// - public global::Braintrust.PromptDataTemplateFormat? Type607 { get; set; } + public global::Braintrust.PromptDataToolFunctionVariant2Function? Type607 { get; set; } /// /// /// - public global::Braintrust.PromptDataMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitions? Type608 { get; set; } + public global::Braintrust.PromptDataToolFunctionVariant2FunctionType? Type608 { get; set; } /// /// /// - public global::Braintrust.PromptDataMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitionsType? Type609 { get; set; } + public global::Braintrust.PromptDataToolFunctionVariant2Global? Type609 { get; set; } /// /// /// - public global::Braintrust.PromptDataMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServers? Type610 { get; set; } + public global::Braintrust.PromptDataToolFunctionVariant2GlobalType? Type610 { get; set; } /// /// /// - public global::Braintrust.PromptDataMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServersType? Type611 { get; set; } + public global::Braintrust.PromptDataTemplateFormat? Type611 { get; set; } /// /// /// - public global::Braintrust.PromptDataOrigin? Type612 { get; set; } + public global::Braintrust.PromptDataMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitions? Type612 { get; set; } /// /// /// - public global::Braintrust.FunctionId? Type613 { get; set; } + public global::Braintrust.PromptDataMcpMcpServerIdThisIsUsedForProjectLevelMcpServerDefinitionsType? Type613 { get; set; } /// /// /// - public global::Braintrust.FunctionIdFunctionId1? Type614 { get; set; } + public global::Braintrust.PromptDataMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServers? Type614 { get; set; } /// /// /// - public global::Braintrust.FunctionIdProjectSlug? Type615 { get; set; } + public global::Braintrust.PromptDataMcpMcpServerUrlThisIsUsedForInlineDefinitionsOfMcpServersType? Type615 { get; set; } /// /// /// - public global::Braintrust.FunctionIdGlobalFunction? Type616 { get; set; } + public global::Braintrust.PromptDataOrigin? Type616 { get; set; } /// /// /// - public global::Braintrust.FunctionIdPromptSessionId? Type617 { get; set; } + public global::Braintrust.FunctionId? Type617 { get; set; } /// /// /// - public global::Braintrust.FunctionIdInlineCode? Type618 { get; set; } + public global::Braintrust.FunctionIdFunctionId1? Type618 { get; set; } /// /// /// - public global::Braintrust.FunctionIdInlineCodeInlineContext? Type619 { get; set; } + public global::Braintrust.FunctionIdProjectSlug? Type619 { get; set; } /// /// /// - public global::Braintrust.FunctionIdInlineCodeInlineContextRuntime? Type620 { get; set; } + public global::Braintrust.FunctionIdGlobalFunction? Type620 { get; set; } /// /// /// - public global::Braintrust.AllOf? Type621 { get; set; } + public global::Braintrust.FunctionIdPromptSessionId? Type621 { get; set; } /// /// /// - public global::Braintrust.FunctionIdInlineFunction? Type622 { get; set; } + public global::Braintrust.FunctionIdInlineCode? Type622 { get; set; } /// /// /// - public global::Braintrust.FunctionIdInlinePrompt? Type623 { get; set; } + public global::Braintrust.FunctionIdInlineCodeInlineContext? Type623 { get; set; } /// /// /// - public global::Braintrust.GitMetadataSettings? Type624 { get; set; } + public global::Braintrust.FunctionIdInlineCodeInlineContextRuntime? Type624 { get; set; } /// /// /// - public global::Braintrust.GitMetadataSettingsCollect? Type625 { get; set; } + public global::Braintrust.AllOf? Type625 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type626 { get; set; } + public global::Braintrust.FunctionIdInlineFunction? Type626 { get; set; } /// /// /// - public global::Braintrust.GitMetadataSettingsField? Type627 { get; set; } + public global::Braintrust.FunctionIdInlinePrompt? Type627 { get; set; } /// /// /// - public global::Braintrust.RunEval? Type628 { get; set; } + public global::Braintrust.GitMetadataSettings? Type628 { get; set; } /// /// /// - public global::Braintrust.AnyOf? Type629 { get; set; } + public global::Braintrust.GitMetadataSettingsCollect? Type629 { get; set; } /// /// /// - public global::Braintrust.RunEvalDataDatasetId? Type630 { get; set; } + public global::System.Collections.Generic.IList? Type630 { get; set; } /// /// /// - public global::Braintrust.RunEvalDataProjectDatasetName? Type631 { get; set; } + public global::Braintrust.GitMetadataSettingsField? Type631 { get; set; } /// /// /// - public global::Braintrust.RunEvalDataDatasetRows? Type632 { get; set; } + public global::Braintrust.RunEval? Type632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type633 { get; set; } + public global::Braintrust.AnyOf? Type633 { get; set; } /// /// /// - public global::Braintrust.AllOf? Type634 { get; set; } + public global::Braintrust.RunEvalDataDatasetId? Type634 { get; set; } /// /// /// - public global::Braintrust.AllOf? Type635 { get; set; } + public global::Braintrust.RunEvalDataProjectDatasetName? Type635 { get; set; } /// /// /// - public global::Braintrust.AllOf? Type636 { get; set; } + public global::Braintrust.RunEvalDataDatasetRows? Type636 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type637 { get; set; } + public global::System.Collections.Generic.IList>? Type637 { get; set; } /// /// /// - public global::Braintrust.RunEvalMcpAuth2? Type638 { get; set; } + public global::Braintrust.AllOf? Type638 { get; set; } /// /// /// - public global::Braintrust.PostApiKeyRequest? Type639 { get; set; } + public global::Braintrust.AllOf? Type639 { get; set; } /// /// /// - public global::Braintrust.PostServiceTokenRequest? Type640 { get; set; } + public global::Braintrust.AllOf? Type640 { get; set; } /// /// /// - public global::Braintrust.PutServiceTokenRequest? Type641 { get; set; } + public global::System.Collections.Generic.Dictionary? Type641 { get; set; } /// /// /// - public global::Braintrust.PostEnvVarRequest? Type642 { get; set; } + public global::Braintrust.RunEvalMcpAuth2? Type642 { get; set; } /// /// /// - public global::Braintrust.PostEnvVarRequestObjectType? Type643 { get; set; } + public global::Braintrust.PostApiKeyRequest? Type643 { get; set; } /// /// /// - public global::Braintrust.PutEnvVarRequest? Type644 { get; set; } + public global::Braintrust.PostServiceTokenRequest? Type644 { get; set; } /// /// /// - public global::Braintrust.PutEnvVarRequestObjectType? Type645 { get; set; } + public global::Braintrust.PutServiceTokenRequest? Type645 { get; set; } /// /// /// - public global::Braintrust.PatchEnvVarIdRequest? Type646 { get; set; } + public global::Braintrust.PostEnvVarRequest? Type646 { get; set; } /// /// /// - public global::Braintrust.ProxycredentialsRequest? Type647 { get; set; } + public global::Braintrust.PostEnvVarRequestObjectType? Type647 { get; set; } /// /// /// - public global::Braintrust.ProxycredentialsRequestLogging? Type648 { get; set; } + public global::Braintrust.PutEnvVarRequest? Type648 { get; set; } /// /// /// - public global::Braintrust.AnyOf>>? Type649 { get; set; } + public global::Braintrust.PutEnvVarRequestObjectType? Type649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type650 { get; set; } + public global::Braintrust.PatchEnvVarIdRequest? Type650 { get; set; } /// /// /// - public global::Braintrust.AllOf? Type651 { get; set; } + public global::Braintrust.ProxycredentialsRequest? Type651 { get; set; } /// /// /// - public global::Braintrust.AnyOf>? Type652 { get; set; } + public global::Braintrust.ProxycredentialsRequestLogging? Type652 { get; set; } /// /// /// - public global::Braintrust.GetProjectResponse? Type653 { get; set; } + public global::Braintrust.AnyOf>>? Type653 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type654 { get; set; } + public global::System.Collections.Generic.IList>? Type654 { get; set; } /// /// /// - public global::Braintrust.GetExperimentResponse? Type655 { get; set; } + public global::Braintrust.AllOf? Type655 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type656 { get; set; } + public global::Braintrust.AnyOf>? Type656 { get; set; } /// /// /// - public global::Braintrust.GetDatasetResponse? Type657 { get; set; } + public global::Braintrust.GetProjectResponse? Type657 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type658 { get; set; } + public global::System.Collections.Generic.IList? Type658 { get; set; } /// /// /// - public global::Braintrust.GetPromptResponse? Type659 { get; set; } + public global::Braintrust.GetExperimentResponse? Type659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type660 { get; set; } + public global::System.Collections.Generic.IList? Type660 { get; set; } /// /// /// - public global::Braintrust.GetRoleResponse? Type661 { get; set; } + public global::Braintrust.GetDatasetResponse? Type661 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type662 { get; set; } + public global::System.Collections.Generic.IList? Type662 { get; set; } /// /// /// - public global::Braintrust.GetGroupResponse? Type663 { get; set; } + public global::Braintrust.GetPromptResponse? Type663 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type664 { get; set; } + public global::System.Collections.Generic.IList? Type664 { get; set; } /// /// /// - public global::Braintrust.GetAclResponse? Type665 { get; set; } + public global::Braintrust.GetRoleResponse? Type665 { get; set; } /// /// /// - public global::Braintrust.GetUserResponse? Type666 { get; set; } + public global::System.Collections.Generic.IList? Type666 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type667 { get; set; } + public global::Braintrust.GetGroupResponse? Type667 { get; set; } /// /// /// - public global::Braintrust.GetProjectAutomationResponse? Type668 { get; set; } + public global::System.Collections.Generic.IList? Type668 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type669 { get; set; } + public global::Braintrust.GetAclResponse? Type669 { get; set; } /// /// /// - public global::Braintrust.GetProjectScoreResponse? Type670 { get; set; } + public global::Braintrust.GetUserResponse? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type671 { get; set; } + public global::System.Collections.Generic.IList? Type671 { get; set; } /// /// /// - public global::Braintrust.GetProjectTagResponse? Type672 { get; set; } + public global::Braintrust.GetProjectAutomationResponse? Type672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type673 { get; set; } + public global::System.Collections.Generic.IList? Type673 { get; set; } /// /// /// - public global::Braintrust.GetSpanIframeResponse? Type674 { get; set; } + public global::Braintrust.GetProjectScoreResponse? Type674 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type675 { get; set; } + public global::System.Collections.Generic.IList? Type675 { get; set; } /// /// /// - public global::Braintrust.GetEvalStatusPageResponse? Type676 { get; set; } + public global::Braintrust.GetProjectTagResponse? Type676 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type677 { get; set; } + public global::System.Collections.Generic.IList? Type677 { get; set; } /// /// /// - public global::Braintrust.GetFunctionResponse? Type678 { get; set; } + public global::Braintrust.GetSpanIframeResponse? Type678 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type679 { get; set; } + public global::System.Collections.Generic.IList? Type679 { get; set; } /// /// /// - public global::Braintrust.GetViewResponse? Type680 { get; set; } + public global::Braintrust.GetFunctionResponse? Type680 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type681 { get; set; } + public global::System.Collections.Generic.IList? Type681 { get; set; } /// /// /// - public global::Braintrust.GetOrganizationResponse? Type682 { get; set; } + public global::Braintrust.GetViewResponse? Type682 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type683 { get; set; } + public global::System.Collections.Generic.IList? Type683 { get; set; } /// /// /// - public global::Braintrust.GetApiKeyResponse? Type684 { get; set; } + public global::Braintrust.GetOrganizationResponse? Type684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type685 { get; set; } + public global::System.Collections.Generic.IList? Type685 { get; set; } /// /// /// - public global::Braintrust.GetServiceTokenResponse? Type686 { get; set; } + public global::Braintrust.GetApiKeyResponse? Type686 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type687 { get; set; } + public global::System.Collections.Generic.IList? Type687 { get; set; } /// /// /// - public global::Braintrust.GetAiSecretResponse? Type688 { get; set; } + public global::Braintrust.GetServiceTokenResponse? Type688 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type689 { get; set; } + public global::System.Collections.Generic.IList? Type689 { get; set; } /// /// /// - public global::Braintrust.GetEnvVarResponse? Type690 { get; set; } + public global::Braintrust.GetAiSecretResponse? Type690 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type691 { get; set; } + public global::System.Collections.Generic.IList? Type691 { get; set; } /// /// /// - public global::Braintrust.GetMcpServerResponse? Type692 { get; set; } + public global::Braintrust.GetEnvVarResponse? Type692 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type693 { get; set; } + public global::System.Collections.Generic.IList? Type693 { get; set; } /// /// /// - public global::Braintrust.GetDatasetSnapshotResponse? Type694 { get; set; } + public global::Braintrust.GetMcpServerResponse? Type694 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type695 { get; set; } + public global::System.Collections.Generic.IList? Type695 { get; set; } /// /// /// - public global::Braintrust.ListEnvironmentsResponse? Type696 { get; set; } + public global::Braintrust.GetDatasetSnapshotResponse? Type696 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type697 { get; set; } + public global::System.Collections.Generic.IList? Type697 { get; set; } /// /// /// - public global::Braintrust.ProxycredentialsResponse? Type698 { get; set; } + public global::Braintrust.ListEnvironmentsResponse? Type698 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type699 { get; set; } + /// + /// + /// + public global::Braintrust.ProxycredentialsResponse? Type700 { get; set; } /// /// @@ -3085,46 +3093,42 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateEvalStatusPage.g.cs deleted file mode 100644 index 6d1f12f..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.Models.CreateEvalStatusPage.g.cs +++ /dev/null @@ -1,105 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - /// - /// A public eval status page that displays aggregate experiment results - /// - public sealed partial class CreateEvalStatusPage - { - /// - /// Unique identifier for the project that the eval status page belongs under - /// - [global::System.Text.Json.Serialization.JsonPropertyName("project_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid ProjectId { get; set; } - - /// - /// Name of the eval status page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// Textual description of the eval status page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// URL of the logo to display on the page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("logo_url")] - public string? LogoUrl { get; set; } - - /// - /// The theme for the page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("theme")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.EvalStatusPageThemeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Braintrust.EvalStatusPageTheme Theme { get; set; } - - /// - /// Configuration for what data to display - /// - [global::System.Text.Json.Serialization.JsonPropertyName("config")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Braintrust.EvalStatusPageConfig Config { 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. - /// - /// - /// Unique identifier for the project that the eval status page belongs under - /// - /// - /// Name of the eval status page - /// - /// - /// The theme for the page - /// - /// - /// Configuration for what data to display - /// - /// - /// Textual description of the eval status page - /// - /// - /// URL of the logo to display on the page - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateEvalStatusPage( - global::System.Guid projectId, - string name, - global::Braintrust.EvalStatusPageTheme theme, - global::Braintrust.EvalStatusPageConfig config, - string? description, - string? logoUrl) - { - this.ProjectId = projectId; - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Description = description; - this.LogoUrl = logoUrl; - this.Theme = theme; - this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateEvalStatusPage() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperiment.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperiment.g.cs index 56ef6de..e99a85a 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperiment.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperiment.g.cs @@ -51,6 +51,12 @@ public sealed partial class CreateExperiment [global::System.Text.Json.Serialization.JsonPropertyName("dataset_version")] public string? DatasetVersion { get; set; } + /// + /// Braintrust-controlled metadata about the experiment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("internal_metadata")] + public global::Braintrust.CreateExperimentInternalMetadata? InternalMetadata { get; set; } + /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -117,6 +123,9 @@ public sealed partial class CreateExperiment /// /// Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified. /// + /// + /// Braintrust-controlled metadata about the experiment. + /// /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -146,6 +155,7 @@ public CreateExperiment( global::System.Guid? baseExpId, global::System.Guid? datasetId, string? datasetVersion, + global::Braintrust.CreateExperimentInternalMetadata? internalMetadata, global::System.Guid? parametersId, string? parametersVersion, bool? @public, @@ -160,6 +170,7 @@ public CreateExperiment( this.BaseExpId = baseExpId; this.DatasetId = datasetId; this.DatasetVersion = datasetVersion; + this.InternalMetadata = internalMetadata; this.ParametersId = parametersId; this.ParametersVersion = parametersVersion; this.Public = @public; diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateEvalStatusPage.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadata.Json.g.cs similarity index 85% rename from src/libs/Braintrust/Generated/Braintrust.Models.CreateEvalStatusPage.Json.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadata.Json.g.cs index 9629f72..2630f77 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.CreateEvalStatusPage.Json.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadata.Json.g.cs @@ -2,7 +2,7 @@ namespace Braintrust { - public sealed partial class CreateEvalStatusPage + public sealed partial class CreateExperimentInternalMetadata { /// /// 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::Braintrust.CreateEvalStatusPage? FromJson( + public static global::Braintrust.CreateExperimentInternalMetadata? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Braintrust.CreateEvalStatusPage), - jsonSerializerContext) as global::Braintrust.CreateEvalStatusPage; + typeof(global::Braintrust.CreateExperimentInternalMetadata), + jsonSerializerContext) as global::Braintrust.CreateExperimentInternalMetadata; } /// @@ -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::Braintrust.CreateEvalStatusPage? FromJson( + public static global::Braintrust.CreateExperimentInternalMetadata? 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::Braintrust.CreateEvalStatusPage), - jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.CreateEvalStatusPage; + typeof(global::Braintrust.CreateExperimentInternalMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.CreateExperimentInternalMetadata; } /// @@ -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/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadata.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadata.g.cs new file mode 100644 index 0000000..4bb2477 --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadata.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// Braintrust-controlled metadata about the experiment. + /// + public sealed partial class CreateExperimentInternalMetadata + { + /// + /// BTQL filter payload used to evaluate a subset of a linked dataset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dataset_filter")] + public global::System.Collections.Generic.Dictionary? DatasetFilter { 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. + /// + /// + /// BTQL filter payload used to evaluate a subset of a linked dataset. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateExperimentInternalMetadata( + global::System.Collections.Generic.Dictionary? datasetFilter) + { + this.DatasetFilter = datasetFilter; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateExperimentInternalMetadata() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadataDatasetFilter.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadataDatasetFilter.Json.g.cs new file mode 100644 index 0000000..beb8bcf --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadataDatasetFilter.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Braintrust +{ + public sealed partial class CreateExperimentInternalMetadataDatasetFilter + { + /// + /// 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::Braintrust.CreateExperimentInternalMetadataDatasetFilter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Braintrust.CreateExperimentInternalMetadataDatasetFilter), + jsonSerializerContext) as global::Braintrust.CreateExperimentInternalMetadataDatasetFilter; + } + + /// + /// 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::Braintrust.CreateExperimentInternalMetadataDatasetFilter? 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::Braintrust.CreateExperimentInternalMetadataDatasetFilter), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.CreateExperimentInternalMetadataDatasetFilter; + } + + /// + /// 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/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadataDatasetFilter.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadataDatasetFilter.g.cs new file mode 100644 index 0000000..e6fb0ad --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateExperimentInternalMetadataDatasetFilter.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// BTQL filter payload used to evaluate a subset of a linked dataset. + /// + public sealed partial class CreateExperimentInternalMetadataDatasetFilter + { + + /// + /// 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/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2.g.cs index 3c502e4..413a99b 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2.g.cs @@ -23,6 +23,13 @@ public sealed partial class CreateProjectAutomationConfigVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required global::Braintrust.OneOf ExportDefinition { get; set; } + /// + /// Execution scope for export automation. Defaults to span-level execution. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.AnyOfJsonConverter))] + public global::Braintrust.AnyOf? Scope { get; set; } + /// /// The path to export the results to. It should include the storage protocol and prefix, e.g. s3://bucket-name/path/to/export /// @@ -49,8 +56,9 @@ public sealed partial class CreateProjectAutomationConfigVariant2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("credentials")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Braintrust.CreateProjectAutomationConfigVariant2Credentials Credentials { get; set; } + public required global::Braintrust.OneOf Credentials { get; set; } /// /// The number of rows to export in each batch @@ -83,6 +91,9 @@ public sealed partial class CreateProjectAutomationConfigVariant2 /// /// The type of automation. /// + /// + /// Execution scope for export automation. Defaults to span-level execution. + /// /// /// The number of rows to export in each batch /// @@ -94,16 +105,18 @@ public CreateProjectAutomationConfigVariant2( string exportPath, global::Braintrust.CreateProjectAutomationConfigVariant2Format format, double intervalSeconds, - global::Braintrust.CreateProjectAutomationConfigVariant2Credentials credentials, + global::Braintrust.OneOf credentials, global::Braintrust.CreateProjectAutomationConfigVariant2EventType eventType, + global::Braintrust.AnyOf? scope, double? batchSize) { this.EventType = eventType; this.ExportDefinition = exportDefinition; + this.Scope = scope; this.ExportPath = exportPath ?? throw new global::System.ArgumentNullException(nameof(exportPath)); this.Format = format; this.IntervalSeconds = intervalSeconds; - this.Credentials = credentials ?? throw new global::System.ArgumentNullException(nameof(credentials)); + this.Credentials = credentials; this.BatchSize = batchSize; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2Credentials.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs similarity index 93% rename from src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2Credentials.Json.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs index e1bf122..7fc985d 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2Credentials.Json.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs @@ -2,7 +2,7 @@ namespace Braintrust { - public sealed partial class CreateProjectAutomationConfigVariant2Credentials + public sealed partial class CreateProjectAutomationConfigVariant2CredentialsVariant1 { /// /// 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::Braintrust.CreateProjectAutomationConfigVariant2Credentials? FromJson( + public static global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Braintrust.CreateProjectAutomationConfigVariant2Credentials), - jsonSerializerContext) as global::Braintrust.CreateProjectAutomationConfigVariant2Credentials; + typeof(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1), + jsonSerializerContext) as global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1; } /// @@ -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::Braintrust.CreateProjectAutomationConfigVariant2Credentials? FromJson( + public static global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1? 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::Braintrust.CreateProjectAutomationConfigVariant2Credentials), - jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.CreateProjectAutomationConfigVariant2Credentials; + typeof(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1; } /// @@ -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/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2Credentials.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1.g.cs similarity index 85% rename from src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2Credentials.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1.g.cs index 7f63e07..1ca0152 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2Credentials.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1.g.cs @@ -6,14 +6,14 @@ namespace Braintrust /// /// /// - public sealed partial class CreateProjectAutomationConfigVariant2Credentials + public sealed partial class CreateProjectAutomationConfigVariant2CredentialsVariant1 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsTypeJsonConverter))] - public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant1TypeJsonConverter))] + public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type Type { get; set; } /// /// The ARN of the IAM role to use @@ -36,7 +36,7 @@ public sealed partial class CreateProjectAutomationConfigVariant2Credentials 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. /// /// /// The ARN of the IAM role to use @@ -48,10 +48,10 @@ public sealed partial class CreateProjectAutomationConfigVariant2Credentials #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateProjectAutomationConfigVariant2Credentials( + public CreateProjectAutomationConfigVariant2CredentialsVariant1( string roleArn, string externalId, - global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsType type) + global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant1Type type) { this.Type = type; this.RoleArn = roleArn ?? throw new global::System.ArgumentNullException(nameof(roleArn)); @@ -59,9 +59,9 @@ public CreateProjectAutomationConfigVariant2Credentials( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateProjectAutomationConfigVariant2Credentials() + public CreateProjectAutomationConfigVariant2CredentialsVariant1() { } } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsType.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs similarity index 84% rename from src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsType.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs index 6aab2c7..c782ea1 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsType.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs @@ -6,7 +6,7 @@ namespace Braintrust /// /// /// - public enum CreateProjectAutomationConfigVariant2CredentialsType + public enum CreateProjectAutomationConfigVariant2CredentialsVariant1Type { /// /// @@ -17,27 +17,27 @@ public enum CreateProjectAutomationConfigVariant2CredentialsType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class CreateProjectAutomationConfigVariant2CredentialsTypeExtensions + public static class CreateProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this CreateProjectAutomationConfigVariant2CredentialsType value) + public static string ToValueString(this CreateProjectAutomationConfigVariant2CredentialsVariant1Type value) { return value switch { - CreateProjectAutomationConfigVariant2CredentialsType.AwsIam => "aws_iam", + CreateProjectAutomationConfigVariant2CredentialsVariant1Type.AwsIam => "aws_iam", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static CreateProjectAutomationConfigVariant2CredentialsType? ToEnum(string value) + public static CreateProjectAutomationConfigVariant2CredentialsVariant1Type? ToEnum(string value) { return value switch { - "aws_iam" => CreateProjectAutomationConfigVariant2CredentialsType.AwsIam, + "aws_iam" => CreateProjectAutomationConfigVariant2CredentialsVariant1Type.AwsIam, _ => null, }; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs new file mode 100644 index 0000000..b16af4a --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Braintrust +{ + public sealed partial class CreateProjectAutomationConfigVariant2CredentialsVariant2 + { + /// + /// 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::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2), + jsonSerializerContext) as global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2; + } + + /// + /// 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::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2? 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::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2; + } + + /// + /// 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/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2.g.cs new file mode 100644 index 0000000..e9d2b9a --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// + /// + public sealed partial class CreateProjectAutomationConfigVariant2CredentialsVariant2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.CreateProjectAutomationConfigVariant2CredentialsVariant2TypeJsonConverter))] + public global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type Type { get; set; } + + /// + /// The GCP service account email to impersonate + /// + [global::System.Text.Json.Serialization.JsonPropertyName("service_account_email")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ServiceAccountEmail { 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. + /// + /// + /// The GCP service account email to impersonate + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateProjectAutomationConfigVariant2CredentialsVariant2( + string serviceAccountEmail, + global::Braintrust.CreateProjectAutomationConfigVariant2CredentialsVariant2Type type) + { + this.Type = type; + this.ServiceAccountEmail = serviceAccountEmail ?? throw new global::System.ArgumentNullException(nameof(serviceAccountEmail)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateProjectAutomationConfigVariant2CredentialsVariant2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs new file mode 100644 index 0000000..2c9bbb0 --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.CreateProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// + /// + public enum CreateProjectAutomationConfigVariant2CredentialsVariant2Type + { + /// + /// + /// + GcpServiceAccount, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateProjectAutomationConfigVariant2CredentialsVariant2Type value) + { + return value switch + { + CreateProjectAutomationConfigVariant2CredentialsVariant2Type.GcpServiceAccount => "gcp_service_account", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateProjectAutomationConfigVariant2CredentialsVariant2Type? ToEnum(string value) + { + return value switch + { + "gcp_service_account" => CreateProjectAutomationConfigVariant2CredentialsVariant2Type.GcpServiceAccount, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPage.g.cs deleted file mode 100644 index f4c71af..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPage.g.cs +++ /dev/null @@ -1,150 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - /// - /// A public eval status page that displays aggregate experiment results - /// - public sealed partial class EvalStatusPage - { - /// - /// Unique identifier for the eval status page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid Id { get; set; } - - /// - /// Unique identifier for the project that the eval status page belongs under - /// - [global::System.Text.Json.Serialization.JsonPropertyName("project_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Guid ProjectId { get; set; } - - /// - /// Identifies the user who created the eval status page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("user_id")] - public global::System.Guid? UserId { get; set; } - - /// - /// Date of eval status page creation - /// - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public global::System.DateTime? Created { get; set; } - - /// - /// Date of eval status page deletion, or null if the eval status page is still active - /// - [global::System.Text.Json.Serialization.JsonPropertyName("deleted_at")] - public global::System.DateTime? DeletedAt { get; set; } - - /// - /// Name of the eval status page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// Textual description of the eval status page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// URL of the logo to display on the page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("logo_url")] - public string? LogoUrl { get; set; } - - /// - /// The theme for the page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("theme")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.EvalStatusPageThemeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Braintrust.EvalStatusPageTheme Theme { get; set; } - - /// - /// Configuration for what data to display - /// - [global::System.Text.Json.Serialization.JsonPropertyName("config")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Braintrust.EvalStatusPageConfig Config { 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. - /// - /// - /// Unique identifier for the eval status page - /// - /// - /// Unique identifier for the project that the eval status page belongs under - /// - /// - /// Name of the eval status page - /// - /// - /// The theme for the page - /// - /// - /// Configuration for what data to display - /// - /// - /// Identifies the user who created the eval status page - /// - /// - /// Date of eval status page creation - /// - /// - /// Date of eval status page deletion, or null if the eval status page is still active - /// - /// - /// Textual description of the eval status page - /// - /// - /// URL of the logo to display on the page - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public EvalStatusPage( - global::System.Guid id, - global::System.Guid projectId, - string name, - global::Braintrust.EvalStatusPageTheme theme, - global::Braintrust.EvalStatusPageConfig config, - global::System.Guid? userId, - global::System.DateTime? created, - global::System.DateTime? deletedAt, - string? description, - string? logoUrl) - { - this.Id = id; - this.ProjectId = projectId; - this.UserId = userId; - this.Created = created; - this.DeletedAt = deletedAt; - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Description = description; - this.LogoUrl = logoUrl; - this.Theme = theme; - this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); - } - - /// - /// Initializes a new instance of the class. - /// - public EvalStatusPage() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfig.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfig.g.cs deleted file mode 100644 index 55d73ef..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfig.g.cs +++ /dev/null @@ -1,112 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - /// - /// Configuration for what data to display - /// - public sealed partial class EvalStatusPageConfig - { - /// - /// The score columns to display on the page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("score_columns")] - public global::System.Collections.Generic.IList? ScoreColumns { get; set; } - - /// - /// The metric columns to display on the page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metric_columns")] - public global::System.Collections.Generic.IList? MetricColumns { get; set; } - - /// - /// The metadata field to use for grouping experiments (model) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("grouping_field")] - public string? GroupingField { get; set; } - - /// - /// BTQL filter to apply to experiment data - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filter")] - public string? Filter { get; set; } - - /// - /// Field to sort results by (format: 'score:<name>' or 'metric:<name>') - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sort_by")] - public string? SortBy { get; set; } - - /// - /// Sort order (ascending or descending) - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sort_order")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.EvalStatusPageConfigSortOrderJsonConverter))] - public global::Braintrust.EvalStatusPageConfigSortOrder? SortOrder { get; set; } - - /// - /// The API key used for fetching experiment data - /// - [global::System.Text.Json.Serialization.JsonPropertyName("api_key")] - public string? ApiKey { 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. - /// - /// - /// The score columns to display on the page - /// - /// - /// The metric columns to display on the page - /// - /// - /// The metadata field to use for grouping experiments (model) - /// - /// - /// BTQL filter to apply to experiment data - /// - /// - /// Field to sort results by (format: 'score:<name>' or 'metric:<name>') - /// - /// - /// Sort order (ascending or descending) - /// - /// - /// The API key used for fetching experiment data - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public EvalStatusPageConfig( - global::System.Collections.Generic.IList? scoreColumns, - global::System.Collections.Generic.IList? metricColumns, - string? groupingField, - string? filter, - string? sortBy, - global::Braintrust.EvalStatusPageConfigSortOrder? sortOrder, - string? apiKey) - { - this.ScoreColumns = scoreColumns; - this.MetricColumns = metricColumns; - this.GroupingField = groupingField; - this.Filter = filter; - this.SortBy = sortBy; - this.SortOrder = sortOrder; - this.ApiKey = apiKey; - } - - /// - /// Initializes a new instance of the class. - /// - public EvalStatusPageConfig() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfigSortOrder.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfigSortOrder.g.cs deleted file mode 100644 index 8e324d6..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfigSortOrder.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - /// - /// Sort order (ascending or descending) - /// - public enum EvalStatusPageConfigSortOrder - { - /// - /// - /// - Asc, - /// - /// - /// - Desc, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class EvalStatusPageConfigSortOrderExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this EvalStatusPageConfigSortOrder value) - { - return value switch - { - EvalStatusPageConfigSortOrder.Asc => "asc", - EvalStatusPageConfigSortOrder.Desc => "desc", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static EvalStatusPageConfigSortOrder? ToEnum(string value) - { - return value switch - { - "asc" => EvalStatusPageConfigSortOrder.Asc, - "desc" => EvalStatusPageConfigSortOrder.Desc, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.Experiment.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.Experiment.g.cs index bccf036..d621cf4 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.Experiment.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.Experiment.g.cs @@ -77,6 +77,12 @@ public sealed partial class Experiment [global::System.Text.Json.Serialization.JsonPropertyName("dataset_version")] public string? DatasetVersion { get; set; } + /// + /// Braintrust-controlled metadata about the experiment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("internal_metadata")] + public global::Braintrust.ExperimentInternalMetadata? InternalMetadata { get; set; } + /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -159,6 +165,9 @@ public sealed partial class Experiment /// /// Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified. /// + /// + /// Braintrust-controlled metadata about the experiment. + /// /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -190,6 +199,7 @@ public Experiment( global::System.DateTime? deletedAt, global::System.Guid? datasetId, string? datasetVersion, + global::Braintrust.ExperimentInternalMetadata? internalMetadata, global::System.Guid? parametersId, string? parametersVersion, global::System.Guid? userId, @@ -207,6 +217,7 @@ public Experiment( this.DeletedAt = deletedAt; this.DatasetId = datasetId; this.DatasetVersion = datasetVersion; + this.InternalMetadata = internalMetadata; this.ParametersId = parametersId; this.ParametersVersion = parametersVersion; this.Public = @public; diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfig.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadata.Json.g.cs similarity index 85% rename from src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfig.Json.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadata.Json.g.cs index e9e3233..f7c6044 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageConfig.Json.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadata.Json.g.cs @@ -2,7 +2,7 @@ namespace Braintrust { - public sealed partial class EvalStatusPageConfig + public sealed partial class ExperimentInternalMetadata { /// /// 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::Braintrust.EvalStatusPageConfig? FromJson( + public static global::Braintrust.ExperimentInternalMetadata? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Braintrust.EvalStatusPageConfig), - jsonSerializerContext) as global::Braintrust.EvalStatusPageConfig; + typeof(global::Braintrust.ExperimentInternalMetadata), + jsonSerializerContext) as global::Braintrust.ExperimentInternalMetadata; } /// @@ -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::Braintrust.EvalStatusPageConfig? FromJson( + public static global::Braintrust.ExperimentInternalMetadata? 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::Braintrust.EvalStatusPageConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.EvalStatusPageConfig; + typeof(global::Braintrust.ExperimentInternalMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.ExperimentInternalMetadata; } /// @@ -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/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadata.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadata.g.cs new file mode 100644 index 0000000..c3f63e2 --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadata.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// Braintrust-controlled metadata about the experiment. + /// + public sealed partial class ExperimentInternalMetadata + { + /// + /// BTQL filter payload used to evaluate a subset of a linked dataset. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dataset_filter")] + public global::System.Collections.Generic.Dictionary? DatasetFilter { 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. + /// + /// + /// BTQL filter payload used to evaluate a subset of a linked dataset. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ExperimentInternalMetadata( + global::System.Collections.Generic.Dictionary? datasetFilter) + { + this.DatasetFilter = datasetFilter; + } + + /// + /// Initializes a new instance of the class. + /// + public ExperimentInternalMetadata() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPage.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadataDatasetFilter.Json.g.cs similarity index 83% rename from src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPage.Json.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadataDatasetFilter.Json.g.cs index ee643a7..48f5802 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPage.Json.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadataDatasetFilter.Json.g.cs @@ -2,7 +2,7 @@ namespace Braintrust { - public sealed partial class EvalStatusPage + public sealed partial class ExperimentInternalMetadataDatasetFilter { /// /// 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::Braintrust.EvalStatusPage? FromJson( + public static global::Braintrust.ExperimentInternalMetadataDatasetFilter? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Braintrust.EvalStatusPage), - jsonSerializerContext) as global::Braintrust.EvalStatusPage; + typeof(global::Braintrust.ExperimentInternalMetadataDatasetFilter), + jsonSerializerContext) as global::Braintrust.ExperimentInternalMetadataDatasetFilter; } /// @@ -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::Braintrust.EvalStatusPage? FromJson( + public static global::Braintrust.ExperimentInternalMetadataDatasetFilter? 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::Braintrust.EvalStatusPage), - jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.EvalStatusPage; + typeof(global::Braintrust.ExperimentInternalMetadataDatasetFilter), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.ExperimentInternalMetadataDatasetFilter; } /// @@ -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/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadataDatasetFilter.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadataDatasetFilter.g.cs new file mode 100644 index 0000000..7cbf7bd --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ExperimentInternalMetadataDatasetFilter.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// BTQL filter payload used to evaluate a subset of a linked dataset. + /// + public sealed partial class ExperimentInternalMetadataDatasetFilter + { + + /// + /// 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/Braintrust/Generated/Braintrust.Models.PatchEvalStatusPage.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchEvalStatusPage.g.cs deleted file mode 100644 index 63e730d..0000000 --- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchEvalStatusPage.g.cs +++ /dev/null @@ -1,90 +0,0 @@ - -#nullable enable - -namespace Braintrust -{ - /// - /// - /// - public sealed partial class PatchEvalStatusPage - { - /// - /// Name of the eval status page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// Textual description of the eval status page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// URL of the logo to display on the page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("logo_url")] - public string? LogoUrl { get; set; } - - /// - /// The theme for the page - /// - [global::System.Text.Json.Serialization.JsonPropertyName("theme")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.EvalStatusPageThemeJsonConverter))] - public global::Braintrust.EvalStatusPageTheme? Theme { get; set; } - - /// - /// Configuration for what data to display - /// - [global::System.Text.Json.Serialization.JsonPropertyName("config")] - public global::Braintrust.EvalStatusPageConfig? Config { 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. - /// - /// - /// Name of the eval status page - /// - /// - /// Textual description of the eval status page - /// - /// - /// URL of the logo to display on the page - /// - /// - /// The theme for the page - /// - /// - /// Configuration for what data to display - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public PatchEvalStatusPage( - string? name, - string? description, - string? logoUrl, - global::Braintrust.EvalStatusPageTheme? theme, - global::Braintrust.EvalStatusPageConfig? config) - { - this.Name = name; - this.Description = description; - this.LogoUrl = logoUrl; - this.Theme = theme; - this.Config = config; - } - - /// - /// Initializes a new instance of the class. - /// - public PatchEvalStatusPage() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperiment.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperiment.g.cs index a6851b1..905df49 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperiment.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperiment.g.cs @@ -44,6 +44,12 @@ public sealed partial class PatchExperiment [global::System.Text.Json.Serialization.JsonPropertyName("dataset_version")] public string? DatasetVersion { get; set; } + /// + /// Braintrust-controlled metadata about the experiment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("internal_metadata")] + public global::Braintrust.PatchExperimentInternalMetadata? InternalMetadata { get; set; } + /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -101,6 +107,9 @@ public sealed partial class PatchExperiment /// /// Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified. /// + /// + /// Braintrust-controlled metadata about the experiment. + /// /// /// Identifier of the linked saved parameters object, or null if the experiment is not linked to saved parameters /// @@ -126,6 +135,7 @@ public PatchExperiment( global::System.Guid? baseExpId, global::System.Guid? datasetId, string? datasetVersion, + global::Braintrust.PatchExperimentInternalMetadata? internalMetadata, global::System.Guid? parametersId, string? parametersVersion, bool? @public, @@ -138,6 +148,7 @@ public PatchExperiment( this.BaseExpId = baseExpId; this.DatasetId = datasetId; this.DatasetVersion = datasetVersion; + this.InternalMetadata = internalMetadata; this.ParametersId = parametersId; this.ParametersVersion = parametersVersion; this.Public = @public; diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchEvalStatusPage.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadata.Json.g.cs similarity index 85% rename from src/libs/Braintrust/Generated/Braintrust.Models.PatchEvalStatusPage.Json.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadata.Json.g.cs index 1385f96..25e796f 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchEvalStatusPage.Json.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadata.Json.g.cs @@ -2,7 +2,7 @@ namespace Braintrust { - public sealed partial class PatchEvalStatusPage + public sealed partial class PatchExperimentInternalMetadata { /// /// 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::Braintrust.PatchEvalStatusPage? FromJson( + public static global::Braintrust.PatchExperimentInternalMetadata? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Braintrust.PatchEvalStatusPage), - jsonSerializerContext) as global::Braintrust.PatchEvalStatusPage; + typeof(global::Braintrust.PatchExperimentInternalMetadata), + jsonSerializerContext) as global::Braintrust.PatchExperimentInternalMetadata; } /// @@ -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::Braintrust.PatchEvalStatusPage? FromJson( + public static global::Braintrust.PatchExperimentInternalMetadata? 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::Braintrust.PatchEvalStatusPage), - jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.PatchEvalStatusPage; + typeof(global::Braintrust.PatchExperimentInternalMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.PatchExperimentInternalMetadata; } /// @@ -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/Braintrust/Generated/Braintrust.Models.GetEvalStatusPageResponse.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadata.g.cs similarity index 50% rename from src/libs/Braintrust/Generated/Braintrust.Models.GetEvalStatusPageResponse.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadata.g.cs index 53d1c87..bb044f7 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.GetEvalStatusPageResponse.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadata.g.cs @@ -4,16 +4,15 @@ namespace Braintrust { /// - /// + /// Braintrust-controlled metadata about the experiment. /// - public sealed partial class GetEvalStatusPageResponse + public sealed partial class PatchExperimentInternalMetadata { /// - /// A list of eval_status_page objects + /// BTQL filter payload used to evaluate a subset of a linked dataset. /// - [global::System.Text.Json.Serialization.JsonPropertyName("objects")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Objects { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("dataset_filter")] + public global::System.Collections.Generic.Dictionary? DatasetFilter { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -22,24 +21,24 @@ public sealed partial class GetEvalStatusPageResponse 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. /// - /// - /// A list of eval_status_page objects + /// + /// BTQL filter payload used to evaluate a subset of a linked dataset. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetEvalStatusPageResponse( - global::System.Collections.Generic.IList objects) + public PatchExperimentInternalMetadata( + global::System.Collections.Generic.Dictionary? datasetFilter) { - this.Objects = objects ?? throw new global::System.ArgumentNullException(nameof(objects)); + this.DatasetFilter = datasetFilter; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetEvalStatusPageResponse() + public PatchExperimentInternalMetadata() { } } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.GetEvalStatusPageResponse.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadataDatasetFilter.Json.g.cs similarity index 82% rename from src/libs/Braintrust/Generated/Braintrust.Models.GetEvalStatusPageResponse.Json.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadataDatasetFilter.Json.g.cs index 4278538..6cec5c7 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.GetEvalStatusPageResponse.Json.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadataDatasetFilter.Json.g.cs @@ -2,7 +2,7 @@ namespace Braintrust { - public sealed partial class GetEvalStatusPageResponse + public sealed partial class PatchExperimentInternalMetadataDatasetFilter { /// /// 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::Braintrust.GetEvalStatusPageResponse? FromJson( + public static global::Braintrust.PatchExperimentInternalMetadataDatasetFilter? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Braintrust.GetEvalStatusPageResponse), - jsonSerializerContext) as global::Braintrust.GetEvalStatusPageResponse; + typeof(global::Braintrust.PatchExperimentInternalMetadataDatasetFilter), + jsonSerializerContext) as global::Braintrust.PatchExperimentInternalMetadataDatasetFilter; } /// @@ -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::Braintrust.GetEvalStatusPageResponse? FromJson( + public static global::Braintrust.PatchExperimentInternalMetadataDatasetFilter? 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::Braintrust.GetEvalStatusPageResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.GetEvalStatusPageResponse; + typeof(global::Braintrust.PatchExperimentInternalMetadataDatasetFilter), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.PatchExperimentInternalMetadataDatasetFilter; } /// @@ -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/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadataDatasetFilter.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadataDatasetFilter.g.cs new file mode 100644 index 0000000..cae5bdc --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchExperimentInternalMetadataDatasetFilter.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// BTQL filter payload used to evaluate a subset of a linked dataset. + /// + public sealed partial class PatchExperimentInternalMetadataDatasetFilter + { + + /// + /// 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/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2.g.cs index 8ab49d6..8c556fa 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2.g.cs @@ -23,6 +23,13 @@ public sealed partial class PatchProjectAutomationConfigVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required global::Braintrust.OneOf ExportDefinition { get; set; } + /// + /// Execution scope for export automation. Defaults to span-level execution. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.AnyOfJsonConverter))] + public global::Braintrust.AnyOf? Scope { get; set; } + /// /// The path to export the results to. It should include the storage protocol and prefix, e.g. s3://bucket-name/path/to/export /// @@ -49,8 +56,9 @@ public sealed partial class PatchProjectAutomationConfigVariant2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("credentials")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Braintrust.PatchProjectAutomationConfigVariant2Credentials Credentials { get; set; } + public required global::Braintrust.OneOf Credentials { get; set; } /// /// The number of rows to export in each batch @@ -83,6 +91,9 @@ public sealed partial class PatchProjectAutomationConfigVariant2 /// /// The type of automation. /// + /// + /// Execution scope for export automation. Defaults to span-level execution. + /// /// /// The number of rows to export in each batch /// @@ -94,16 +105,18 @@ public PatchProjectAutomationConfigVariant2( string exportPath, global::Braintrust.PatchProjectAutomationConfigVariant2Format format, double intervalSeconds, - global::Braintrust.PatchProjectAutomationConfigVariant2Credentials credentials, + global::Braintrust.OneOf credentials, global::Braintrust.PatchProjectAutomationConfigVariant2EventType eventType, + global::Braintrust.AnyOf? scope, double? batchSize) { this.EventType = eventType; this.ExportDefinition = exportDefinition; + this.Scope = scope; this.ExportPath = exportPath ?? throw new global::System.ArgumentNullException(nameof(exportPath)); this.Format = format; this.IntervalSeconds = intervalSeconds; - this.Credentials = credentials ?? throw new global::System.ArgumentNullException(nameof(credentials)); + this.Credentials = credentials; this.BatchSize = batchSize; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2Credentials.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs similarity index 93% rename from src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2Credentials.Json.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs index d14a075..cfd23fd 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2Credentials.Json.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs @@ -2,7 +2,7 @@ namespace Braintrust { - public sealed partial class PatchProjectAutomationConfigVariant2Credentials + public sealed partial class PatchProjectAutomationConfigVariant2CredentialsVariant1 { /// /// 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::Braintrust.PatchProjectAutomationConfigVariant2Credentials? FromJson( + public static global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Braintrust.PatchProjectAutomationConfigVariant2Credentials), - jsonSerializerContext) as global::Braintrust.PatchProjectAutomationConfigVariant2Credentials; + typeof(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1), + jsonSerializerContext) as global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1; } /// @@ -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::Braintrust.PatchProjectAutomationConfigVariant2Credentials? FromJson( + public static global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1? 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::Braintrust.PatchProjectAutomationConfigVariant2Credentials), - jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.PatchProjectAutomationConfigVariant2Credentials; + typeof(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1; } /// @@ -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/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2Credentials.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1.g.cs similarity index 85% rename from src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2Credentials.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1.g.cs index 028490e..9d75186 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2Credentials.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1.g.cs @@ -6,14 +6,14 @@ namespace Braintrust /// /// /// - public sealed partial class PatchProjectAutomationConfigVariant2Credentials + public sealed partial class PatchProjectAutomationConfigVariant2CredentialsVariant1 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsTypeJsonConverter))] - public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant1TypeJsonConverter))] + public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type Type { get; set; } /// /// The ARN of the IAM role to use @@ -36,7 +36,7 @@ public sealed partial class PatchProjectAutomationConfigVariant2Credentials 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. /// /// /// The ARN of the IAM role to use @@ -48,10 +48,10 @@ public sealed partial class PatchProjectAutomationConfigVariant2Credentials #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public PatchProjectAutomationConfigVariant2Credentials( + public PatchProjectAutomationConfigVariant2CredentialsVariant1( string roleArn, string externalId, - global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsType type) + global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant1Type type) { this.Type = type; this.RoleArn = roleArn ?? throw new global::System.ArgumentNullException(nameof(roleArn)); @@ -59,9 +59,9 @@ public PatchProjectAutomationConfigVariant2Credentials( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PatchProjectAutomationConfigVariant2Credentials() + public PatchProjectAutomationConfigVariant2CredentialsVariant1() { } } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsType.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs similarity index 75% rename from src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsType.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs index 255109a..3749ec9 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsType.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs @@ -6,7 +6,7 @@ namespace Braintrust /// /// /// - public enum PatchProjectAutomationConfigVariant2CredentialsType + public enum PatchProjectAutomationConfigVariant2CredentialsVariant1Type { /// /// @@ -17,27 +17,27 @@ public enum PatchProjectAutomationConfigVariant2CredentialsType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class PatchProjectAutomationConfigVariant2CredentialsTypeExtensions + public static class PatchProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this PatchProjectAutomationConfigVariant2CredentialsType value) + public static string ToValueString(this PatchProjectAutomationConfigVariant2CredentialsVariant1Type value) { return value switch { - PatchProjectAutomationConfigVariant2CredentialsType.AwsIam => "aws_iam", + PatchProjectAutomationConfigVariant2CredentialsVariant1Type.AwsIam => "aws_iam", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static PatchProjectAutomationConfigVariant2CredentialsType? ToEnum(string value) + public static PatchProjectAutomationConfigVariant2CredentialsVariant1Type? ToEnum(string value) { return value switch { - "aws_iam" => PatchProjectAutomationConfigVariant2CredentialsType.AwsIam, + "aws_iam" => PatchProjectAutomationConfigVariant2CredentialsVariant1Type.AwsIam, _ => null, }; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs new file mode 100644 index 0000000..9c2bf47 --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Braintrust +{ + public sealed partial class PatchProjectAutomationConfigVariant2CredentialsVariant2 + { + /// + /// 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::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2), + jsonSerializerContext) as global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2; + } + + /// + /// 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::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2? 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::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2; + } + + /// + /// 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/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2.g.cs new file mode 100644 index 0000000..24025fc --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// + /// + public sealed partial class PatchProjectAutomationConfigVariant2CredentialsVariant2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.PatchProjectAutomationConfigVariant2CredentialsVariant2TypeJsonConverter))] + public global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type Type { get; set; } + + /// + /// The GCP service account email to impersonate + /// + [global::System.Text.Json.Serialization.JsonPropertyName("service_account_email")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ServiceAccountEmail { 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. + /// + /// + /// The GCP service account email to impersonate + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchProjectAutomationConfigVariant2CredentialsVariant2( + string serviceAccountEmail, + global::Braintrust.PatchProjectAutomationConfigVariant2CredentialsVariant2Type type) + { + this.Type = type; + this.ServiceAccountEmail = serviceAccountEmail ?? throw new global::System.ArgumentNullException(nameof(serviceAccountEmail)); + } + + /// + /// Initializes a new instance of the class. + /// + public PatchProjectAutomationConfigVariant2CredentialsVariant2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs new file mode 100644 index 0000000..e3cef09 --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.PatchProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// + /// + public enum PatchProjectAutomationConfigVariant2CredentialsVariant2Type + { + /// + /// + /// + GcpServiceAccount, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PatchProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PatchProjectAutomationConfigVariant2CredentialsVariant2Type value) + { + return value switch + { + PatchProjectAutomationConfigVariant2CredentialsVariant2Type.GcpServiceAccount => "gcp_service_account", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PatchProjectAutomationConfigVariant2CredentialsVariant2Type? ToEnum(string value) + { + return value switch + { + "gcp_service_account" => PatchProjectAutomationConfigVariant2CredentialsVariant2Type.GcpServiceAccount, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2.g.cs index 839b573..d51d1a1 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2.g.cs @@ -23,6 +23,13 @@ public sealed partial class ProjectAutomationConfigVariant2 [global::System.Text.Json.Serialization.JsonRequired] public required global::Braintrust.OneOf ExportDefinition { get; set; } + /// + /// Execution scope for export automation. Defaults to span-level execution. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scope")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.AnyOfJsonConverter))] + public global::Braintrust.AnyOf? Scope { get; set; } + /// /// The path to export the results to. It should include the storage protocol and prefix, e.g. s3://bucket-name/path/to/export /// @@ -49,8 +56,9 @@ public sealed partial class ProjectAutomationConfigVariant2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("credentials")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Braintrust.ProjectAutomationConfigVariant2Credentials Credentials { get; set; } + public required global::Braintrust.OneOf Credentials { get; set; } /// /// The number of rows to export in each batch @@ -83,6 +91,9 @@ public sealed partial class ProjectAutomationConfigVariant2 /// /// The type of automation. /// + /// + /// Execution scope for export automation. Defaults to span-level execution. + /// /// /// The number of rows to export in each batch /// @@ -94,16 +105,18 @@ public ProjectAutomationConfigVariant2( string exportPath, global::Braintrust.ProjectAutomationConfigVariant2Format format, double intervalSeconds, - global::Braintrust.ProjectAutomationConfigVariant2Credentials credentials, + global::Braintrust.OneOf credentials, global::Braintrust.ProjectAutomationConfigVariant2EventType eventType, + global::Braintrust.AnyOf? scope, double? batchSize) { this.EventType = eventType; this.ExportDefinition = exportDefinition; + this.Scope = scope; this.ExportPath = exportPath ?? throw new global::System.ArgumentNullException(nameof(exportPath)); this.Format = format; this.IntervalSeconds = intervalSeconds; - this.Credentials = credentials ?? throw new global::System.ArgumentNullException(nameof(credentials)); + this.Credentials = credentials; this.BatchSize = batchSize; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2Credentials.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs similarity index 91% rename from src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2Credentials.Json.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs index edceb67..1a1d8b5 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2Credentials.Json.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1.Json.g.cs @@ -2,7 +2,7 @@ namespace Braintrust { - public sealed partial class ProjectAutomationConfigVariant2Credentials + public sealed partial class ProjectAutomationConfigVariant2CredentialsVariant1 { /// /// 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::Braintrust.ProjectAutomationConfigVariant2Credentials? FromJson( + public static global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Braintrust.ProjectAutomationConfigVariant2Credentials), - jsonSerializerContext) as global::Braintrust.ProjectAutomationConfigVariant2Credentials; + typeof(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1), + jsonSerializerContext) as global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1; } /// @@ -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::Braintrust.ProjectAutomationConfigVariant2Credentials? FromJson( + public static global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1? 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::Braintrust.ProjectAutomationConfigVariant2Credentials), - jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.ProjectAutomationConfigVariant2Credentials; + typeof(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1; } /// @@ -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/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2Credentials.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1.g.cs similarity index 86% rename from src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2Credentials.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1.g.cs index 3a6e9f2..ce493a0 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2Credentials.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1.g.cs @@ -6,14 +6,14 @@ namespace Braintrust /// /// /// - public sealed partial class ProjectAutomationConfigVariant2Credentials + public sealed partial class ProjectAutomationConfigVariant2CredentialsVariant1 { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsTypeJsonConverter))] - public global::Braintrust.ProjectAutomationConfigVariant2CredentialsType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant1TypeJsonConverter))] + public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type Type { get; set; } /// /// The ARN of the IAM role to use @@ -36,7 +36,7 @@ public sealed partial class ProjectAutomationConfigVariant2Credentials 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. /// /// /// The ARN of the IAM role to use @@ -48,10 +48,10 @@ public sealed partial class ProjectAutomationConfigVariant2Credentials #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ProjectAutomationConfigVariant2Credentials( + public ProjectAutomationConfigVariant2CredentialsVariant1( string roleArn, string externalId, - global::Braintrust.ProjectAutomationConfigVariant2CredentialsType type) + global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant1Type type) { this.Type = type; this.RoleArn = roleArn ?? throw new global::System.ArgumentNullException(nameof(roleArn)); @@ -59,9 +59,9 @@ public ProjectAutomationConfigVariant2Credentials( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ProjectAutomationConfigVariant2Credentials() + public ProjectAutomationConfigVariant2CredentialsVariant1() { } } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsType.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs similarity index 77% rename from src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsType.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs index 626e3cc..0a02821 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsType.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant1Type.g.cs @@ -6,7 +6,7 @@ namespace Braintrust /// /// /// - public enum ProjectAutomationConfigVariant2CredentialsType + public enum ProjectAutomationConfigVariant2CredentialsVariant1Type { /// /// @@ -17,27 +17,27 @@ public enum ProjectAutomationConfigVariant2CredentialsType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ProjectAutomationConfigVariant2CredentialsTypeExtensions + public static class ProjectAutomationConfigVariant2CredentialsVariant1TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ProjectAutomationConfigVariant2CredentialsType value) + public static string ToValueString(this ProjectAutomationConfigVariant2CredentialsVariant1Type value) { return value switch { - ProjectAutomationConfigVariant2CredentialsType.AwsIam => "aws_iam", + ProjectAutomationConfigVariant2CredentialsVariant1Type.AwsIam => "aws_iam", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ProjectAutomationConfigVariant2CredentialsType? ToEnum(string value) + public static ProjectAutomationConfigVariant2CredentialsVariant1Type? ToEnum(string value) { return value switch { - "aws_iam" => ProjectAutomationConfigVariant2CredentialsType.AwsIam, + "aws_iam" => ProjectAutomationConfigVariant2CredentialsVariant1Type.AwsIam, _ => null, }; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs new file mode 100644 index 0000000..4bdca20 --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Braintrust +{ + public sealed partial class ProjectAutomationConfigVariant2CredentialsVariant2 + { + /// + /// 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::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2), + jsonSerializerContext) as global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2; + } + + /// + /// 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::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2? 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::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2; + } + + /// + /// 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/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2.g.cs new file mode 100644 index 0000000..05630fe --- /dev/null +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace Braintrust +{ + /// + /// + /// + public sealed partial class ProjectAutomationConfigVariant2CredentialsVariant2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.ProjectAutomationConfigVariant2CredentialsVariant2TypeJsonConverter))] + public global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type Type { get; set; } + + /// + /// The GCP service account email to impersonate + /// + [global::System.Text.Json.Serialization.JsonPropertyName("service_account_email")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ServiceAccountEmail { 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. + /// + /// + /// The GCP service account email to impersonate + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ProjectAutomationConfigVariant2CredentialsVariant2( + string serviceAccountEmail, + global::Braintrust.ProjectAutomationConfigVariant2CredentialsVariant2Type type) + { + this.Type = type; + this.ServiceAccountEmail = serviceAccountEmail ?? throw new global::System.ArgumentNullException(nameof(serviceAccountEmail)); + } + + /// + /// Initializes a new instance of the class. + /// + public ProjectAutomationConfigVariant2CredentialsVariant2() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageTheme.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs similarity index 53% rename from src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageTheme.g.cs rename to src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs index 12215a6..8141885 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.EvalStatusPageTheme.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ProjectAutomationConfigVariant2CredentialsVariant2Type.g.cs @@ -4,46 +4,40 @@ namespace Braintrust { /// - /// The theme for the page + /// /// - public enum EvalStatusPageTheme + public enum ProjectAutomationConfigVariant2CredentialsVariant2Type { /// /// /// - Dark, - /// - /// - /// - Light, + GcpServiceAccount, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class EvalStatusPageThemeExtensions + public static class ProjectAutomationConfigVariant2CredentialsVariant2TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this EvalStatusPageTheme value) + public static string ToValueString(this ProjectAutomationConfigVariant2CredentialsVariant2Type value) { return value switch { - EvalStatusPageTheme.Dark => "dark", - EvalStatusPageTheme.Light => "light", + ProjectAutomationConfigVariant2CredentialsVariant2Type.GcpServiceAccount => "gcp_service_account", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static EvalStatusPageTheme? ToEnum(string value) + public static ProjectAutomationConfigVariant2CredentialsVariant2Type? ToEnum(string value) { return value switch { - "dark" => EvalStatusPageTheme.Dark, - "light" => EvalStatusPageTheme.Light, + "gcp_service_account" => ProjectAutomationConfigVariant2CredentialsVariant2Type.GcpServiceAccount, _ => null, }; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.RunEvalDataDatasetId.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.RunEvalDataDatasetId.g.cs index ef544ed..8e600bc 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.RunEvalDataDatasetId.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.RunEvalDataDatasetId.g.cs @@ -15,6 +15,18 @@ public sealed partial class RunEvalDataDatasetId [global::System.Text.Json.Serialization.JsonRequired] public required string DatasetId { get; set; } + /// + /// The version of the dataset to evaluate + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dataset_version")] + public string? DatasetVersion { get; set; } + + /// + /// The environment tag that resolves to the dataset version to evaluate + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dataset_environment")] + public string? DatasetEnvironment { get; set; } + /// /// /// @@ -31,15 +43,25 @@ public sealed partial class RunEvalDataDatasetId /// Initializes a new instance of the class. /// /// + /// + /// The version of the dataset to evaluate + /// + /// + /// The environment tag that resolves to the dataset version to evaluate + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RunEvalDataDatasetId( string datasetId, + string? datasetVersion, + string? datasetEnvironment, global::System.Collections.Generic.Dictionary? internalBtql) { this.DatasetId = datasetId ?? throw new global::System.ArgumentNullException(nameof(datasetId)); + this.DatasetVersion = datasetVersion; + this.DatasetEnvironment = datasetEnvironment; this.InternalBtql = internalBtql; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.RunEvalDataProjectDatasetName.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.RunEvalDataProjectDatasetName.g.cs index fc949bc..6f0cbc9 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.RunEvalDataProjectDatasetName.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.RunEvalDataProjectDatasetName.g.cs @@ -22,6 +22,18 @@ public sealed partial class RunEvalDataProjectDatasetName [global::System.Text.Json.Serialization.JsonRequired] public required string DatasetName { get; set; } + /// + /// The version of the dataset to evaluate + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dataset_version")] + public string? DatasetVersion { get; set; } + + /// + /// The environment tag that resolves to the dataset version to evaluate + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dataset_environment")] + public string? DatasetEnvironment { get; set; } + /// /// /// @@ -39,6 +51,12 @@ public sealed partial class RunEvalDataProjectDatasetName /// /// /// + /// + /// The version of the dataset to evaluate + /// + /// + /// The environment tag that resolves to the dataset version to evaluate + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -46,10 +64,14 @@ public sealed partial class RunEvalDataProjectDatasetName public RunEvalDataProjectDatasetName( string projectName, string datasetName, + string? datasetVersion, + string? datasetEnvironment, global::System.Collections.Generic.Dictionary? internalBtql) { this.ProjectName = projectName ?? throw new global::System.ArgumentNullException(nameof(projectName)); this.DatasetName = datasetName ?? throw new global::System.ArgumentNullException(nameof(datasetName)); + this.DatasetVersion = datasetVersion; + this.DatasetEnvironment = datasetEnvironment; this.InternalBtql = internalBtql; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.ViewOptionsTableViewOptions.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ViewOptionsTableViewOptions.g.cs index 53618d3..e067340 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.ViewOptionsTableViewOptions.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ViewOptionsTableViewOptions.g.cs @@ -50,6 +50,12 @@ public sealed partial class ViewOptionsTableViewOptions [global::System.Text.Json.Serialization.JsonPropertyName("layout")] public string? Layout { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("topicMapReportKey")] + public string? TopicMapReportKey { get; set; } + /// /// /// @@ -106,6 +112,12 @@ public sealed partial class ViewOptionsTableViewOptions [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Braintrust.JsonConverters.ViewOptionsTableViewOptionsQueryShapeJsonConverter))] public global::Braintrust.ViewOptionsTableViewOptionsQueryShape? QueryShape { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cluster")] + public string? Cluster { get; set; } + /// /// /// @@ -128,6 +140,7 @@ public sealed partial class ViewOptionsTableViewOptions /// /// /// + /// /// /// /// @@ -139,6 +152,7 @@ public sealed partial class ViewOptionsTableViewOptions /// /// /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -151,6 +165,7 @@ public ViewOptionsTableViewOptions( string? rowHeight, bool? tallGroupRows, string? layout, + string? topicMapReportKey, double? chartHeight, global::System.Collections.Generic.IList? excludedMeasures, global::Braintrust.ViewOptionsTableViewOptionsYMetric? yMetric, @@ -160,6 +175,7 @@ public ViewOptionsTableViewOptions( global::System.Collections.Generic.IList? chartAnnotations, global::Braintrust.AnyOf? timeRangeFilter, global::Braintrust.ViewOptionsTableViewOptionsQueryShape? queryShape, + string? cluster, bool? freezeColumns) { this.ColumnVisibility = columnVisibility; @@ -169,6 +185,7 @@ public ViewOptionsTableViewOptions( this.RowHeight = rowHeight; this.TallGroupRows = tallGroupRows; this.Layout = layout; + this.TopicMapReportKey = topicMapReportKey; this.ChartHeight = chartHeight; this.ExcludedMeasures = excludedMeasures; this.YMetric = yMetric; @@ -178,6 +195,7 @@ public ViewOptionsTableViewOptions( this.ChartAnnotations = chartAnnotations; this.TimeRangeFilter = timeRangeFilter; this.QueryShape = queryShape; + this.Cluster = cluster; this.FreezeColumns = freezeColumns; } diff --git a/src/libs/Braintrust/Generated/Braintrust.Models.ViewOptionsTableViewOptionsQueryShape.g.cs b/src/libs/Braintrust/Generated/Braintrust.Models.ViewOptionsTableViewOptionsQueryShape.g.cs index c481619..c491d66 100644 --- a/src/libs/Braintrust/Generated/Braintrust.Models.ViewOptionsTableViewOptionsQueryShape.g.cs +++ b/src/libs/Braintrust/Generated/Braintrust.Models.ViewOptionsTableViewOptionsQueryShape.g.cs @@ -15,6 +15,10 @@ public enum ViewOptionsTableViewOptionsQueryShape /// /// /// + Topics, + /// + /// + /// Traces, } @@ -31,6 +35,7 @@ public static string ToValueString(this ViewOptionsTableViewOptionsQueryShape va return value switch { ViewOptionsTableViewOptionsQueryShape.Spans => "spans", + ViewOptionsTableViewOptionsQueryShape.Topics => "topics", ViewOptionsTableViewOptionsQueryShape.Traces => "traces", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -43,6 +48,7 @@ public static string ToValueString(this ViewOptionsTableViewOptionsQueryShape va return value switch { "spans" => ViewOptionsTableViewOptionsQueryShape.Spans, + "topics" => ViewOptionsTableViewOptionsQueryShape.Topics, "traces" => ViewOptionsTableViewOptionsQueryShape.Traces, _ => null, }; diff --git a/src/libs/Braintrust/openapi.yaml b/src/libs/Braintrust/openapi.yaml index bcaf0a2..22cc66b 100644 --- a/src/libs/Braintrust/openapi.yaml +++ b/src/libs/Braintrust/openapi.yaml @@ -94,11 +94,6 @@ "format": "uuid", "description": "SpanIframe id" }, - "EvalStatusPageIdParam": { - "type": "string", - "format": "uuid", - "description": "EvalStatusPage id" - }, "FunctionIdParam": { "type": "string", "format": "uuid", @@ -193,10 +188,6 @@ "type": "string", "description": "Name of the span_iframe to search for" }, - "EvalStatusPageName": { - "type": "string", - "description": "Name of the eval_status_page to search for" - }, "FunctionName": { "type": "string", "description": "Name of the function to search for" @@ -1694,6 +1685,24 @@ "nullable": true, "description": "Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified." }, + "internal_metadata": { + "type": "object", + "nullable": true, + "properties": { + "dataset_filter": { + "type": "object", + "nullable": true, + "additionalProperties": { + "nullable": true + }, + "description": "BTQL filter payload used to evaluate a subset of a linked dataset." + } + }, + "additionalProperties": { + "nullable": true + }, + "description": "Braintrust-controlled metadata about the experiment." + }, "parameters_id": { "type": "string", "nullable": true, @@ -1778,6 +1787,24 @@ "nullable": true, "description": "Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified." }, + "internal_metadata": { + "type": "object", + "nullable": true, + "properties": { + "dataset_filter": { + "type": "object", + "nullable": true, + "additionalProperties": { + "nullable": true + }, + "description": "BTQL filter payload used to evaluate a subset of a linked dataset." + } + }, + "additionalProperties": { + "nullable": true + }, + "description": "Braintrust-controlled metadata about the experiment." + }, "parameters_id": { "type": "string", "nullable": true, @@ -1853,6 +1880,24 @@ "nullable": true, "description": "Version number of the linked dataset the experiment was run against. This can be used to reproduce the experiment after the dataset has been modified." }, + "internal_metadata": { + "type": "object", + "nullable": true, + "properties": { + "dataset_filter": { + "type": "object", + "nullable": true, + "additionalProperties": { + "nullable": true + }, + "description": "BTQL filter payload used to evaluate a subset of a linked dataset." + } + }, + "additionalProperties": { + "nullable": true + }, + "description": "Braintrust-controlled metadata about the experiment." + }, "parameters_id": { "type": "string", "nullable": true, @@ -5022,6 +5067,64 @@ "id" ] }, + "SpanScope": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "span" + ] + } + }, + "required": [ + "type" + ], + "description": "Process individual spans" + }, + "TraceScope": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "trace" + ] + }, + "idle_seconds": { + "type": "number", + "description": "Consider trace complete after this many seconds of inactivity (default: 30)" + } + }, + "required": [ + "type" + ], + "description": "Process entire traces (all spans sharing the same root_span_id)" + }, + "GroupScope": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "group" + ] + }, + "group_by": { + "type": "string", + "description": "Field path to group by, e.g. metadata.session_id" + }, + "idle_seconds": { + "type": "number", + "description": "Optional: trigger after this many seconds of inactivity" + } + }, + "required": [ + "type", + "group_by" + ], + "description": "Process spans/traces grouped by a field (e.g., session_id)" + }, "RetentionObjectType": { "type": "string", "enum": [ @@ -5101,64 +5204,6 @@ "function" ] }, - "SpanScope": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "span" - ] - } - }, - "required": [ - "type" - ], - "description": "Process individual spans" - }, - "TraceScope": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "trace" - ] - }, - "idle_seconds": { - "type": "number", - "description": "Consider trace complete after this many seconds of inactivity (default: 30)" - } - }, - "required": [ - "type" - ], - "description": "Process entire traces (all spans sharing the same root_span_id)" - }, - "GroupScope": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "group" - ] - }, - "group_by": { - "type": "string", - "description": "Field path to group by, e.g. metadata.session_id" - }, - "idle_seconds": { - "type": "number", - "description": "Optional: trigger after this many seconds of inactivity" - } - }, - "required": [ - "type", - "group_by" - ], - "description": "Process spans/traces grouped by a field (e.g., session_id)" - }, "TopicAutomationDataScope": { "anyOf": [ { @@ -5547,6 +5592,23 @@ ], "description": "The definition of what to export" }, + "scope": { + "anyOf": [ + { + "$ref": "#/components/schemas/SpanScope" + }, + { + "$ref": "#/components/schemas/TraceScope" + }, + { + "$ref": "#/components/schemas/GroupScope" + }, + { + "type": "null" + } + ], + "description": "Execution scope for export automation. Defaults to span-level execution." + }, "export_path": { "type": "string", "description": "The path to export the results to. It should include the storage protocol and prefix, e.g. s3://bucket-name/path/to/export" @@ -5590,6 +5652,25 @@ "role_arn", "external_id" ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gcp_service_account" + ] + }, + "service_account_email": { + "type": "string", + "description": "The GCP service account email to impersonate" + } + }, + "required": [ + "type", + "service_account_email" + ] } ] }, @@ -5887,6 +5968,23 @@ ], "description": "The definition of what to export" }, + "scope": { + "anyOf": [ + { + "$ref": "#/components/schemas/SpanScope" + }, + { + "$ref": "#/components/schemas/TraceScope" + }, + { + "$ref": "#/components/schemas/GroupScope" + }, + { + "type": "null" + } + ], + "description": "Execution scope for export automation. Defaults to span-level execution." + }, "export_path": { "type": "string", "description": "The path to export the results to. It should include the storage protocol and prefix, e.g. s3://bucket-name/path/to/export" @@ -5930,6 +6028,25 @@ "role_arn", "external_id" ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gcp_service_account" + ] + }, + "service_account_email": { + "type": "string", + "description": "The GCP service account email to impersonate" + } + }, + "required": [ + "type", + "service_account_email" + ] } ] }, @@ -6222,6 +6339,23 @@ ], "description": "The definition of what to export" }, + "scope": { + "anyOf": [ + { + "$ref": "#/components/schemas/SpanScope" + }, + { + "$ref": "#/components/schemas/TraceScope" + }, + { + "$ref": "#/components/schemas/GroupScope" + }, + { + "type": "null" + } + ], + "description": "Execution scope for export automation. Defaults to span-level execution." + }, "export_path": { "type": "string", "description": "The path to export the results to. It should include the storage protocol and prefix, e.g. s3://bucket-name/path/to/export" @@ -6265,6 +6399,25 @@ "role_arn", "external_id" ] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gcp_service_account" + ] + }, + "service_account_email": { + "type": "string", + "description": "The GCP service account email to impersonate" + } + }, + "required": [ + "type", + "service_account_email" + ] } ] }, @@ -6911,193 +7064,7 @@ } } }, - "EvalStatusPageTheme": { - "type": "string", - "enum": [ - "light", - "dark" - ], - "description": "The theme for the page" - }, - "EvalStatusPageConfig": { - "type": "object", - "properties": { - "score_columns": { - "type": "array", - "nullable": true, - "items": { - "type": "string" - }, - "description": "The score columns to display on the page" - }, - "metric_columns": { - "type": "array", - "nullable": true, - "items": { - "type": "string" - }, - "description": "The metric columns to display on the page" - }, - "grouping_field": { - "type": "string", - "nullable": true, - "description": "The metadata field to use for grouping experiments (model)" - }, - "filter": { - "type": "string", - "nullable": true, - "description": "BTQL filter to apply to experiment data" - }, - "sort_by": { - "type": "string", - "nullable": true, - "description": "Field to sort results by (format: 'score:' or 'metric:')" - }, - "sort_order": { - "type": "string", - "nullable": true, - "enum": [ - "asc", - "desc", - null - ], - "description": "Sort order (ascending or descending)" - }, - "api_key": { - "type": "string", - "nullable": true, - "description": "The API key used for fetching experiment data" - } - }, - "description": "Configuration for what data to display" - }, - "EvalStatusPage": { - "type": "object", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the eval status page" - }, - "project_id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the project that the eval status page belongs under" - }, - "user_id": { - "type": "string", - "nullable": true, - "format": "uuid", - "description": "Identifies the user who created the eval status page" - }, - "created": { - "type": "string", - "nullable": true, - "format": "date-time", - "description": "Date of eval status page creation" - }, - "deleted_at": { - "type": "string", - "nullable": true, - "format": "date-time", - "description": "Date of eval status page deletion, or null if the eval status page is still active" - }, - "name": { - "type": "string", - "description": "Name of the eval status page" - }, - "description": { - "type": "string", - "nullable": true, - "description": "Textual description of the eval status page" - }, - "logo_url": { - "type": "string", - "nullable": true, - "description": "URL of the logo to display on the page" - }, - "theme": { - "$ref": "#/components/schemas/EvalStatusPageTheme" - }, - "config": { - "$ref": "#/components/schemas/EvalStatusPageConfig" - } - }, - "required": [ - "id", - "project_id", - "name", - "theme", - "config" - ], - "description": "A public eval status page that displays aggregate experiment results" - }, - "CreateEvalStatusPage": { - "type": "object", - "properties": { - "project_id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the project that the eval status page belongs under" - }, - "name": { - "type": "string", - "description": "Name of the eval status page" - }, - "description": { - "type": "string", - "nullable": true, - "description": "Textual description of the eval status page" - }, - "logo_url": { - "type": "string", - "nullable": true, - "description": "URL of the logo to display on the page" - }, - "theme": { - "$ref": "#/components/schemas/EvalStatusPageTheme" - }, - "config": { - "$ref": "#/components/schemas/EvalStatusPageConfig" - } - }, - "required": [ - "project_id", - "name", - "theme", - "config" - ], - "description": "A public eval status page that displays aggregate experiment results" - }, - "PatchEvalStatusPage": { - "type": "object", - "properties": { - "name": { - "type": "string", - "nullable": true, - "description": "Name of the eval status page" - }, - "description": { - "type": "string", - "nullable": true, - "description": "Textual description of the eval status page" - }, - "logo_url": { - "type": "string", - "nullable": true, - "description": "URL of the logo to display on the page" - }, - "theme": { - "$ref": "#/components/schemas/EvalStatusPageTheme", - "nullable": true - }, - "config": { - "$ref": "#/components/schemas/EvalStatusPageConfig", - "nullable": true - } - } - }, - "CodeBundle": { + "CodeBundle": { "type": "object", "properties": { "runtime_context": { @@ -9041,6 +9008,10 @@ "type": "string", "nullable": true }, + "topicMapReportKey": { + "type": "string", + "nullable": true + }, "chartHeight": { "type": "number", "nullable": true @@ -9191,9 +9162,14 @@ "enum": [ "traces", "spans", + "topics", null ] }, + "cluster": { + "type": "string", + "nullable": true + }, "freezeColumns": { "type": "boolean", "nullable": true @@ -10912,6 +10888,16 @@ "dataset_id": { "type": "string" }, + "dataset_version": { + "type": "string", + "nullable": true, + "description": "The version of the dataset to evaluate" + }, + "dataset_environment": { + "type": "string", + "nullable": true, + "description": "The environment tag that resolves to the dataset version to evaluate" + }, "_internal_btql": { "type": "object", "nullable": true, @@ -10935,6 +10921,16 @@ "dataset_name": { "type": "string" }, + "dataset_version": { + "type": "string", + "nullable": true, + "description": "The version of the dataset to evaluate" + }, + "dataset_environment": { + "type": "string", + "nullable": true, + "description": "The environment tag that resolves to the dataset version to evaluate" + }, "_internal_btql": { "type": "object", "nullable": true, @@ -11226,15 +11222,6 @@ "name": "span_iframe_id", "in": "path" }, - "EvalStatusPageIdParam": { - "schema": { - "$ref": "#/components/schemas/EvalStatusPageIdParam" - }, - "required": true, - "description": "EvalStatusPage id", - "name": "eval_status_page_id", - "in": "path" - }, "FunctionIdParam": { "schema": { "$ref": "#/components/schemas/FunctionIdParam" @@ -11435,16 +11422,6 @@ "in": "query", "allowReserved": true }, - "EvalStatusPageName": { - "schema": { - "$ref": "#/components/schemas/EvalStatusPageName" - }, - "required": false, - "description": "Name of the eval_status_page to search for", - "name": "eval_status_page_name", - "in": "query", - "allowReserved": true - }, "FunctionName": { "schema": { "$ref": "#/components/schemas/FunctionName" @@ -23999,858 +23976,6 @@ } } }, - "/v1/eval_status_page": { - "post": { - "tags": [ - "EvalStatusPages" - ], - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "operationId": "postEvalStatusPage", - "description": "Create a new eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will return the existing eval_status_page unmodified", - "summary": "Create eval_status_page", - "requestBody": { - "description": "Any desired information about the new eval_status_page object", - "required": false, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateEvalStatusPage" - } - } - } - }, - "responses": { - "200": { - "description": "Returns the new eval_status_page object", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EvalStatusPage" - } - } - } - }, - "400": { - "description": "The request was unacceptable, often due to missing a required parameter", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "401": { - "description": "No valid API key provided", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "403": { - "description": "The API key doesn’t have permissions to perform the request", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "429": { - "description": "Too many requests hit the API too quickly. We recommend an exponential backoff of your requests", - "headers": { - "Retry-After": { - "schema": { - "type": "string" - } - } - }, - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "500": { - "description": "Something went wrong on Braintrust's end. (These are rare.)", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - } - } - }, - "put": { - "tags": [ - "EvalStatusPages" - ], - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "operationId": "putEvalStatusPage", - "description": "Create or replace eval_status_page. If there is an existing eval_status_page with the same name as the one specified in the request, will replace the existing eval_status_page with the provided fields", - "summary": "Create or replace eval_status_page", - "requestBody": { - "description": "Any desired information about the new eval_status_page object", - "required": false, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateEvalStatusPage" - } - } - } - }, - "responses": { - "200": { - "description": "Returns the new eval_status_page object", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EvalStatusPage" - } - } - } - }, - "400": { - "description": "The request was unacceptable, often due to missing a required parameter", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "401": { - "description": "No valid API key provided", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "403": { - "description": "The API key doesn’t have permissions to perform the request", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "429": { - "description": "Too many requests hit the API too quickly. We recommend an exponential backoff of your requests", - "headers": { - "Retry-After": { - "schema": { - "type": "string" - } - } - }, - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "500": { - "description": "Something went wrong on Braintrust's end. (These are rare.)", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - } - } - }, - "get": { - "operationId": "getEvalStatusPage", - "tags": [ - "EvalStatusPages" - ], - "description": "List out all eval_status_pages. The eval_status_pages are sorted by creation date, with the most recently-created eval_status_pages coming first", - "summary": "List eval_status_pages", - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "parameters": [ - { - "$ref": "#/components/parameters/AppLimitParam" - }, - { - "$ref": "#/components/parameters/StartingAfter" - }, - { - "$ref": "#/components/parameters/EndingBefore" - }, - { - "$ref": "#/components/parameters/Ids" - }, - { - "$ref": "#/components/parameters/EvalStatusPageName" - }, - { - "$ref": "#/components/parameters/OrgName" - } - ], - "responses": { - "200": { - "description": "Returns a list of eval_status_page objects", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "objects": { - "type": "array", - "items": { - "$ref": "#/components/schemas/EvalStatusPage" - }, - "description": "A list of eval_status_page objects" - } - }, - "required": [ - "objects" - ], - "additionalProperties": false - } - } - } - }, - "400": { - "description": "The request was unacceptable, often due to missing a required parameter", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "401": { - "description": "No valid API key provided", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "403": { - "description": "The API key doesn’t have permissions to perform the request", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "429": { - "description": "Too many requests hit the API too quickly. We recommend an exponential backoff of your requests", - "headers": { - "Retry-After": { - "schema": { - "type": "string" - } - } - }, - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "500": { - "description": "Something went wrong on Braintrust's end. (These are rare.)", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - } - } - }, - "options": { - "operationId": "optionsEvalStatusPage", - "description": "Enable CORS", - "summary": "Enable CORS (`/v1/eval_status_page`)", - "security": [], - "tags": [ - "CORS" - ], - "responses": { - "200": { - "description": "Response for CORS method", - "headers": { - "Access-Control-Allow-Credentials": { - "schema": { - "type": "string" - } - }, - "Access-Control-Allow-Headers": { - "schema": { - "type": "string" - } - }, - "Access-Control-Allow-Methods": { - "schema": { - "type": "string" - } - }, - "Access-Control-Allow-Origin": { - "schema": { - "type": "string" - } - }, - "Access-Control-Max-Age": { - "schema": { - "type": "string" - } - } - }, - "content": {} - }, - "400": { - "description": "The request was unacceptable, often due to missing a required parameter", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - } - } - } - }, - "/v1/eval_status_page/{eval_status_page_id}": { - "get": { - "operationId": "getEvalStatusPageId", - "tags": [ - "EvalStatusPages" - ], - "description": "Get a eval_status_page object by its id", - "summary": "Get eval_status_page", - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "parameters": [ - { - "$ref": "#/components/parameters/EvalStatusPageIdParam" - } - ], - "responses": { - "200": { - "description": "Returns the eval_status_page object", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EvalStatusPage" - } - } - } - }, - "400": { - "description": "The request was unacceptable, often due to missing a required parameter", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "401": { - "description": "No valid API key provided", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "403": { - "description": "The API key doesn’t have permissions to perform the request", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "429": { - "description": "Too many requests hit the API too quickly. We recommend an exponential backoff of your requests", - "headers": { - "Retry-After": { - "schema": { - "type": "string" - } - } - }, - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "500": { - "description": "Something went wrong on Braintrust's end. (These are rare.)", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - } - } - }, - "patch": { - "operationId": "patchEvalStatusPageId", - "tags": [ - "EvalStatusPages" - ], - "description": "Partially update a eval_status_page object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null.", - "summary": "Partially update eval_status_page", - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "parameters": [ - { - "$ref": "#/components/parameters/EvalStatusPageIdParam" - } - ], - "requestBody": { - "description": "Fields to update", - "required": false, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PatchEvalStatusPage" - } - } - } - }, - "responses": { - "200": { - "description": "Returns the eval_status_page object", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EvalStatusPage" - } - } - } - }, - "400": { - "description": "The request was unacceptable, often due to missing a required parameter", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "401": { - "description": "No valid API key provided", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "403": { - "description": "The API key doesn’t have permissions to perform the request", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "429": { - "description": "Too many requests hit the API too quickly. We recommend an exponential backoff of your requests", - "headers": { - "Retry-After": { - "schema": { - "type": "string" - } - } - }, - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "500": { - "description": "Something went wrong on Braintrust's end. (These are rare.)", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - } - } - }, - "delete": { - "operationId": "deleteEvalStatusPageId", - "tags": [ - "EvalStatusPages" - ], - "description": "Delete a eval_status_page object by its id", - "summary": "Delete eval_status_page", - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "parameters": [ - { - "$ref": "#/components/parameters/EvalStatusPageIdParam" - } - ], - "responses": { - "200": { - "description": "Returns the deleted eval_status_page object", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EvalStatusPage" - } - } - } - }, - "400": { - "description": "The request was unacceptable, often due to missing a required parameter", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "401": { - "description": "No valid API key provided", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "403": { - "description": "The API key doesn’t have permissions to perform the request", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "429": { - "description": "Too many requests hit the API too quickly. We recommend an exponential backoff of your requests", - "headers": { - "Retry-After": { - "schema": { - "type": "string" - } - } - }, - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - }, - "500": { - "description": "Something went wrong on Braintrust's end. (These are rare.)", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - } - } - }, - "options": { - "operationId": "optionsEvalStatusPageId", - "description": "Enable CORS", - "summary": "Enable CORS (`/v1/eval_status_page/{eval_status_page_id}`)", - "security": [], - "tags": [ - "CORS" - ], - "parameters": [ - { - "$ref": "#/components/parameters/EvalStatusPageIdParam" - } - ], - "responses": { - "200": { - "description": "Response for CORS method", - "headers": { - "Access-Control-Allow-Credentials": { - "schema": { - "type": "string" - } - }, - "Access-Control-Allow-Headers": { - "schema": { - "type": "string" - } - }, - "Access-Control-Allow-Methods": { - "schema": { - "type": "string" - } - }, - "Access-Control-Allow-Origin": { - "schema": { - "type": "string" - } - }, - "Access-Control-Max-Age": { - "schema": { - "type": "string" - } - } - }, - "content": {} - }, - "400": { - "description": "The request was unacceptable, often due to missing a required parameter", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - }, - "application/json": { - "schema": { - "nullable": true - } - } - } - } - } - } - }, "/v1/function": { "post": { "tags": [