Langfuse JS/TS SDKs
    Preparing search index...

    Interface CreateEvaluatorRequest

    Request body for creating an evaluator.

    If the same name already exists in your project, Langfuse creates the next version and returns it. Existing evaluation rules in the same project are then moved to that new latest version automatically.

    interface CreateEvaluatorRequest {
        modelConfig?: null | unstable.EvaluatorModelConfig;
        name: string;
        outputDefinition: unstable.EvaluatorOutputDefinition;
        prompt: string;
    }
    Index

    Properties

    modelConfig?: null | unstable.EvaluatorModelConfig

    Optional explicit model configuration. Omit or set to null to use the project default evaluation model.

    name: string

    Evaluator name within the authenticated project.

    Structured output schema the evaluator must return.

    Always send dataType. Do not send version; it is an internal storage detail and not part of the public request contract.

    prompt: string

    Prompt template used by the evaluator.