Enum Class SupervisorContextStrategy
java.lang.Object
java.lang.Enum<SupervisorContextStrategy>
dev.langchain4j.agentic.supervisor.SupervisorContextStrategy
- All Implemented Interfaces:
Serializable, Comparable<SupervisorContextStrategy>, Constable
Strategy for providing context to the supervisor agent.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse only the supervisorsChatMemory
(default).Use both the supervisor'sChatMemory
and a summarization of the interaction of the supervisor with its sub-agents.Use only a summarization of the interaction of the supervisor with its sub-agents. -
Method Summary
Modifier and TypeMethodDescriptionstatic SupervisorContextStrategy
Returns the enum constant of this class with the specified name.static SupervisorContextStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHAT_MEMORY
Use only the supervisorsChatMemory
(default). -
SUMMARIZATION
Use only a summarization of the interaction of the supervisor with its sub-agents. -
CHAT_MEMORY_AND_SUMMARIZATION
Use both the supervisor'sChatMemory
and a summarization of the interaction of the supervisor with its sub-agents.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-