Package com.tnsai.reasoning.got
Record Class GoTResult
java.lang.Object
java.lang.Record
com.tnsai.reasoning.got.GoTResult
public record GoTResult(GoTNode root, GoTNode bestNode, List<GoTNode> allNodes, String aggregatedInsight, int totalNodes, int mergeCount, Duration duration)
extends Record
Result of a Graph of Thoughts exploration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregatedInsightrecord component.allNodes()Returns the value of theallNodesrecord component.bestNode()Returns the value of thebestNoderecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.doublefinal inthashCode()Returns a hash code value for this object.booleanintReturns the value of themergeCountrecord component.root()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalNodesrecord component.
-
Constructor Details
-
GoTResult
public GoTResult(GoTNode root, GoTNode bestNode, List<GoTNode> allNodes, String aggregatedInsight, int totalNodes, int mergeCount, Duration duration) Creates an instance of aGoTResultrecord class.- Parameters:
root- the value for therootrecord componentbestNode- the value for thebestNoderecord componentallNodes- the value for theallNodesrecord componentaggregatedInsight- the value for theaggregatedInsightrecord componenttotalNodes- the value for thetotalNodesrecord componentmergeCount- the value for themergeCountrecord componentduration- the value for thedurationrecord component
-
-
Method Details
-
getBestThought
-
getBestScore
public double getBestScore() -
hasSolution
public boolean hasSolution() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
bestNode
Returns the value of thebestNoderecord component.- Returns:
- the value of the
bestNoderecord component
-
allNodes
Returns the value of theallNodesrecord component.- Returns:
- the value of the
allNodesrecord component
-
aggregatedInsight
Returns the value of theaggregatedInsightrecord component.- Returns:
- the value of the
aggregatedInsightrecord component
-
totalNodes
public int totalNodes()Returns the value of thetotalNodesrecord component.- Returns:
- the value of the
totalNodesrecord component
-
mergeCount
public int mergeCount()Returns the value of themergeCountrecord component.- Returns:
- the value of the
mergeCountrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-