Uses of Class
dev.langchain4j.agentic.patterns.decisionscheduler.DecisionSchedulerPlanner.Builder
Packages that use DecisionSchedulerPlanner.Builder
-
Uses of DecisionSchedulerPlanner.Builder in dev.langchain4j.agentic.patterns.decisionscheduler
Methods in dev.langchain4j.agentic.patterns.decisionscheduler that return DecisionSchedulerPlanner.BuilderModifier and TypeMethodDescriptionDecisionSchedulerPlanner.Builder.activationThreshold(Double activationThreshold) Sets the minimum score for the most useful subagent to be invoked: when no subagent reaches it the planner stops.DecisionSchedulerPlanner.builder()DecisionSchedulerPlanner.Builder.decisionModel(DecisionModel decisionModel) Sets the decision model scoring the subagents and judging whether the goal has been reached.DecisionSchedulerPlanner.Builder.excludedOutputKeys(String... excludedOutputKeys) Sets the output keys of the subagents to leave out of the input of the decision model, for instance because they hold data that must not be sent to its provider.Sets the description of the goal, for instance "The reply answers every question of the customer's ticket".DecisionSchedulerPlanner.Builder.goalQuestionTemplate(PromptTemplate goalQuestionTemplate) Sets the template of the yes/no question asking whether the goal has been reached, which can use the{{goal}}variable (the goal set withDecisionSchedulerPlanner.Builder.goal(String)).DecisionSchedulerPlanner.Builder.goalThreshold(Double goalThreshold) Sets the minimum probability that the goal has been reached for the planner to stop.DecisionSchedulerPlanner.Builder.maxInvocations(Integer maxInvocations) Sets the maximum number of subagent invocations, after which the planner stops with a warning, without asking the decision model again, or fails if the result has not been written yet.DecisionSchedulerPlanner.Builder.usefulnessLevels(List<String> usefulnessLevels) Sets the levels of the usefulness question, at least 2, from the lowest to the highest.DecisionSchedulerPlanner.Builder.usefulnessQuestionTemplate(PromptTemplate usefulnessQuestionTemplate) Sets the template of the scale question asking how useful it would be to invoke a subagent now, 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), and can use the{{goal}}variable.