Uses of Class
dev.langchain4j.agentic.internal.AgentHelpers
Packages that use AgentHelpers
-
Uses of AgentHelpers in dev.langchain4j.agentic.declarative
Methods in dev.langchain4j.agentic.declarative with parameters of type AgentHelpersModifier and TypeMethodDescriptionstatic AgentConditionDeclarativeUtil.activationCondition(AgentHelpers helpers) Reads the activation condition of the given agent: the method annotated withActivationConditionwithout a value, static on the agent type or an instance method of one of its helper objects.static AgentListenerDeclarativeUtil.agentListener(AgentHelpers helpers) static voidDeclarativeUtil.buildAgentFeatures(AgentHelpers helpers, AgenticService<?, ?> builder) Applies to the builder of a workflow, planner or supervisor agent the helpers common to every kind of them: theBeforeCall, theErrorHandler, theAgentListenerSupplierand theActivationConditionwithout value.static voidDeclarativeUtil.buildListener(AgentHelpers helpers, Consumer<AgentListener> listenerRegistration) Applies theAgentListenerSupplierhelper of the given agent, if any, to the given listener registration of its builder, which composes the listener with the ones already registered.static voidDeclarativeUtil.checkNoDecisionSuppliers(AgentHelpers helpers) Checks that the given agent, built as an agent of another kind, has no helper method annotated withDecisionModelSupplierorDecisionThresholdSupplier, which would be silently ignored.static voidDeclarativeUtil.configureOutput(AgentHelpers helpers, AgenticService<?, ?> builder) DeclarativeUtil.parallelExecutor(AgentHelpers helpers) static Optional<HelperMethod> DeclarativeUtil.predicateHelper(AgentHelpers helpers, Class<? extends Annotation> annotation) Selects the condition helper method annotated with the given annotation, a static method of the agent type or an instance method of a helper object.static Optional<HelperMethod> DeclarativeUtil.predicateHelper(AgentHelpers helpers, Class<? extends Annotation> annotation, Predicate<Method> filter) Selects the condition helper method annotated with the given annotation and matching the given filter, a static method of the agent type or an instance method of a helper object. -
Uses of AgentHelpers in dev.langchain4j.agentic.internal
Methods in dev.langchain4j.agentic.internal that return AgentHelpersModifier and TypeMethodDescriptionstatic AgentHelpersThe helpers of an agent: its static methods and the instance methods of the given helper objects, which are all the ones of the agent, so a non-static helper of the type without an object to be invoked on is rejected.static AgentHelpersAgentHelpers.staticOnly(Class<?> agentType) The helpers of an agent without helper objects: its static methods only.Methods in dev.langchain4j.agentic.internal with parameters of type AgentHelpersModifier and TypeMethodDescriptionstatic AgentExecutorAgentUtil.humanInTheLoopExecutor(Method method, Object target, AgentHelpers helpers) Creates the executor of the human-in-the-loop agent implemented by the given method, a static method or an instance method of the given target, that is also one of the helper objects of the agent.static AgentExecutorAgentUtil.nonAiAgentToExecutor(Object agent, Method agenticMethod, AgentHelpers helpers) Creates the executor of the non-AI agent implemented by the given method of the given object, with the given helpers: the activation condition and the listener of the agent can be static methods of the agent type or instance methods of its helper objects, and the parameters of the agent method can be provided by aSupplierParameterResolver.