Class RubricGenerationSpec.Builder

java.lang.Object
com.google.genai.types.RubricGenerationSpec.Builder
Enclosing class:
RubricGenerationSpec

public abstract static class RubricGenerationSpec.Builder extends Object
Builder for RubricGenerationSpec.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • modelConfig

      public 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 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

      @CanIgnoreReturnValue public RubricGenerationSpec.Builder clearModelConfig()
      Clears the value of modelConfig field.
    • promptTemplate

      public 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 public RubricGenerationSpec.Builder clearPromptTemplate()
      Clears the value of promptTemplate field.
    • rubricContentType

      public abstract RubricGenerationSpec.Builder rubricContentType(RubricContentType rubricContentType)
      Setter for rubricContentType.

      rubricContentType: The type of rubric content to be generated.

    • clearRubricContentType

      @CanIgnoreReturnValue public RubricGenerationSpec.Builder 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

      public 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 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

      @CanIgnoreReturnValue public RubricGenerationSpec.Builder clearRubricTypeOntology()
      Clears the value of rubricTypeOntology field.
    • build

      public abstract RubricGenerationSpec build()