Class DeclarativeUtil
java.lang.Object
dev.langchain4j.agentic.declarative.DeclarativeUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Function<AgenticScope, T> agenticScopeFunction(Method functionMethod, Class<T> targetClass) static Predicate<AgenticScope> agenticScopePredicate(Method predicateMethod) static voidbuildAgentFeatures(Class<?> agentServiceClass, AgenticService<?, ?> builder) static voidcheckArguments(Method method, Class<?>... expected) static voidcheckReturnType(Method method, Class<?> expected) static voidconfigureAgent(Class<?> agentType, AgentBuilder<?, ?> agentBuilder) static voidconfigureAgent(Class<?> agentType, ChatModel chatModel, AgentBuilder<?, ?> agentBuilder, Consumer<AgenticServices.DeclarativeAgentCreationContext<?>> agentConfigurator) static <T> voidconfigureOutput(Class<T> agentServiceClass, AgenticService<?, ?> builder) static <T> TinvokeStatic(Method method, Object... args) predicateMethod(Class<?> agentServiceClass, Predicate<Method> methodSelector) selectMethod(Class<?> agentServiceClass, Predicate<Method> methodSelector)
-
Method Details
-
configureAgent
-
configureAgent
public static void configureAgent(Class<?> agentType, ChatModel chatModel, AgentBuilder<?, ?> agentBuilder, Consumer<AgenticServices.DeclarativeAgentCreationContext<?>> agentConfigurator) -
checkArguments
-
checkReturnType
-
invokeStatic
-
configureOutput
-
predicateMethod
-
buildAgentFeatures
-
selectMethod
-
agenticScopePredicate
-
agenticScopeFunction
public static <T> Function<AgenticScope, T> agenticScopeFunction(Method functionMethod, Class<T> targetClass)
-