Langfuse JS/TS SDKs
    Preparing search index...

    Interface CreateLlmAsJudgeEvaluationRuleRequest

    interface CreateLlmAsJudgeEvaluationRuleRequest {
        enabled: boolean;
        evaluator: unstable.LlmAsJudgeEvaluationRuleEvaluatorReference;
        filter?: unstable.EvaluationRuleFilter[];
        mapping: unstable.EvaluationRuleMapping[];
        name: string;
        sampling?: number;
        target: unstable.EvaluationRuleTarget;
    }
    Index

    Properties

    enabled: boolean

    Whether the deployment should be active immediately after creation.

    LLM-as-judge evaluator family to use.

    Use name, scope, and type from the evaluator endpoints. If type is omitted, Langfuse defaults it to llm_as_judge for backwards compatibility. Langfuse resolves that family to its latest version before saving the rule.

    Optional filter list.

    Omit or pass an empty list to evaluate all matching targets for the selected target. Each filter object must use a column that is valid for that target. For target=experiment, column=datasetId expects dataset id values from GET /api/public/v2/datasets, not dataset names.

    LLM-as-judge variable mappings.

    Every evaluator variable must appear exactly once. Build this list from the evaluator variables array returned by the evaluator endpoints.

    name: string

    Human-readable deployment name.

    sampling?: number

    Optional sampling fraction. Defaults to 1.

    Target object type to evaluate.