Class P2PPlanner
java.lang.Object
dev.langchain4j.agentic.patterns.p2p.P2PPlanner
- All Implemented Interfaces:
Planner
-
Constructor Summary
ConstructorsConstructorDescriptionP2PPlanner(int maxAgentsInvocations) P2PPlanner(int maxAgentsInvocations, BiPredicate<AgenticScope, Integer> exitCondition) P2PPlanner(int maxAgentsInvocations, Predicate<AgenticScope> exitCondition) P2PPlanner(ChatModel chatModel, int maxAgentsInvocations, BiPredicate<AgenticScope, Integer> exitCondition) P2PPlanner(ChatModel chatModel, int maxAgentsInvocations, Predicate<AgenticScope> exitCondition) P2PPlanner(Predicate<AgenticScope> exitCondition) -
Method Summary
Modifier and TypeMethodDescriptionfirstAction(PlanningContext planningContext) voidinit(InitPlanningContext initPlanningContext) nextAction(PlanningContext planningContext)
-
Constructor Details
-
P2PPlanner
public P2PPlanner() -
P2PPlanner
public P2PPlanner(int maxAgentsInvocations) -
P2PPlanner
-
P2PPlanner
-
P2PPlanner
-
P2PPlanner
public P2PPlanner(ChatModel chatModel, int maxAgentsInvocations, Predicate<AgenticScope> exitCondition) -
P2PPlanner
public P2PPlanner(ChatModel chatModel, int maxAgentsInvocations, BiPredicate<AgenticScope, Integer> exitCondition)
-
-
Method Details
-
init
-
firstAction
- Specified by:
firstActionin interfacePlanner
-
nextAction
- Specified by:
nextActionin interfacePlanner
-