Interface AgentInvoker
- All Superinterfaces:
AgentInstance, AgentListenerProvider, InternalAgent
- All Known Implementing Classes:
A2AClientAgentInvoker, AbstractAgentInvoker, MethodAgentInvoker, UntypedAgentInvoker
-
Method Summary
Modifier and TypeMethodDescriptionstatic AgentInvokerfromMethod(InternalAgent agent, Method method) static AgentInvokerfromSpec(AgentSpecsProvider spec, Method agenticMethod, String name) default Objectinvoke(DefaultAgenticScope agenticScope, Object agent, AgentInvocationArguments args) method()optionalParameterName(Parameter parameter) static StringparameterName(Parameter parameter) toInvocationArguments(AgenticScope agenticScope) Methods inherited from interface AgentInstance
agentId, arguments, async, description, leaf, name, outputKey, outputType, parent, subagents, topology, typeMethods inherited from interface AgentListenerProvider
listenerMethods inherited from interface InternalAgent
appendId, setParent
-
Method Details
-
method
Method method() -
toInvocationArguments
AgentInvocationArguments toInvocationArguments(AgenticScope agenticScope) throws MissingArgumentException - Throws:
MissingArgumentException
-
invoke
default Object invoke(DefaultAgenticScope agenticScope, Object agent, AgentInvocationArguments args) throws AgentInvocationException - Throws:
AgentInvocationException
-
fromSpec
-
fromMethod
-
parameterName
-
optionalParameterName
-