diff --git a/src/libs/PromptLayer/Generated/PromptLayer.ITrackingClient.GetTraceAnalyticsCustomAnalytics.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.ITrackingClient.GetTraceAnalyticsCustomAnalytics.g.cs new file mode 100644 index 0000000..3ec1807 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.ITrackingClient.GetTraceAnalyticsCustomAnalytics.g.cs @@ -0,0 +1,47 @@ +#nullable enable + +namespace PromptLayer +{ + public partial interface ITrackingClient + { + /// + /// Trace Analytics Custom Queries + /// + /// + /// 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 GetTraceAnalyticsCustomAnalyticsAsync( + + global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Trace Analytics Custom Queries + /// + /// + /// 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> GetTraceAnalyticsCustomAnalyticsAsResponseAsync( + + global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Trace Analytics Custom Queries + /// + /// + /// Nested filter tree. AND/OR are cross-span; SPAN_AND/SPAN_OR require one and the same span to satisfy every/any branch (span-level fields only). + /// + /// + /// 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 GetTraceAnalyticsCustomAnalyticsAsync( + global::System.Collections.Generic.IList customCharts, + global::PromptLayer.TraceStructuredFilterGroup? filterGroup = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecChartType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecChartType.g.cs new file mode 100644 index 0000000..3ae5a49 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecChartType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecChartTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecChartType 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::PromptLayer.TraceCustomChartSpecChartTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecChartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecChartType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecChartType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecChartTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeNullable.g.cs new file mode 100644 index 0000000..c54a08f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecChartTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecChartType? 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::PromptLayer.TraceCustomChartSpecChartTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecChartType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecChartType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecChartType? 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::PromptLayer.TraceCustomChartSpecChartTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecGroupByField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecGroupByField.g.cs new file mode 100644 index 0000000..a5fdba7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecGroupByField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecGroupByFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecGroupByField 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::PromptLayer.TraceCustomChartSpecGroupByFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecGroupByField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecGroupByField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecGroupByField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecGroupByFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldNullable.g.cs new file mode 100644 index 0000000..6a38c74 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecGroupByFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecGroupByField? 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::PromptLayer.TraceCustomChartSpecGroupByFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecGroupByField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecGroupByField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecGroupByField? 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::PromptLayer.TraceCustomChartSpecGroupByFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyField.g.cs new file mode 100644 index 0000000..8441ae0 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecHierarchyFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecHierarchyField 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::PromptLayer.TraceCustomChartSpecHierarchyFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecHierarchyField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecHierarchyField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecHierarchyField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecHierarchyFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldNullable.g.cs new file mode 100644 index 0000000..81dd120 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecHierarchyFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecHierarchyField? 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::PromptLayer.TraceCustomChartSpecHierarchyFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecHierarchyField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecHierarchyField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecHierarchyField? 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::PromptLayer.TraceCustomChartSpecHierarchyFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHistogramField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHistogramField.g.cs new file mode 100644 index 0000000..d5f87bd --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHistogramField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecHistogramFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecHistogramField 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::PromptLayer.TraceCustomChartSpecHistogramFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecHistogramField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecHistogramField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecHistogramField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecHistogramFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldNullable.g.cs new file mode 100644 index 0000000..7cd7f39 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecHistogramFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecHistogramField? 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::PromptLayer.TraceCustomChartSpecHistogramFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecHistogramField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecHistogramField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecHistogramField? 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::PromptLayer.TraceCustomChartSpecHistogramFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetric.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetric.g.cs new file mode 100644 index 0000000..20a8989 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetric.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecMetricJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecMetric 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::PromptLayer.TraceCustomChartSpecMetricExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecMetric)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecMetric); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecMetric value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecMetricExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetricField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetricField.g.cs new file mode 100644 index 0000000..8c1bbba --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetricField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecMetricFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecMetricField 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::PromptLayer.TraceCustomChartSpecMetricFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecMetricField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecMetricField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecMetricField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecMetricFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldNullable.g.cs new file mode 100644 index 0000000..fb9e87d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecMetricFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecMetricField? 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::PromptLayer.TraceCustomChartSpecMetricFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecMetricField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecMetricField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecMetricField? 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::PromptLayer.TraceCustomChartSpecMetricFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetricNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetricNullable.g.cs new file mode 100644 index 0000000..2625da5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecMetricNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecMetricNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecMetric? 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::PromptLayer.TraceCustomChartSpecMetricExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecMetric)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecMetric?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecMetric? 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::PromptLayer.TraceCustomChartSpecMetricExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByField.g.cs new file mode 100644 index 0000000..92946ce --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecSecondaryGroupByFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField 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::PromptLayer.TraceCustomChartSpecSecondaryGroupByFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecSecondaryGroupByFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldNullable.g.cs new file mode 100644 index 0000000..2d430d3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecSecondaryGroupByFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField? 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::PromptLayer.TraceCustomChartSpecSecondaryGroupByFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField? 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::PromptLayer.TraceCustomChartSpecSecondaryGroupByFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetric.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetric.g.cs new file mode 100644 index 0000000..c250de2 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetric.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecSerieMetricJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecSerieMetric 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::PromptLayer.TraceCustomChartSpecSerieMetricExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecSerieMetric)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecSerieMetric); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecSerieMetric value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecSerieMetricExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricField.g.cs new file mode 100644 index 0000000..51f4b58 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricField.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecSerieMetricFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecSerieMetricField 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::PromptLayer.TraceCustomChartSpecSerieMetricFieldExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecSerieMetricField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecSerieMetricField); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecSerieMetricField value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecSerieMetricFieldExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldNullable.g.cs new file mode 100644 index 0000000..2679a01 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecSerieMetricFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecSerieMetricField? 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::PromptLayer.TraceCustomChartSpecSerieMetricFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecSerieMetricField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecSerieMetricField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecSerieMetricField? 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::PromptLayer.TraceCustomChartSpecSerieMetricFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricNullable.g.cs new file mode 100644 index 0000000..beb057a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecSerieMetricNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecSerieMetric? 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::PromptLayer.TraceCustomChartSpecSerieMetricExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecSerieMetric)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecSerieMetric?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecSerieMetric? 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::PromptLayer.TraceCustomChartSpecSerieMetricExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucket.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucket.g.cs new file mode 100644 index 0000000..9a091ee --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucket.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecTimeBucketJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecTimeBucket 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::PromptLayer.TraceCustomChartSpecTimeBucketExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecTimeBucket)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecTimeBucket); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecTimeBucket value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceCustomChartSpecTimeBucketExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketNullable.g.cs new file mode 100644 index 0000000..1d8edcf --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceCustomChartSpecTimeBucketNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceCustomChartSpecTimeBucket? 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::PromptLayer.TraceCustomChartSpecTimeBucketExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceCustomChartSpecTimeBucket)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceCustomChartSpecTimeBucket?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceCustomChartSpecTimeBucket? 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::PromptLayer.TraceCustomChartSpecTimeBucketExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceStructuredFilterGroupLogic.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceStructuredFilterGroupLogic.g.cs new file mode 100644 index 0000000..4114680 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceStructuredFilterGroupLogic.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceStructuredFilterGroupLogicJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceStructuredFilterGroupLogic 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::PromptLayer.TraceStructuredFilterGroupLogicExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceStructuredFilterGroupLogic)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceStructuredFilterGroupLogic); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceStructuredFilterGroupLogic value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::PromptLayer.TraceStructuredFilterGroupLogicExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicNullable.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicNullable.g.cs new file mode 100644 index 0000000..56b1f70 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace PromptLayer.JsonConverters +{ + /// + public sealed class TraceStructuredFilterGroupLogicNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::PromptLayer.TraceStructuredFilterGroupLogic? 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::PromptLayer.TraceStructuredFilterGroupLogicExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::PromptLayer.TraceStructuredFilterGroupLogic)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::PromptLayer.TraceStructuredFilterGroupLogic?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::PromptLayer.TraceStructuredFilterGroupLogic? 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::PromptLayer.TraceStructuredFilterGroupLogicExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs index a9e8862..fc9840a 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs @@ -465,6 +465,50 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter), typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter), @@ -725,6 +769,8 @@ namespace PromptLayer typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), typeof(global::PromptLayer.JsonConverters.AnyOfJsonConverter>), @@ -1876,6 +1922,50 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter), typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter), @@ -2136,6 +2226,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), typeof(global::PromptLayer.JsonConverters.AnyOfJsonConverter>), @@ -2340,6 +2432,27 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceStructuredFilter))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceStructuredFilterGroup))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceStructuredFilterGroupLogic), TypeInfoPropertyName = "TraceStructuredFilterGroupLogic2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf), TypeInfoPropertyName = "OneOfTraceStructuredFilterTraceStructuredFilterGroup2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpec))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecChartType), TypeInfoPropertyName = "TraceCustomChartSpecChartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecMetric), TypeInfoPropertyName = "TraceCustomChartSpecMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecMetricField), TypeInfoPropertyName = "TraceCustomChartSpecMetricField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecGroupByField), TypeInfoPropertyName = "TraceCustomChartSpecGroupByField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField), TypeInfoPropertyName = "TraceCustomChartSpecSecondaryGroupByField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecHistogramField), TypeInfoPropertyName = "TraceCustomChartSpecHistogramField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecHierarchyField), TypeInfoPropertyName = "TraceCustomChartSpecHierarchyField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecTimeBucket), TypeInfoPropertyName = "TraceCustomChartSpecTimeBucket2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecSerie))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecSerieMetric), TypeInfoPropertyName = "TraceCustomChartSpecSerieMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecSerieMetricField), TypeInfoPropertyName = "TraceCustomChartSpecSerieMetricField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreatePromptLabelRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TrackGroupRequest))] @@ -2695,6 +2808,18 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CustomAnalyticsResultChartType?), TypeInfoPropertyName = "NullableCustomAnalyticsResultChartType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortBy?), TypeInfoPropertyName = "NullableRequestAnalyticsCustomAnalyticsQuerySortBy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.RequestAnalyticsCustomAnalyticsQuerySortOrder?), TypeInfoPropertyName = "NullableRequestAnalyticsCustomAnalyticsQuerySortOrder2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceStructuredFilterGroupLogic?), TypeInfoPropertyName = "NullableTraceStructuredFilterGroupLogic2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf?), TypeInfoPropertyName = "NullableOneOfTraceStructuredFilterTraceStructuredFilterGroup2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecChartType?), TypeInfoPropertyName = "NullableTraceCustomChartSpecChartType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecMetric?), TypeInfoPropertyName = "NullableTraceCustomChartSpecMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecMetricField?), TypeInfoPropertyName = "NullableTraceCustomChartSpecMetricField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecGroupByField?), TypeInfoPropertyName = "NullableTraceCustomChartSpecGroupByField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField?), TypeInfoPropertyName = "NullableTraceCustomChartSpecSecondaryGroupByField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecHistogramField?), TypeInfoPropertyName = "NullableTraceCustomChartSpecHistogramField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecHierarchyField?), TypeInfoPropertyName = "NullableTraceCustomChartSpecHierarchyField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecTimeBucket?), TypeInfoPropertyName = "NullableTraceCustomChartSpecTimeBucket2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecSerieMetric?), TypeInfoPropertyName = "NullableTraceCustomChartSpecSerieMetric2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.TraceCustomChartSpecSerieMetricField?), TypeInfoPropertyName = "NullableTraceCustomChartSpecSerieMetricField2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AddReportColumnRequestColumnType?), TypeInfoPropertyName = "NullableAddReportColumnRequestColumnType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecutionType?), TypeInfoPropertyName = "NullableCreateToolRegistryRequestExecutionType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryRequestExecutionLanguage?), TypeInfoPropertyName = "NullableCreateToolRegistryRequestExecutionLanguage2")] @@ -2791,39 +2916,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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.Dictionary>>))] - [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))] - [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))] - [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>>))] - [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))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3287,6 +3379,50 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricNullableJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldJsonConverter), + + typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldNullableJsonConverter), + typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter), typeof(global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter), @@ -3547,6 +3683,8 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), + typeof(global::PromptLayer.JsonConverters.OneOfJsonConverter), typeof(global::PromptLayer.JsonConverters.AnyOfJsonConverter>), @@ -3740,7 +3878,44 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>?), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_47a8c666c2b64908")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf?), TypeInfoPropertyName = "GetReportScoreResponseScoreDetailsVariant4_819979ee8daaec57")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>), TypeInfoPropertyName = "ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem_13c51ceff6c2844e")] + [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.Dictionary>>))] + [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))] + [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))] + [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>>))] + [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))] + [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))] [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::PromptLayer.AnyOf>))] @@ -4033,6 +4208,28 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortByNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.RequestAnalyticsCustomAnalyticsQuerySortOrderNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecHierarchyFieldNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricNullableJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AddReportColumnRequestColumnTypeNullableJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.CreateToolRegistryRequestExecutionTypeJsonConverter()); @@ -4163,6 +4360,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::PromptLayer.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::PromptLayer.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::PromptLayer.JsonConverters.OneOfJsonConverter>()); diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs index 60aba7f..febf1e7 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs @@ -2044,811 +2044,895 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::PromptLayer.CreatePromptLabelRequest? Type504 { get; set; } + public global::PromptLayer.TraceStructuredFilter? Type504 { get; set; } /// /// /// - public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type505 { get; set; } + public global::PromptLayer.TraceStructuredFilterGroup? Type505 { get; set; } /// /// /// - public global::PromptLayer.TrackGroupRequest? Type506 { get; set; } + public global::PromptLayer.TraceStructuredFilterGroupLogic? Type506 { get; set; } /// /// /// - public global::PromptLayer.TrackScoreRequest? Type507 { get; set; } + public global::System.Collections.Generic.IList>? Type507 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnRequest? Type508 { get; set; } + public global::PromptLayer.OneOf? Type508 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnRequestColumnType? Type509 { get; set; } + public global::PromptLayer.TraceCustomChartSpec? Type509 { get; set; } /// /// /// - public global::PromptLayer.RunReportRequest? Type510 { get; set; } + public global::PromptLayer.TraceCustomChartSpecChartType? Type510 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequest? Type511 { get; set; } + public global::PromptLayer.TraceCustomChartSpecMetric? Type511 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecution? Type512 { get; set; } + public global::PromptLayer.TraceCustomChartSpecMetricField? Type512 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecutionType? Type513 { get; set; } + public global::PromptLayer.TraceCustomChartSpecGroupByField? Type513 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? Type514 { get; set; } + public global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField? Type514 { get; set; } /// /// /// - public global::PromptLayer.CreateTableRequest? Type515 { get; set; } + public global::PromptLayer.TraceCustomChartSpecHistogramField? Type515 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableRequest? Type516 { get; set; } + public global::System.Collections.Generic.IList? Type516 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequest? Type517 { get; set; } + public global::PromptLayer.TraceCustomChartSpecHierarchyField? Type517 { get; set; } /// /// /// - public global::PromptLayer.OneOf? Type518 { get; set; } + public global::PromptLayer.TraceCustomChartSpecTimeBucket? Type518 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceFileSource? Type519 { get; set; } + public global::System.Collections.Generic.IList? Type519 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceFileSourceType? Type520 { get; set; } + public global::PromptLayer.TraceCustomChartSpecSerie? Type520 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource? Type521 { get; set; } + public global::PromptLayer.TraceCustomChartSpecSerieMetric? Type521 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType? Type522 { get; set; } + public global::PromptLayer.TraceCustomChartSpecSerieMetricField? Type522 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetRequest? Type523 { get; set; } + public global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery? Type523 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequest? Type524 { get; set; } + public global::System.Collections.Generic.IList? Type524 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type525 { get; set; } + public global::PromptLayer.CreatePromptLabelRequest? Type525 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnRequestDependencie? Type526 { get; set; } + public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchRequest? Type526 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnRequest? Type527 { get; set; } + public global::PromptLayer.TrackGroupRequest? Type527 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type528 { get; set; } + public global::PromptLayer.TrackScoreRequest? Type528 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnRequestDependencie? Type529 { get; set; } + public global::PromptLayer.AddReportColumnRequest? Type529 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsRequest? Type530 { get; set; } + public global::PromptLayer.AddReportColumnRequestColumnType? Type530 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetCellRequest? Type531 { get; set; } + public global::PromptLayer.RunReportRequest? Type531 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest? Type532 { get; set; } + public global::PromptLayer.CreateToolRegistryRequest? Type532 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequest? Type533 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecution? Type533 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecution? Type534 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecutionType? Type534 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecutionType? Type535 { get; set; } + public global::PromptLayer.CreateToolRegistryRequestExecutionLanguage? Type535 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionRequestExecutionLanguage? Type536 { get; set; } + public global::PromptLayer.CreateTableRequest? Type536 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequest? Type537 { get; set; } + public global::PromptLayer.UpdateTableRequest? Type537 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecution? Type538 { get; set; } + public global::PromptLayer.CreateTableSheetRequest? Type538 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecutionType? Type539 { get; set; } + public global::PromptLayer.OneOf? Type539 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolRequestExecutionLanguage? Type540 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceFileSource? Type540 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarRequest? Type541 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceFileSourceType? Type541 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarRequest? Type542 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSource? Type542 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarRequest? Type543 { get; set; } + public global::PromptLayer.CreateTableSheetRequestSourceRequestLogsSourceType? Type543 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarRequest? Type544 { get; set; } + public global::PromptLayer.UpdateTableSheetRequest? Type544 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsStatus? Type545 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequest? Type545 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsSortBy? Type546 { get; set; } + public global::System.Collections.Generic.IList? Type546 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsSortOrder? Type547 { get; set; } + public global::PromptLayer.CreateTableSheetColumnRequestDependencie? Type547 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsStatus? Type548 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnRequest? Type548 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsSortBy? Type549 { get; set; } + public global::System.Collections.Generic.IList? Type549 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsSortOrder? Type550 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnRequestDependencie? Type550 { get; set; } /// /// /// - public global::PromptLayer.AnyOf>? Type551 { get; set; } + public global::PromptLayer.AddTableSheetRowsRequest? Type551 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type552 { get; set; } + public global::PromptLayer.UpdateTableSheetCellRequest? Type552 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type553 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationsBatchRequest? Type553 { get; set; } /// /// /// - public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type554 { get; set; } + public global::PromptLayer.CreateToolVersionRequest? Type554 { get; set; } /// /// /// - public long? Type555 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecution? Type555 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsSortBy? Type556 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecutionType? Type556 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsSortOrder? Type557 { get; set; } + public global::PromptLayer.CreateToolVersionRequestExecutionLanguage? Type557 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type558 { get; set; } + public global::PromptLayer.TestExecuteToolRequest? Type558 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type559 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecution? Type559 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type560 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecutionType? Type560 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type561 { get; set; } + public global::PromptLayer.TestExecuteToolRequestExecutionLanguage? Type561 { get; set; } /// /// /// - public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type562 { get; set; } + public global::PromptLayer.CreateWorkspaceEnvVarRequest? Type562 { get; set; } /// /// /// - public global::PromptLayer.OneOf>? Type563 { get; set; } + public global::PromptLayer.UpdateWorkspaceEnvVarRequest? Type563 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesContentType? Type564 { get; set; } + public global::PromptLayer.CreateToolEnvVarRequest? Type564 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesContentEncoding? Type565 { get; set; } + public global::PromptLayer.UpdateToolEnvVarRequest? Type565 { get; set; } /// /// /// - public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type566 { get; set; } + public global::PromptLayer.ListDatasetsStatus? Type566 { get; set; } /// /// /// - public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type567 { get; set; } + public global::PromptLayer.ListDatasetsSortBy? Type567 { get; set; } /// /// /// - public global::PromptLayer.GetSkillCollectionPublicFormat? Type568 { get; set; } + public global::PromptLayer.ListDatasetsSortOrder? Type568 { get; set; } /// /// /// - public global::PromptLayer.GetRequestSearchSuggestionsField? Type569 { get; set; } + public global::PromptLayer.ListEvaluationsStatus? Type569 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesSortBy? Type570 { get; set; } + public global::PromptLayer.ListEvaluationsSortBy? Type570 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesSortOrder? Type571 { get; set; } + public global::PromptLayer.ListEvaluationsSortOrder? Type571 { get; set; } /// /// /// - public global::PromptLayer.ListTablesOrder? Type572 { get; set; } + public global::PromptLayer.AnyOf>? Type572 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetsOrder? Type573 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetStatus? Type573 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsOrder? Type574 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetSortBy? Type574 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetVersionsSort? Type575 { get; set; } + public global::PromptLayer.GetAllPromptTemplatesGetSortOrder? Type575 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetVersionsOrder? Type576 { get; set; } + public long? Type576 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetVersionScoreHistoryRange? Type577 { get; set; } + public global::PromptLayer.ListWorkflowsSortBy? Type577 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? Type578 { get; set; } + public global::PromptLayer.ListWorkflowsSortOrder? Type578 { get; set; } /// /// /// - public global::PromptLayer.OneOf? Type579 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterType2? Type579 { get; set; } /// /// /// - public global::PromptLayer.CreatePromptLabelResponse? Type580 { get; set; } + public global::System.Collections.Generic.IList? Type580 { get; set; } /// /// /// - public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type581 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetFilterTypeItem? Type581 { get; set; } /// /// /// - public global::PromptLayer.TrackGroupResponse? Type582 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortBy? Type582 { get; set; } /// /// /// - public global::PromptLayer.TrackScoreResponse? Type583 { get; set; } + public global::PromptLayer.ListFolderEntitiesApiPublicV2FoldersEntitiesGetSortOrder? Type583 { get; set; } /// /// /// - public global::PromptLayer.DeleteReportsByNameResponse? Type584 { get; set; } + public global::PromptLayer.OneOf>? Type584 { get; set; } /// /// /// - public global::PromptLayer.CreateEvaluationPipelineResponse2? Type585 { get; set; } + public global::PromptLayer.IngestOtlpTracesContentType? Type585 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse? Type586 { get; set; } + public global::PromptLayer.IngestOtlpTracesContentEncoding? Type586 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse2? Type587 { get; set; } + public global::PromptLayer.ListSkillCollectionsPublicSortBy? Type587 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse3? Type588 { get; set; } + public global::PromptLayer.ListSkillCollectionsPublicSortOrder? Type588 { get; set; } /// /// /// - public global::PromptLayer.AddReportColumnResponse4? Type589 { get; set; } + public global::PromptLayer.GetSkillCollectionPublicFormat? Type589 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse? Type590 { get; set; } + public global::PromptLayer.GetRequestSearchSuggestionsField? Type590 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse2? Type591 { get; set; } + public global::PromptLayer.ListToolRegistriesSortBy? Type591 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse3? Type592 { get; set; } + public global::PromptLayer.ListToolRegistriesSortOrder? Type592 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse4? Type593 { get; set; } + public global::PromptLayer.ListTablesOrder? Type593 { get; set; } /// /// /// - public global::PromptLayer.RunReportResponse5? Type594 { get; set; } + public global::PromptLayer.ListTableSheetsOrder? Type594 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponse? Type595 { get; set; } + public global::PromptLayer.ListTableSheetRowsOrder? Type595 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseReport? Type596 { get; set; } + public global::PromptLayer.ListTableSheetVersionsSort? Type596 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStatus? Type597 { get; set; } + public global::PromptLayer.ListTableSheetVersionsOrder? Type597 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStats? Type598 { get; set; } + public global::PromptLayer.GetTableSheetVersionScoreHistoryRange? Type598 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseStatsStatusCounts? Type599 { get; set; } + public global::PromptLayer.GetTableSheetVersionScoreHistoryResolution? Type599 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type600 { get; set; } + public global::PromptLayer.OneOf? Type600 { get; set; } /// /// /// - public global::PromptLayer.GetReportResponseReportColumn? Type601 { get; set; } + public global::PromptLayer.CreatePromptLabelResponse? Type601 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponse? Type602 { get; set; } + public global::PromptLayer.PromptTemplatesLabelsPromptLabelIdPatchResponse? Type602 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScore? Type603 { get; set; } + public global::PromptLayer.TrackGroupResponse? Type603 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type604 { get; set; } + public global::PromptLayer.TrackScoreResponse? Type604 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type605 { get; set; } + public global::PromptLayer.DeleteReportsByNameResponse? Type605 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type606 { get; set; } + public global::PromptLayer.CreateEvaluationPipelineResponse2? Type606 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type607 { get; set; } + public global::PromptLayer.AddReportColumnResponse? Type607 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type608 { get; set; } + public global::PromptLayer.AddReportColumnResponse2? Type608 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type609 { get; set; } + public global::PromptLayer.AddReportColumnResponse3? Type609 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type610 { get; set; } + public global::PromptLayer.AddReportColumnResponse4? Type610 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsResponse? Type611 { get; set; } + public global::PromptLayer.RunReportResponse? Type611 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type612 { get; set; } + public global::PromptLayer.RunReportResponse2? Type612 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsResponse? Type613 { get; set; } + public global::PromptLayer.RunReportResponse3? Type613 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type614 { get; set; } + public global::PromptLayer.RunReportResponse4? Type614 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type615 { get; set; } + public global::PromptLayer.RunReportResponse5? Type615 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type616 { get; set; } + public global::PromptLayer.GetReportResponse? Type616 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type617 { get; set; } + public global::PromptLayer.GetReportResponseReport? Type617 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type618 { get; set; } + public global::PromptLayer.GetReportResponseStatus? Type618 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type619 { get; set; } + public global::PromptLayer.GetReportResponseStats? Type619 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type620 { get; set; } + public global::PromptLayer.GetReportResponseStatsStatusCounts? Type620 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type621 { get; set; } + public global::System.Collections.Generic.IList? Type621 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse? Type622 { get; set; } + public global::PromptLayer.GetReportResponseReportColumn? Type622 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type623 { get; set; } + public global::PromptLayer.GetReportScoreResponse? Type623 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponseItem? Type624 { get; set; } + public global::PromptLayer.GetReportScoreResponseScore? Type624 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse2? Type625 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type625 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse3? Type626 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type626 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponse? Type627 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type627 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type628 { get; set; } + public global::System.Collections.Generic.IList? Type628 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseNode? Type629 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type629 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type630 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type630 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseEdge? Type631 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type631 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponse? Type632 { get; set; } + public global::PromptLayer.ListDatasetsResponse? Type632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type633 { get; set; } + public global::System.Collections.Generic.IList? Type633 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type634 { get; set; } + public global::PromptLayer.ListEvaluationsResponse? Type634 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type635 { get; set; } + public global::System.Collections.Generic.IList? Type635 { get; set; } /// /// /// - public global::PromptLayer.IngestOtlpTracesResponse2? Type636 { get; set; } + public global::PromptLayer.AnyOf? Type636 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponse? Type637 { get; set; } + public global::PromptLayer.OneOf, object>? Type637 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type638 { get; set; } + public global::System.Collections.Generic.Dictionary? Type638 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type639 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type639 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryResponse? Type640 { get; set; } + public global::PromptLayer.OneOf, object>? Type640 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponse? Type641 { get; set; } + public global::System.Collections.Generic.Dictionary? Type641 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type642 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type642 { get; set; } /// /// /// - public global::PromptLayer.CreateTableResponse? Type643 { get; set; } + public global::PromptLayer.ListWorkflowsResponse? Type643 { get; set; } /// /// /// - public global::PromptLayer.ListTablesResponse? Type644 { get; set; } + public global::System.Collections.Generic.IList? Type644 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type645 { get; set; } + public global::PromptLayer.ListWorkflowsResponseItem? Type645 { get; set; } /// /// /// - public global::PromptLayer.GetTableResponse? Type646 { get; set; } + public global::PromptLayer.ListWorkflowsResponse2? Type646 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableResponse? Type647 { get; set; } + public global::PromptLayer.ListWorkflowsResponse3? Type647 { get; set; } /// /// /// - public global::PromptLayer.DeleteTableResponse? Type648 { get; set; } + public global::PromptLayer.GetWorkflowResponse? Type648 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetsResponse? Type649 { get; set; } + public global::System.Collections.Generic.IList? Type649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type650 { get; set; } + public global::PromptLayer.GetWorkflowResponseNode? Type650 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetResponse? Type651 { get; set; } + public global::System.Collections.Generic.IList? Type651 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetResponse2? Type652 { get; set; } + public global::PromptLayer.GetWorkflowResponseEdge? Type652 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetOperationResponse2? Type653 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponse? Type653 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetResponse? Type654 { get; set; } + public global::System.Collections.Generic.IList? Type654 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetResponse? Type655 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type655 { get; set; } /// /// /// - public global::PromptLayer.DeleteTableSheetResponse? Type656 { get; set; } + public global::PromptLayer.AnyOf? Type656 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetColumnsResponse? Type657 { get; set; } + public global::PromptLayer.IngestOtlpTracesResponse2? Type657 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type658 { get; set; } + public global::PromptLayer.ListToolRegistriesResponse? Type658 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetColumnResponse? Type659 { get; set; } + public global::System.Collections.Generic.IList? Type659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type660 { get; set; } + public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type660 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetColumnResponse? Type661 { get; set; } + public global::PromptLayer.CreateToolRegistryResponse? Type661 { get; set; } /// /// /// - public global::PromptLayer.DeleteTableSheetColumnResponse? Type662 { get; set; } + public global::PromptLayer.GetToolRegistryResponse? Type662 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponse? Type663 { get; set; } + public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type663 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type664 { get; set; } + public global::PromptLayer.CreateTableResponse? Type664 { get; set; } /// /// /// - public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type665 { get; set; } + public global::PromptLayer.ListTablesResponse? Type665 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type666 { get; set; } + public global::System.Collections.Generic.IList? Type666 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponse? Type667 { get; set; } + public global::PromptLayer.GetTableResponse? Type667 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type668 { get; set; } + public global::PromptLayer.UpdateTableResponse? Type668 { get; set; } /// /// /// - public global::PromptLayer.AddTableSheetRowsResponseRow? Type669 { get; set; } + public global::PromptLayer.DeleteTableResponse? Type669 { get; set; } /// /// /// - public global::PromptLayer.GetTableSheetCellResponse? Type670 { get; set; } + public global::PromptLayer.ListTableSheetsResponse? Type670 { get; set; } /// /// /// - public global::PromptLayer.UpdateTableSheetCellResponse? Type671 { get; set; } + public global::System.Collections.Generic.IList? Type671 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type672 { get; set; } + public global::PromptLayer.CreateTableSheetResponse? Type672 { get; set; } /// /// /// - public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type673 { get; set; } + public global::PromptLayer.CreateTableSheetResponse2? Type673 { get; set; } /// /// /// - public global::PromptLayer.CreateToolVersionResponse? Type674 { get; set; } + public global::PromptLayer.GetTableSheetOperationResponse2? Type674 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponse? Type675 { get; set; } + public global::PromptLayer.GetTableSheetResponse? Type675 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResult? Type676 { get; set; } + public global::PromptLayer.UpdateTableSheetResponse? Type676 { get; set; } /// /// /// - public global::PromptLayer.TestExecuteToolResponseResultStatus? Type677 { get; set; } + public global::PromptLayer.DeleteTableSheetResponse? Type677 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse? Type678 { get; set; } + public global::PromptLayer.ListTableSheetColumnsResponse? Type678 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosure? Type679 { get; set; } + public global::System.Collections.Generic.IList? Type679 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponseClosureStatus? Type680 { get; set; } + public global::PromptLayer.CreateTableSheetColumnResponse? Type680 { get; set; } /// /// /// - public global::PromptLayer.CloseTraceResponse2? Type681 { get; set; } + public global::System.Collections.Generic.IList? Type681 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type682 { get; set; } + public global::PromptLayer.UpdateTableSheetColumnResponse? Type682 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type683 { get; set; } + public global::PromptLayer.DeleteTableSheetColumnResponse? Type683 { get; set; } /// /// /// - public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type684 { get; set; } + public global::PromptLayer.ListTableSheetRowsResponse? Type684 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type685 { get; set; } + public global::System.Collections.Generic.IList? Type685 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type686 { get; set; } + public global::PromptLayer.ListTableSheetRowsResponseDataItem? Type686 { get; set; } /// /// /// - public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type687 { get; set; } + public global::System.Collections.Generic.Dictionary? Type687 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type688 { get; set; } + public global::PromptLayer.AddTableSheetRowsResponse? Type688 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type689 { get; set; } + public global::System.Collections.Generic.IList? Type689 { get; set; } /// /// /// - public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type690 { get; set; } + public global::PromptLayer.AddTableSheetRowsResponseRow? Type690 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type691 { get; set; } + public global::PromptLayer.GetTableSheetCellResponse? Type691 { get; set; } /// /// /// - public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type692 { get; set; } + public global::PromptLayer.UpdateTableSheetCellResponse? Type692 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse? Type693 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationsBatchResponse? Type693 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type694 { get; set; } + public global::PromptLayer.CreateTableSheetCellRecalculationResponse? Type694 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type695 { get; set; } + public global::PromptLayer.CreateToolVersionResponse? Type695 { get; set; } /// /// /// - public global::PromptLayer.ListToolEnvVarsResponse2? Type696 { get; set; } + public global::PromptLayer.TestExecuteToolResponse? Type696 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse? Type697 { get; set; } + public global::PromptLayer.TestExecuteToolResponseResult? Type697 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type698 { get; set; } + public global::PromptLayer.TestExecuteToolResponseResultStatus? Type698 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse2? Type699 { get; set; } + public global::PromptLayer.CloseTraceResponse? Type699 { get; set; } /// /// /// - public global::PromptLayer.CreateToolEnvVarResponse3? Type700 { get; set; } + public global::PromptLayer.CloseTraceResponseClosure? Type700 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse? Type701 { get; set; } + public global::PromptLayer.CloseTraceResponseClosureStatus? Type701 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type702 { get; set; } + public global::PromptLayer.CloseTraceResponse2? Type702 { get; set; } /// /// /// - public global::PromptLayer.UpdateToolEnvVarResponse2? Type703 { get; set; } + public global::PromptLayer.ListWorkspaceEnvVarsResponse? Type703 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse? Type704 { get; set; } + public global::System.Collections.Generic.IList? Type704 { get; set; } /// /// /// - public global::PromptLayer.DeleteToolEnvVarResponse2? Type705 { get; set; } + public global::PromptLayer.ListWorkspaceEnvVarsResponseWorkspaceEnvVar? Type705 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponse? Type706 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponseWorkspaceEnvVar? Type707 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateWorkspaceEnvVarResponse2? Type708 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponse? Type709 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponseWorkspaceEnvVar? Type710 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateWorkspaceEnvVarResponse2? Type711 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteWorkspaceEnvVarResponse? Type712 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteWorkspaceEnvVarResponse2? Type713 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponse? Type714 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type715 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponseToolEnvVar? Type716 { get; set; } + /// + /// + /// + public global::PromptLayer.ListToolEnvVarsResponse2? Type717 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse? Type718 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponseToolEnvVar? Type719 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse2? Type720 { get; set; } + /// + /// + /// + public global::PromptLayer.CreateToolEnvVarResponse3? Type721 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponse? Type722 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponseToolEnvVar? Type723 { get; set; } + /// + /// + /// + public global::PromptLayer.UpdateToolEnvVarResponse2? Type724 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteToolEnvVarResponse? Type725 { get; set; } + /// + /// + /// + public global::PromptLayer.DeleteToolEnvVarResponse2? Type726 { get; set; } /// /// @@ -3165,90 +3249,106 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List>? ListType78 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType79 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType80 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType81 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::PromptLayer.AnyOf>? ListType80 { get; set; } + public global::PromptLayer.AnyOf>? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::PromptLayer.OneOf>? ListType82 { get; set; } + public global::PromptLayer.OneOf>? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType100 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType99 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } } } \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceAnalyticsCustomAnalyticsQuery.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceAnalyticsCustomAnalyticsQuery.Json.g.cs new file mode 100644 index 0000000..171135d --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceAnalyticsCustomAnalyticsQuery.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TraceAnalyticsCustomAnalyticsQuery + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery), + jsonSerializerContext) as global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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::PromptLayer.TraceAnalyticsCustomAnalyticsQuery? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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::PromptLayer.TraceAnalyticsCustomAnalyticsQuery), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceAnalyticsCustomAnalyticsQuery.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceAnalyticsCustomAnalyticsQuery.g.cs new file mode 100644 index 0000000..ba274f3 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceAnalyticsCustomAnalyticsQuery.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TraceAnalyticsCustomAnalyticsQuery + { + /// + /// Nested filter tree. AND/OR are cross-span; SPAN_AND/SPAN_OR require one and the same span to satisfy every/any branch (span-level fields only). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_group")] + public global::PromptLayer.TraceStructuredFilterGroup? FilterGroup { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("customCharts")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList CustomCharts { 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. + /// + /// + /// + /// Nested filter tree. AND/OR are cross-span; SPAN_AND/SPAN_OR require one and the same span to satisfy every/any branch (span-level fields only). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TraceAnalyticsCustomAnalyticsQuery( + global::System.Collections.Generic.IList customCharts, + global::PromptLayer.TraceStructuredFilterGroup? filterGroup) + { + this.FilterGroup = filterGroup; + this.CustomCharts = customCharts ?? throw new global::System.ArgumentNullException(nameof(customCharts)); + } + + /// + /// Initializes a new instance of the class. + /// + public TraceAnalyticsCustomAnalyticsQuery() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpec.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpec.Json.g.cs new file mode 100644 index 0000000..123c1c9 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpec.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TraceCustomChartSpec + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TraceCustomChartSpec? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TraceCustomChartSpec), + jsonSerializerContext) as global::PromptLayer.TraceCustomChartSpec; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TraceCustomChartSpec? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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::PromptLayer.TraceCustomChartSpec? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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::PromptLayer.TraceCustomChartSpec), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TraceCustomChartSpec; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpec.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpec.g.cs new file mode 100644 index 0000000..2fb02bc --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpec.g.cs @@ -0,0 +1,195 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// One analytics query. Each chart must use all trace-level or all span-level fields — mixed levels are rejected. Span-level charts do not support timeSeries or metadata breakdowns. + /// + public sealed partial class TraceCustomChartSpec + { + /// + /// Stable chart id, unique within the request + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chartType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecChartTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TraceCustomChartSpecChartType ChartType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metric")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricJsonConverter))] + public global::PromptLayer.TraceCustomChartSpecMetric? Metric { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metricField")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecMetricFieldJsonConverter))] + public global::PromptLayer.TraceCustomChartSpecMetricField? MetricField { get; set; } + + /// + /// Required when metric is percentile + /// + [global::System.Text.Json.Serialization.JsonPropertyName("percentile")] + public double? Percentile { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groupByField")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecGroupByFieldJsonConverter))] + public global::PromptLayer.TraceCustomChartSpecGroupByField? GroupByField { get; set; } + + /// + /// Heatmap charts only + /// + [global::System.Text.Json.Serialization.JsonPropertyName("secondaryGroupByField")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSecondaryGroupByFieldJsonConverter))] + public global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField? SecondaryGroupByField { get; set; } + + /// + /// Histogram charts only + /// + [global::System.Text.Json.Serialization.JsonPropertyName("histogramField")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecHistogramFieldJsonConverter))] + public global::PromptLayer.TraceCustomChartSpecHistogramField? HistogramField { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("histogramInterval")] + public double? HistogramInterval { get; set; } + + /// + /// Treemap and sunburst charts only + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hierarchyFields")] + public global::System.Collections.Generic.IList? HierarchyFields { get; set; } + + /// + /// Not supported with span-level fields + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timeSeries")] + public bool? TimeSeries { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timeBucket")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecTimeBucketJsonConverter))] + public global::PromptLayer.TraceCustomChartSpecTimeBucket? TimeBucket { get; set; } + + /// + /// Default Value: 25 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } + + /// + /// Multi-series mode; omit metric/metricField when using this + /// + [global::System.Text.Json.Serialization.JsonPropertyName("series")] + public global::System.Collections.Generic.IList? Series { 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. + /// + /// + /// Stable chart id, unique within the request + /// + /// + /// + /// + /// + /// + /// Required when metric is percentile + /// + /// + /// + /// Heatmap charts only + /// + /// + /// Histogram charts only + /// + /// + /// + /// Treemap and sunburst charts only + /// + /// + /// Not supported with span-level fields + /// + /// + /// + /// Default Value: 25 + /// + /// + /// Multi-series mode; omit metric/metricField when using this + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TraceCustomChartSpec( + string id, + global::PromptLayer.TraceCustomChartSpecChartType chartType, + string? title, + global::PromptLayer.TraceCustomChartSpecMetric? metric, + global::PromptLayer.TraceCustomChartSpecMetricField? metricField, + double? percentile, + global::PromptLayer.TraceCustomChartSpecGroupByField? groupByField, + global::PromptLayer.TraceCustomChartSpecSecondaryGroupByField? secondaryGroupByField, + global::PromptLayer.TraceCustomChartSpecHistogramField? histogramField, + double? histogramInterval, + global::System.Collections.Generic.IList? hierarchyFields, + bool? timeSeries, + global::PromptLayer.TraceCustomChartSpecTimeBucket? timeBucket, + int? limit, + global::System.Collections.Generic.IList? series) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Title = title; + this.ChartType = chartType; + this.Metric = metric; + this.MetricField = metricField; + this.Percentile = percentile; + this.GroupByField = groupByField; + this.SecondaryGroupByField = secondaryGroupByField; + this.HistogramField = histogramField; + this.HistogramInterval = histogramInterval; + this.HierarchyFields = hierarchyFields; + this.TimeSeries = timeSeries; + this.TimeBucket = timeBucket; + this.Limit = limit; + this.Series = series; + } + + /// + /// Initializes a new instance of the class. + /// + public TraceCustomChartSpec() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecChartType.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecChartType.g.cs new file mode 100644 index 0000000..975ac50 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecChartType.g.cs @@ -0,0 +1,93 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TraceCustomChartSpecChartType + { + /// + /// + /// + Area, + /// + /// + /// + Bar, + /// + /// + /// + Donut, + /// + /// + /// + Heatmap, + /// + /// + /// + Histogram, + /// + /// + /// + Line, + /// + /// + /// + Pie, + /// + /// + /// + Sunburst, + /// + /// + /// + Treemap, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecChartTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecChartType value) + { + return value switch + { + TraceCustomChartSpecChartType.Area => "area", + TraceCustomChartSpecChartType.Bar => "bar", + TraceCustomChartSpecChartType.Donut => "donut", + TraceCustomChartSpecChartType.Heatmap => "heatmap", + TraceCustomChartSpecChartType.Histogram => "histogram", + TraceCustomChartSpecChartType.Line => "line", + TraceCustomChartSpecChartType.Pie => "pie", + TraceCustomChartSpecChartType.Sunburst => "sunburst", + TraceCustomChartSpecChartType.Treemap => "treemap", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecChartType? ToEnum(string value) + { + return value switch + { + "area" => TraceCustomChartSpecChartType.Area, + "bar" => TraceCustomChartSpecChartType.Bar, + "donut" => TraceCustomChartSpecChartType.Donut, + "heatmap" => TraceCustomChartSpecChartType.Heatmap, + "histogram" => TraceCustomChartSpecChartType.Histogram, + "line" => TraceCustomChartSpecChartType.Line, + "pie" => TraceCustomChartSpecChartType.Pie, + "sunburst" => TraceCustomChartSpecChartType.Sunburst, + "treemap" => TraceCustomChartSpecChartType.Treemap, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecGroupByField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecGroupByField.g.cs new file mode 100644 index 0000000..971baf6 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecGroupByField.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TraceCustomChartSpecGroupByField + { + /// + /// + /// + SpanKind, + /// + /// + /// + SpanName, + /// + /// + /// + SpanStatus, + /// + /// + /// + SpanToolName, + /// + /// + /// + SpanType, + /// + /// + /// + TraceModelsUsed, + /// + /// + /// + TraceName, + /// + /// + /// + TracePromptIds, + /// + /// + /// + TraceStatus, + /// + /// + /// + TraceToolNames, + /// + /// + /// + TraceWorkflowIds, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecGroupByFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecGroupByField value) + { + return value switch + { + TraceCustomChartSpecGroupByField.SpanKind => "span_kind", + TraceCustomChartSpecGroupByField.SpanName => "span_name", + TraceCustomChartSpecGroupByField.SpanStatus => "span_status", + TraceCustomChartSpecGroupByField.SpanToolName => "span_tool_name", + TraceCustomChartSpecGroupByField.SpanType => "span_type", + TraceCustomChartSpecGroupByField.TraceModelsUsed => "trace_models_used", + TraceCustomChartSpecGroupByField.TraceName => "trace_name", + TraceCustomChartSpecGroupByField.TracePromptIds => "trace_prompt_ids", + TraceCustomChartSpecGroupByField.TraceStatus => "trace_status", + TraceCustomChartSpecGroupByField.TraceToolNames => "trace_tool_names", + TraceCustomChartSpecGroupByField.TraceWorkflowIds => "trace_workflow_ids", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecGroupByField? ToEnum(string value) + { + return value switch + { + "span_kind" => TraceCustomChartSpecGroupByField.SpanKind, + "span_name" => TraceCustomChartSpecGroupByField.SpanName, + "span_status" => TraceCustomChartSpecGroupByField.SpanStatus, + "span_tool_name" => TraceCustomChartSpecGroupByField.SpanToolName, + "span_type" => TraceCustomChartSpecGroupByField.SpanType, + "trace_models_used" => TraceCustomChartSpecGroupByField.TraceModelsUsed, + "trace_name" => TraceCustomChartSpecGroupByField.TraceName, + "trace_prompt_ids" => TraceCustomChartSpecGroupByField.TracePromptIds, + "trace_status" => TraceCustomChartSpecGroupByField.TraceStatus, + "trace_tool_names" => TraceCustomChartSpecGroupByField.TraceToolNames, + "trace_workflow_ids" => TraceCustomChartSpecGroupByField.TraceWorkflowIds, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecHierarchyField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecHierarchyField.g.cs new file mode 100644 index 0000000..0428084 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecHierarchyField.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TraceCustomChartSpecHierarchyField + { + /// + /// + /// + SpanKind, + /// + /// + /// + SpanName, + /// + /// + /// + SpanStatus, + /// + /// + /// + SpanToolName, + /// + /// + /// + SpanType, + /// + /// + /// + TraceModelsUsed, + /// + /// + /// + TraceName, + /// + /// + /// + TracePromptIds, + /// + /// + /// + TraceStatus, + /// + /// + /// + TraceToolNames, + /// + /// + /// + TraceWorkflowIds, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecHierarchyFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecHierarchyField value) + { + return value switch + { + TraceCustomChartSpecHierarchyField.SpanKind => "span_kind", + TraceCustomChartSpecHierarchyField.SpanName => "span_name", + TraceCustomChartSpecHierarchyField.SpanStatus => "span_status", + TraceCustomChartSpecHierarchyField.SpanToolName => "span_tool_name", + TraceCustomChartSpecHierarchyField.SpanType => "span_type", + TraceCustomChartSpecHierarchyField.TraceModelsUsed => "trace_models_used", + TraceCustomChartSpecHierarchyField.TraceName => "trace_name", + TraceCustomChartSpecHierarchyField.TracePromptIds => "trace_prompt_ids", + TraceCustomChartSpecHierarchyField.TraceStatus => "trace_status", + TraceCustomChartSpecHierarchyField.TraceToolNames => "trace_tool_names", + TraceCustomChartSpecHierarchyField.TraceWorkflowIds => "trace_workflow_ids", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecHierarchyField? ToEnum(string value) + { + return value switch + { + "span_kind" => TraceCustomChartSpecHierarchyField.SpanKind, + "span_name" => TraceCustomChartSpecHierarchyField.SpanName, + "span_status" => TraceCustomChartSpecHierarchyField.SpanStatus, + "span_tool_name" => TraceCustomChartSpecHierarchyField.SpanToolName, + "span_type" => TraceCustomChartSpecHierarchyField.SpanType, + "trace_models_used" => TraceCustomChartSpecHierarchyField.TraceModelsUsed, + "trace_name" => TraceCustomChartSpecHierarchyField.TraceName, + "trace_prompt_ids" => TraceCustomChartSpecHierarchyField.TracePromptIds, + "trace_status" => TraceCustomChartSpecHierarchyField.TraceStatus, + "trace_tool_names" => TraceCustomChartSpecHierarchyField.TraceToolNames, + "trace_workflow_ids" => TraceCustomChartSpecHierarchyField.TraceWorkflowIds, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecHistogramField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecHistogramField.g.cs new file mode 100644 index 0000000..03bf305 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecHistogramField.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Histogram charts only + /// + public enum TraceCustomChartSpecHistogramField + { + /// + /// + /// + SpanCostUsd, + /// + /// + /// + SpanDurationMs, + /// + /// + /// + SpanInputTokens, + /// + /// + /// + SpanOutputTokens, + /// + /// + /// + SpanTokens, + /// + /// + /// + TraceDepth, + /// + /// + /// + TraceDurationMs, + /// + /// + /// + TraceInputTokens, + /// + /// + /// + TraceOutputTokens, + /// + /// + /// + TraceSpanCount, + /// + /// + /// + TraceTotalCostUsd, + /// + /// + /// + TraceTotalTokens, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecHistogramFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecHistogramField value) + { + return value switch + { + TraceCustomChartSpecHistogramField.SpanCostUsd => "span_cost_usd", + TraceCustomChartSpecHistogramField.SpanDurationMs => "span_duration_ms", + TraceCustomChartSpecHistogramField.SpanInputTokens => "span_input_tokens", + TraceCustomChartSpecHistogramField.SpanOutputTokens => "span_output_tokens", + TraceCustomChartSpecHistogramField.SpanTokens => "span_tokens", + TraceCustomChartSpecHistogramField.TraceDepth => "trace_depth", + TraceCustomChartSpecHistogramField.TraceDurationMs => "trace_duration_ms", + TraceCustomChartSpecHistogramField.TraceInputTokens => "trace_input_tokens", + TraceCustomChartSpecHistogramField.TraceOutputTokens => "trace_output_tokens", + TraceCustomChartSpecHistogramField.TraceSpanCount => "trace_span_count", + TraceCustomChartSpecHistogramField.TraceTotalCostUsd => "trace_total_cost_usd", + TraceCustomChartSpecHistogramField.TraceTotalTokens => "trace_total_tokens", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecHistogramField? ToEnum(string value) + { + return value switch + { + "span_cost_usd" => TraceCustomChartSpecHistogramField.SpanCostUsd, + "span_duration_ms" => TraceCustomChartSpecHistogramField.SpanDurationMs, + "span_input_tokens" => TraceCustomChartSpecHistogramField.SpanInputTokens, + "span_output_tokens" => TraceCustomChartSpecHistogramField.SpanOutputTokens, + "span_tokens" => TraceCustomChartSpecHistogramField.SpanTokens, + "trace_depth" => TraceCustomChartSpecHistogramField.TraceDepth, + "trace_duration_ms" => TraceCustomChartSpecHistogramField.TraceDurationMs, + "trace_input_tokens" => TraceCustomChartSpecHistogramField.TraceInputTokens, + "trace_output_tokens" => TraceCustomChartSpecHistogramField.TraceOutputTokens, + "trace_span_count" => TraceCustomChartSpecHistogramField.TraceSpanCount, + "trace_total_cost_usd" => TraceCustomChartSpecHistogramField.TraceTotalCostUsd, + "trace_total_tokens" => TraceCustomChartSpecHistogramField.TraceTotalTokens, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecMetric.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecMetric.g.cs new file mode 100644 index 0000000..3c3d8b7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecMetric.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TraceCustomChartSpecMetric + { + /// + /// + /// + Avg, + /// + /// + /// + Count, + /// + /// + /// + Max, + /// + /// + /// + Min, + /// + /// + /// + Percentile, + /// + /// + /// + Sum, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecMetricExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecMetric value) + { + return value switch + { + TraceCustomChartSpecMetric.Avg => "avg", + TraceCustomChartSpecMetric.Count => "count", + TraceCustomChartSpecMetric.Max => "max", + TraceCustomChartSpecMetric.Min => "min", + TraceCustomChartSpecMetric.Percentile => "percentile", + TraceCustomChartSpecMetric.Sum => "sum", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecMetric? ToEnum(string value) + { + return value switch + { + "avg" => TraceCustomChartSpecMetric.Avg, + "count" => TraceCustomChartSpecMetric.Count, + "max" => TraceCustomChartSpecMetric.Max, + "min" => TraceCustomChartSpecMetric.Min, + "percentile" => TraceCustomChartSpecMetric.Percentile, + "sum" => TraceCustomChartSpecMetric.Sum, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecMetricField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecMetricField.g.cs new file mode 100644 index 0000000..a76851f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecMetricField.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TraceCustomChartSpecMetricField + { + /// + /// + /// + SpanCostUsd, + /// + /// + /// + SpanDurationMs, + /// + /// + /// + SpanInputTokens, + /// + /// + /// + SpanOutputTokens, + /// + /// + /// + SpanTokens, + /// + /// + /// + TraceDepth, + /// + /// + /// + TraceDurationMs, + /// + /// + /// + TraceInputTokens, + /// + /// + /// + TraceOutputTokens, + /// + /// + /// + TraceSpanCount, + /// + /// + /// + TraceTotalCostUsd, + /// + /// + /// + TraceTotalTokens, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecMetricFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecMetricField value) + { + return value switch + { + TraceCustomChartSpecMetricField.SpanCostUsd => "span_cost_usd", + TraceCustomChartSpecMetricField.SpanDurationMs => "span_duration_ms", + TraceCustomChartSpecMetricField.SpanInputTokens => "span_input_tokens", + TraceCustomChartSpecMetricField.SpanOutputTokens => "span_output_tokens", + TraceCustomChartSpecMetricField.SpanTokens => "span_tokens", + TraceCustomChartSpecMetricField.TraceDepth => "trace_depth", + TraceCustomChartSpecMetricField.TraceDurationMs => "trace_duration_ms", + TraceCustomChartSpecMetricField.TraceInputTokens => "trace_input_tokens", + TraceCustomChartSpecMetricField.TraceOutputTokens => "trace_output_tokens", + TraceCustomChartSpecMetricField.TraceSpanCount => "trace_span_count", + TraceCustomChartSpecMetricField.TraceTotalCostUsd => "trace_total_cost_usd", + TraceCustomChartSpecMetricField.TraceTotalTokens => "trace_total_tokens", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecMetricField? ToEnum(string value) + { + return value switch + { + "span_cost_usd" => TraceCustomChartSpecMetricField.SpanCostUsd, + "span_duration_ms" => TraceCustomChartSpecMetricField.SpanDurationMs, + "span_input_tokens" => TraceCustomChartSpecMetricField.SpanInputTokens, + "span_output_tokens" => TraceCustomChartSpecMetricField.SpanOutputTokens, + "span_tokens" => TraceCustomChartSpecMetricField.SpanTokens, + "trace_depth" => TraceCustomChartSpecMetricField.TraceDepth, + "trace_duration_ms" => TraceCustomChartSpecMetricField.TraceDurationMs, + "trace_input_tokens" => TraceCustomChartSpecMetricField.TraceInputTokens, + "trace_output_tokens" => TraceCustomChartSpecMetricField.TraceOutputTokens, + "trace_span_count" => TraceCustomChartSpecMetricField.TraceSpanCount, + "trace_total_cost_usd" => TraceCustomChartSpecMetricField.TraceTotalCostUsd, + "trace_total_tokens" => TraceCustomChartSpecMetricField.TraceTotalTokens, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSecondaryGroupByField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSecondaryGroupByField.g.cs new file mode 100644 index 0000000..34ae105 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSecondaryGroupByField.g.cs @@ -0,0 +1,105 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Heatmap charts only + /// + public enum TraceCustomChartSpecSecondaryGroupByField + { + /// + /// + /// + SpanKind, + /// + /// + /// + SpanName, + /// + /// + /// + SpanStatus, + /// + /// + /// + SpanToolName, + /// + /// + /// + SpanType, + /// + /// + /// + TraceModelsUsed, + /// + /// + /// + TraceName, + /// + /// + /// + TracePromptIds, + /// + /// + /// + TraceStatus, + /// + /// + /// + TraceToolNames, + /// + /// + /// + TraceWorkflowIds, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecSecondaryGroupByFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecSecondaryGroupByField value) + { + return value switch + { + TraceCustomChartSpecSecondaryGroupByField.SpanKind => "span_kind", + TraceCustomChartSpecSecondaryGroupByField.SpanName => "span_name", + TraceCustomChartSpecSecondaryGroupByField.SpanStatus => "span_status", + TraceCustomChartSpecSecondaryGroupByField.SpanToolName => "span_tool_name", + TraceCustomChartSpecSecondaryGroupByField.SpanType => "span_type", + TraceCustomChartSpecSecondaryGroupByField.TraceModelsUsed => "trace_models_used", + TraceCustomChartSpecSecondaryGroupByField.TraceName => "trace_name", + TraceCustomChartSpecSecondaryGroupByField.TracePromptIds => "trace_prompt_ids", + TraceCustomChartSpecSecondaryGroupByField.TraceStatus => "trace_status", + TraceCustomChartSpecSecondaryGroupByField.TraceToolNames => "trace_tool_names", + TraceCustomChartSpecSecondaryGroupByField.TraceWorkflowIds => "trace_workflow_ids", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecSecondaryGroupByField? ToEnum(string value) + { + return value switch + { + "span_kind" => TraceCustomChartSpecSecondaryGroupByField.SpanKind, + "span_name" => TraceCustomChartSpecSecondaryGroupByField.SpanName, + "span_status" => TraceCustomChartSpecSecondaryGroupByField.SpanStatus, + "span_tool_name" => TraceCustomChartSpecSecondaryGroupByField.SpanToolName, + "span_type" => TraceCustomChartSpecSecondaryGroupByField.SpanType, + "trace_models_used" => TraceCustomChartSpecSecondaryGroupByField.TraceModelsUsed, + "trace_name" => TraceCustomChartSpecSecondaryGroupByField.TraceName, + "trace_prompt_ids" => TraceCustomChartSpecSecondaryGroupByField.TracePromptIds, + "trace_status" => TraceCustomChartSpecSecondaryGroupByField.TraceStatus, + "trace_tool_names" => TraceCustomChartSpecSecondaryGroupByField.TraceToolNames, + "trace_workflow_ids" => TraceCustomChartSpecSecondaryGroupByField.TraceWorkflowIds, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerie.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerie.Json.g.cs new file mode 100644 index 0000000..e2b6f0f --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerie.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TraceCustomChartSpecSerie + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TraceCustomChartSpecSerie? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TraceCustomChartSpecSerie), + jsonSerializerContext) as global::PromptLayer.TraceCustomChartSpecSerie; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TraceCustomChartSpecSerie? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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::PromptLayer.TraceCustomChartSpecSerie? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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::PromptLayer.TraceCustomChartSpecSerie), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TraceCustomChartSpecSerie; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerie.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerie.g.cs new file mode 100644 index 0000000..0ec219a --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerie.g.cs @@ -0,0 +1,86 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class TraceCustomChartSpecSerie + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Key { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metric")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TraceCustomChartSpecSerieMetric Metric { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metricField")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceCustomChartSpecSerieMetricFieldJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::PromptLayer.TraceCustomChartSpecSerieMetricField MetricField { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("percentile")] + public double? Percentile { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TraceCustomChartSpecSerie( + string key, + string label, + global::PromptLayer.TraceCustomChartSpecSerieMetric metric, + global::PromptLayer.TraceCustomChartSpecSerieMetricField metricField, + double? percentile) + { + this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key)); + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.Metric = metric; + this.MetricField = metricField; + this.Percentile = percentile; + } + + /// + /// Initializes a new instance of the class. + /// + public TraceCustomChartSpecSerie() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerieMetric.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerieMetric.g.cs new file mode 100644 index 0000000..e8e9864 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerieMetric.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TraceCustomChartSpecSerieMetric + { + /// + /// + /// + Avg, + /// + /// + /// + Max, + /// + /// + /// + Min, + /// + /// + /// + Percentile, + /// + /// + /// + Sum, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecSerieMetricExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecSerieMetric value) + { + return value switch + { + TraceCustomChartSpecSerieMetric.Avg => "avg", + TraceCustomChartSpecSerieMetric.Max => "max", + TraceCustomChartSpecSerieMetric.Min => "min", + TraceCustomChartSpecSerieMetric.Percentile => "percentile", + TraceCustomChartSpecSerieMetric.Sum => "sum", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecSerieMetric? ToEnum(string value) + { + return value switch + { + "avg" => TraceCustomChartSpecSerieMetric.Avg, + "max" => TraceCustomChartSpecSerieMetric.Max, + "min" => TraceCustomChartSpecSerieMetric.Min, + "percentile" => TraceCustomChartSpecSerieMetric.Percentile, + "sum" => TraceCustomChartSpecSerieMetric.Sum, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerieMetricField.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerieMetricField.g.cs new file mode 100644 index 0000000..b5ff53b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecSerieMetricField.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TraceCustomChartSpecSerieMetricField + { + /// + /// + /// + SpanCostUsd, + /// + /// + /// + SpanDurationMs, + /// + /// + /// + SpanInputTokens, + /// + /// + /// + SpanOutputTokens, + /// + /// + /// + SpanTokens, + /// + /// + /// + TraceDepth, + /// + /// + /// + TraceDurationMs, + /// + /// + /// + TraceInputTokens, + /// + /// + /// + TraceOutputTokens, + /// + /// + /// + TraceSpanCount, + /// + /// + /// + TraceTotalCostUsd, + /// + /// + /// + TraceTotalTokens, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecSerieMetricFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecSerieMetricField value) + { + return value switch + { + TraceCustomChartSpecSerieMetricField.SpanCostUsd => "span_cost_usd", + TraceCustomChartSpecSerieMetricField.SpanDurationMs => "span_duration_ms", + TraceCustomChartSpecSerieMetricField.SpanInputTokens => "span_input_tokens", + TraceCustomChartSpecSerieMetricField.SpanOutputTokens => "span_output_tokens", + TraceCustomChartSpecSerieMetricField.SpanTokens => "span_tokens", + TraceCustomChartSpecSerieMetricField.TraceDepth => "trace_depth", + TraceCustomChartSpecSerieMetricField.TraceDurationMs => "trace_duration_ms", + TraceCustomChartSpecSerieMetricField.TraceInputTokens => "trace_input_tokens", + TraceCustomChartSpecSerieMetricField.TraceOutputTokens => "trace_output_tokens", + TraceCustomChartSpecSerieMetricField.TraceSpanCount => "trace_span_count", + TraceCustomChartSpecSerieMetricField.TraceTotalCostUsd => "trace_total_cost_usd", + TraceCustomChartSpecSerieMetricField.TraceTotalTokens => "trace_total_tokens", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecSerieMetricField? ToEnum(string value) + { + return value switch + { + "span_cost_usd" => TraceCustomChartSpecSerieMetricField.SpanCostUsd, + "span_duration_ms" => TraceCustomChartSpecSerieMetricField.SpanDurationMs, + "span_input_tokens" => TraceCustomChartSpecSerieMetricField.SpanInputTokens, + "span_output_tokens" => TraceCustomChartSpecSerieMetricField.SpanOutputTokens, + "span_tokens" => TraceCustomChartSpecSerieMetricField.SpanTokens, + "trace_depth" => TraceCustomChartSpecSerieMetricField.TraceDepth, + "trace_duration_ms" => TraceCustomChartSpecSerieMetricField.TraceDurationMs, + "trace_input_tokens" => TraceCustomChartSpecSerieMetricField.TraceInputTokens, + "trace_output_tokens" => TraceCustomChartSpecSerieMetricField.TraceOutputTokens, + "trace_span_count" => TraceCustomChartSpecSerieMetricField.TraceSpanCount, + "trace_total_cost_usd" => TraceCustomChartSpecSerieMetricField.TraceTotalCostUsd, + "trace_total_tokens" => TraceCustomChartSpecSerieMetricField.TraceTotalTokens, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecTimeBucket.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecTimeBucket.g.cs new file mode 100644 index 0000000..637bc33 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceCustomChartSpecTimeBucket.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public enum TraceCustomChartSpecTimeBucket + { + /// + /// + /// + Auto, + /// + /// + /// + Day, + /// + /// + /// + Month, + /// + /// + /// + Week, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceCustomChartSpecTimeBucketExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceCustomChartSpecTimeBucket value) + { + return value switch + { + TraceCustomChartSpecTimeBucket.Auto => "auto", + TraceCustomChartSpecTimeBucket.Day => "day", + TraceCustomChartSpecTimeBucket.Month => "month", + TraceCustomChartSpecTimeBucket.Week => "week", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceCustomChartSpecTimeBucket? ToEnum(string value) + { + return value switch + { + "auto" => TraceCustomChartSpecTimeBucket.Auto, + "day" => TraceCustomChartSpecTimeBucket.Day, + "month" => TraceCustomChartSpecTimeBucket.Month, + "week" => TraceCustomChartSpecTimeBucket.Week, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilter.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilter.Json.g.cs new file mode 100644 index 0000000..18fa8a8 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilter.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TraceStructuredFilter + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TraceStructuredFilter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TraceStructuredFilter), + jsonSerializerContext) as global::PromptLayer.TraceStructuredFilter; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TraceStructuredFilter? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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::PromptLayer.TraceStructuredFilter? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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::PromptLayer.TraceStructuredFilter), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TraceStructuredFilter; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilter.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilter.g.cs new file mode 100644 index 0000000..fcdda0b --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilter.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Trace structured filter. field accepts trace-level (trace_*) and span-level (span_*) names. + /// + public sealed partial class TraceStructuredFilter + { + /// + /// Trace or span field, e.g. trace_name, trace_start, span_tool_name, span_duration_ms + /// + [global::System.Text.Json.Serialization.JsonPropertyName("field")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Field { get; set; } + + /// + /// Filter operator, e.g. is, in, contains, gt, between, is_not_empty + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operator")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Operator { get; set; } + + /// + /// Filter value (type depends on operator) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public object? Value { get; set; } + + /// + /// Key name for nested span field operators (span_attributes, span_resource, span_input_variables) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nested_key")] + public string? NestedKey { 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. + /// + /// + /// Trace or span field, e.g. trace_name, trace_start, span_tool_name, span_duration_ms + /// + /// + /// Filter operator, e.g. is, in, contains, gt, between, is_not_empty + /// + /// + /// Filter value (type depends on operator) + /// + /// + /// Key name for nested span field operators (span_attributes, span_resource, span_input_variables) + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TraceStructuredFilter( + string field, + string @operator, + object? value, + string? nestedKey) + { + this.Field = field ?? throw new global::System.ArgumentNullException(nameof(field)); + this.Operator = @operator ?? throw new global::System.ArgumentNullException(nameof(@operator)); + this.Value = value; + this.NestedKey = nestedKey; + } + + /// + /// Initializes a new instance of the class. + /// + public TraceStructuredFilter() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterGroup.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterGroup.Json.g.cs new file mode 100644 index 0000000..58e5e9c --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterGroup.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TraceStructuredFilterGroup + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TraceStructuredFilterGroup? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TraceStructuredFilterGroup), + jsonSerializerContext) as global::PromptLayer.TraceStructuredFilterGroup; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TraceStructuredFilterGroup? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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::PromptLayer.TraceStructuredFilterGroup? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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::PromptLayer.TraceStructuredFilterGroup), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TraceStructuredFilterGroup; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterGroup.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterGroup.g.cs new file mode 100644 index 0000000..2290338 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterGroup.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Nested filter tree. AND/OR are cross-span; SPAN_AND/SPAN_OR require one and the same span to satisfy every/any branch (span-level fields only). + /// + public sealed partial class TraceStructuredFilterGroup + { + /// + /// Default Value: AND + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logic")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.TraceStructuredFilterGroupLogicJsonConverter))] + public global::PromptLayer.TraceStructuredFilterGroupLogic? Logic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList> Filters { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Default Value: AND + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TraceStructuredFilterGroup( + global::System.Collections.Generic.IList> filters, + global::PromptLayer.TraceStructuredFilterGroupLogic? logic) + { + this.Logic = logic; + this.Filters = filters ?? throw new global::System.ArgumentNullException(nameof(filters)); + } + + /// + /// Initializes a new instance of the class. + /// + public TraceStructuredFilterGroup() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterGroupLogic.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterGroupLogic.g.cs new file mode 100644 index 0000000..0570ddf --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterGroupLogic.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Default Value: AND + /// + public enum TraceStructuredFilterGroupLogic + { + /// + /// + /// + And, + /// + /// + /// + Or, + /// + /// + /// + SpanAnd, + /// + /// + /// + SpanOr, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TraceStructuredFilterGroupLogicExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TraceStructuredFilterGroupLogic value) + { + return value switch + { + TraceStructuredFilterGroupLogic.And => "AND", + TraceStructuredFilterGroupLogic.Or => "OR", + TraceStructuredFilterGroupLogic.SpanAnd => "SPAN_AND", + TraceStructuredFilterGroupLogic.SpanOr => "SPAN_OR", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TraceStructuredFilterGroupLogic? ToEnum(string value) + { + return value switch + { + "AND" => TraceStructuredFilterGroupLogic.And, + "OR" => TraceStructuredFilterGroupLogic.Or, + "SPAN_AND" => TraceStructuredFilterGroupLogic.SpanAnd, + "SPAN_OR" => TraceStructuredFilterGroupLogic.SpanOr, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterValue.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterValue.Json.g.cs new file mode 100644 index 0000000..57f7257 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterValue.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class TraceStructuredFilterValue + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::PromptLayer.TraceStructuredFilterValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.TraceStructuredFilterValue), + jsonSerializerContext) as global::PromptLayer.TraceStructuredFilterValue; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::PromptLayer.TraceStructuredFilterValue? FromJson( + string json) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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::PromptLayer.TraceStructuredFilterValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::PromptLayer.SourceGenerationContext.Default); + } + + 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::PromptLayer.TraceStructuredFilterValue), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.TraceStructuredFilterValue; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::PromptLayer.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterValue.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterValue.g.cs new file mode 100644 index 0000000..6d495b7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.TraceStructuredFilterValue.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Filter value (type depends on operator) + /// + public sealed partial class TraceStructuredFilterValue + { + + /// + /// 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/PromptLayer/Generated/PromptLayer.TrackingClient.GetTraceAnalyticsCustomAnalytics.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.TrackingClient.GetTraceAnalyticsCustomAnalytics.g.cs new file mode 100644 index 0000000..8c8deb7 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.TrackingClient.GetTraceAnalyticsCustomAnalytics.g.cs @@ -0,0 +1,526 @@ + +#nullable enable + +namespace PromptLayer +{ + public partial class TrackingClient + { + + + private static readonly global::PromptLayer.EndPointSecurityRequirement s_GetTraceAnalyticsCustomAnalyticsSecurityRequirement0 = + new global::PromptLayer.EndPointSecurityRequirement + { + Authorizations = new global::PromptLayer.EndPointAuthorizationRequirement[] + { new global::PromptLayer.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXApiKey", + Location = "Header", + Name = "X-API-KEY", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::PromptLayer.EndPointSecurityRequirement[] s_GetTraceAnalyticsCustomAnalyticsSecurityRequirements = + new global::PromptLayer.EndPointSecurityRequirement[] + { s_GetTraceAnalyticsCustomAnalyticsSecurityRequirement0, + }; + partial void PrepareGetTraceAnalyticsCustomAnalyticsArguments( + global::System.Net.Http.HttpClient httpClient, + global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery request); + partial void PrepareGetTraceAnalyticsCustomAnalyticsRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery request); + partial void ProcessGetTraceAnalyticsCustomAnalyticsResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetTraceAnalyticsCustomAnalyticsResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Trace Analytics Custom Queries + /// + /// + /// 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 GetTraceAnalyticsCustomAnalyticsAsync( + + global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetTraceAnalyticsCustomAnalyticsAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Trace Analytics Custom Queries + /// + /// + /// 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> GetTraceAnalyticsCustomAnalyticsAsResponseAsync( + + global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery request, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareGetTraceAnalyticsCustomAnalyticsArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::PromptLayer.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetTraceAnalyticsCustomAnalyticsSecurityRequirements, + operationName: "GetTraceAnalyticsCustomAnalyticsAsync"); + + using var __timeoutCancellationTokenSource = global::PromptLayer.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::PromptLayer.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::PromptLayer.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::PromptLayer.PathBuilder( + path: "/api/public/v2/traces/analytics/custom-analytics", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::PromptLayer.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::PromptLayer.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetTraceAnalyticsCustomAnalyticsRequest( + 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::PromptLayer.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTraceAnalyticsCustomAnalytics", + methodName: "GetTraceAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/traces/analytics/custom-analytics\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTraceAnalyticsCustomAnalytics", + methodName: "GetTraceAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/traces/analytics/custom-analytics\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::PromptLayer.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::PromptLayer.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTraceAnalyticsCustomAnalytics", + methodName: "GetTraceAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/traces/analytics/custom-analytics\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::PromptLayer.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessGetTraceAnalyticsCustomAnalyticsResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTraceAnalyticsCustomAnalytics", + methodName: "GetTraceAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/traces/analytics/custom-analytics\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::PromptLayer.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::PromptLayer.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "GetTraceAnalyticsCustomAnalytics", + methodName: "GetTraceAnalyticsCustomAnalyticsAsync", + pathTemplate: "\"/api/public/v2/traces/analytics/custom-analytics\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + responseBody: __content_401, + 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); + ProcessGetTraceAnalyticsCustomAnalyticsResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::PromptLayer.RequestAnalyticsCustomAnalyticsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::PromptLayer.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::PromptLayer.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::PromptLayer.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Trace Analytics Custom Queries + /// + /// + /// Nested filter tree. AND/OR are cross-span; SPAN_AND/SPAN_OR require one and the same span to satisfy every/any branch (span-level fields only). + /// + /// + /// 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 GetTraceAnalyticsCustomAnalyticsAsync( + global::System.Collections.Generic.IList customCharts, + global::PromptLayer.TraceStructuredFilterGroup? filterGroup = default, + global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::PromptLayer.TraceAnalyticsCustomAnalyticsQuery + { + FilterGroup = filterGroup, + CustomCharts = customCharts, + }; + + return await GetTraceAnalyticsCustomAnalyticsAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/autosdk.generated-examples.json b/src/libs/PromptLayer/Generated/autosdk.generated-examples.json index 40cf1fc..ceb0edb 100644 --- a/src/libs/PromptLayer/Generated/autosdk.generated-examples.json +++ b/src/libs/PromptLayer/Generated/autosdk.generated-examples.json @@ -321,6 +321,17 @@ }, { "Order": 30, + "Title": "Trace Analytics Custom Queries", + "Slug": "gettraceanalyticscustomanalytics", + "Description": "Generated from OpenAPI examples.", + "Language": "csharp", + "Code": "using var client = PromptLayerClient.CreateFromEnvironment();\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::PromptLayer.TraceAnalyticsCustomAnalyticsQuery\u003E(\n @\u0022{\n \u0022\u0022filter_group\u0022\u0022: {\n \u0022\u0022logic\u0022\u0022: \u0022\u0022AND\u0022\u0022,\n \u0022\u0022filters\u0022\u0022: [\n {\n \u0022\u0022field\u0022\u0022: \u0022\u0022trace_name\u0022\u0022,\n \u0022\u0022operator\u0022\u0022: \u0022\u0022is\u0022\u0022,\n \u0022\u0022value\u0022\u0022: \u0022\u0022agent-turn\u0022\u0022\n },\n {\n \u0022\u0022field\u0022\u0022: \u0022\u0022trace_start\u0022\u0022,\n \u0022\u0022operator\u0022\u0022: \u0022\u0022between\u0022\u0022,\n \u0022\u0022value\u0022\u0022: [\n \u0022\u00222026-07-01T00:00:00Z\u0022\u0022,\n \u0022\u00222026-07-08T00:00:00Z\u0022\u0022\n ]\n }\n ]\n },\n \u0022\u0022customCharts\u0022\u0022: [\n {\n \u0022\u0022id\u0022\u0022: \u0022\u0022slowest_tools\u0022\u0022,\n \u0022\u0022title\u0022\u0022: \u0022\u0022Slowest Tools\u0022\u0022,\n \u0022\u0022chartType\u0022\u0022: \u0022\u0022bar\u0022\u0022,\n \u0022\u0022metric\u0022\u0022: \u0022\u0022max\u0022\u0022,\n \u0022\u0022metricField\u0022\u0022: \u0022\u0022span_duration_ms\u0022\u0022,\n \u0022\u0022groupByField\u0022\u0022: \u0022\u0022span_tool_name\u0022\u0022\n }\n ]\n}\u0022)!;\n\nvar response = await client.Tracking.GetTraceAnalyticsCustomAnalyticsAsync(\n request: request\n);", + "Format": "sdk", + "OperationId": "getTraceAnalyticsCustomAnalytics", + "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." + }, + { + "Order": 31, "Title": "Search Request Logs", "Slug": "searchrequestlogs", "Description": "Generated from OpenAPI examples.", @@ -331,7 +342,7 @@ "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." }, { - "Order": 31, + "Order": 32, "Title": "Create Workflow", "Slug": "createworkflow", "Description": "Generated from OpenAPI examples.", @@ -342,7 +353,7 @@ "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." }, { - "Order": 32, + "Order": 33, "Title": "Get Agent", "Slug": "getworkflow", "Description": "Generated from OpenAPI examples.", @@ -353,7 +364,7 @@ "Setup": "This example assumes \u0060using PromptLayer;\u0060 is in scope and a configured credential environment variable is set: \u0060PROMPTLAYER_API_KEY\u0060." }, { - "Order": 33, + "Order": 34, "Title": "Patch Workflow", "Slug": "patchworkflow", "Description": "Generated from OpenAPI examples.", @@ -364,7 +375,7 @@ "Setup": null }, { - "Order": 34, + "Order": 35, "Title": "Run Workflow", "Slug": "runworkflow", "Description": "Generated from OpenAPI examples.", diff --git a/src/libs/PromptLayer/openapi.json b/src/libs/PromptLayer/openapi.json index 2ad7ad3..5fe3405 100644 --- a/src/libs/PromptLayer/openapi.json +++ b/src/libs/PromptLayer/openapi.json @@ -14375,6 +14375,105 @@ } } } + }, + "/api/public/v2/traces/analytics/custom-analytics": { + "post": { + "summary": "Trace Analytics Custom Queries", + "operationId": "getTraceAnalyticsCustomAnalytics", + "tags": [ + "tracking" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TraceAnalyticsCustomAnalyticsQuery" + }, + "examples": { + "slowest_tools": { + "summary": "Slowest tools across agent traces", + "value": { + "filter_group": { + "logic": "AND", + "filters": [ + { + "field": "trace_name", + "operator": "is", + "value": "agent-turn" + }, + { + "field": "trace_start", + "operator": "between", + "value": [ + "2026-07-01T00:00:00Z", + "2026-07-08T00:00:00Z" + ] + } + ] + }, + "customCharts": [ + { + "id": "slowest_tools", + "title": "Slowest Tools", + "chartType": "bar", + "metric": "max", + "metricField": "span_duration_ms", + "groupByField": "span_tool_name" + } + ] + } + }, + "tool_call_counts": { + "summary": "Tool call counts", + "value": { + "customCharts": [ + { + "id": "tool_calls", + "chartType": "bar", + "metric": "count", + "groupByField": "span_tool_name" + } + ] + } + }, + "trace_cost_by_name": { + "summary": "Trace cost grouped by trace name", + "value": { + "customCharts": [ + { + "id": "cost_by_trace", + "chartType": "bar", + "metric": "sum", + "metricField": "trace_total_cost_usd", + "groupByField": "trace_name" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Custom chart results in the order requested.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RequestAnalyticsCustomAnalyticsResponse" + } + } + } + }, + "400": { + "description": "Invalid chart spec or filter (e.g. mixed trace- and span-level fields in one chart)." + }, + "401": { + "description": "Authentication failed." + } + } + } } }, "components": { @@ -24813,6 +24912,297 @@ } } } + }, + "TraceStructuredFilter": { + "type": "object", + "description": "Trace structured filter. field accepts trace-level (trace_*) and span-level (span_*) names.", + "required": [ + "field", + "operator" + ], + "properties": { + "field": { + "type": "string", + "description": "Trace or span field, e.g. trace_name, trace_start, span_tool_name, span_duration_ms" + }, + "operator": { + "type": "string", + "description": "Filter operator, e.g. is, in, contains, gt, between, is_not_empty" + }, + "value": { + "description": "Filter value (type depends on operator)" + }, + "nested_key": { + "type": "string", + "description": "Key name for nested span field operators (span_attributes, span_resource, span_input_variables)" + } + } + }, + "TraceStructuredFilterGroup": { + "type": "object", + "description": "Nested filter tree. AND/OR are cross-span; SPAN_AND/SPAN_OR require one and the same span to satisfy every/any branch (span-level fields only).", + "required": [ + "filters" + ], + "properties": { + "logic": { + "type": "string", + "enum": [ + "AND", + "OR", + "SPAN_AND", + "SPAN_OR" + ], + "default": "AND" + }, + "filters": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/TraceStructuredFilter" + }, + { + "$ref": "#/components/schemas/TraceStructuredFilterGroup" + } + ] + } + } + } + }, + "TraceCustomChartSpec": { + "type": "object", + "description": "One analytics query. Each chart must use all trace-level or all span-level fields — mixed levels are rejected. Span-level charts do not support timeSeries or metadata breakdowns.", + "required": [ + "id", + "chartType" + ], + "properties": { + "id": { + "type": "string", + "description": "Stable chart id, unique within the request" + }, + "title": { + "type": "string" + }, + "chartType": { + "type": "string", + "enum": [ + "bar", + "line", + "area", + "pie", + "donut", + "histogram", + "heatmap", + "treemap", + "sunburst" + ] + }, + "metric": { + "type": "string", + "enum": [ + "count", + "sum", + "avg", + "min", + "max", + "percentile" + ] + }, + "metricField": { + "type": "string", + "enum": [ + "trace_duration_ms", + "trace_total_cost_usd", + "trace_total_tokens", + "trace_input_tokens", + "trace_output_tokens", + "trace_span_count", + "trace_depth", + "span_duration_ms", + "span_cost_usd", + "span_tokens", + "span_input_tokens", + "span_output_tokens" + ] + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100, + "description": "Required when metric is percentile" + }, + "groupByField": { + "type": "string", + "enum": [ + "trace_status", + "trace_name", + "trace_models_used", + "trace_prompt_ids", + "trace_workflow_ids", + "trace_tool_names", + "span_tool_name", + "span_name", + "span_type", + "span_kind", + "span_status" + ] + }, + "secondaryGroupByField": { + "type": "string", + "enum": [ + "trace_status", + "trace_name", + "trace_models_used", + "trace_prompt_ids", + "trace_workflow_ids", + "trace_tool_names", + "span_tool_name", + "span_name", + "span_type", + "span_kind", + "span_status" + ], + "description": "Heatmap charts only" + }, + "histogramField": { + "type": "string", + "enum": [ + "trace_duration_ms", + "trace_total_cost_usd", + "trace_total_tokens", + "trace_input_tokens", + "trace_output_tokens", + "trace_span_count", + "trace_depth", + "span_duration_ms", + "span_cost_usd", + "span_tokens", + "span_input_tokens", + "span_output_tokens" + ], + "description": "Histogram charts only" + }, + "histogramInterval": { + "type": "number", + "exclusiveMinimum": 0 + }, + "hierarchyFields": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "trace_status", + "trace_name", + "trace_models_used", + "trace_prompt_ids", + "trace_workflow_ids", + "trace_tool_names", + "span_tool_name", + "span_name", + "span_type", + "span_kind", + "span_status" + ] + }, + "minItems": 2, + "maxItems": 5, + "description": "Treemap and sunburst charts only" + }, + "timeSeries": { + "type": "boolean", + "description": "Not supported with span-level fields" + }, + "timeBucket": { + "type": "string", + "enum": [ + "auto", + "day", + "week", + "month" + ] + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 25 + }, + "series": { + "type": "array", + "minItems": 2, + "description": "Multi-series mode; omit metric/metricField when using this", + "items": { + "type": "object", + "required": [ + "key", + "label", + "metric", + "metricField" + ], + "properties": { + "key": { + "type": "string" + }, + "label": { + "type": "string" + }, + "metric": { + "type": "string", + "enum": [ + "sum", + "avg", + "min", + "max", + "percentile" + ] + }, + "metricField": { + "type": "string", + "enum": [ + "trace_duration_ms", + "trace_total_cost_usd", + "trace_total_tokens", + "trace_input_tokens", + "trace_output_tokens", + "trace_span_count", + "trace_depth", + "span_duration_ms", + "span_cost_usd", + "span_tokens", + "span_input_tokens", + "span_output_tokens" + ] + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + } + } + } + }, + "TraceAnalyticsCustomAnalyticsQuery": { + "type": "object", + "required": [ + "customCharts" + ], + "properties": { + "filter_group": { + "$ref": "#/components/schemas/TraceStructuredFilterGroup" + }, + "customCharts": { + "type": "array", + "minItems": 1, + "maxItems": 10, + "items": { + "$ref": "#/components/schemas/TraceCustomChartSpec" + } + } + } } }, "responses": {