Class PlannerBasedInvocationHandler
java.lang.Object
dev.langchain4j.agentic.internal.PlannerBasedInvocationHandler
- All Implemented Interfaces:
InternalAgent, AgentInstance, InvocationHandler
public class PlannerBasedInvocationHandler
extends Object
implements InvocationHandler, AgentInstance, InternalAgent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlannerBasedInvocationHandler(AbstractServiceBuilder<?, ?> service, Supplier<Planner> plannerSupplier) -
Method Summary
Modifier and TypeMethodDescriptionagentId()voidbooleanasync()name()parent()voidsetParent(AgentInstance parent) topology()Class<?> type()withAgenticScope(DefaultAgenticScope agenticScope) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AgentInstance
leaf
-
Field Details
-
agentListener
-
-
Constructor Details
-
PlannerBasedInvocationHandler
public PlannerBasedInvocationHandler(AbstractServiceBuilder<?, ?> service, Supplier<Planner> plannerSupplier)
-
-
Method Details
-
withAgenticScope
-
invoke
-
type
- Specified by:
typein interfaceAgentInstance
-
name
- Specified by:
namein interfaceAgentInstance
-
agentId
- Specified by:
agentIdin interfaceAgentInstance
-
description
- Specified by:
descriptionin interfaceAgentInstance
-
outputType
- Specified by:
outputTypein interfaceAgentInstance
-
outputKey
- Specified by:
outputKeyin interfaceAgentInstance
-
async
public boolean async()- Specified by:
asyncin interfaceAgentInstance
-
arguments
- Specified by:
argumentsin interfaceAgentInstance
-
parent
- Specified by:
parentin interfaceAgentInstance
-
setParent
- Specified by:
setParentin interfaceInternalAgent
-
appendId
- Specified by:
appendIdin interfaceInternalAgent
-
subagents
- Specified by:
subagentsin interfaceAgentInstance
-
topology
- Specified by:
topologyin interfaceAgentInstance
-