Package dev.langchain4j.model.decision.response
package dev.langchain4j.model.decision.response
-
ClassDescriptionThe answer to a
ChoiceQuestion: the chosen option, the probability of each option and, if the model reports one, a confidence.An answer to one question of aDecisionRequest.The response of aDecisionModel: oneDecisionAnswerper question of the request, keyed by question name, together with theDecisionResponseMetadata(model name, token usage).The metadata of aDecisionResponse: theDecisionResponseMetadata.modelName()that produced the answers and theDecisionResponseMetadata.tokenUsage()the call consumed.The answer to aScaleQuestion: the mean level, the probability of each level and, if the model reports one, a confidence.The answer to aYesNoQuestion: theYesNoAnswer.probability()that the answer is "yes".