Class AbstractAgentInvocationHandler
java.lang.Object
dev.langchain4j.agentic.internal.AbstractAgentInvocationHandler
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
LoopAgentServiceImpl.LoopInvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Consumer
<AgentResponse> protected final Consumer
<AgentRequest> protected final String
protected final String
protected final String
protected final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractAgentInvocationHandler
(AbstractService<?, ?> workflowService) protected
AbstractAgentInvocationHandler
(AbstractService<?, ?> service, DefaultAgenticScope agenticScope) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
accessChatMemory
(String methodName, Object memoryId) protected abstract InvocationHandler
createSubAgentWithAgenticScope
(DefaultAgenticScope agenticScope) protected abstract Object
doAgentAction
(DefaultAgenticScope agenticScope) protected Object
result
(DefaultAgenticScope agenticScope, Object result) withAgenticScope
(DefaultAgenticScope agenticScope)
-
Field Details
-
name
-
uniqueName
-
description
-
outputName
-
beforeListener
-
afterListener
-
-
Constructor Details
-
AbstractAgentInvocationHandler
-
AbstractAgentInvocationHandler
protected AbstractAgentInvocationHandler(AbstractService<?, ?> service, DefaultAgenticScope agenticScope)
-
-
Method Details
-
withAgenticScope
-
invoke
-
result
-
accessChatMemory
-
doAgentAction
-
createSubAgentWithAgenticScope
protected abstract InvocationHandler createSubAgentWithAgenticScope(DefaultAgenticScope agenticScope)
-