Class ChoiceAnswer.Builder
java.lang.Object
dev.langchain4j.model.decision.response.ChoiceAnswer.Builder
- Enclosing class:
ChoiceAnswer
- Since:
- 1.21.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()confidence(Double confidence) options(Collection<String> options) Sets the names of the options that were offered.probabilities(Map<String, Double> probabilities) probability(String option, Double probability)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
value
-
probabilities
-
probability
-
confidence
-
options
Sets the names of the options that were offered. Usually not needed: theDecisionModelsets them after checking the answer against the question. -
build
-