Package com.tnsai.prompt.aot
Class Atom
java.lang.Object
com.tnsai.prompt.aot.Atom
Represents an atomic reasoning unit in Atom of Thought (AoT) processing.
An atom is an independent, self-contained reasoning step that can be solved in isolation and later combined with other atoms to form a complete answer.
AoT vs Chain-of-Thought
CoT (Linear): Step1 → Step2 → Step3 → Answer
(error propagates)
AoT (Parallel): ┌─ Atom1 ─┐
├─ Atom2 ─┼→ Synthesis → Answer
├─ Atom3 ─┤ (error isolated)
└─ Atom4 ─┘
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAtom processing status.static enumAtom types for categorization.static class -
Method Summary
Modifier and TypeMethodDescriptionstatic Atom.Builderbuilder()floatgetId()intgetType()booleanbooleanisSolved()voidsetConfidence(float confidence) voidsetSolution(String solution) voidsetStatus(Atom.AtomStatus status) toString()
-
Method Details
-
builder
-
getId
-
getDescription
-
getPrompt
-
getType
-
getDependencies
-
getPriority
public int getPriority() -
getSolution
-
setSolution
-
getStatus
-
setStatus
-
getConfidence
public float getConfidence() -
setConfidence
public void setConfidence(float confidence) -
isSolved
public boolean isSolved() -
hasDependencies
public boolean hasDependencies() -
toString
-