Uses of Class
dev.langchain4j.model.decision.request.DecisionRequest.Builder
Packages that use DecisionRequest.Builder
-
Uses of DecisionRequest.Builder in dev.langchain4j.model.decision.request
Methods in dev.langchain4j.model.decision.request that return DecisionRequest.BuilderModifier and TypeMethodDescriptionstatic DecisionRequest.BuilderDecisionRequest.builder()DecisionRequest.Builder.input(DecisionInput input) Sets the input to evaluate.Sets the input to evaluate as text.DecisionRequest.Builder.inputContents(Content... contents) Sets the input to evaluate as contents, seeDecisionRequest.Builder.inputContents(List).DecisionRequest.Builder.inputContents(List<? extends Content> contents) Sets the input to evaluate as a list of contents, for example aTextContentand anImageContent.DecisionRequest.Builder.inputFields(Map<String, ?> fields) Sets the input to evaluate as named fields, for exampleMap.of("ticket", ticket, "plan", "enterprise").DecisionRequest.Builder.inputMessages(ChatMessage... messages) Sets the input to evaluate as a conversation, seeDecisionRequest.Builder.inputMessages(List).DecisionRequest.Builder.inputMessages(List<? extends ChatMessage> messages) Sets the input to evaluate as 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).DecisionRequest.Builder.parameters(DecisionRequestParameters parameters) Adds a question.Replaces all questions.DecisionRequest.toBuilder()Creates a builder initialized with the input, the questions and the parameters of this request.