Uses of Class
dev.langchain4j.model.chat.router.DecisionModelChatModelRouter.Builder
Packages that use DecisionModelChatModelRouter.Builder
-
Uses of DecisionModelChatModelRouter.Builder in dev.langchain4j.model.chat.router
Methods in dev.langchain4j.model.chat.router that return DecisionModelChatModelRouter.BuilderModifier and TypeMethodDescriptionDecisionModelChatModelRouter.builder()DecisionModelChatModelRouter.Builder.decisionModel(DecisionModel decisionModel) Sets the decision model that selects the route.DecisionModelChatModelRouter.Builder.fallbackStrategy(DecisionModelChatModelRouter.FallbackStrategy fallbackStrategy) Sets what happens when the decision model fails.DecisionModelChatModelRouter.Builder.maxMessageLength(Integer maxMessageLength) Sets the maximum length, in characters, of the text of each message the decision model receives, other than system messages, and of the arguments of each tool call.DecisionModelChatModelRouter.Builder.maxMessages(Integer maxMessages) Sets the maximum number of messages of the conversation that the decision model receives: the last messages of the request, plus the last user message if it is older.DecisionModelChatModelRouter.Builder.messageFilter(Predicate<? super ChatMessage> messageFilter) Sets which messages of the conversation the decision model receives; it also applies to the last user message.DecisionModelChatModelRouter.Builder.minProbability(Double minProbability) Sets the minimum probability of the chosen route.Sets the question asked to choose between the routes, whose descriptions are the options.Constructors in dev.langchain4j.model.chat.router with parameters of type DecisionModelChatModelRouter.BuilderModifierConstructorDescriptionprotected