Class SupervisorPlanner
java.lang.Object
dev.langchain4j.agentic.supervisor.SupervisorPlanner
- All Implemented Interfaces:
ChatMemoryAccessProvider, Planner
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSupervisorPlanner(ChatModel chatModel, ChatMemoryProvider chatMemoryProvider, int maxAgentsInvocations, SupervisorContextStrategy contextStrategy, SupervisorResponseStrategy responseStrategy, Function<AgenticScope, String> requestGenerator, String outputKey, Function<AgenticScope, Object> output) -
Method Summary
Modifier and TypeMethodDescriptionchatMemoryAccess(AgenticScope agenticScope) voidinit(InitPlanningContext initPlanningContext) nextAction(PlanningContext planningContext) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Planner
as, call, call, done, done, firstAction, noOp, terminated, topology
-
Field Details
-
SUPERVISOR_CONTEXT_KEY
- See Also:
-
SUPERVISOR_CONTEXT_PREFIX
- See Also:
-
-
Constructor Details
-
SupervisorPlanner
public SupervisorPlanner(ChatModel chatModel, ChatMemoryProvider chatMemoryProvider, int maxAgentsInvocations, SupervisorContextStrategy contextStrategy, SupervisorResponseStrategy responseStrategy, Function<AgenticScope, String> requestGenerator, String outputKey, Function<AgenticScope, Object> output)
-
-
Method Details
-
init
-
nextAction
- Specified by:
nextActionin interfacePlanner
-
chatMemoryAccess
- Specified by:
chatMemoryAccessin interfaceChatMemoryAccessProvider
-