Uses of Class
dev.langchain4j.agentic.patterns.decisionrouter.DecisionRouterPlanner.Builder
Packages that use DecisionRouterPlanner.Builder
-
Uses of DecisionRouterPlanner.Builder in dev.langchain4j.agentic.patterns.decisionrouter
Methods in dev.langchain4j.agentic.patterns.decisionrouter that return DecisionRouterPlanner.BuilderModifier and TypeMethodDescriptionDecisionRouterPlanner.Builder.activationThreshold(Double activationThreshold) Sets the minimum probability of "yes" for a subagent to be invoked, strictly between 0 and 1.DecisionRouterPlanner.builder()DecisionRouterPlanner.Builder.choiceQuestion(String choiceQuestion) Sets the question asked to choose among the subagents, which are its options, when the router has no activation threshold.DecisionRouterPlanner.Builder.decisionModel(DecisionModel decisionModel) Sets the decision model choosing the subagents to invoke.DecisionRouterPlanner.Builder.relevanceQuestionTemplate(PromptTemplate relevanceQuestionTemplate) Sets the template of the yes/no question asked for each subagent when the router has an activation threshold, which must contain the{{name}}or the{{description}}variable (the name and the description of the subagent, or its name when it has no description).