Class DeclarativeUtil
java.lang.Object
dev.langchain4j.agentic.declarative.DeclarativeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkArguments
(Method method, Class<?>... expected) static void
checkReturnType
(Method method, Class<?> expected) static void
configureAgent
(Class<?> agentType, AgentBuilder<?> agentBuilder) static void
configureAgent
(Class<?> agentType, ChatModel chatModel, AgentBuilder<?> agentBuilder, Consumer<AgenticServices.DeclarativeAgentCreationContext> agentConfigurator) static <T> T
invokeStatic
(Method method, Object... args)
-
Constructor Details
-
DeclarativeUtil
public DeclarativeUtil()
-
-
Method Details
-
configureAgent
-
configureAgent
public static void configureAgent(Class<?> agentType, ChatModel chatModel, AgentBuilder<?> agentBuilder, Consumer<AgenticServices.DeclarativeAgentCreationContext> agentConfigurator) -
checkArguments
-
checkReturnType
-
invokeStatic
-