Class Question.Choice
java.lang.Object
com.google.adk.classifiers.Question.Choice
- All Implemented Interfaces:
Question
- Enclosing interface:
Question
Asks a
Classifier to pick one of two or more labels, answered by a Answer.ChoiceAnswer.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Question
Question.Binary, Question.Choice, Question.ScoreModifier and TypeInterfaceDescriptionstatic classAsks aClassifierfor the probability that a statement is true, answered by aAnswer.BinaryAnswer.static classAsks aClassifierto pick one of two or more labels, answered by aAnswer.ChoiceAnswer.static classAsks aClassifierto place an input on an ordered rubric starting at level 0, answered by aAnswer.ScoreAnswer. -
Method Summary
Modifier and TypeMethodDescriptionstatic Question.Choice.Builderbuilder()abstract Map<String, @Nullable ClassifierContent> criteria()Returns each label, in the order it was added, mapped to a description of when it applies, or to null for none.abstract Optional<ClassifierContent> Returns what to decide, if set.abstract Question.Choice.Builder
-
Method Details
-
instructions
Description copied from interface:QuestionReturns what to decide, if set.- Specified by:
instructionsin interfaceQuestion
-
criteria
Returns each label, in the order it was added, mapped to a description of when it applies, or to null for none. There are at least two labels. -
builder
-
toBuilder
-