Class ThoughtNode<T>
- Namespace
- AiDotNet.RetrievalAugmentedGeneration.Models
- Assembly
- AiDotNet.dll
Represents a node in the Tree-of-Thoughts reasoning tree.
public class ThoughtNode<T>
Type Parameters
TThe numeric data type used for calculations.
- Inheritance
-
ThoughtNode<T>
- Inherited Members
Properties
Children
Child nodes branching from this thought.
public List<ThoughtNode<T>> Children { get; set; }
Property Value
- List<ThoughtNode<T>>
Depth
Depth of this node in the tree (0 = root).
public int Depth { get; set; }
Property Value
EvaluationScore
Evaluation score for this thought (0-1, higher is better).
public double EvaluationScore { get; set; }
Property Value
Parent
Parent node in the tree (null for root).
public ThoughtNode<T>? Parent { get; set; }
Property Value
- ThoughtNode<T>
RetrievedDocuments
Documents retrieved for this thought.
public List<Document<T>> RetrievedDocuments { get; set; }
Property Value
Thought
The reasoning thought or statement at this node.
public string Thought { get; set; }