Class ConditionalAgentServiceImpl<T>
java.lang.Object
dev.langchain4j.agentic.internal.AbstractService<T, ConditionalAgentService<T>>
dev.langchain4j.agentic.workflow.impl.ConditionalAgentServiceImpl<T>
- All Implemented Interfaces:
ConditionalAgentService<T>, WorkflowService<ConditionalAgentService<T>, T>
public class ConditionalAgentServiceImpl<T>
extends AbstractService<T, ConditionalAgentService<T>>
implements ConditionalAgentService<T>
-
Field Summary
Fields inherited from class AbstractService
afterListener, agentServiceClass, beforeCall, beforeListener, description, errorHandler, name, output, outputName
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builder()
static <T> ConditionalAgentServiceImpl
<T> subAgent
(Predicate<AgenticScope> condition, AgentExecutor agentExecutor) subAgents
(Predicate<AgenticScope> condition, Object... agents) subAgents
(Predicate<AgenticScope> condition, List<AgentExecutor> agentExecutors) subAgents
(List<AgentExecutor> agentExecutors) Methods inherited from class AbstractService
afterAgentInvocation, agentExecutors, beforeAgentInvocation, beforeCall, description, errorHandler, hasOutputFunction, name, output, outputName
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface WorkflowService
afterAgentInvocation, beforeAgentInvocation, beforeCall, description, errorHandler, name, output, outputName
-
Method Details
-
build
- Specified by:
build
in interfaceWorkflowService<ConditionalAgentService<T>, T>
-
builder
-
builder
-
subAgents
- Specified by:
subAgents
in interfaceWorkflowService<ConditionalAgentService<T>, T>
- Overrides:
subAgents
in classAbstractService<T, ConditionalAgentService<T>>
-
subAgents
public ConditionalAgentServiceImpl<T> subAgents(Predicate<AgenticScope> condition, Object... agents) - Specified by:
subAgents
in interfaceConditionalAgentService<T>
-
subAgents
- Specified by:
subAgents
in interfaceWorkflowService<ConditionalAgentService<T>, T>
- Overrides:
subAgents
in classAbstractService<T, ConditionalAgentService<T>>
-
subAgents
public ConditionalAgentServiceImpl<T> subAgents(Predicate<AgenticScope> condition, List<AgentExecutor> agentExecutors) - Specified by:
subAgents
in interfaceConditionalAgentService<T>
-
subAgent
public ConditionalAgentServiceImpl<T> subAgent(Predicate<AgenticScope> condition, AgentExecutor agentExecutor) - Specified by:
subAgent
in interfaceConditionalAgentService<T>
-