- Criteria(criteria, config?): {
criteria: Criteria;
evaluatorType: "criteria";
feedbackKey: string;
formatEvaluatorInputs: EvaluatorInputFormatter | ((payload) => {
input: string;
prediction: string;
});
}
-
Parameters
-
-
Optional
config: {
feedbackKey?: string;
formatEvaluatorInputs?: EvaluatorInputFormatter;
}
-
Optional
feedbackKey?: string
-
Returns {
criteria: Criteria;
evaluatorType: "criteria";
feedbackKey: string;
formatEvaluatorInputs: EvaluatorInputFormatter | ((payload) => {
input: string;
prediction: string;
});
}
-
-
evaluatorType: "criteria"
-
feedbackKey: string
-
formatEvaluatorInputs: EvaluatorInputFormatter | ((payload) => {
input: string;
prediction: string;
})