diff --git a/src/libs/PromptLayer/Generated/PromptLayer.DatasetsClient.CreateDatasetVersionFromFilterParams.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.DatasetsClient.CreateDatasetVersionFromFilterParams.g.cs index 521a6a5..bf11afd 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.DatasetsClient.CreateDatasetVersionFromFilterParams.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.DatasetsClient.CreateDatasetVersionFromFilterParams.g.cs @@ -607,6 +607,9 @@ partial void ProcessCreateDatasetVersionFromFilterParamsResponseContent( /// /// Request fields or variables to parse into dataset columns. /// + /// + /// Maximum number of request logs to include. When set, only the first N matching rows (in the current sort order) are added to the dataset version. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -618,6 +621,7 @@ partial void ProcessCreateDatasetVersionFromFilterParamsResponseContent( global::PromptLayer.CreateDatasetVersionFromFilterParamsRequestSortBy? sortBy = default, global::PromptLayer.CreateDatasetVersionFromFilterParamsRequestSortOrder? sortOrder = default, global::System.Collections.Generic.IList? variablesToParse = default, + int? limit = default, global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -630,6 +634,7 @@ partial void ProcessCreateDatasetVersionFromFilterParamsResponseContent( SortBy = sortBy, SortOrder = sortOrder, VariablesToParse = variablesToParse, + Limit = limit, }; return await CreateDatasetVersionFromFilterParamsAsync( diff --git a/src/libs/PromptLayer/Generated/PromptLayer.IDatasetsClient.CreateDatasetVersionFromFilterParams.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.IDatasetsClient.CreateDatasetVersionFromFilterParams.g.cs index ef0bbcf..3e53571 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.IDatasetsClient.CreateDatasetVersionFromFilterParams.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.IDatasetsClient.CreateDatasetVersionFromFilterParams.g.cs @@ -48,6 +48,9 @@ public partial interface IDatasetsClient /// /// Request fields or variables to parse into dataset columns. /// + /// + /// Maximum number of request logs to include. When set, only the first N matching rows (in the current sort order) are added to the dataset version. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -59,6 +62,7 @@ public partial interface IDatasetsClient global::PromptLayer.CreateDatasetVersionFromFilterParamsRequestSortBy? sortBy = default, global::PromptLayer.CreateDatasetVersionFromFilterParamsRequestSortOrder? sortOrder = default, global::System.Collections.Generic.IList? variablesToParse = default, + int? limit = default, global::PromptLayer.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs index a454064..4fdb5ba 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContext.g.cs @@ -1113,6 +1113,8 @@ namespace PromptLayer [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetReportResponseStatus), TypeInfoPropertyName = "GetReportResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetReportResponseStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetReportResponseStatsStatusCounts))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetReportResponseReportColumn))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetReportScoreResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetReportScoreResponseScore))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetReportScoreResponseScoreScoreType), TypeInfoPropertyName = "GetReportScoreResponseScoreScoreType2")] @@ -1149,8 +1151,6 @@ namespace PromptLayer [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AnyOf), TypeInfoPropertyName = "AnyOfFolderExistsErrorString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListToolRegistriesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.ListToolRegistriesResponseToolRegistrie))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryResponse))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1805,6 +1805,8 @@ internal sealed partial class SourceGenerationContextChunk0 : 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::PromptLayer.ListToolRegistriesResponseToolRegistrie))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.CreateToolRegistryResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetToolRegistryResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.GetToolRegistryResponseToolRegistry))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -1872,6 +1874,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.AnyOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::PromptLayer.OneOf>))] + [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/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs index be3428a..c721528 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.JsonSerializerContextTypes.g.cs @@ -1852,163 +1852,171 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::PromptLayer.GetReportScoreResponse? Type456 { get; set; } + public global::System.Collections.Generic.IList? Type456 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScore? Type457 { get; set; } + public global::PromptLayer.GetReportResponseReportColumn? Type457 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type458 { get; set; } + public global::PromptLayer.GetReportScoreResponse? Type458 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type459 { get; set; } + public global::PromptLayer.GetReportScoreResponseScore? Type459 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type460 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreScoreType? Type460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type461 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant1? Type461 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type462 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2? Type462 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type463 { get; set; } + public global::System.Collections.Generic.IList? Type463 { get; set; } /// /// /// - public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type464 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant2Column? Type464 { get; set; } /// /// /// - public global::PromptLayer.ListDatasetsResponse? Type465 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant3? Type465 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type466 { get; set; } + public global::PromptLayer.GetReportScoreResponseScoreDetailsVariant4? Type466 { get; set; } /// /// /// - public global::PromptLayer.ListEvaluationsResponse? Type467 { get; set; } + public global::PromptLayer.ListDatasetsResponse? Type467 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type468 { get; set; } + public global::System.Collections.Generic.IList? Type468 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type469 { get; set; } + public global::PromptLayer.ListEvaluationsResponse? Type469 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type470 { get; set; } + public global::System.Collections.Generic.IList? Type470 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type471 { get; set; } + public global::PromptLayer.AnyOf? Type471 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type472 { get; set; } + public global::PromptLayer.OneOf, object>? Type472 { get; set; } /// /// /// - public global::PromptLayer.OneOf, object>? Type473 { get; set; } + public global::System.Collections.Generic.Dictionary? Type473 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type474 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant12? Type474 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type475 { get; set; } + public global::PromptLayer.OneOf, object>? Type475 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse? Type476 { get; set; } + public global::System.Collections.Generic.Dictionary? Type476 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type477 { get; set; } + public global::PromptLayer.GetWorkflowVersionExecutionResultsResponseVariant14? Type477 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponseItem? Type478 { get; set; } + public global::PromptLayer.ListWorkflowsResponse? Type478 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse2? Type479 { get; set; } + public global::System.Collections.Generic.IList? Type479 { get; set; } /// /// /// - public global::PromptLayer.ListWorkflowsResponse3? Type480 { get; set; } + public global::PromptLayer.ListWorkflowsResponseItem? Type480 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponse? Type481 { get; set; } + public global::PromptLayer.ListWorkflowsResponse2? Type481 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type482 { get; set; } + public global::PromptLayer.ListWorkflowsResponse3? Type482 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseNode? Type483 { get; set; } + public global::PromptLayer.GetWorkflowResponse? Type483 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type484 { get; set; } + public global::System.Collections.Generic.IList? Type484 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowResponseEdge? Type485 { get; set; } + public global::PromptLayer.GetWorkflowResponseNode? Type485 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponse? Type486 { get; set; } + public global::System.Collections.Generic.IList? Type486 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type487 { get; set; } + public global::PromptLayer.GetWorkflowResponseEdge? Type487 { get; set; } /// /// /// - public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type488 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponse? Type488 { get; set; } /// /// /// - public global::PromptLayer.AnyOf? Type489 { get; set; } + public global::System.Collections.Generic.IList? Type489 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponse? Type490 { get; set; } + public global::PromptLayer.GetWorkflowLabelsResponseReleaseLabel? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::PromptLayer.AnyOf? Type491 { get; set; } /// /// /// - public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type492 { get; set; } + public global::PromptLayer.ListToolRegistriesResponse? Type492 { get; set; } /// /// /// - public global::PromptLayer.CreateToolRegistryResponse? Type493 { get; set; } + public global::System.Collections.Generic.IList? Type493 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponse? Type494 { get; set; } + public global::PromptLayer.ListToolRegistriesResponseToolRegistrie? Type494 { get; set; } /// /// /// - public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type495 { get; set; } + public global::PromptLayer.CreateToolRegistryResponse? Type495 { get; set; } + /// + /// + /// + public global::PromptLayer.GetToolRegistryResponse? Type496 { get; set; } + /// + /// + /// + public global::PromptLayer.GetToolRegistryResponseToolRegistry? Type497 { get; set; } /// /// @@ -2273,34 +2281,38 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } } } \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateDatasetVersionFromFilterParamsRequest.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateDatasetVersionFromFilterParamsRequest.g.cs index d6e7118..ebf8375 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateDatasetVersionFromFilterParamsRequest.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.CreateDatasetVersionFromFilterParamsRequest.g.cs @@ -53,6 +53,12 @@ public sealed partial class CreateDatasetVersionFromFilterParamsRequest [global::System.Text.Json.Serialization.JsonPropertyName("variables_to_parse")] public global::System.Collections.Generic.IList? VariablesToParse { get; set; } + /// + /// Maximum number of request logs to include. When set, only the first N matching rows (in the current sort order) are added to the dataset version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -79,6 +85,9 @@ public sealed partial class CreateDatasetVersionFromFilterParamsRequest /// /// Request fields or variables to parse into dataset columns. /// + /// + /// Maximum number of request logs to include. When set, only the first N matching rows (in the current sort order) are added to the dataset version. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -89,7 +98,8 @@ public CreateDatasetVersionFromFilterParamsRequest( string? q, global::PromptLayer.CreateDatasetVersionFromFilterParamsRequestSortBy? sortBy, global::PromptLayer.CreateDatasetVersionFromFilterParamsRequestSortOrder? sortOrder, - global::System.Collections.Generic.IList? variablesToParse) + global::System.Collections.Generic.IList? variablesToParse, + int? limit) { this.DatasetGroupId = datasetGroupId; this.RequestLogIds = requestLogIds; @@ -98,6 +108,7 @@ public CreateDatasetVersionFromFilterParamsRequest( this.SortBy = sortBy; this.SortOrder = sortOrder; this.VariablesToParse = variablesToParse; + this.Limit = limit; } /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponse.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponse.g.cs index a9ec4b5..fd49f23 100644 --- a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponse.g.cs +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponse.g.cs @@ -12,37 +12,38 @@ public sealed partial class GetReportResponse /// /// [global::System.Text.Json.Serialization.JsonPropertyName("success")] - [global::System.Text.Json.Serialization.JsonRequired] - public required bool Success { get; set; } + public bool? Success { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("message")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Message { get; set; } + public string? Message { get; set; } /// /// The report data with all fields /// [global::System.Text.Json.Serialization.JsonPropertyName("report")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::PromptLayer.GetReportResponseReport Report { get; set; } + public global::PromptLayer.GetReportResponseReport? Report { get; set; } /// /// Overall status of the report execution /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::PromptLayer.JsonConverters.GetReportResponseStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::PromptLayer.GetReportResponseStatus Status { get; set; } + public global::PromptLayer.GetReportResponseStatus? Status { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("stats")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::PromptLayer.GetReportResponseStats Stats { get; set; } + public global::PromptLayer.GetReportResponseStats? Stats { get; set; } + + /// + /// Ordered list of column configurations for this report. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("report_columns")] + public global::System.Collections.Generic.IList? ReportColumns { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -62,21 +63,26 @@ public sealed partial class GetReportResponse /// Overall status of the report execution /// /// + /// + /// Ordered list of column configurations for this report. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetReportResponse( - bool success, - string message, - global::PromptLayer.GetReportResponseReport report, - global::PromptLayer.GetReportResponseStatus status, - global::PromptLayer.GetReportResponseStats stats) + bool? success, + string? message, + global::PromptLayer.GetReportResponseReport? report, + global::PromptLayer.GetReportResponseStatus? status, + global::PromptLayer.GetReportResponseStats? stats, + global::System.Collections.Generic.IList? reportColumns) { this.Success = success; - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); - this.Report = report ?? throw new global::System.ArgumentNullException(nameof(report)); + this.Message = message; + this.Report = report; this.Status = status; - this.Stats = stats ?? throw new global::System.ArgumentNullException(nameof(stats)); + this.Stats = stats; + this.ReportColumns = reportColumns; } /// diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumn.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumn.Json.g.cs new file mode 100644 index 0000000..97b42b5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumn.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetReportResponseReportColumn + { + /// + /// 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::PromptLayer.GetReportResponseReportColumn? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetReportResponseReportColumn), + jsonSerializerContext) as global::PromptLayer.GetReportResponseReportColumn; + } + + /// + /// 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.GetReportResponseReportColumn? 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::PromptLayer.GetReportResponseReportColumn), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetReportResponseReportColumn; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumn.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumn.g.cs new file mode 100644 index 0000000..e381cc5 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumn.g.cs @@ -0,0 +1,115 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// + /// + public sealed partial class GetReportResponseReportColumn + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public int? Id { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("report_id")] + public int? ReportId { get; set; } + + /// + /// Type of evaluation column (e.g. LLM_ASSERTION, PROMPT_TEMPLATE, COMPARE) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("column_type")] + public string? ColumnType { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Zero-based column order + /// + [global::System.Text.Json.Serialization.JsonPropertyName("position")] + public int? Position { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_part_of_score")] + public bool? IsPartOfScore { get; set; } + + /// + /// Column-type-specific configuration + /// + [global::System.Text.Json.Serialization.JsonPropertyName("configuration")] + public object? Configuration { get; set; } + + /// + /// Computed score for this column, if available + /// + [global::System.Text.Json.Serialization.JsonPropertyName("score")] + public double? Score { 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. + /// + /// + /// + /// + /// Type of evaluation column (e.g. LLM_ASSERTION, PROMPT_TEMPLATE, COMPARE) + /// + /// + /// + /// Zero-based column order + /// + /// + /// + /// Column-type-specific configuration + /// + /// + /// Computed score for this column, if available + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetReportResponseReportColumn( + int? id, + int? reportId, + string? columnType, + string? name, + int? position, + bool? isPartOfScore, + object? configuration, + double? score) + { + this.Id = id; + this.ReportId = reportId; + this.ColumnType = columnType; + this.Name = name; + this.Position = position; + this.IsPartOfScore = isPartOfScore; + this.Configuration = configuration; + this.Score = score; + } + + /// + /// Initializes a new instance of the class. + /// + public GetReportResponseReportColumn() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumnConfiguration.Json.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumnConfiguration.Json.g.cs new file mode 100644 index 0000000..d433a85 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumnConfiguration.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace PromptLayer +{ + public sealed partial class GetReportResponseReportColumnConfiguration + { + /// + /// 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::PromptLayer.GetReportResponseReportColumnConfiguration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::PromptLayer.GetReportResponseReportColumnConfiguration), + jsonSerializerContext) as global::PromptLayer.GetReportResponseReportColumnConfiguration; + } + + /// + /// 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.GetReportResponseReportColumnConfiguration? 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::PromptLayer.GetReportResponseReportColumnConfiguration), + jsonSerializerContext).ConfigureAwait(false)) as global::PromptLayer.GetReportResponseReportColumnConfiguration; + } + + /// + /// 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/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumnConfiguration.g.cs b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumnConfiguration.g.cs new file mode 100644 index 0000000..c609751 --- /dev/null +++ b/src/libs/PromptLayer/Generated/PromptLayer.Models.GetReportResponseReportColumnConfiguration.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace PromptLayer +{ + /// + /// Column-type-specific configuration + /// + public sealed partial class GetReportResponseReportColumnConfiguration + { + + /// + /// 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/openapi.json b/src/libs/PromptLayer/openapi.json index 9cbcdb2..3b03591 100644 --- a/src/libs/PromptLayer/openapi.json +++ b/src/libs/PromptLayer/openapi.json @@ -1684,15 +1684,46 @@ "required": [ "status_counts" ] + }, + "report_columns": { + "type": "array", + "description": "Ordered list of column configurations for this report.", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "report_id": { + "type": "integer" + }, + "column_type": { + "type": "string", + "description": "Type of evaluation column (e.g. LLM_ASSERTION, PROMPT_TEMPLATE, COMPARE)" + }, + "name": { + "type": "string" + }, + "position": { + "type": "integer", + "description": "Zero-based column order" + }, + "is_part_of_score": { + "type": "boolean" + }, + "configuration": { + "type": "object", + "description": "Column-type-specific configuration" + }, + "score": { + "type": "number", + "nullable": true, + "description": "Computed score for this column, if available" + } + } + } } - }, - "required": [ - "success", - "message", - "report", - "status", - "stats" - ] + } } } } @@ -17273,6 +17304,12 @@ }, "nullable": true, "description": "Request fields or variables to parse into dataset columns." + }, + "limit": { + "type": "integer", + "nullable": true, + "minimum": 1, + "description": "Maximum number of request logs to include. When set, only the first N matching rows (in the current sort order) are added to the dataset version." } } },