Package dev.langchain4j.agentic.internal
Class AgentUtil
java.lang.Object
dev.langchain4j.agentic.internal.AgentUtil
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<AgentExecutor> agentsToExecutors
(Object... agents) static AgentExecutor
static AgentExecutor
agentToExecutor
(Object agent) getAnnotatedMethodOnClass
(Class<?> clazz, Class<? extends Annotation> annotation) static Object[]
methodInvocationArguments
(AgenticScope agenticScope, Method method) static Object[]
methodInvocationArguments
(AgenticScope agenticScope, List<AgentUtil.AgentArgument> agentArguments) static Method
validateAgentClass
(Class<?> agentServiceClass)
-
Method Details
-
agentsToExecutors
-
agentToExecutor
-
agentToExecutor
-
getAnnotatedMethodOnClass
public static Optional<Method> getAnnotatedMethodOnClass(Class<?> clazz, Class<? extends Annotation> annotation) -
methodInvocationArguments
-
methodInvocationArguments
public static Object[] methodInvocationArguments(AgenticScope agenticScope, List<AgentUtil.AgentArgument> agentArguments) throws MissingArgumentException - Throws:
MissingArgumentException
-
validateAgentClass
-