Class DeepEqualMetric

java.lang.Object
com.google.genkit.plugins.evaluators.metrics.DeepEqualMetric

public class DeepEqualMetric extends Object
Deep Equal metric evaluator.

Evaluates whether the output is deeply equal to the reference. Supports JSON comparison for structured data.

  • Constructor Details

    • DeepEqualMetric

      public DeepEqualMetric()
  • Method Details

    • evaluate

      public EvalResponse evaluate(EvalDataPoint dataPoint)
      Evaluates whether the output is deeply equal to the reference.
      Parameters:
      dataPoint - the evaluation data point
      Returns:
      the evaluation response