Class Answer.ChoiceAnswer
java.lang.Object
com.google.adk.classifiers.Answer.ChoiceAnswer
- All Implemented Interfaces:
Answer
- Enclosing interface:
Answer
The answer to a
Question.Choice question.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Answer
Answer.BinaryAnswer, Answer.ChoiceAnswer, Answer.RefusalAnswer, Answer.ScoreAnswerModifier and TypeInterfaceDescriptionstatic classThe answer to aQuestion.Binaryquestion.static classThe answer to aQuestion.Choicequestion.static enumThe answer to a question that the provider declined to answer.static classThe answer to aQuestion.Scorequestion. -
Method Summary
Modifier and TypeMethodDescriptionstatic Answer.ChoiceAnswer.Builderbuilder()abstract Stringchoice()Returns the most likely label.Returns the provider's confidence in the answer, in [0, 1], if it reports one.Returns each label of the question mapped to its probability, in [0, 1].abstract Answer.ChoiceAnswer.Builder
-
Method Details
-
choice
Returns the most likely label. -
probabilities
-
confidence
-
builder
-
toBuilder
-