Package com.tnsai.reasoning
Enum Class Aggregation
- All Implemented Interfaces:
Serializable,Comparable<Aggregation>,Constable
Aggregation strategies for combining multiple reasoning paths.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse LLM to synthesize the best answer from all paths.Simple majority vote - the most common answer wins.Return the first answer that appears more than threshold times.Unanimous agreement required - returns null if no consensus.Weighted voting based on reasoning chain quality. -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregationReturns the enum constant of this class with the specified name.static Aggregation[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MAJORITY_VOTE
Simple majority vote - the most common answer wins. -
WEIGHTED_VOTE
Weighted voting based on reasoning chain quality. Paths with more detailed reasoning get higher weight. -
UNANIMOUS
Unanimous agreement required - returns null if no consensus. -
THRESHOLD
Return the first answer that appears more than threshold times. -
LLM_SYNTHESIS
Use LLM to synthesize the best answer from all paths.
-
-
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
-