Interface AgentInvoker
- All Superinterfaces:
AgentInstance, AgentSpecification
- All Known Implementing Classes:
A2AClientAgentInvoker, MethodAgentInvoker, UntypedAgentInvoker
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentInvokerfromMethod(AgentSpecification spec, Method method) static AgentInvokerfromSpec(AgentSpecsProvider spec, Method agenticMethod, String name, String agentId) default Objectinvoke(AgenticScope agenticScope, Object agent, AgentInvocationArguments args) method()optionalParameterName(Parameter parameter) static StringparameterName(Parameter parameter) toInvocationArguments(AgenticScope agenticScope) Methods inherited from interface AgentInstance
agentId, arguments, description, name, outputKeyMethods inherited from interface AgentSpecification
afterInvocation, async, beforeInvocation
-
Field Details
-
LOG
static final org.slf4j.Logger LOG
-
-
Method Details
-
method
Method method() -
toInvocationArguments
AgentInvocationArguments toInvocationArguments(AgenticScope agenticScope) throws MissingArgumentException - Throws:
MissingArgumentException
-
invoke
default Object invoke(AgenticScope agenticScope, Object agent, AgentInvocationArguments args) throws AgentInvocationException - Throws:
AgentInvocationException
-
fromSpec
static AgentInvoker fromSpec(AgentSpecsProvider spec, Method agenticMethod, String name, String agentId) -
fromMethod
-
parameterName
-
optionalParameterName
-