Class RubricGenerationSpec
-
- All Implemented Interfaces:
public abstract class RubricGenerationSpec extends JsonSerializable
Specification for how rubrics should be generated. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classRubricGenerationSpec.BuilderBuilder for RubricGenerationSpec.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description RubricGenerationSpec()
-
Method Summary
Modifier and Type Method Description abstract Optional<AutoraterConfig>modelConfig()Configuration for the model used in rubric generation. abstract Optional<String>promptTemplate()Template for the prompt used to generate rubrics. abstract Optional<RubricContentType>rubricContentType()The type of rubric content to be generated. abstract Optional<List<String>>rubricTypeOntology()Optional. static RubricGenerationSpec.Builderbuilder()Instantiates a builder for RubricGenerationSpec. abstract RubricGenerationSpec.BuildertoBuilder()Creates a builder with the same values as this instance. static RubricGenerationSpecfromJson(String jsonString)Deserializes a JSON string to a RubricGenerationSpec object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
modelConfig
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
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
abstract Optional<RubricContentType> rubricContentType()
The type of rubric content to be generated.
-
rubricTypeOntology
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
static RubricGenerationSpec.Builder builder()
Instantiates a builder for RubricGenerationSpec.
-
toBuilder
abstract RubricGenerationSpec.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static RubricGenerationSpec fromJson(String jsonString)
Deserializes a JSON string to a RubricGenerationSpec object.
-
-
-
-