Package com.tnsai.reasoning
Class ReasoningPath
java.lang.Object
com.tnsai.reasoning.ReasoningPath
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for ReasoningPath. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReasoningPath.Builderbuilder()Creates a new builder for ReasoningPath.Gets the execution duration.Gets the extracted final answer from this reasoning path.intGets the path identifier (0-based index).Gets the full reasoning chain text.doubleGets the temperature used for this path.intGets the token count for this path.toString()
-
Method Details
-
getPathId
public int getPathId()Gets the path identifier (0-based index). -
getReasoningChain
Gets the full reasoning chain text. -
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
Gets the execution duration. -
builder
Creates a new builder for ReasoningPath. -
toString
-