Table of Contents

Enum TreeSearchStrategy

Namespace
AiDotNet.Enums
Assembly
AiDotNet.dll

Tree search strategies for exploring the reasoning space in Tree-of-Thoughts.

public enum TreeSearchStrategy

Fields

BestFirst = 2

Always explores the highest-scored node next. Good for efficient exploration of promising paths.

BreadthFirst = 0

Explores all nodes at each depth level before going deeper. Good for comprehensive shallow exploration.

DepthFirst = 1

Explores one branch fully before backtracking. Good for deep reasoning along specific paths.