Class ConditionalAgentServiceImpl<T>
java.lang.Object
dev.langchain4j.agentic.internal.AbstractServiceBuilder<T, ConditionalAgentService<T>>
dev.langchain4j.agentic.workflow.impl.ConditionalAgentServiceImpl<T>
- All Implemented Interfaces:
AgenticService<ConditionalAgentService<T>, T>, ConditionalAgentService<T>
public class ConditionalAgentServiceImpl<T>
extends AbstractServiceBuilder<T, ConditionalAgentService<T>>
implements ConditionalAgentService<T>
-
Field Summary
Fields inherited from class AbstractServiceBuilder
afterListener, agenticMethod, agentServiceClass, beforeCall, beforeListener, description, errorHandler, executor, name, output, outputKey -
Constructor Summary
ConstructorsConstructorDescriptionConditionalAgentServiceImpl(Class<T> agentServiceClass, Method agenticMethod) -
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 AbstractServiceBuilder
afterAgentInvocation, agentExecutors, beforeAgentInvocation, beforeCall, build, build, description, errorHandler, executor, name, output, outputKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AgenticService
afterAgentInvocation, beforeAgentInvocation, beforeCall, description, errorHandler, name, output, outputKey
-
Constructor Details
-
ConditionalAgentServiceImpl
-
-
Method Details
-
build
- Specified by:
buildin interfaceAgenticService<ConditionalAgentService<T>, T>
-
builder
-
builder
-
subAgents
- Specified by:
subAgentsin interfaceAgenticService<ConditionalAgentService<T>, T>- Overrides:
subAgentsin classAbstractServiceBuilder<T, ConditionalAgentService<T>>
-
subAgents
public ConditionalAgentServiceImpl<T> subAgents(Predicate<AgenticScope> condition, Object... agents) - Specified by:
subAgentsin interfaceConditionalAgentService<T>
-
subAgents
- Specified by:
subAgentsin interfaceAgenticService<ConditionalAgentService<T>, T>- Overrides:
subAgentsin classAbstractServiceBuilder<T, ConditionalAgentService<T>>
-
subAgents
public ConditionalAgentServiceImpl<T> subAgents(Predicate<AgenticScope> condition, List<AgentExecutor> agentExecutors) - Specified by:
subAgentsin interfaceConditionalAgentService<T>
-
subAgent
public ConditionalAgentServiceImpl<T> subAgent(Predicate<AgenticScope> condition, AgentExecutor agentExecutor) - Specified by:
subAgentin interfaceConditionalAgentService<T>
-
serviceType
- Specified by:
serviceTypein classAbstractServiceBuilder<T, ConditionalAgentService<T>>
-