Enum Class PruningStrategy

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

public enum PruningStrategy extends Enum<PruningStrategy>
Pruning strategies for Tree of Thoughts exploration.
  • Enum Constant Details

    • BEST_FIRST

      public static final PruningStrategy BEST_FIRST
      Best-first search - always expand the highest-scored node.
    • DEPTH_LIMITED

      public static final PruningStrategy DEPTH_LIMITED
      Depth-limited - explore all branches up to max depth.
    • MCTS

      public static final PruningStrategy MCTS
      Monte Carlo Tree Search - balance exploration vs exploitation.
    • GREEDY

      public static final PruningStrategy GREEDY
      Greedy - always pick the single best branch.
    • EXHAUSTIVE

      public static final PruningStrategy EXHAUSTIVE
      No pruning - explore all branches (expensive).
  • Method Details

    • values

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