Class SupervisorAgentServiceImpl<T>
java.lang.Object
dev.langchain4j.agentic.internal.AbstractService<T, SupervisorAgentServiceImpl<T>>
dev.langchain4j.agentic.supervisor.SupervisorAgentServiceImpl<T>
- All Implemented Interfaces:
SupervisorAgentService<T>
public class SupervisorAgentServiceImpl<T>
extends AbstractService<T, SupervisorAgentServiceImpl<T>>
implements SupervisorAgentService<T>
-
Field Summary
FieldsFields inherited from class AbstractService
afterListener, agentServiceClass, beforeCall, beforeListener, description, errorHandler, name, output, outputName
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builder()
static <T> SupervisorAgentService
<T> chatMemoryProvider
(ChatMemoryProvider chatMemoryProvider) contextGenerationStrategy
(SupervisorContextStrategy contextStrategy) maxAgentsInvocations
(int maxAgentsInvocations) requestGenerator
(Function<AgenticScope, String> requestGenerator) responseStrategy
(SupervisorResponseStrategy responseStrategy) subAgents
(List<AgentExecutor> agentExecutors) supervisorContext
(String supervisorContext) Methods inherited from class AbstractService
afterAgentInvocation, agentExecutors, beforeAgentInvocation, beforeCall, description, errorHandler, hasOutputFunction, name, output, outputName, subAgents
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface SupervisorAgentService
afterAgentInvocation, beforeAgentInvocation, description, errorHandler, name, output, outputName, subAgents
-
Field Details
-
SUPERVISOR_CONTEXT_KEY
- See Also:
-
SUPERVISOR_CONTEXT_PREFIX
- See Also:
-
-
Method Details
-
build
- Specified by:
build
in interfaceSupervisorAgentService<T>
-
builder
-
builder
-
chatModel
- Specified by:
chatModel
in interfaceSupervisorAgentService<T>
-
chatMemoryProvider
- Specified by:
chatMemoryProvider
in interfaceSupervisorAgentService<T>
-
requestGenerator
public SupervisorAgentServiceImpl<T> requestGenerator(Function<AgenticScope, String> requestGenerator) - Specified by:
requestGenerator
in interfaceSupervisorAgentService<T>
-
contextGenerationStrategy
public SupervisorAgentServiceImpl<T> contextGenerationStrategy(SupervisorContextStrategy contextStrategy) - Specified by:
contextGenerationStrategy
in interfaceSupervisorAgentService<T>
-
responseStrategy
- Specified by:
responseStrategy
in interfaceSupervisorAgentService<T>
-
supervisorContext
- Specified by:
supervisorContext
in interfaceSupervisorAgentService<T>
-
subAgents
- Specified by:
subAgents
in interfaceSupervisorAgentService<T>
- Overrides:
subAgents
in classAbstractService<T, SupervisorAgentServiceImpl<T>>
-
maxAgentsInvocations
- Specified by:
maxAgentsInvocations
in interfaceSupervisorAgentService<T>
-