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 String
protected Function
<ErrorContext, ErrorRecoveryResult> protected String
protected Function
<AgenticScope, Object> protected String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractService
(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 boolean
output
(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()
-