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 dev.langchain4j.agentic.internal.AbstractService
agentServiceClass, beforeCall, description, errorHandler, name, output, outputName -
Method Summary
Modifier and TypeMethodDescriptionbuild()builder()static <T> SupervisorAgentService<T> chatModel(dev.langchain4j.model.chat.ChatModel chatModel) 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 dev.langchain4j.agentic.internal.AbstractService
agentExecutors, beforeCall, description, errorHandler, hasOutputFunction, name, output, outputName, subAgentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.agentic.supervisor.SupervisorAgentService
description, errorHandler, name, output, outputName, subAgents
-
Field Details
-
SUPERVISOR_CONTEXT_KEY
- See Also:
-
-
Method Details
-
build
- Specified by:
buildin interfaceSupervisorAgentService<T>
-
builder
-
builder
-
chatModel
- Specified by:
chatModelin interfaceSupervisorAgentService<T>
-
requestGenerator
public SupervisorAgentServiceImpl<T> requestGenerator(Function<AgenticScope, String> requestGenerator) - Specified by:
requestGeneratorin interfaceSupervisorAgentService<T>
-
contextGenerationStrategy
public SupervisorAgentServiceImpl<T> contextGenerationStrategy(SupervisorContextStrategy contextStrategy) - Specified by:
contextGenerationStrategyin interfaceSupervisorAgentService<T>
-
responseStrategy
- Specified by:
responseStrategyin interfaceSupervisorAgentService<T>
-
supervisorContext
- Specified by:
supervisorContextin interfaceSupervisorAgentService<T>
-
subAgents
- Specified by:
subAgentsin interfaceSupervisorAgentService<T>- Overrides:
subAgentsin classAbstractService<T,SupervisorAgentServiceImpl<T>>
-
maxAgentsInvocations
- Specified by:
maxAgentsInvocationsin interfaceSupervisorAgentService<T>
-