Class ReasoningPath

java.lang.Object
com.tnsai.reasoning.ReasoningPath

public final class ReasoningPath extends Object
Represents a single reasoning path in self-consistency or tree-of-thoughts execution.

A reasoning path contains the full chain of reasoning and the extracted final answer.

  • Method Details

    • getPathId

      public int getPathId()
      Gets the path identifier (0-based index).
    • getReasoningChain

      public String getReasoningChain()
      Gets the full reasoning chain text.
    • getExtractedAnswer

      public String getExtractedAnswer()
      Gets the extracted final answer from this reasoning path.
    • getTemperature

      public double getTemperature()
      Gets the temperature used for this path.
    • getTokenCount

      public int getTokenCount()
      Gets the token count for this path.
    • getDuration

      public Duration getDuration()
      Gets the execution duration.
    • builder

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

      public String toString()
      Overrides:
      toString in class Object