Class ToTResult

java.lang.Object
com.tnsai.reasoning.ToTResult

public final class ToTResult extends Object
Result of a Tree of Thoughts exploration.
  • Method Details

    • getRoot

      public ThoughtNode getRoot()
      Gets the root node of the exploration tree.
    • getBestLeaf

      public Optional<ThoughtNode> getBestLeaf()
      Gets the best leaf node (highest scoring complete path).
    • getBestPath

      public String getBestPath()
      Gets the best reasoning path as a string.
    • getBestScore

      public double getBestScore()
      Gets the best path score.
    • getAllLeaves

      public List<ThoughtNode> getAllLeaves()
      Gets all leaf nodes (complete paths).
    • getTopPaths

      public List<ThoughtNode> getTopPaths(int k)
      Gets the top-k best paths.
    • getTotalNodes

      public int getTotalNodes()
      Gets the total number of nodes explored.
    • getPrunedNodes

      public int getPrunedNodes()
      Gets the number of nodes pruned.
    • getMaxDepthReached

      public int getMaxDepthReached()
      Gets the maximum depth reached in exploration.
    • getDuration

      public Duration getDuration()
      Gets the exploration duration.
    • hasSolution

      public boolean hasSolution()
      Returns true if a solution was found.
    • builder

      public static ToTResult.Builder builder()
      Creates a new builder for ToTResult.
    • toString

      public String toString()
      Overrides:
      toString in class Object