Class RubricGenerationSpec.Builder
-
- All Implemented Interfaces:
public abstract class RubricGenerationSpec.BuilderBuilder for RubricGenerationSpec.
-
-
Constructor Summary
Constructors Constructor Description RubricGenerationSpec.Builder()
-
Method Summary
Modifier and Type Method Description abstract RubricGenerationSpec.BuildermodelConfig(AutoraterConfig modelConfig)Setter for modelConfig. RubricGenerationSpec.BuildermodelConfig(AutoraterConfig.Builder modelConfigBuilder)Setter for modelConfig builder. RubricGenerationSpec.BuilderclearModelConfig()Clears the value of modelConfig field. abstract RubricGenerationSpec.BuilderpromptTemplate(String promptTemplate)Setter for promptTemplate. RubricGenerationSpec.BuilderclearPromptTemplate()Clears the value of promptTemplate field. abstract RubricGenerationSpec.BuilderrubricContentType(RubricContentType rubricContentType)Setter for rubricContentType. RubricGenerationSpec.BuilderclearRubricContentType()Clears the value of rubricContentType field. RubricGenerationSpec.BuilderrubricContentType(RubricContentType.Known knownType)Setter for rubricContentType given a known enum. RubricGenerationSpec.BuilderrubricContentType(String rubricContentType)Setter for rubricContentType given a string. abstract RubricGenerationSpec.BuilderrubricTypeOntology(List<String> rubricTypeOntology)Setter for rubricTypeOntology. RubricGenerationSpec.BuilderrubricTypeOntology(Array<String> rubricTypeOntology)Setter for rubricTypeOntology. RubricGenerationSpec.BuilderclearRubricTypeOntology()Clears the value of rubricTypeOntology field. abstract RubricGenerationSpecbuild()-
-
Method Detail
-
modelConfig
abstract RubricGenerationSpec.Builder modelConfig(AutoraterConfig 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() 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
@CanIgnoreReturnValue() RubricGenerationSpec.Builder clearModelConfig()
Clears the value of modelConfig field.
-
promptTemplate
abstract RubricGenerationSpec.Builder promptTemplate(String 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
@CanIgnoreReturnValue() RubricGenerationSpec.Builder clearPromptTemplate()
Clears the value of promptTemplate field.
-
rubricContentType
abstract RubricGenerationSpec.Builder rubricContentType(RubricContentType rubricContentType)
Setter for rubricContentType.
rubricContentType: The type of rubric content to be generated.
-
clearRubricContentType
@CanIgnoreReturnValue() RubricGenerationSpec.Builder clearRubricContentType()
Clears the value of rubricContentType field.
-
rubricContentType
@CanIgnoreReturnValue() RubricGenerationSpec.Builder rubricContentType(RubricContentType.Known knownType)
Setter for rubricContentType given a known enum.
rubricContentType: The type of rubric content to be generated.
-
rubricContentType
@CanIgnoreReturnValue() RubricGenerationSpec.Builder rubricContentType(String rubricContentType)
Setter for rubricContentType given a string.
rubricContentType: The type of rubric content to be generated.
-
rubricTypeOntology
abstract RubricGenerationSpec.Builder rubricTypeOntology(List<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.
-
rubricTypeOntology
@CanIgnoreReturnValue() RubricGenerationSpec.Builder rubricTypeOntology(Array<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
@CanIgnoreReturnValue() RubricGenerationSpec.Builder clearRubricTypeOntology()
Clears the value of rubricTypeOntology field.
-
build
abstract RubricGenerationSpec build()
-
-
-
-