LaunchDarkly Dotnet Server AI SDK
Search Results for

    Show / Hide Table of Contents

    Class JudgeResult

    Represents the result of a judge evaluation for use with ILdAiConfigTracker.TrackJudgeResult.

    Inheritance
    object
    JudgeResult
    Implements
    IEquatable<JudgeResult>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: LaunchDarkly.Sdk.Server.Ai.Tracking
    Assembly: LaunchDarkly.ServerSdk.Ai.dll
    Syntax
    public sealed record JudgeResult : IEquatable<JudgeResult>

    Constructors

    | Edit this page View Source

    JudgeResult(string, double, bool, bool, string)

    Constructs a JudgeResult.

    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
    Type Description
    string
    | Edit this page View Source

    MetricKey

    The LaunchDarkly metric key to emit the event under.

    Declaration
    public readonly string MetricKey
    Field Value
    Type Description
    string
    | 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
    Type Description
    bool
    | Edit this page View Source

    Score

    The numeric score for this evaluation.

    Declaration
    public readonly double Score
    Field Value
    Type Description
    double
    | 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
    Type Description
    bool

    Methods

    View Source

    Equals(JudgeResult?)

    Declaration
    public bool Equals(JudgeResult? other)
    Parameters
    Type Name Description
    JudgeResult other
    Returns
    Type Description
    bool
    View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    View Source

    operator ==(JudgeResult?, JudgeResult?)

    Declaration
    public static bool operator ==(JudgeResult? left, JudgeResult? right)
    Parameters
    Type Name Description
    JudgeResult left
    JudgeResult right
    Returns
    Type Description
    bool
    View Source

    operator !=(JudgeResult?, JudgeResult?)

    Declaration
    public static bool operator !=(JudgeResult? left, JudgeResult? right)
    Parameters
    Type Name Description
    JudgeResult left
    JudgeResult right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>

    Extension Methods

    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.GetPluginHooks<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    PluginExtensions.RegisterPlugins<TClient, THook>(TClient, IEnumerable<PluginBase<TClient, THook>>, EnvironmentMetadata, Logger)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX