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 Stringprotected final Stringprotected final Stringprotected final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAgentInvocationHandler(AbstractService<?, ?> workflowService) protectedAbstractAgentInvocationHandler(AbstractService<?, ?> service, DefaultAgenticScope agenticScope) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectaccessChatMemory(String methodName, Object memoryId) protected abstract InvocationHandlercreateSubAgentWithAgenticScope(DefaultAgenticScope agenticScope) protected abstract ObjectdoAgentAction(DefaultAgenticScope agenticScope) protected Objectresult(DefaultAgenticScope agenticScope, Object result) withAgenticScope(DefaultAgenticScope agenticScope)
-
Field Details
-
name
-
uniqueName
-
description
-
outputKey
-
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)
-