Package dev.langchain4j.service.decision
package dev.langchain4j.service.decision
-
ClassDescriptionChoice<E>The answer to a question of a decision service that chooses one of several options: the chosen option, the probability of each option and, if the model reports one, a confidence.The question a decision model answers for a method of a decision service, or for a field of the object a method returns.The result of a decision service method together with the underlying
DecisionResponse, which gives access to the raw answers (including probabilities), the model name and the token usage.Creates implementations of Java interfaces whose methods are answered by aDecisionModel.Builds decision services.The answer to a question of a decision service that places the input on an ordered scale: the mean level, the probability of each level and, if the model reports one, a confidence.Scale.Builder<E extends Enum<E>>The question aThresholdProvideris asked the threshold for.Provides the threshold forbooleananswers of a decision service: the answer istruewhen the probability of "yes" is greater than or equal to the threshold.