Enum Class SupervisorContextStrategy

java.lang.Object
java.lang.Enum<SupervisorContextStrategy>
dev.langchain4j.agentic.supervisor.SupervisorContextStrategy
All Implemented Interfaces:
Serializable, Comparable<SupervisorContextStrategy>, Constable

public enum SupervisorContextStrategy extends Enum<SupervisorContextStrategy>
Strategy for providing context to the supervisor agent.
  • Enum Constant Details

    • CHAT_MEMORY

      public static final SupervisorContextStrategy CHAT_MEMORY
      Use only the supervisors ChatMemory (default).
    • SUMMARIZATION

      public static final SupervisorContextStrategy SUMMARIZATION
      Use only a summarization of the interaction of the supervisor with its sub-agents.
    • CHAT_MEMORY_AND_SUMMARIZATION

      public static final SupervisorContextStrategy CHAT_MEMORY_AND_SUMMARIZATION
      Use both the supervisor's ChatMemory and a summarization of the interaction of the supervisor with its sub-agents.
  • Method Details

    • values

      public static SupervisorContextStrategy[] 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

      public static SupervisorContextStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null