Package com.tnsai.prompt.aot
Class AotResult
java.lang.Object
com.tnsai.prompt.aot.AotResult
Result of Atom of Thought (AoT) processing.
Contains the synthesized answer, confidence score, reasoning trace, and the individual atoms that contributed to the result.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AotResult.Builderbuilder()static AotResultCreates an empty result for empty input.static AotResultCreates a failed result.intReturns number of atoms used.getAtoms()floatReturns average confidence across all atoms.floatReturns detailed trace of atom processing.intReturns number of successfully solved atoms.Returns a summary of the AoT processing.booleanisConfident(float threshold) Returns true if confidence is above threshold.booleantoString()
-
Method Details
-
builder
-
empty
Creates an empty result for empty input. -
failed
Creates a failed result. -
getOriginalQuestion
-
getAnswer
-
getConfidence
public float getConfidence() -
isConfident
public boolean isConfident(float threshold) Returns true if confidence is above threshold. -
getReasoning
-
getAtoms
-
getAtomCount
public int getAtomCount()Returns number of atoms used. -
getSolvedAtomCount
public int getSolvedAtomCount()Returns number of successfully solved atoms. -
getAverageAtomConfidence
public float getAverageAtomConfidence()Returns average confidence across all atoms. -
isSuccess
public boolean isSuccess() -
getErrorMessage
-
getSummary
Returns a summary of the AoT processing. -
getDetailedTrace
Returns detailed trace of atom processing. -
toString
-