Uses of Interface
dev.langchain4j.model.decision.response.DecisionAnswer
Packages that use DecisionAnswer
-
Uses of DecisionAnswer in dev.langchain4j.model.decision.response
Classes in dev.langchain4j.model.decision.response that implement DecisionAnswerModifier and TypeClassDescriptionfinal classThe answer to aChoiceQuestion: the chosen option, the probability of each option and, if the model reports one, a confidence.final classThe answer to aScaleQuestion: the mean level, the probability of each level and, if the model reports one, a confidence.final classThe answer to aYesNoQuestion: theYesNoAnswer.probability()that the answer is "yes".Methods in dev.langchain4j.model.decision.response with type parameters of type DecisionAnswerModifier and TypeMethodDescription<A extends DecisionAnswer>
AReturns the answer with the given name, as the given answer type.Methods in dev.langchain4j.model.decision.response that return types with arguments of type DecisionAnswerModifier and TypeMethodDescriptionDecisionResponse.answers()The answers, keyed by the names of the questions they answer.Methods in dev.langchain4j.model.decision.response with parameters of type DecisionAnswerModifier and TypeMethodDescriptionDecisionResponse.Builder.answer(String name, DecisionAnswer answer) Adds the answer to the question with the given name.Method parameters in dev.langchain4j.model.decision.response with type arguments of type DecisionAnswerModifier and TypeMethodDescriptionDecisionResponse.Builder.answers(Map<String, ? extends DecisionAnswer> answers) Replaces all answers.