From 3b436af3e5bdbf9508060c2a084b2b1da5295200 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 13 Jul 2026 12:00:48 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Opik/Generated/Opik.Models.LlmAsJudgeCode.g.cs | 11 ++++++++++- .../Generated/Opik.Models.LlmAsJudgeCodePublic.g.cs | 11 ++++++++++- .../Generated/Opik.Models.LlmAsJudgeCodeWrite.g.cs | 11 ++++++++++- .../Opik.Models.TraceThreadLlmAsJudgeCode.g.cs | 11 ++++++++++- .../Opik.Models.TraceThreadLlmAsJudgeCodePublic.g.cs | 11 ++++++++++- .../Opik.Models.TraceThreadLlmAsJudgeCodeWrite.g.cs | 11 ++++++++++- src/libs/Opik/openapi.yaml | 12 ++++++++++++ 7 files changed, 72 insertions(+), 6 deletions(-) diff --git a/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCode.g.cs b/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCode.g.cs index bac8496c..0b80ef1c 100644 --- a/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCode.g.cs +++ b/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCode.g.cs @@ -36,6 +36,12 @@ public sealed partial class LlmAsJudgeCode [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Schema { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")] + public double? MaxCostUsd { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,6 +55,7 @@ public sealed partial class LlmAsJudgeCode /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -56,12 +63,14 @@ public LlmAsJudgeCode( global::Opik.LlmAsJudgeModelParameters model, global::System.Collections.Generic.IList messages, global::System.Collections.Generic.Dictionary variables, - global::System.Collections.Generic.IList schema) + global::System.Collections.Generic.IList schema, + double? maxCostUsd) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); this.Variables = variables ?? throw new global::System.ArgumentNullException(nameof(variables)); this.Schema = schema ?? throw new global::System.ArgumentNullException(nameof(schema)); + this.MaxCostUsd = maxCostUsd; } /// diff --git a/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodePublic.g.cs b/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodePublic.g.cs index a8771a87..8d1d3cec 100644 --- a/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodePublic.g.cs +++ b/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodePublic.g.cs @@ -36,6 +36,12 @@ public sealed partial class LlmAsJudgeCodePublic [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Schema { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")] + public double? MaxCostUsd { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,6 +55,7 @@ public sealed partial class LlmAsJudgeCodePublic /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -56,12 +63,14 @@ public LlmAsJudgeCodePublic( global::Opik.LlmAsJudgeModelParametersPublic model, global::System.Collections.Generic.IList messages, global::System.Collections.Generic.Dictionary variables, - global::System.Collections.Generic.IList schema) + global::System.Collections.Generic.IList schema, + double? maxCostUsd) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); this.Variables = variables ?? throw new global::System.ArgumentNullException(nameof(variables)); this.Schema = schema ?? throw new global::System.ArgumentNullException(nameof(schema)); + this.MaxCostUsd = maxCostUsd; } /// diff --git a/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodeWrite.g.cs b/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodeWrite.g.cs index a7b0f9a3..97b3b397 100644 --- a/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodeWrite.g.cs +++ b/src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodeWrite.g.cs @@ -36,6 +36,12 @@ public sealed partial class LlmAsJudgeCodeWrite [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Schema { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")] + public double? MaxCostUsd { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,6 +55,7 @@ public sealed partial class LlmAsJudgeCodeWrite /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -56,12 +63,14 @@ public LlmAsJudgeCodeWrite( global::Opik.LlmAsJudgeModelParametersWrite model, global::System.Collections.Generic.IList messages, global::System.Collections.Generic.Dictionary variables, - global::System.Collections.Generic.IList schema) + global::System.Collections.Generic.IList schema, + double? maxCostUsd) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); this.Variables = variables ?? throw new global::System.ArgumentNullException(nameof(variables)); this.Schema = schema ?? throw new global::System.ArgumentNullException(nameof(schema)); + this.MaxCostUsd = maxCostUsd; } /// diff --git a/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCode.g.cs b/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCode.g.cs index e606b87e..00456413 100644 --- a/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCode.g.cs +++ b/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCode.g.cs @@ -29,6 +29,12 @@ public sealed partial class TraceThreadLlmAsJudgeCode [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Schema { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")] + public double? MaxCostUsd { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,17 +47,20 @@ public sealed partial class TraceThreadLlmAsJudgeCode /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TraceThreadLlmAsJudgeCode( global::Opik.LlmAsJudgeModelParameters model, global::System.Collections.Generic.IList messages, - global::System.Collections.Generic.IList schema) + global::System.Collections.Generic.IList schema, + double? maxCostUsd) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); this.Schema = schema ?? throw new global::System.ArgumentNullException(nameof(schema)); + this.MaxCostUsd = maxCostUsd; } /// diff --git a/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCodePublic.g.cs b/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCodePublic.g.cs index 521b4ab9..742584e3 100644 --- a/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCodePublic.g.cs +++ b/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCodePublic.g.cs @@ -29,6 +29,12 @@ public sealed partial class TraceThreadLlmAsJudgeCodePublic [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Schema { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")] + public double? MaxCostUsd { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,17 +47,20 @@ public sealed partial class TraceThreadLlmAsJudgeCodePublic /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TraceThreadLlmAsJudgeCodePublic( global::Opik.LlmAsJudgeModelParametersPublic model, global::System.Collections.Generic.IList messages, - global::System.Collections.Generic.IList schema) + global::System.Collections.Generic.IList schema, + double? maxCostUsd) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); this.Schema = schema ?? throw new global::System.ArgumentNullException(nameof(schema)); + this.MaxCostUsd = maxCostUsd; } /// diff --git a/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCodeWrite.g.cs b/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCodeWrite.g.cs index 0257bde2..1482513e 100644 --- a/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCodeWrite.g.cs +++ b/src/libs/Opik/Generated/Opik.Models.TraceThreadLlmAsJudgeCodeWrite.g.cs @@ -29,6 +29,12 @@ public sealed partial class TraceThreadLlmAsJudgeCodeWrite [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Schema { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")] + public double? MaxCostUsd { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,17 +47,20 @@ public sealed partial class TraceThreadLlmAsJudgeCodeWrite /// /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TraceThreadLlmAsJudgeCodeWrite( global::Opik.LlmAsJudgeModelParametersWrite model, global::System.Collections.Generic.IList messages, - global::System.Collections.Generic.IList schema) + global::System.Collections.Generic.IList schema, + double? maxCostUsd) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); this.Schema = schema ?? throw new global::System.ArgumentNullException(nameof(schema)); + this.MaxCostUsd = maxCostUsd; } /// diff --git a/src/libs/Opik/openapi.yaml b/src/libs/Opik/openapi.yaml index 0809f5e4..bb242507 100644 --- a/src/libs/Opik/openapi.yaml +++ b/src/libs/Opik/openapi.yaml @@ -11624,6 +11624,8 @@ components: type: array items: $ref: "#/components/schemas/LlmAsJudgeOutputSchema" + max_cost_usd: + type: number LlmAsJudgeMessage: required: - role @@ -11839,6 +11841,8 @@ components: type: array items: $ref: "#/components/schemas/LlmAsJudgeOutputSchema" + max_cost_usd: + type: number TraceThreadUserDefinedMetricPythonCode: required: - metric @@ -12059,6 +12063,8 @@ components: type: array items: $ref: "#/components/schemas/LlmAsJudgeOutputSchema_Write" + max_cost_usd: + type: number LlmAsJudgeMessageContent_Write: required: - type @@ -12259,6 +12265,8 @@ components: type: array items: $ref: "#/components/schemas/LlmAsJudgeOutputSchema_Write" + max_cost_usd: + type: number TraceThreadUserDefinedMetricPythonCode_Write: required: - metric @@ -12519,6 +12527,8 @@ components: type: array items: $ref: "#/components/schemas/LlmAsJudgeOutputSchema_Public" + max_cost_usd: + type: number LlmAsJudgeMessageContent_Public: required: - type @@ -12734,6 +12744,8 @@ components: type: array items: $ref: "#/components/schemas/LlmAsJudgeOutputSchema_Public" + max_cost_usd: + type: number TraceThreadUserDefinedMetricPythonCode_Public: required: - metric