Class AbstractServiceBuilder<T,S>
java.lang.Object
dev.langchain4j.agentic.internal.AbstractServiceBuilder<T,S>
- Direct Known Subclasses:
ConditionalAgentServiceImpl, LoopAgentServiceImpl, ParallelAgentServiceImpl, PlannerBasedServiceImpl, SequentialAgentServiceImpl, SupervisorAgentServiceImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Methodprotected AgentListenerprotected Consumer<AgenticScope> protected Stringprotected Function<ErrorContext, ErrorRecoveryResult> protected Executorprotected Stringprotected Function<AgenticScope, Object> protected Stringprotected final List<AgentExecutor> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractServiceBuilder(Class<T> agentServiceClass, Method agenticMethod) -
Method Summary
Modifier and TypeMethodDescriptionbeforeCall(Consumer<AgenticScope> beforeCall) build(InvocationHandler invocationHandler) description(String description) errorHandler(Function<ErrorContext, ErrorRecoveryResult> errorHandler) listener(AgentListener agentListener) output(Function<AgenticScope, Object> output) abstract StringsubAgents(List<AgentExecutor> agentExecutors)
-
Field Details
-
agentServiceClass
-
agenticMethod
-
beforeCall
-
name
-
description
-
outputKey
-
output
-
agentListener
-
subagents
-
errorHandler
-
executor
-
-
Constructor Details
-
AbstractServiceBuilder
-
-
Method Details
-
beforeCall
-
name
-
description
-
outputKey
-
outputKey
-
output
-
subAgents
-
subAgents
-
errorHandler
-
listener
-
executor
-
build
-
build
-
serviceType
-