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)
-
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
-