Class Atom

java.lang.Object
com.tnsai.prompt.aot.Atom

public class Atom extends Object
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 ─┘
 
  • Method Details

    • builder

      public static Atom.Builder builder()
    • getId

      public String getId()
    • getDescription

      public String getDescription()
    • getPrompt

      public String getPrompt()
    • getType

      public Atom.AtomType getType()
    • getDependencies

      public List<String> getDependencies()
    • getPriority

      public int getPriority()
    • getSolution

      public String getSolution()
    • setSolution

      public void setSolution(String solution)
    • getStatus

      public Atom.AtomStatus getStatus()
    • setStatus

      public void setStatus(Atom.AtomStatus status)
    • getConfidence

      public float getConfidence()
    • setConfidence

      public void setConfidence(float confidence)
    • isSolved

      public boolean isSolved()
    • hasDependencies

      public boolean hasDependencies()
    • toString

      public String toString()
      Overrides:
      toString in class Object