Class AbstractService<T,S>
java.lang.Object
dev.langchain4j.agentic.internal.AbstractService<T,S>
- Direct Known Subclasses:
ConditionalAgentServiceImpl, LoopAgentServiceImpl, ParallelAgentServiceImpl, SequentialAgentServiceImpl, SupervisorAgentServiceImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Consumer<AgentResponse> protected Consumer<AgenticScope> protected Consumer<AgentRequest> protected Stringprotected Function<ErrorContext, ErrorRecoveryResult> protected Stringprotected Function<AgenticScope, Object> protected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractService(Class<T> agentServiceClass, Method agenticMethod) -
Method Summary
Modifier and TypeMethodDescriptionafterAgentInvocation(Consumer<AgentResponse> afterListener) protected List<AgentExecutor> beforeAgentInvocation(Consumer<AgentRequest> invocationListener) beforeCall(Consumer<AgenticScope> beforeCall) description(String description) errorHandler(Function<ErrorContext, ErrorRecoveryResult> errorHandler) protected booleanoutput(Function<AgenticScope, Object> output) subAgents(List<AgentExecutor> agentExecutors)
-
Field Details
-
agentServiceClass
-
beforeCall
-
name
-
description
-
outputKey
-
output
-
beforeListener
-
afterListener
-
errorHandler
-
-
Constructor Details
-
AbstractService
-
-
Method Details
-
beforeCall
-
name
-
description
-
outputKey
-
output
-
subAgents
-
subAgents
-
errorHandler
-
beforeAgentInvocation
-
afterAgentInvocation
-
agentExecutors
-
hasOutputFunction
protected boolean hasOutputFunction()
-