Interface Evaluable

All Known Implementing Classes:
GoTNode, ThoughtNode

public interface Evaluable
Contract for thought nodes that can be evaluated by a BranchEvaluator.

Implemented by both ThoughtNode (Tree of Thoughts) and GoTNode (Graph of Thoughts) to allow a single evaluator to score nodes from either structure.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the depth of this node (root = 0).
    Gets the node identifier.
    Gets the thought content at this node.
    Gets the combined thought chain from root to this node.
  • Method Details

    • getId

      String getId()
      Gets the node identifier.
    • getThought

      String getThought()
      Gets the thought content at this node.
    • getThoughtChain

      String getThoughtChain()
      Gets the combined thought chain from root to this node.
    • getDepth

      int getDepth()
      Gets the depth of this node (root = 0).