Langfuse JS/TS SDKs
    Preparing search index...

    Interface CreateCodeEvaluationRuleRequest

    interface CreateCodeEvaluationRuleRequest {
        enabled: boolean;
        evaluator: unstable.CodeEvaluationRuleEvaluatorReference;
        filter?: unstable.EvaluationRuleFilter[];
        name: string;
        sampling?: number;
        target: unstable.EvaluationRuleTarget;
    }
    Index

    Properties

    enabled: boolean

    Whether the deployment should be active immediately after creation.

    Code evaluator family to use.

    Use name, scope, and type from the evaluator endpoints. 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.

    name: string

    Human-readable deployment name.

    sampling?: number

    Optional sampling fraction. Defaults to 1.

    Target object type to evaluate.