Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCode.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ public sealed partial class LlmAsJudgeCode
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchema> Schema { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")]
public double? MaxCostUsd { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -49,19 +55,22 @@ public sealed partial class LlmAsJudgeCode
/// <param name="messages"></param>
/// <param name="variables"></param>
/// <param name="schema"></param>
/// <param name="maxCostUsd"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public LlmAsJudgeCode(
global::Opik.LlmAsJudgeModelParameters model,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeMessage> messages,
global::System.Collections.Generic.Dictionary<string, string> variables,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchema> schema)
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchema> 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;
}

/// <summary>
Expand Down
11 changes: 10 additions & 1 deletion src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodePublic.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ public sealed partial class LlmAsJudgeCodePublic
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaPublic> Schema { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")]
public double? MaxCostUsd { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -49,19 +55,22 @@ public sealed partial class LlmAsJudgeCodePublic
/// <param name="messages"></param>
/// <param name="variables"></param>
/// <param name="schema"></param>
/// <param name="maxCostUsd"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public LlmAsJudgeCodePublic(
global::Opik.LlmAsJudgeModelParametersPublic model,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeMessagePublic> messages,
global::System.Collections.Generic.Dictionary<string, string> variables,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaPublic> schema)
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaPublic> 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;
}

/// <summary>
Expand Down
11 changes: 10 additions & 1 deletion src/libs/Opik/Generated/Opik.Models.LlmAsJudgeCodeWrite.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ public sealed partial class LlmAsJudgeCodeWrite
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaWrite> Schema { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")]
public double? MaxCostUsd { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -49,19 +55,22 @@ public sealed partial class LlmAsJudgeCodeWrite
/// <param name="messages"></param>
/// <param name="variables"></param>
/// <param name="schema"></param>
/// <param name="maxCostUsd"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public LlmAsJudgeCodeWrite(
global::Opik.LlmAsJudgeModelParametersWrite model,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeMessageWrite> messages,
global::System.Collections.Generic.Dictionary<string, string> variables,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaWrite> schema)
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaWrite> 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;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public sealed partial class TraceThreadLlmAsJudgeCode
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchema> Schema { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")]
public double? MaxCostUsd { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -41,17 +47,20 @@ public sealed partial class TraceThreadLlmAsJudgeCode
/// <param name="model"></param>
/// <param name="messages"></param>
/// <param name="schema"></param>
/// <param name="maxCostUsd"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public TraceThreadLlmAsJudgeCode(
global::Opik.LlmAsJudgeModelParameters model,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeMessage> messages,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchema> schema)
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchema> 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;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public sealed partial class TraceThreadLlmAsJudgeCodePublic
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaPublic> Schema { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")]
public double? MaxCostUsd { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -41,17 +47,20 @@ public sealed partial class TraceThreadLlmAsJudgeCodePublic
/// <param name="model"></param>
/// <param name="messages"></param>
/// <param name="schema"></param>
/// <param name="maxCostUsd"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public TraceThreadLlmAsJudgeCodePublic(
global::Opik.LlmAsJudgeModelParametersPublic model,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeMessagePublic> messages,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaPublic> schema)
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaPublic> 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;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public sealed partial class TraceThreadLlmAsJudgeCodeWrite
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaWrite> Schema { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("max_cost_usd")]
public double? MaxCostUsd { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -41,17 +47,20 @@ public sealed partial class TraceThreadLlmAsJudgeCodeWrite
/// <param name="model"></param>
/// <param name="messages"></param>
/// <param name="schema"></param>
/// <param name="maxCostUsd"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public TraceThreadLlmAsJudgeCodeWrite(
global::Opik.LlmAsJudgeModelParametersWrite model,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeMessageWrite> messages,
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaWrite> schema)
global::System.Collections.Generic.IList<global::Opik.LlmAsJudgeOutputSchemaWrite> 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;
}

/// <summary>
Expand Down
12 changes: 12 additions & 0 deletions src/libs/Opik/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11624,6 +11624,8 @@ components:
type: array
items:
$ref: "#/components/schemas/LlmAsJudgeOutputSchema"
max_cost_usd:
type: number
LlmAsJudgeMessage:
required:
- role
Expand Down Expand Up @@ -11839,6 +11841,8 @@ components:
type: array
items:
$ref: "#/components/schemas/LlmAsJudgeOutputSchema"
max_cost_usd:
type: number
TraceThreadUserDefinedMetricPythonCode:
required:
- metric
Expand Down Expand Up @@ -12059,6 +12063,8 @@ components:
type: array
items:
$ref: "#/components/schemas/LlmAsJudgeOutputSchema_Write"
max_cost_usd:
type: number
LlmAsJudgeMessageContent_Write:
required:
- type
Expand Down Expand Up @@ -12259,6 +12265,8 @@ components:
type: array
items:
$ref: "#/components/schemas/LlmAsJudgeOutputSchema_Write"
max_cost_usd:
type: number
TraceThreadUserDefinedMetricPythonCode_Write:
required:
- metric
Expand Down Expand Up @@ -12519,6 +12527,8 @@ components:
type: array
items:
$ref: "#/components/schemas/LlmAsJudgeOutputSchema_Public"
max_cost_usd:
type: number
LlmAsJudgeMessageContent_Public:
required:
- type
Expand Down Expand Up @@ -12734,6 +12744,8 @@ components:
type: array
items:
$ref: "#/components/schemas/LlmAsJudgeOutputSchema_Public"
max_cost_usd:
type: number
TraceThreadUserDefinedMetricPythonCode_Public:
required:
- metric
Expand Down