Enum Class Aggregation

java.lang.Object
java.lang.Enum<Aggregation>
com.tnsai.reasoning.Aggregation
All Implemented Interfaces:
Serializable, Comparable<Aggregation>, Constable

public enum Aggregation extends Enum<Aggregation>
Aggregation strategies for combining multiple reasoning paths.
  • Enum Constant Details

    • MAJORITY_VOTE

      public static final Aggregation MAJORITY_VOTE
      Simple majority vote - the most common answer wins.
    • WEIGHTED_VOTE

      public static final Aggregation WEIGHTED_VOTE
      Weighted voting based on reasoning chain quality. Paths with more detailed reasoning get higher weight.
    • UNANIMOUS

      public static final Aggregation UNANIMOUS
      Unanimous agreement required - returns null if no consensus.
    • THRESHOLD

      public static final Aggregation THRESHOLD
      Return the first answer that appears more than threshold times.
    • LLM_SYNTHESIS

      public static final Aggregation LLM_SYNTHESIS
      Use LLM to synthesize the best answer from all paths.
  • Method Details

    • values

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