Package dev.langchain4j.agentic.internal
Class AbstractAgentInvocationHandler
java.lang.Object
dev.langchain4j.agentic.internal.AbstractAgentInvocationHandler
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
LoopAgentServiceImpl.LoopInvocationHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractAgentInvocationHandler
(AbstractService<?, ?> workflowService) protected
AbstractAgentInvocationHandler
(AbstractService<?, ?> workflowService, DefaultAgenticScope agenticScope) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract InvocationHandler
createSubAgentWithAgenticScope
(DefaultAgenticScope agenticScope) protected abstract Object
doAgentAction
(DefaultAgenticScope agenticScope) protected Object
result
(DefaultAgenticScope agenticScope, Object result) withAgenticScope
(DefaultAgenticScope agenticScope)
-
Field Details
-
outputName
-
-
Constructor Details
-
AbstractAgentInvocationHandler
-
AbstractAgentInvocationHandler
protected AbstractAgentInvocationHandler(AbstractService<?, ?> workflowService, DefaultAgenticScope agenticScope)
-
-
Method Details
-
withAgenticScope
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
-
result
-
doAgentAction
-
createSubAgentWithAgenticScope
protected abstract InvocationHandler createSubAgentWithAgenticScope(DefaultAgenticScope agenticScope)
-