Class JudgeResult
Represents the result of a judge evaluation for use with
ILdAiConfigTracker.TrackJudgeResult.
Assembly: LaunchDarkly.ServerSdk.Ai.dll
Syntax
public sealed record JudgeResult : IEquatable<JudgeResult>
Constructors
|
Edit this page
View Source
JudgeResult(string, double, bool, bool, string)
Declaration
public JudgeResult(string metricKey, double score, bool sampled = true, bool success = true, string judgeConfigKey = null)
Parameters
| Type |
Name |
Description |
| string |
metricKey |
the LaunchDarkly metric key
|
| double |
score |
the numeric score
|
| bool |
sampled |
whether sampled; defaults to true
|
| bool |
success |
whether successful; defaults to true
|
| string |
judgeConfigKey |
optional judge config key
|
Fields
|
Edit this page
View Source
JudgeConfigKey
Optional AI Judge Config key to include in the event data.
Declaration
public readonly string JudgeConfigKey
Field Value
|
Edit this page
View Source
MetricKey
The LaunchDarkly metric key to emit the event under.
Declaration
public readonly string MetricKey
Field Value
|
Edit this page
View Source
Sampled
Whether this result was sampled. When false, the event is silently dropped.
Declaration
public readonly bool Sampled
Field Value
|
Edit this page
View Source
Score
The numeric score for this evaluation.
Declaration
public readonly double Score
Field Value
|
Edit this page
View Source
Success
Whether the judge evaluation succeeded. When false, the event is silently dropped.
Declaration
public readonly bool Success
Field Value
Methods
View Source
Equals(JudgeResult?)
Declaration
public bool Equals(JudgeResult? other)
Parameters
Returns
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(JudgeResult?, JudgeResult?)
Declaration
public static bool operator ==(JudgeResult? left, JudgeResult? right)
Parameters
Returns
View Source
operator !=(JudgeResult?, JudgeResult?)
Declaration
public static bool operator !=(JudgeResult? left, JudgeResult? right)
Parameters
Returns
Implements
Extension Methods