Interface AgentInvoker
- All Superinterfaces:
AgentInstance, 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, as, async, description, leaf, name, outputKey, outputType, parent, subagents, topology, typeMethods inherited from interface InternalAgent
allowStreamingOutput, appendId, listener, 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
-