Class LoopAgentServiceImpl<T>
java.lang.Object
dev.langchain4j.agentic.internal.AbstractServiceBuilder<T, LoopAgentService<T>>
dev.langchain4j.agentic.workflow.impl.LoopAgentServiceImpl<T>
- All Implemented Interfaces:
AgenticService<LoopAgentService<T>, T>, LoopAgentService<T>
public class LoopAgentServiceImpl<T>
extends AbstractServiceBuilder<T, LoopAgentService<T>>
implements LoopAgentService<T>
-
Field Summary
Fields inherited from class AbstractServiceBuilder
afterListener, agenticMethod, agentServiceClass, beforeCall, beforeListener, description, errorHandler, executor, name, output, outputKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()static LoopAgentServiceImpl<UntypedAgent> builder()static <T> LoopAgentServiceImpl<T> exitCondition(BiPredicate<AgenticScope, Integer> exitCondition) exitCondition(Predicate<AgenticScope> exitCondition) maxIterations(int maxIterations) testExitAtLoopEnd(boolean testExitAtLoopEnd) Methods inherited from class AbstractServiceBuilder
afterAgentInvocation, agentExecutors, beforeAgentInvocation, beforeCall, build, build, description, errorHandler, executor, name, output, outputKey, subAgents, subAgentsMethods 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, subAgents, subAgents
-
Constructor Details
-
LoopAgentServiceImpl
-
-
Method Details
-
build
- Specified by:
buildin interfaceAgenticService<LoopAgentService<T>, T>
-
builder
-
builder
-
maxIterations
- Specified by:
maxIterationsin interfaceLoopAgentService<T>
-
exitCondition
- Specified by:
exitConditionin interfaceLoopAgentService<T>
-
exitCondition
- Specified by:
exitConditionin interfaceLoopAgentService<T>
-
testExitAtLoopEnd
- Specified by:
testExitAtLoopEndin interfaceLoopAgentService<T>
-
serviceType
- Specified by:
serviceTypein classAbstractServiceBuilder<T, LoopAgentService<T>>
-