Class Answer.BinaryAnswer
java.lang.Object
com.google.adk.classifiers.Answer.BinaryAnswer
- All Implemented Interfaces:
Answer
- Enclosing interface:
Answer
The answer to a
Question.Binary 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.BinaryAnswer.Builderbuilder()Returns the provider's confidence in the answer, in [0, 1], if it reports one.abstract doubleReturns the probability that the statement is true, in [0, 1].abstract Answer.BinaryAnswer.Builder
-
Method Details
-
probability
public abstract double probability()Returns the probability that the statement is true, in [0, 1]. -
confidence
-
builder
-
toBuilder
-