Package dev.langchain4j.agentic.internal
Interface AgentInvoker
- All Known Implementing Classes:
MethodAgentInvoker,UntypedAgentInvoker
public interface AgentInvoker
-
Method Summary
Modifier and TypeMethodDescriptionstatic AgentInvokerfromMethod(AgentSpecification agent, Method method) static AgentInvokerfromMethodAndSpec(Method method, String name, String description, String outputName) default Objectmethod()name()optionalParameterName(Parameter parameter) static StringparameterName(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
-