Langfuse JS/TS SDKs
    Preparing search index...

    Interface EvaluationRuleBase

    Live evaluation rule for incoming data.

    An evaluation rule answers:

    • which evaluator should be used
    • which target objects should trigger scoring
    • how often scoring should run
    • which target fields should populate each prompt variable
    • whether the deployment is active, inactive, or paused

    Important status semantics:

    • enabled is the desired on/off setting from the client
    • status is the effective runtime state after Langfuse applies validation and blocking rules
    • enabled=true with status=paused means the rule should run, but Langfuse has paused it until the underlying problem is fixed
    interface EvaluationRuleBase {
        createdAt: string;
        enabled: boolean;
        evaluator: null | unstable.EvaluationRuleEvaluator;
        id: string;
        name: string;
        pausedMessage: null | string;
        pausedReason: null | string;
        sampling: number;
        status: unstable.EvaluationRuleStatus;
        updatedAt: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    createdAt: string

    Timestamp when the evaluation rule was created.

    enabled: boolean

    Desired enabled state configured by the client.

    Deprecated compatibility alias for evaluators[0].evaluator, or null when the rule currently has no evaluator assignments.

    id identifies the evaluator family. The rule automatically uses the latest available version of that evaluator.

    id: string

    Stable evaluation rule identifier.

    name: string

    Human-readable deployment name. This is independent from the evaluator name.

    pausedMessage: null | string

    Human-readable explanation when status=paused, otherwise null.

    pausedReason: null | string

    Machine-readable reason when status=paused, otherwise null.

    sampling: number

    Fraction of matching target objects that should be evaluated.

    Must be greater than 0 and less than or equal to 1.

    • 1 means evaluate every matching target.
    • 0.25 means evaluate approximately 25% of matching targets.

    Effective runtime status after Langfuse applies validation and blocking rules.

    updatedAt: string

    Timestamp when the evaluation rule was last updated.