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