{
* dataType: "NUMERIC",
* dataType: LangfuseAPI.unstable.EvaluatorOutputDataType.Numeric,
* reasoning: {
* description: "Explain why the answer is correct or incorrect."
* },
* score: {
* description: "Return a score between 0 and 1."
* }
* }
{
* dataType: "CATEGORICAL",
* dataType: LangfuseAPI.unstable.EvaluatorOutputDataType.Categorical,
* reasoning: {
* description: "Explain which label best fits the output."
* },
* score: {
* description: "Choose the best label.",
* categories: ["correct", "partially_correct", "incorrect"],
* shouldAllowMultipleMatches: false
* }
* }
Evaluator output definition returned by the public API.
This response always includes
dataTypeand never includes an internal output-definitionversion. Legacy stored evaluator definitions are normalized into this shape before they are returned.Use this response shape when deciding how to interpret future evaluation scores:
NUMERIC: expect numeric score valuesBOOLEAN: expecttrue/falseCATEGORICAL: expect one or more values fromscore.categories