Package dev.langchain4j.model.decision.request
package dev.langchain4j.model.decision.request
-
ClassDescriptionA question that selects exactly one option out of a named set, answered with the chosen option and the probability of each option (see
ChoiceAnswer).The input of aDecisionRequest: what the questions are answered about.The kind of aDecisionInput.A request to aDecisionModel: theDecisionRequest.input()to evaluate and the namedDecisionRequest.questions()to answer about it.The per-call parameters of aDecisionRequest, such as theDecisionRequestParameters.modelName()to use.The default implementation ofDecisionRequestParameters.ADecisionInputmade of named fields, for example a support ticket together with the customer's plan:Map.of("ticket", ticket, "plan", "enterprise").ADecisionInputthat is a conversation: messages in the order they were exchanged, for example a chat between a user and an AI assistant, including the tools the assistant called (AiMessage.toolExecutionRequests()) and their results (ToolExecutionResultMessage).A question asked to aDecisionModel.A question that places the input on an ordered scale, answered with the mean level and the probability of each level (seeScaleAnswer).ADecisionInputthat is plain text, for example a support ticket.A yes/no question, answered with the probability that the answer is "yes" (seeYesNoAnswer).