Class RubricGenerationSpec

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

public abstract class RubricGenerationSpec extends JsonSerializable
Specification for how rubrics should be generated. This data type is not supported in Gemini API.
  • Constructor Details

    • RubricGenerationSpec

      public RubricGenerationSpec()
  • Method Details

    • modelConfig

      public abstract Optional<AutoraterConfig> modelConfig()
      Configuration for the model used in rubric generation. Configs including sampling count and base model can be specified here. Flipping is not supported for rubric generation.
    • promptTemplate

      public abstract Optional<String> promptTemplate()
      Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
    • rubricContentType

      public abstract Optional<RubricContentType> rubricContentType()
      The type of rubric content to be generated.
    • rubricTypeOntology

      public abstract Optional<List<String>> rubricTypeOntology()
      Optional. An optional, pre-defined list of allowed types for generated rubrics. If this field is provided, it implies `include_rubric_type` should be true, and the generated rubric types should be chosen from this ontology.
    • builder

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

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

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