Class Question.Binary
java.lang.Object
com.google.adk.classifiers.Question.Binary
- All Implemented Interfaces:
Question
- Enclosing interface:
Question
Asks a
Classifier for the probability that a statement is true, answered by a Answer.BinaryAnswer.-
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.Binary.Builderbuilder()abstract Optional<ClassifierContent> criteria()Returns a description of what counts as true, if set; anything else counts as false.abstract Optional<ClassifierContent> Returns the yes-or-no question, if set.abstract Question.Binary.Builder
-
Method Details
-
instructions
Returns the yes-or-no question, if set.- Specified by:
instructionsin interfaceQuestion
-
criteria
Returns a description of what counts as true, if set; anything else counts as false. -
builder
-
toBuilder
-