Class LoopAgentServiceImpl<T>
java.lang.Object
dev.langchain4j.agentic.internal.AbstractService<T, LoopAgentService<T>>
dev.langchain4j.agentic.workflow.impl.LoopAgentServiceImpl<T>
- All Implemented Interfaces:
LoopAgentService<T>, WorkflowService<LoopAgentService<T>, T>
public class LoopAgentServiceImpl<T>
extends AbstractService<T, LoopAgentService<T>>
implements LoopAgentService<T>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class AbstractService
afterListener, agentServiceClass, beforeCall, beforeListener, description, errorHandler, name, output, outputName
-
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 AbstractService
afterAgentInvocation, agentExecutors, beforeAgentInvocation, beforeCall, description, errorHandler, hasOutputFunction, name, output, outputName, subAgents, subAgents
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, subAgents, subAgents
-
Method Details
-
build
- Specified by:
build
in interfaceWorkflowService<LoopAgentService<T>, T>
-
builder
-
builder
-
maxIterations
- Specified by:
maxIterations
in interfaceLoopAgentService<T>
-
exitCondition
- Specified by:
exitCondition
in interfaceLoopAgentService<T>
-
exitCondition
- Specified by:
exitCondition
in interfaceLoopAgentService<T>
-
testExitAtLoopEnd
- Specified by:
testExitAtLoopEnd
in interfaceLoopAgentService<T>
-