Package dev.langchain4j.agentic.declarative
package dev.langchain4j.agentic.declarative
-
ClassDescriptionMarks a method as an A2A client agent.Marks a method as an activation condition for one or more sub-agents of a conditional agent.Marks a method to be executed after an agent invocation.Marks a method as a hook to be executed before an agent invocation.Marks a method as a supplier of the
ChatMemoryProvider
that an agent can utilize during its operation.Marks a method as a supplier of chat memory that an agent can utilize during its operation.Marks a method as a supplier of the chat model to be used by an agent.Marks a method as a definition of a conditional agent, generally used to route the agentic workflow toward one or more sub-agents according to the verification of their activation conditions.Marks a method as a supplier of content retriever that an agent can utilize during its operation.Marks a method as an error handler for a workflow agent.Marks a method as an exit condition for a loop in a loop-based agent.Marks a method as a human-in-the-loop agent.Marks a method as a supplier of response for human-in-the-loop agent.Marks a method as a definition of a loop agent, used to orchestrate the agentic workflow by invoking a series of sub-agents in a loop until a certain condition is met or a maximum number of iterations is reached.Marks a parameter that will receive the current loop iteration count in a loop-based agent.Marks a method as the output definition of a workflow agent, generally combining results from different states of theAgenticScope
.Marks a method as a definition of a parallel agent, used to orchestrate the agentic workflow by invoking a series of sub-agents in parallel.Used in combination withParallelAgent
to specify the executor that will be used to run the sub-agents in parallel.Marks a method as a supplier of a retrieval augmentor that an agent can utilize during its operation.Marks a method as a definition of a sequence agent, used to orchestrate the agentic workflow by invoking a series of sub-agents in a predefined order.Defines a sub-agent of a workflow-based or supervisor agent.Marks a method as a supervisor agent that can autonomously coordinate and invoke multiple sub-agents.Marks a method as a definition of the request that will be sent to the supervisor.Marks a method as a supplier of a tool provider that an agent can utilize during its operation.Marks a method as a supplier of tools that an agent can utilize during its operation.