diff --git a/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs b/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs index 0657919..31dde77 100644 --- a/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.EvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs @@ -476,6 +476,12 @@ partial void ProcessEvalResultsQueryV2EntityProjectEvalResultsQueryPostResponseC /// When true (default), fetch child calls (predict/score) of each predict_and_score call to populate predict_call_id, scorer_call_ids, and more precise latency/token data. When false, these fields are derived from the predict_and_score call itself (predict_call_id and scorer_call_ids will be null/empty).
/// Default Value: true /// + /// + /// Sort specification for result rows. Supported field prefixes: scores.<name>, inputs.<path>, outputs.<path>. When null, rows are sorted by row_digest ASC. + /// + /// + /// Filters applied to grouped rows. Multiple filters are AND'd together. + /// /// /// Optional row-level page size applied after grouping and intersection. /// @@ -498,6 +504,8 @@ partial void ProcessEvalResultsQueryV2EntityProjectEvalResultsQueryPostResponseC bool? includeSummary = default, bool? summaryRequireIntersection = default, bool? includePredictAndScoreChildren = default, + global::System.Collections.Generic.IList? sortBy = default, + global::System.Collections.Generic.IList? filters = default, int? limit = default, int? offset = default, global::Weave.AutoSDKRequestOptions? requestOptions = default, @@ -514,6 +522,8 @@ partial void ProcessEvalResultsQueryV2EntityProjectEvalResultsQueryPostResponseC IncludeSummary = includeSummary, SummaryRequireIntersection = summaryRequireIntersection, IncludePredictAndScoreChildren = includePredictAndScoreChildren, + SortBy = sortBy, + Filters = filters, Limit = limit, Offset = offset, }; diff --git a/src/libs/Weave/Generated/Weave.IEvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs b/src/libs/Weave/Generated/Weave.IEvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs index 0836cef..3f59c51 100644 --- a/src/libs/Weave/Generated/Weave.IEvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs +++ b/src/libs/Weave/Generated/Weave.IEvalResultsClient.EvalResultsQueryV2EntityProjectEvalResultsQueryPost.g.cs @@ -60,6 +60,12 @@ public partial interface IEvalResultsClient /// When true (default), fetch child calls (predict/score) of each predict_and_score call to populate predict_call_id, scorer_call_ids, and more precise latency/token data. When false, these fields are derived from the predict_and_score call itself (predict_call_id and scorer_call_ids will be null/empty).
/// Default Value: true /// + /// + /// Sort specification for result rows. Supported field prefixes: scores.<name>, inputs.<path>, outputs.<path>. When null, rows are sorted by row_digest ASC. + /// + /// + /// Filters applied to grouped rows. Multiple filters are AND'd together. + /// /// /// Optional row-level page size applied after grouping and intersection. /// @@ -82,6 +88,8 @@ public partial interface IEvalResultsClient bool? includeSummary = default, bool? summaryRequireIntersection = default, bool? includePredictAndScoreChildren = default, + global::System.Collections.Generic.IList? sortBy = default, + global::System.Collections.Generic.IList? filters = default, int? limit = default, int? offset = default, global::Weave.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByDirection.g.cs b/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByDirection.g.cs new file mode 100644 index 0000000..c2ec8d7 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByDirection.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Weave.JsonConverters +{ + /// + public sealed class EvalResultsSortByDirectionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Weave.EvalResultsSortByDirection 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::Weave.EvalResultsSortByDirectionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Weave.EvalResultsSortByDirection)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Weave.EvalResultsSortByDirection); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Weave.EvalResultsSortByDirection value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Weave.EvalResultsSortByDirectionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByDirectionNullable.g.cs b/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByDirectionNullable.g.cs new file mode 100644 index 0000000..c238815 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByDirectionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Weave.JsonConverters +{ + /// + public sealed class EvalResultsSortByDirectionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Weave.EvalResultsSortByDirection? 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::Weave.EvalResultsSortByDirectionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Weave.EvalResultsSortByDirection)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Weave.EvalResultsSortByDirection?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Weave.EvalResultsSortByDirection? 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::Weave.EvalResultsSortByDirectionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByMode.g.cs b/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByMode.g.cs new file mode 100644 index 0000000..b10c924 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Weave.JsonConverters +{ + /// + public sealed class EvalResultsSortByModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Weave.EvalResultsSortByMode 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::Weave.EvalResultsSortByModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Weave.EvalResultsSortByMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Weave.EvalResultsSortByMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Weave.EvalResultsSortByMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Weave.EvalResultsSortByModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByModeNullable.g.cs b/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByModeNullable.g.cs new file mode 100644 index 0000000..508ddab --- /dev/null +++ b/src/libs/Weave/Generated/Weave.JsonConverters.EvalResultsSortByModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Weave.JsonConverters +{ + /// + public sealed class EvalResultsSortByModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Weave.EvalResultsSortByMode? 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::Weave.EvalResultsSortByModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Weave.EvalResultsSortByMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Weave.EvalResultsSortByMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Weave.EvalResultsSortByMode? 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::Weave.EvalResultsSortByModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Weave/Generated/Weave.JsonSerializerContext.g.cs b/src/libs/Weave/Generated/Weave.JsonSerializerContext.g.cs index ef7a305..b1d6032 100644 --- a/src/libs/Weave/Generated/Weave.JsonSerializerContext.g.cs +++ b/src/libs/Weave/Generated/Weave.JsonSerializerContext.g.cs @@ -37,6 +37,14 @@ namespace Weave typeof(global::Weave.JsonConverters.EvalResultsScorerStatsValueType2NullableJsonConverter), + typeof(global::Weave.JsonConverters.EvalResultsSortByDirectionJsonConverter), + + typeof(global::Weave.JsonConverters.EvalResultsSortByDirectionNullableJsonConverter), + + typeof(global::Weave.JsonConverters.EvalResultsSortByModeJsonConverter), + + typeof(global::Weave.JsonConverters.EvalResultsSortByModeNullableJsonConverter), + typeof(global::Weave.JsonConverters.FeedbackMetricSpecValueTypeJsonConverter), typeof(global::Weave.JsonConverters.FeedbackMetricSpecValueTypeNullableJsonConverter), @@ -246,7 +254,11 @@ namespace Weave [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsEvaluationSummary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsScorerStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsFilter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsQueryBody))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsSortBy))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsQueryRes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsRow))] @@ -256,6 +268,8 @@ namespace Weave [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsTrial))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsScorerStatsValueType2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsSortByDirection), TypeInfoPropertyName = "EvalResultsSortByDirection2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvalResultsSortByMode), TypeInfoPropertyName = "EvalResultsSortByMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Weave.EvaluateModelReq))] @@ -436,6 +450,8 @@ namespace Weave [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))] diff --git a/src/libs/Weave/Generated/Weave.JsonSerializerContextTypes.g.cs b/src/libs/Weave/Generated/Weave.JsonSerializerContextTypes.g.cs index 4c3b01d..784bf26 100644 --- a/src/libs/Weave/Generated/Weave.JsonSerializerContextTypes.g.cs +++ b/src/libs/Weave/Generated/Weave.JsonSerializerContextTypes.g.cs @@ -508,687 +508,711 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Weave.EvalResultsQueryBody? Type120 { get; set; } + public global::Weave.EvalResultsFilter? Type120 { get; set; } /// /// /// - public global::Weave.EvalResultsQueryRes? Type121 { get; set; } + public global::Weave.EvalResultsQueryBody? Type121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::Weave.EvalResultsRow? Type123 { get; set; } + public global::Weave.EvalResultsSortBy? Type123 { get; set; } /// /// /// - public global::Weave.EvalResultsSummaryRes? Type124 { get; set; } + public global::System.Collections.Generic.IList? Type124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type125 { get; set; } + public global::Weave.EvalResultsQueryRes? Type125 { get; set; } /// /// /// - public global::Weave.EvalResultsRowEvaluation? Type126 { get; set; } + public global::System.Collections.Generic.IList? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::Weave.EvalResultsRow? Type127 { get; set; } /// /// /// - public global::Weave.EvalResultsTrial? Type128 { get; set; } + public global::Weave.EvalResultsSummaryRes? Type128 { get; set; } /// /// /// - public global::Weave.EvalResultsScorerStatsValueType2? Type129 { get; set; } + public global::System.Collections.Generic.IList? Type129 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type130 { get; set; } + public global::Weave.EvalResultsRowEvaluation? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type131 { get; set; } + public global::System.Collections.Generic.IList? Type131 { get; set; } /// /// /// - public global::Weave.EvaluateModelReq? Type132 { get; set; } + public global::Weave.EvalResultsTrial? Type132 { get; set; } /// /// /// - public global::Weave.EvaluateModelRes? Type133 { get; set; } + public global::Weave.EvalResultsScorerStatsValueType2? Type133 { get; set; } /// /// /// - public global::Weave.EvaluationCreateBody? Type134 { get; set; } + public global::Weave.EvalResultsSortByDirection? Type134 { get; set; } /// /// /// - public global::Weave.EvaluationCreateRes? Type135 { get; set; } + public global::Weave.EvalResultsSortByMode? Type135 { get; set; } /// /// /// - public global::Weave.EvaluationDeleteRes? Type136 { get; set; } + public global::System.Collections.Generic.IList? Type136 { get; set; } /// /// /// - public global::Weave.EvaluationReadRes? Type137 { get; set; } + public global::System.Collections.Generic.Dictionary? Type137 { get; set; } /// /// /// - public global::Weave.EvaluationRunCreateBody? Type138 { get; set; } + public global::Weave.EvaluateModelReq? Type138 { get; set; } /// /// /// - public global::Weave.EvaluationRunCreateRes? Type139 { get; set; } + public global::Weave.EvaluateModelRes? Type139 { get; set; } /// /// /// - public global::Weave.EvaluationRunDeleteRes? Type140 { get; set; } + public global::Weave.EvaluationCreateBody? Type140 { get; set; } /// /// /// - public global::Weave.EvaluationRunFinishBody? Type141 { get; set; } + public global::Weave.EvaluationCreateRes? Type141 { get; set; } /// /// /// - public global::Weave.EvaluationRunFinishRes? Type142 { get; set; } + public global::Weave.EvaluationDeleteRes? Type142 { get; set; } /// /// /// - public global::Weave.EvaluationRunReadRes? Type143 { get; set; } + public global::Weave.EvaluationReadRes? Type143 { get; set; } /// /// /// - public global::Weave.EvaluationStatusComplete? Type144 { get; set; } + public global::Weave.EvaluationRunCreateBody? Type144 { get; set; } /// /// /// - public global::Weave.EvaluationStatusFailed? Type145 { get; set; } + public global::Weave.EvaluationRunCreateRes? Type145 { get; set; } /// /// /// - public global::Weave.EvaluationStatusNotFound? Type146 { get; set; } + public global::Weave.EvaluationRunDeleteRes? Type146 { get; set; } /// /// /// - public global::Weave.EvaluationStatusReq? Type147 { get; set; } + public global::Weave.EvaluationRunFinishBody? Type147 { get; set; } /// /// /// - public global::Weave.EvaluationStatusRes? Type148 { get; set; } + public global::Weave.EvaluationRunFinishRes? Type148 { get; set; } /// /// /// - public global::Weave.AnyOf? Type149 { get; set; } + public global::Weave.EvaluationRunReadRes? Type149 { get; set; } /// /// /// - public global::Weave.EvaluationStatusRunning? Type150 { get; set; } + public global::Weave.EvaluationStatusComplete? Type150 { get; set; } /// /// /// - public global::Weave.FeedbackCreateBatchReq? Type151 { get; set; } + public global::Weave.EvaluationStatusFailed? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::Weave.EvaluationStatusNotFound? Type152 { get; set; } /// /// /// - public global::Weave.FeedbackCreateReq? Type153 { get; set; } + public global::Weave.EvaluationStatusReq? Type153 { get; set; } /// /// /// - public global::Weave.FeedbackCreateBatchRes? Type154 { get; set; } + public global::Weave.EvaluationStatusRes? Type154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type155 { get; set; } + public global::Weave.AnyOf? Type155 { get; set; } /// /// /// - public global::Weave.FeedbackCreateRes? Type156 { get; set; } + public global::Weave.EvaluationStatusRunning? Type156 { get; set; } /// /// /// - public global::Weave.FeedbackMetricSpec? Type157 { get; set; } + public global::Weave.FeedbackCreateBatchReq? Type157 { get; set; } /// /// /// - public global::Weave.FeedbackMetricSpecValueType? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// - public global::Weave.FeedbackPayloadPath? Type159 { get; set; } + public global::Weave.FeedbackCreateReq? Type159 { get; set; } /// /// /// - public global::Weave.FeedbackPayloadPathValueType? Type160 { get; set; } + public global::Weave.FeedbackCreateBatchRes? Type160 { get; set; } /// /// /// - public global::Weave.FeedbackPayloadSchemaReq? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::Weave.FeedbackPayloadSchemaRes? Type162 { get; set; } + public global::Weave.FeedbackCreateRes? Type162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type163 { get; set; } + public global::Weave.FeedbackMetricSpec? Type163 { get; set; } /// /// /// - public global::Weave.FeedbackPurgeReq? Type164 { get; set; } + public global::Weave.FeedbackMetricSpecValueType? Type164 { get; set; } /// /// /// - public global::Weave.FeedbackPurgeRes? Type165 { get; set; } + public global::Weave.FeedbackPayloadPath? Type165 { get; set; } /// /// /// - public global::Weave.FeedbackQueryReq? Type166 { get; set; } + public global::Weave.FeedbackPayloadPathValueType? Type166 { get; set; } /// /// /// - public global::Weave.FeedbackQueryRes? Type167 { get; set; } + public global::Weave.FeedbackPayloadSchemaReq? Type167 { get; set; } /// /// /// - public global::Weave.FeedbackReplaceReq? Type168 { get; set; } + public global::Weave.FeedbackPayloadSchemaRes? Type168 { get; set; } /// /// /// - public global::Weave.FeedbackReplaceRes? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// /// /// - public global::Weave.FeedbackStatsReq? Type170 { get; set; } + public global::Weave.FeedbackPurgeReq? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type171 { get; set; } + public global::Weave.FeedbackPurgeRes? Type171 { get; set; } /// /// /// - public global::Weave.FeedbackStatsRes? Type172 { get; set; } + public global::Weave.FeedbackQueryReq? Type172 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type173 { get; set; } + public global::Weave.FeedbackQueryRes? Type173 { get; set; } /// /// /// - public global::Weave.FileContentReadReq? Type174 { get; set; } + public global::Weave.FeedbackReplaceReq? Type174 { get; set; } /// /// /// - public global::Weave.FileCreateRes? Type175 { get; set; } + public global::Weave.FeedbackReplaceRes? Type175 { get; set; } /// /// /// - public global::Weave.FilesStatsReq? Type176 { get; set; } + public global::Weave.FeedbackStatsReq? Type176 { get; set; } /// /// /// - public global::Weave.FilesStatsRes? Type177 { get; set; } + public global::System.Collections.Generic.IList? Type177 { get; set; } /// /// /// - public global::Weave.Geolocation? Type178 { get; set; } + public global::Weave.FeedbackStatsRes? Type178 { get; set; } /// /// /// - public global::Weave.GeolocationRes? Type179 { get; set; } + public global::System.Collections.Generic.Dictionary? Type179 { get; set; } /// /// /// - public global::Weave.HTTPValidationError? Type180 { get; set; } + public global::Weave.FileContentReadReq? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::Weave.FileCreateRes? Type181 { get; set; } /// /// /// - public global::Weave.ValidationError? Type182 { get; set; } + public global::Weave.FilesStatsReq? Type182 { get; set; } /// /// /// - public global::Weave.ImageGenerationCreateReq? Type183 { get; set; } + public global::Weave.FilesStatsRes? Type183 { get; set; } /// /// /// - public global::Weave.ImageGenerationRequestInputs? Type184 { get; set; } + public global::Weave.Geolocation? Type184 { get; set; } /// /// /// - public global::Weave.ImageGenerationCreateRes? Type185 { get; set; } + public global::Weave.GeolocationRes? Type185 { get; set; } /// /// /// - public global::Weave.LLMUsageSchema? Type186 { get; set; } + public global::Weave.HTTPValidationError? Type186 { get; set; } /// /// /// - public global::Weave.AnyOf, global::System.Collections.Generic.IList, object>? Type187 { get; set; } + public global::System.Collections.Generic.IList? Type187 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type188 { get; set; } + public global::Weave.ValidationError? Type188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type189 { get; set; } + public global::Weave.ImageGenerationCreateReq? Type189 { get; set; } /// /// /// - public global::Weave.ModelCreateBody? Type190 { get; set; } + public global::Weave.ImageGenerationRequestInputs? Type190 { get; set; } /// /// /// - public global::Weave.ModelCreateRes? Type191 { get; set; } + public global::Weave.ImageGenerationCreateRes? Type191 { get; set; } /// /// /// - public global::Weave.ModelDeleteRes? Type192 { get; set; } + public global::Weave.LLMUsageSchema? Type192 { get; set; } /// /// /// - public global::Weave.ModelReadRes? Type193 { get; set; } + public global::Weave.AnyOf, global::System.Collections.Generic.IList, object>? Type193 { get; set; } /// /// /// - public global::Weave.NvidiaHardwareOption? Type194 { get; set; } + public global::System.Collections.Generic.Dictionary? Type194 { get; set; } /// /// /// - public global::Weave.NvidiaServerlessPricing? Type195 { get; set; } + public global::System.Collections.Generic.IList? Type195 { get; set; } /// /// /// - public global::Weave.NvidiaHardwareRes? Type196 { get; set; } + public global::Weave.ModelCreateBody? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::Weave.ModelCreateRes? Type197 { get; set; } /// /// /// - public global::Weave.ObjAddTagsRes? Type198 { get; set; } + public global::Weave.ModelDeleteRes? Type198 { get; set; } /// /// /// - public global::Weave.ObjCreateReq? Type199 { get; set; } + public global::Weave.ModelReadRes? Type199 { get; set; } /// /// /// - public global::Weave.ObjSchemaForInsert? Type200 { get; set; } + public global::Weave.NvidiaHardwareOption? Type200 { get; set; } /// /// /// - public global::Weave.ObjCreateRes? Type201 { get; set; } + public global::Weave.NvidiaServerlessPricing? Type201 { get; set; } /// /// /// - public global::Weave.ObjDeleteReq? Type202 { get; set; } + public global::Weave.NvidiaHardwareRes? Type202 { get; set; } /// /// /// - public global::Weave.ObjDeleteRes? Type203 { get; set; } + public global::System.Collections.Generic.IList? Type203 { get; set; } /// /// /// - public global::Weave.ObjQueryReq? Type204 { get; set; } + public global::Weave.ObjAddTagsRes? Type204 { get; set; } /// /// /// - public global::Weave.ObjectVersionFilter? Type205 { get; set; } + public global::Weave.ObjCreateReq? Type205 { get; set; } /// /// /// - public global::Weave.ObjQueryRes? Type206 { get; set; } + public global::Weave.ObjSchemaForInsert? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type207 { get; set; } + public global::Weave.ObjCreateRes? Type207 { get; set; } /// /// /// - public global::Weave.ObjSchema? Type208 { get; set; } + public global::Weave.ObjDeleteReq? Type208 { get; set; } /// /// /// - public global::Weave.ObjReadReq? Type209 { get; set; } + public global::Weave.ObjDeleteRes? Type209 { get; set; } /// /// /// - public global::Weave.ObjReadRes? Type210 { get; set; } + public global::Weave.ObjQueryReq? Type210 { get; set; } /// /// /// - public global::Weave.ObjRemoveAliasesBody? Type211 { get; set; } + public global::Weave.ObjectVersionFilter? Type211 { get; set; } /// /// /// - public global::Weave.ObjRemoveAliasesRes? Type212 { get; set; } + public global::Weave.ObjQueryRes? Type212 { get; set; } /// /// /// - public global::Weave.ObjRemoveTagsRes? Type213 { get; set; } + public global::System.Collections.Generic.IList? Type213 { get; set; } /// /// /// - public global::Weave.ObjSetAliasesBody? Type214 { get; set; } + public global::Weave.ObjSchema? Type214 { get; set; } /// /// /// - public global::Weave.ObjSetAliasesRes? Type215 { get; set; } + public global::Weave.ObjReadReq? Type215 { get; set; } /// /// /// - public global::Weave.ObjTagsBody? Type216 { get; set; } + public global::Weave.ObjReadRes? Type216 { get; set; } /// /// /// - public global::Weave.OpCreateBody? Type217 { get; set; } + public global::Weave.ObjRemoveAliasesBody? Type217 { get; set; } /// /// /// - public global::Weave.OpCreateRes? Type218 { get; set; } + public global::Weave.ObjRemoveAliasesRes? Type218 { get; set; } /// /// /// - public global::Weave.OpDeleteRes? Type219 { get; set; } + public global::Weave.ObjRemoveTagsRes? Type219 { get; set; } /// /// /// - public global::Weave.OpReadRes? Type220 { get; set; } + public global::Weave.ObjSetAliasesBody? Type220 { get; set; } /// /// /// - public global::Weave.PredictionCreateBody? Type221 { get; set; } + public global::Weave.ObjSetAliasesRes? Type221 { get; set; } /// /// /// - public global::Weave.PredictionCreateRes? Type222 { get; set; } + public global::Weave.ObjTagsBody? Type222 { get; set; } /// /// /// - public global::Weave.PredictionDeleteRes? Type223 { get; set; } + public global::Weave.OpCreateBody? Type223 { get; set; } /// /// /// - public global::Weave.PredictionFinishRes? Type224 { get; set; } + public global::Weave.OpCreateRes? Type224 { get; set; } /// /// /// - public global::Weave.PredictionReadRes? Type225 { get; set; } + public global::Weave.OpDeleteRes? Type225 { get; set; } /// /// /// - public global::Weave.Pricing? Type226 { get; set; } + public global::Weave.OpReadRes? Type226 { get; set; } /// /// /// - public global::Weave.ProjectsInfoReq? Type227 { get; set; } + public global::Weave.PredictionCreateBody? Type227 { get; set; } /// /// /// - public global::Weave.ProjectsInfoRes? Type228 { get; set; } + public global::Weave.PredictionCreateRes? Type228 { get; set; } /// /// /// - public global::Weave.RefsReadBatchReq? Type229 { get; set; } + public global::Weave.PredictionDeleteRes? Type229 { get; set; } /// /// /// - public global::Weave.RefsReadBatchRes? Type230 { get; set; } + public global::Weave.PredictionFinishRes? Type230 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModel? Type231 { get; set; } + public global::Weave.PredictionReadRes? Type231 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModelQuantization? Type232 { get; set; } + public global::Weave.Pricing? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::Weave.ProjectsInfoReq? Type233 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModelSupportedSamplingParameter? Type234 { get; set; } + public global::Weave.ProjectsInfoRes? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::Weave.RefsReadBatchReq? Type235 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModelSupportedFeature? Type236 { get; set; } + public global::Weave.RefsReadBatchRes? Type236 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type237 { get; set; } + public global::Weave.RouterOpenRouterModel? Type237 { get; set; } /// /// /// - public global::Weave.RouterOpenRouterModelsRes? Type238 { get; set; } + public global::Weave.RouterOpenRouterModelQuantization? Type238 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type239 { get; set; } + public global::System.Collections.Generic.IList? Type239 { get; set; } /// /// /// - public global::Weave.ScoreCreateBody? Type240 { get; set; } + public global::Weave.RouterOpenRouterModelSupportedSamplingParameter? Type240 { get; set; } /// /// /// - public global::Weave.ScoreCreateRes? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::Weave.ScoreDeleteRes? Type242 { get; set; } + public global::Weave.RouterOpenRouterModelSupportedFeature? Type242 { get; set; } /// /// /// - public global::Weave.ScoreReadRes? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::Weave.ScorerCreateBody? Type244 { get; set; } + public global::Weave.RouterOpenRouterModelsRes? Type244 { get; set; } /// /// /// - public global::Weave.ScorerCreateRes? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::Weave.ScorerDeleteRes? Type246 { get; set; } + public global::Weave.ScoreCreateBody? Type246 { get; set; } /// /// /// - public global::Weave.ScorerReadRes? Type247 { get; set; } + public global::Weave.ScoreCreateRes? Type247 { get; set; } /// /// /// - public global::Weave.ServerInfoRes? Type248 { get; set; } + public global::Weave.ScoreDeleteRes? Type248 { get; set; } /// /// /// - public global::Weave.SortByDirection? Type249 { get; set; } + public global::Weave.ScoreReadRes? Type249 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type250 { get; set; } + public global::Weave.ScorerCreateBody? Type250 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type251 { get; set; } + public global::Weave.ScorerCreateRes? Type251 { get; set; } /// /// /// - public global::Weave.TableAppendSpec? Type252 { get; set; } + public global::Weave.ScorerDeleteRes? Type252 { get; set; } /// /// /// - public global::Weave.TableAppendSpecPayload? Type253 { get; set; } + public global::Weave.ScorerReadRes? Type253 { get; set; } /// /// /// - public global::Weave.TableCreateFromDigestsReq? Type254 { get; set; } + public global::Weave.ServerInfoRes? Type254 { get; set; } /// /// /// - public global::Weave.TableCreateFromDigestsRes? Type255 { get; set; } + public global::Weave.SortByDirection? Type255 { get; set; } /// /// /// - public global::Weave.TableCreateReq? Type256 { get; set; } + public global::System.Collections.Generic.Dictionary? Type256 { get; set; } /// /// /// - public global::Weave.TableSchemaForInsert? Type257 { get; set; } + public global::System.Collections.Generic.Dictionary? Type257 { get; set; } /// /// /// - public global::Weave.TableCreateRes? Type258 { get; set; } + public global::Weave.TableAppendSpec? Type258 { get; set; } /// /// /// - public global::Weave.TableInsertSpec? Type259 { get; set; } + public global::Weave.TableAppendSpecPayload? Type259 { get; set; } /// /// /// - public global::Weave.TableInsertSpecPayload? Type260 { get; set; } + public global::Weave.TableCreateFromDigestsReq? Type260 { get; set; } /// /// /// - public global::Weave.TablePopSpec? Type261 { get; set; } + public global::Weave.TableCreateFromDigestsRes? Type261 { get; set; } /// /// /// - public global::Weave.TablePopSpecPayload? Type262 { get; set; } + public global::Weave.TableCreateReq? Type262 { get; set; } /// /// /// - public global::Weave.TableQueryReq? Type263 { get; set; } + public global::Weave.TableSchemaForInsert? Type263 { get; set; } /// /// /// - public global::Weave.TableRowFilter? Type264 { get; set; } + public global::Weave.TableCreateRes? Type264 { get; set; } /// /// /// - public global::Weave.TableQueryRes? Type265 { get; set; } + public global::Weave.TableInsertSpec? Type265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type266 { get; set; } + public global::Weave.TableInsertSpecPayload? Type266 { get; set; } /// /// /// - public global::Weave.TableRowSchema? Type267 { get; set; } + public global::Weave.TablePopSpec? Type267 { get; set; } /// /// /// - public global::Weave.TableQueryStatsBatchReq? Type268 { get; set; } + public global::Weave.TablePopSpecPayload? Type268 { get; set; } /// /// /// - public global::Weave.TableQueryStatsBatchRes? Type269 { get; set; } + public global::Weave.TableQueryReq? Type269 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type270 { get; set; } + public global::Weave.TableRowFilter? Type270 { get; set; } /// /// /// - public global::Weave.TableStatsRow? Type271 { get; set; } + public global::Weave.TableQueryRes? Type271 { get; set; } /// /// /// - public global::Weave.TableQueryStatsReq? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::Weave.TableQueryStatsRes? Type273 { get; set; } + public global::Weave.TableRowSchema? Type273 { get; set; } /// /// /// - public global::Weave.TableUpdateReq? Type274 { get; set; } + public global::Weave.TableQueryStatsBatchReq? Type274 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type275 { get; set; } + public global::Weave.TableQueryStatsBatchRes? Type275 { get; set; } /// /// /// - public global::Weave.AnyOf? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::Weave.TableUpdateRes? Type277 { get; set; } + public global::Weave.TableStatsRow? Type277 { get; set; } /// /// /// - public global::Weave.TagsListRes? Type278 { get; set; } + public global::Weave.TableQueryStatsReq? Type278 { get; set; } /// /// /// - public global::Weave.ThreadsQueryFilter? Type279 { get; set; } + public global::Weave.TableQueryStatsRes? Type279 { get; set; } /// /// /// - public global::Weave.ThreadsQueryReq? Type280 { get; set; } + public global::Weave.TableUpdateReq? Type280 { get; set; } /// /// /// - public global::Weave.TraceStatus? Type281 { get; set; } + public global::System.Collections.Generic.IList>? Type281 { get; set; } /// /// /// - public global::Weave.TraceUsageReq? Type282 { get; set; } + public global::Weave.AnyOf? Type282 { get; set; } /// /// /// - public global::Weave.TraceUsageRes? Type283 { get; set; } + public global::Weave.TableUpdateRes? Type283 { get; set; } /// /// /// - public global::Weave.UsageMetricSpecMetric? Type284 { get; set; } + public global::Weave.TagsListRes? Type284 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type285 { get; set; } + public global::Weave.ThreadsQueryFilter? Type285 { get; set; } /// /// /// - public global::Weave.AnyOf? Type286 { get; set; } + public global::Weave.ThreadsQueryReq? Type286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type287 { get; set; } + public global::Weave.TraceStatus? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type288 { get; set; } + public global::Weave.TraceUsageReq? Type288 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type289 { get; set; } + public global::Weave.TraceUsageRes? Type289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type290 { get; set; } + public global::Weave.UsageMetricSpecMetric? Type290 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type291 { get; set; } + /// + /// + /// + public global::Weave.AnyOf? Type292 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type293 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type294 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type295 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type296 { get; set; } /// /// @@ -1253,102 +1277,110 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType16 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::Weave.AnyOf, global::System.Collections.Generic.List, object>? ListType24 { get; set; } + public global::Weave.AnyOf, global::System.Collections.Generic.List, object>? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType34 { get; set; } + public global::System.Collections.Generic.List>? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType35 { get; set; } + public global::System.Collections.Generic.List>? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsFilter.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsFilter.Json.g.cs new file mode 100644 index 0000000..56845b4 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsFilter.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class EvalResultsFilter + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Weave.EvalResultsFilter? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.EvalResultsFilter), + jsonSerializerContext) as global::Weave.EvalResultsFilter; + } + + /// + /// 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::Weave.EvalResultsFilter? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Weave.EvalResultsFilter), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.EvalResultsFilter; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsFilter.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsFilter.g.cs new file mode 100644 index 0000000..00dafe1 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsFilter.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Weave +{ + /// + /// A filter scoped to an optional evaluation. + /// + public sealed partial class EvalResultsFilter + { + /// + /// When set, filter fields are scoped to this evaluation's data. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("evaluation_call_id")] + public string? EvaluationCallId { get; set; } + + /// + /// Filter expression. Supported field prefixes: scores.<name>, inputs.<path>, outputs.<path>. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("query")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Weave.Query Query { 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. + /// + /// + /// Filter expression. Supported field prefixes: scores.<name>, inputs.<path>, outputs.<path>. + /// + /// + /// When set, filter fields are scoped to this evaluation's data. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public EvalResultsFilter( + global::Weave.Query query, + string? evaluationCallId) + { + this.EvaluationCallId = evaluationCallId; + this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query)); + } + + /// + /// Initializes a new instance of the class. + /// + public EvalResultsFilter() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsFilterEvaluationCallId.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsFilterEvaluationCallId.Json.g.cs new file mode 100644 index 0000000..322197a --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsFilterEvaluationCallId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class EvalResultsFilterEvaluationCallId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Weave.EvalResultsFilterEvaluationCallId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.EvalResultsFilterEvaluationCallId), + jsonSerializerContext) as global::Weave.EvalResultsFilterEvaluationCallId; + } + + /// + /// 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::Weave.EvalResultsFilterEvaluationCallId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Weave.EvalResultsFilterEvaluationCallId), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.EvalResultsFilterEvaluationCallId; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsFilterEvaluationCallId.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsFilterEvaluationCallId.g.cs new file mode 100644 index 0000000..b7ef423 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsFilterEvaluationCallId.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Weave +{ + /// + /// When set, filter fields are scoped to this evaluation's data. + /// + public sealed partial class EvalResultsFilterEvaluationCallId + { + + /// + /// 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/Weave/Generated/Weave.Models.EvalResultsQueryBody.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBody.g.cs index 1b441e9..6611f65 100644 --- a/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBody.g.cs +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBody.g.cs @@ -68,6 +68,18 @@ public sealed partial class EvalResultsQueryBody [global::System.Text.Json.Serialization.JsonPropertyName("include_predict_and_score_children")] public bool? IncludePredictAndScoreChildren { get; set; } + /// + /// Sort specification for result rows. Supported field prefixes: scores.<name>, inputs.<path>, outputs.<path>. When null, rows are sorted by row_digest ASC. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort_by")] + public global::System.Collections.Generic.IList? SortBy { get; set; } + + /// + /// Filters applied to grouped rows. Multiple filters are AND'd together. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters")] + public global::System.Collections.Generic.IList? Filters { get; set; } + /// /// Optional row-level page size applied after grouping and intersection. /// @@ -123,6 +135,12 @@ public sealed partial class EvalResultsQueryBody /// When true (default), fetch child calls (predict/score) of each predict_and_score call to populate predict_call_id, scorer_call_ids, and more precise latency/token data. When false, these fields are derived from the predict_and_score call itself (predict_call_id and scorer_call_ids will be null/empty).
/// Default Value: true /// + /// + /// Sort specification for result rows. Supported field prefixes: scores.<name>, inputs.<path>, outputs.<path>. When null, rows are sorted by row_digest ASC. + /// + /// + /// Filters applied to grouped rows. Multiple filters are AND'd together. + /// /// /// Optional row-level page size applied after grouping and intersection. /// @@ -143,6 +161,8 @@ public EvalResultsQueryBody( bool? includeSummary, bool? summaryRequireIntersection, bool? includePredictAndScoreChildren, + global::System.Collections.Generic.IList? sortBy, + global::System.Collections.Generic.IList? filters, int? limit, int? offset) { @@ -155,6 +175,8 @@ public EvalResultsQueryBody( this.IncludeSummary = includeSummary; this.SummaryRequireIntersection = summaryRequireIntersection; this.IncludePredictAndScoreChildren = includePredictAndScoreChildren; + this.SortBy = sortBy; + this.Filters = filters; this.Limit = limit; this.Offset = offset; } diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodyFilters.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodyFilters.Json.g.cs new file mode 100644 index 0000000..075f849 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodyFilters.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class EvalResultsQueryBodyFilters + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Weave.EvalResultsQueryBodyFilters? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.EvalResultsQueryBodyFilters), + jsonSerializerContext) as global::Weave.EvalResultsQueryBodyFilters; + } + + /// + /// 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::Weave.EvalResultsQueryBodyFilters? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Weave.EvalResultsQueryBodyFilters), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.EvalResultsQueryBodyFilters; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodyFilters.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodyFilters.g.cs new file mode 100644 index 0000000..7595b1f --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodyFilters.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Weave +{ + /// + /// Filters applied to grouped rows. Multiple filters are AND'd together. + /// + public sealed partial class EvalResultsQueryBodyFilters + { + + /// + /// 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/Weave/Generated/Weave.Models.EvalResultsQueryBodySortBy.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodySortBy.Json.g.cs new file mode 100644 index 0000000..20b3090 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodySortBy.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class EvalResultsQueryBodySortBy + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Weave.EvalResultsQueryBodySortBy? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.EvalResultsQueryBodySortBy), + jsonSerializerContext) as global::Weave.EvalResultsQueryBodySortBy; + } + + /// + /// 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::Weave.EvalResultsQueryBodySortBy? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Weave.EvalResultsQueryBodySortBy), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.EvalResultsQueryBodySortBy; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodySortBy.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodySortBy.g.cs new file mode 100644 index 0000000..2d36ed4 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsQueryBodySortBy.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Weave +{ + /// + /// Sort specification for result rows. Supported field prefixes: scores.<name>, inputs.<path>, outputs.<path>. When null, rows are sorted by row_digest ASC. + /// + public sealed partial class EvalResultsQueryBodySortBy + { + + /// + /// 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/Weave/Generated/Weave.Models.EvalResultsSortBy.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortBy.Json.g.cs new file mode 100644 index 0000000..fbb3727 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortBy.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class EvalResultsSortBy + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Weave.EvalResultsSortBy? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.EvalResultsSortBy), + jsonSerializerContext) as global::Weave.EvalResultsSortBy; + } + + /// + /// 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::Weave.EvalResultsSortBy? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Weave.EvalResultsSortBy), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.EvalResultsSortBy; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsSortBy.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortBy.g.cs new file mode 100644 index 0000000..60a49bd --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortBy.g.cs @@ -0,0 +1,80 @@ + +#nullable enable + +namespace Weave +{ + /// + /// Sort specification for evaluation results, extending SortBy + /// + public sealed partial class EvalResultsSortBy + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("field")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Field { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("direction")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Weave.JsonConverters.EvalResultsSortByDirectionJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Weave.EvalResultsSortByDirection Direction { get; set; } + + /// + /// Scope the sort to a specific evaluation's scores. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("evaluation_call_id")] + public string? EvaluationCallId { get; set; } + + /// + /// When 'value', sort by the field value for the specified evaluation. When 'difference', sort by max-min spread of the field across all evaluations (evaluation_call_id is ignored).
+ /// Default Value: value + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Weave.JsonConverters.EvalResultsSortByModeJsonConverter))] + public global::Weave.EvalResultsSortByMode? Mode { 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. + /// + /// + /// + /// + /// Scope the sort to a specific evaluation's scores. + /// + /// + /// When 'value', sort by the field value for the specified evaluation. When 'difference', sort by max-min spread of the field across all evaluations (evaluation_call_id is ignored).
+ /// Default Value: value + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public EvalResultsSortBy( + string field, + global::Weave.EvalResultsSortByDirection direction, + string? evaluationCallId, + global::Weave.EvalResultsSortByMode? mode) + { + this.Field = field ?? throw new global::System.ArgumentNullException(nameof(field)); + this.Direction = direction; + this.EvaluationCallId = evaluationCallId; + this.Mode = mode; + } + + /// + /// Initializes a new instance of the class. + /// + public EvalResultsSortBy() + { + } + } +} \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByDirection.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByDirection.g.cs new file mode 100644 index 0000000..2d63e4f --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByDirection.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Weave +{ + /// + /// + /// + public enum EvalResultsSortByDirection + { + /// + /// + /// + Asc, + /// + /// + /// + Desc, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class EvalResultsSortByDirectionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this EvalResultsSortByDirection value) + { + return value switch + { + EvalResultsSortByDirection.Asc => "asc", + EvalResultsSortByDirection.Desc => "desc", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static EvalResultsSortByDirection? ToEnum(string value) + { + return value switch + { + "asc" => EvalResultsSortByDirection.Asc, + "desc" => EvalResultsSortByDirection.Desc, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByEvaluationCallId.Json.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByEvaluationCallId.Json.g.cs new file mode 100644 index 0000000..ecf21e9 --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByEvaluationCallId.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Weave +{ + public sealed partial class EvalResultsSortByEvaluationCallId + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Weave.EvalResultsSortByEvaluationCallId? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Weave.EvalResultsSortByEvaluationCallId), + jsonSerializerContext) as global::Weave.EvalResultsSortByEvaluationCallId; + } + + /// + /// 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::Weave.EvalResultsSortByEvaluationCallId? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Weave.EvalResultsSortByEvaluationCallId), + jsonSerializerContext).ConfigureAwait(false)) as global::Weave.EvalResultsSortByEvaluationCallId; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByEvaluationCallId.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByEvaluationCallId.g.cs new file mode 100644 index 0000000..4b7d1be --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByEvaluationCallId.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace Weave +{ + /// + /// Scope the sort to a specific evaluation's scores. + /// + public sealed partial class EvalResultsSortByEvaluationCallId + { + + /// + /// 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/Weave/Generated/Weave.Models.EvalResultsSortByMode.g.cs b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByMode.g.cs new file mode 100644 index 0000000..ef5ec3d --- /dev/null +++ b/src/libs/Weave/Generated/Weave.Models.EvalResultsSortByMode.g.cs @@ -0,0 +1,52 @@ + +#nullable enable + +namespace Weave +{ + /// + /// When 'value', sort by the field value for the specified evaluation. When 'difference', sort by max-min spread of the field across all evaluations (evaluation_call_id is ignored).
+ /// Default Value: value + ///
+ public enum EvalResultsSortByMode + { + /// + /// + /// + Difference, + /// + /// + /// + Value, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class EvalResultsSortByModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this EvalResultsSortByMode value) + { + return value switch + { + EvalResultsSortByMode.Difference => "difference", + EvalResultsSortByMode.Value => "value", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static EvalResultsSortByMode? ToEnum(string value) + { + return value switch + { + "difference" => EvalResultsSortByMode.Difference, + "value" => EvalResultsSortByMode.Value, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Weave/openapi.json b/src/libs/Weave/openapi.json index f656c15..44c5fe1 100644 --- a/src/libs/Weave/openapi.json +++ b/src/libs/Weave/openapi.json @@ -8551,6 +8551,33 @@ ], "title": "EvalResultsEvaluationSummary" }, + "EvalResultsFilter": { + "properties": { + "evaluation_call_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Evaluation Call Id", + "description": "When set, filter fields are scoped to this evaluation's data." + }, + "query": { + "$ref": "#/components/schemas/Query", + "description": "Filter expression. Supported field prefixes: scores., inputs., outputs.." + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "query" + ], + "title": "EvalResultsFilter", + "description": "A filter scoped to an optional evaluation." + }, "EvalResultsQueryBody": { "properties": { "evaluation_call_ids": { @@ -8631,6 +8658,36 @@ "description": "When true (default), fetch child calls (predict/score) of each predict_and_score call to populate predict_call_id, scorer_call_ids, and more precise latency/token data. When false, these fields are derived from the predict_and_score call itself (predict_call_id and scorer_call_ids will be null/empty).", "default": true }, + "sort_by": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/EvalResultsSortBy" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Sort By", + "description": "Sort specification for result rows. Supported field prefixes: scores., inputs., outputs.. When null, rows are sorted by row_digest ASC." + }, + "filters": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/EvalResultsFilter" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Filters", + "description": "Filters applied to grouped rows. Multiple filters are AND'd together." + }, "limit": { "anyOf": [ { @@ -8838,6 +8895,52 @@ "title": "EvalResultsScorerStats", "description": "Stats for a single flattened score dimension (scorer_key or scorer_key.path.to.leaf)." }, + "EvalResultsSortBy": { + "properties": { + "field": { + "type": "string", + "title": "Field" + }, + "direction": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "title": "Direction" + }, + "evaluation_call_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Evaluation Call Id", + "description": "Scope the sort to a specific evaluation's scores." + }, + "mode": { + "type": "string", + "enum": [ + "value", + "difference" + ], + "title": "Mode", + "description": "When 'value', sort by the field value for the specified evaluation. When 'difference', sort by max-min spread of the field across all evaluations (evaluation_call_id is ignored).", + "default": "value" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "field", + "direction" + ], + "title": "EvalResultsSortBy", + "description": "Sort specification for evaluation results, extending SortBy" + }, "EvalResultsSummaryRes": { "properties": { "row_count": {