Package com.google.genai.types
Class RubricGenerationSpec
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.RubricGenerationSpec
Specification for how rubrics should be generated. This data type is not supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for RubricGenerationSpec. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RubricGenerationSpec.Builderbuilder()Instantiates a builder for RubricGenerationSpec.static RubricGenerationSpecDeserializes a JSON string to a RubricGenerationSpec object.abstract Optional<AutoraterConfig>Configuration for the model used in rubric generation.Template for the prompt used to generate rubrics.abstract Optional<RubricContentType>The type of rubric content to be generated.Optional.abstract RubricGenerationSpec.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
RubricGenerationSpec
public RubricGenerationSpec()
-
-
Method Details
-
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
Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements. -
rubricContentType
The type of rubric content to be generated. -
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
Instantiates a builder for RubricGenerationSpec. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a RubricGenerationSpec object.
-