Class Metric


public abstract class Metric extends JsonSerializable
The metric used for evaluation.
  • Constructor Details

    • Metric

      public Metric()
  • Method Details

    • name

      public abstract Optional<String> name()
      The name of the metric.
    • promptTemplate

      public abstract Optional<String> promptTemplate()
      The prompt template for the metric.
    • judgeModelSystemInstruction

      public abstract Optional<String> judgeModelSystemInstruction()
      The system instruction for the judge model.
    • returnRawOutput

      public abstract Optional<Boolean> returnRawOutput()
      Whether to return the raw output from the judge model.
    • builder

      public static Metric.Builder builder()
      Instantiates a builder for Metric.
    • toBuilder

      public abstract Metric.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static Metric fromJson(String jsonString)
      Deserializes a JSON string to a Metric object.