Interface Question
- All Known Implementing Classes:
Question.Binary, Question.Choice, Question.Score
@Experimental
public sealed interface Question
permits Question.Choice, Question.Binary, Question.Score
A typed question that a
Classifier answers: a Question.Choice, a Question.Binary, or a
Question.Score. Its instructions and criteria are ClassifierContent: text, or a JSON
object or array.
The ADK object mapper (JsonBaseModel.getMapper()) reads and writes questions in Python
ADK's JSON form, which names each kind in a type field.
-
Nested Class Summary
Nested ClassesModifier 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 TypeMethodDescriptionReturns what to decide, if set.
-
Method Details
-
instructions
Optional<ClassifierContent> instructions()Returns what to decide, if set.
-