Class AbstractAgentInvoker
java.lang.Object
dev.langchain4j.agentic.internal.AbstractAgentInvoker
- All Implemented Interfaces:
AgentInvoker, InternalAgent, AgentListenerProvider, AgentInstance
- Direct Known Subclasses:
MethodAgentInvoker, UntypedAgentInvoker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentId()voidbooleanasync()booleaninthashCode()invoke(DefaultAgenticScope agenticScope, Object agent, AgentInvocationArguments args) listener()method()name()parent()voidsetParent(AgentInstance parent) toInvocationArguments(AgenticScope agenticScope) topology()toString()Class<?> type()Methods inherited from interface AgentInstance
leaf
-
Field Details
-
method
-
agent
-
-
Constructor Details
-
AbstractAgentInvoker
-
-
Method Details
-
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
-
arguments
- Specified by:
argumentsin interfaceAgentInstance
-
subagents
- Specified by:
subagentsin interfaceAgentInstance
-
async
public boolean async()- Specified by:
asyncin interfaceAgentInstance
-
toInvocationArguments
public AgentInvocationArguments toInvocationArguments(AgenticScope agenticScope) throws MissingArgumentException - Specified by:
toInvocationArgumentsin interfaceAgentInvoker- Throws:
MissingArgumentException
-
invoke
public Object invoke(DefaultAgenticScope agenticScope, Object agent, AgentInvocationArguments args) throws AgentInvocationException - Specified by:
invokein interfaceAgentInvoker- Throws:
AgentInvocationException
-
listener
- Specified by:
listenerin interfaceAgentListenerProvider
-
topology
- Specified by:
topologyin interfaceAgentInstance
-
method
- Specified by:
methodin interfaceAgentInvoker
-
parent
- Specified by:
parentin interfaceAgentInstance
-
equals
-
hashCode
-
toString
-
setParent
- Specified by:
setParentin interfaceInternalAgent
-
appendId
- Specified by:
appendIdin interfaceInternalAgent
-