Class DecisionAnswer.DecisionAnswerBuilder
java.lang.Object
com.alibaba.dashscope.legacy_2x.decision.DecisionAnswer.DecisionAnswerBuilder
- Enclosing class:
- DecisionAnswer
-
Method Summary
Modifier and TypeMethodDescriptionbuild()The selected option name, only for choice questions.confidence(Double confidence) The confidence of the answer, for choice and score questions.Level index to level description, only for score questions.P(yes) in [0, 1], only for noul questions.probabilities(Map<String, Double> probabilities) The probability of each option or level; sums to 1.Probability-weighted expectation of the level index, only for score questions.toString()The question type, one of choice/noul/score.
-
Method Details
-
type
The question type, one of choice/noul/score.- Returns:
this.
-
choice
The selected option name, only for choice questions.- Returns:
this.
-
noul
P(yes) in [0, 1], only for noul questions.- Returns:
this.
-
score
Probability-weighted expectation of the level index, only for score questions. May fall between two integer levels (e.g.1.43).- Returns:
this.
-
confidence
The confidence of the answer, for choice and score questions.- Returns:
this.
-
probabilities
The probability of each option or level; sums to 1.- Returns:
this.
-
legend
Level index to level description, only for score questions.- Returns:
this.
-
build
-
toString
-