Package dev.langchain4j.agentic.internal
Interface AgentInvoker
- All Known Implementing Classes:
A2AClientAgentInvoker
,MethodAgentInvoker
,UntypedAgentInvoker
public interface AgentInvoker
-
Method Summary
Modifier and TypeMethodDescriptionstatic AgentInvoker
fromMethod
(AgentSpecification agent, Method method) static AgentInvoker
fromMethodAndSpec
(Method method, String name, String description, String outputName) default Object
method()
name()
optionalParameterName
(Parameter parameter) static String
parameterName
(Parameter parameter) toCard()
Object[]
toInvocationArguments
(AgenticScope agenticScope)
-
Method Details
-
name
String name() -
description
String description() -
outputName
String outputName() -
method
Method method() -
toCard
String toCard() -
toInvocationArguments
- Throws:
MissingArgumentException
-
invoke
- Throws:
AgentInvocationException
-
fromMethod
-
fromMethodAndSpec
static AgentInvoker fromMethodAndSpec(Method method, String name, String description, String outputName) -
parameterName
-
optionalParameterName
-