Class RubricGenerationSpec.Builder
- Enclosing class:
- RubricGenerationSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RubricGenerationSpecbuild()Clears the value of modelConfig field.Clears the value of promptTemplate field.Clears the value of rubricContentType field.Clears the value of rubricTypeOntology field.abstract RubricGenerationSpec.BuildermodelConfig(AutoraterConfig modelConfig) Setter for modelConfig.modelConfig(AutoraterConfig.Builder modelConfigBuilder) Setter for modelConfig builder.abstract RubricGenerationSpec.BuilderpromptTemplate(String promptTemplate) Setter for promptTemplate.abstract RubricGenerationSpec.BuilderrubricContentType(RubricContentType rubricContentType) Setter for rubricContentType.rubricContentType(RubricContentType.Known knownType) Setter for rubricContentType given a known enum.rubricContentType(String rubricContentType) Setter for rubricContentType given a string.rubricTypeOntology(String... rubricTypeOntology) Setter for rubricTypeOntology.abstract RubricGenerationSpec.BuilderrubricTypeOntology(List<String> rubricTypeOntology) Setter for rubricTypeOntology.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelConfig
Setter for modelConfig.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.
-
modelConfig
@CanIgnoreReturnValue public RubricGenerationSpec.Builder modelConfig(AutoraterConfig.Builder modelConfigBuilder) Setter for modelConfig builder.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.
-
clearModelConfig
Clears the value of modelConfig field. -
promptTemplate
Setter for promptTemplate.promptTemplate: Template for the prompt used to generate rubrics. The details should be updated based on the most-recent recipe requirements.
-
clearPromptTemplate
Clears the value of promptTemplate field. -
rubricContentType
Setter for rubricContentType.rubricContentType: The type of rubric content to be generated.
-
clearRubricContentType
Clears the value of rubricContentType field. -
rubricContentType
@CanIgnoreReturnValue public RubricGenerationSpec.Builder rubricContentType(RubricContentType.Known knownType) Setter for rubricContentType given a known enum.rubricContentType: The type of rubric content to be generated.
-
rubricContentType
@CanIgnoreReturnValue public RubricGenerationSpec.Builder rubricContentType(String rubricContentType) Setter for rubricContentType given a string.rubricContentType: The type of rubric content to be generated.
-
rubricTypeOntology
Setter for rubricTypeOntology.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.
-
rubricTypeOntology
@CanIgnoreReturnValue public RubricGenerationSpec.Builder rubricTypeOntology(String... rubricTypeOntology) Setter for rubricTypeOntology.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.
-
clearRubricTypeOntology
Clears the value of rubricTypeOntology field. -
build
-