Class ScoreQuestion

java.lang.Object
com.google.genai.gaos.models.decisions.ScoreQuestion
All Implemented Interfaces:
Question

public class ScoreQuestion extends Object implements Question
ScoreQuestion

A quantitative rubric scoring question over discrete numeric levels.

  • Constructor Details

  • Method Details

    • criteria

      public Optional<List<String>> criteria()
      Required. Discrete score levels in the rubric (between 2 and 255 non-empty levels), where 0-based index `i` corresponds to numeric level value `i` and rubric description `criteria[i]`.
    • instructions

      public Optional<ScoreQuestionInstructions> instructions()
      Required. Human-readable decision guidelines, rubrics, or criteria evaluated against the shared `input`. At least one content block is required.
    • type

      public String type()
      Specified by:
      type in interface Question
    • builder

      public static ScoreQuestion.Builder builder()
    • withCriteria

      public ScoreQuestion withCriteria(@Nonnull List<String> criteria)
      Required. Discrete score levels in the rubric (between 2 and 255 non-empty levels), where 0-based index `i` corresponds to numeric level value `i` and rubric description `criteria[i]`.
    • withInstructions

      public ScoreQuestion withInstructions(@Nonnull ScoreQuestionInstructions instructions)
      Required. Human-readable decision guidelines, rubrics, or criteria evaluated against the shared `input`. At least one content block is required.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object