Langfuse JS/TS SDKs
    Preparing search index...

    Interface LegacyEvaluationRule

    Deprecated: Legacy trace- or dataset-level evaluation rule returned by list and get for migration.

    This resource is read-only through the unstable public API. Its mapping preserves the trace, dataset item, or named observation selected for each prompt variable.

    interface LegacyEvaluationRule {
        createdAt: string;
        delay: number;
        enabled: boolean;
        evaluator: null | unstable.EvaluationRuleEvaluator;
        evaluators: unstable.LegacyEvaluationRuleEvaluatorAssignment[];
        filter: unstable.EvaluationRuleFilter[];
        id: string;
        mapping: unstable.LegacyPromptVariableMapping[];
        name: string;
        pausedMessage: null | string;
        pausedReason: null | string;
        sampling: number;
        status: unstable.EvaluationRuleStatus;
        target: unstable.LegacyEvaluationRuleTarget;
        timeScope: unstable.EvaluationRuleTimeScope[];
        updatedAt: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    createdAt: string

    Timestamp when the evaluation rule was created.

    delay: number

    Delay in milliseconds before the legacy evaluation job runs.

    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.

    Evaluators attached to this rule in deterministic assignment order.

    Stored filters used by the legacy trace or dataset rule.

    id: string

    Stable evaluation rule identifier.

    Stored variable mappings, including the trace, dataset item, or named observation selected for each variable.

    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.

    Whether the legacy rule evaluates newly ingested data, existing data, or both.

    updatedAt: string

    Timestamp when the evaluation rule was last updated.