Package dev.langchain4j.agentic.internal
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<AgenticScope> protected Stringprotected Function<ErrorContext, ErrorRecoveryResult> protected Stringprotected Function<AgenticScope, Object> protected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractService(Class<T> agentServiceClass, Method agenticMethod) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<AgentExecutor> beforeCall(Consumer<AgenticScope> beforeCall) description(String description) errorHandler(Function<ErrorContext, ErrorRecoveryResult> errorHandler) protected booleanoutput(Function<AgenticScope, Object> output) outputName(String outputName) subAgents(List<AgentExecutor> agentExecutors)
-
Field Details
-
agentServiceClass
-
beforeCall
-
name
-
description
-
outputName
-
output
-
errorHandler
-
-
Constructor Details
-
AbstractService
-
-
Method Details
-
beforeCall
-
name
-
description
-
outputName
-
output
-
subAgents
-
subAgents
-
errorHandler
-
agentExecutors
-
hasOutputFunction
protected boolean hasOutputFunction()
-