Flat structured output definition used when creating or updating an evaluator.
dataType
scoreReasoningInstructions
scoreValueInstructions
minValue
maxValue
NUMERIC
categories
shouldAllowMultipleMatches
CATEGORICAL
version
{ * dataType: "NUMERIC", * dataType: "NUMERIC", * minValue: 0, * maxValue: 1 * } Copy
{ * dataType: "NUMERIC", * dataType: "NUMERIC", * minValue: 0, * maxValue: 1 * }
{ * dataType: "BOOLEAN", * dataType: "BOOLEAN", * scoreValueInstructions: "Return true if the output satisfies the requirement, otherwise false." * } Copy
{ * dataType: "BOOLEAN", * dataType: "BOOLEAN", * scoreValueInstructions: "Return true if the output satisfies the requirement, otherwise false." * }
{ * dataType: "CATEGORICAL", * dataType: "CATEGORICAL", * scoreReasoningInstructions: "Explain which category best fits the output.", * scoreValueInstructions: "Choose the best category.", * categories: ["correct", "partially_correct", "incorrect"], * shouldAllowMultipleMatches: false * } Copy
{ * dataType: "CATEGORICAL", * dataType: "CATEGORICAL", * scoreReasoningInstructions: "Explain which category best fits the output.", * scoreValueInstructions: "Choose the best category.", * categories: ["correct", "partially_correct", "incorrect"], * shouldAllowMultipleMatches: false * }
Flat structured output definition used when creating or updating an evaluator.
dataTypeis required.scoreReasoningInstructionsandscoreValueInstructionsare optional instructions.minValueandmaxValueapply only toNUMERICoutputs. If both are set,minValuemust not exceedmaxValue.categoriesandshouldAllowMultipleMatchesapply only toCATEGORICALoutputs.version; that is an internal storage detail.