@langwatch/scenario
    Preparing search index...

    Interface ScenarioEvaluator

    One evaluator attached to a scenario run.

    interface ScenarioEvaluator {
        evaluator: string;
        mappings?: Record<string, EvaluatorMapping>;
        required?: boolean;
        settings?: Record<string, unknown>;
    }
    Index
    evaluator: string

    The evaluator to run: a built-in type such as ragas/sql_query_equivalence or a saved evaluator as evaluators/<slug>, the same reference the evaluate endpoint accepts.

    mappings?: Record<string, EvaluatorMapping>

    Where each evaluator input reads from, keyed by input name: a function of the scenario state or a literal. An input without a mapping is inferred from its name; a tool call is never inferred.

    required?: boolean

    Whether a failing verdict fails the scenario. Defaults to true for an evaluator that answers pass or fail, and to false for a score-only one. A score never fails the scenario, whatever this flag says.

    settings?: Record<string, unknown>

    Per-run overrides of the evaluator settings.