Class RougeMetricValue

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.RougeMetricValue

public abstract class RougeMetricValue extends JsonSerializable
Rouge metric value for an instance. This data type is not supported in Gemini API.
  • Constructor Details

    • RougeMetricValue

      public RougeMetricValue()
  • Method Details

    • score

      public abstract Optional<Float> score()
      Output only. Rouge score.
    • builder

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

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

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