---
library: "bootstrap"
slug: "TreeOfThoughts"
name: "TreeOfThoughts"
ref: "TreeOfThoughts#8b8c"
hash: "sema:TreeOfThoughts#mh:SHA-256:8b8c49c9d68b7b09e89b3c4f98d1c66d20dce23c0f2838ba90633aa51114ef9b"
type: "Reasoning"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/TreeOfThoughts"
---

# TreeOfThoughts

Branching exploration (Macro for Think(Tree))

Mind · Reasoning

## Mechanism

The canonical implementation of branching reasoning. Instantiates the '[Think](https://semahash.org/vocabularies/bootstrap/patterns/Think.md)' primitive with a branching '[Tree](https://semahash.org/vocabularies/bootstrap/patterns/Tree.md)' topology. Enables exploration of multiple reasoning paths with backtracking or pruning. Utilizes [Tree](https://semahash.org/vocabularies/bootstrap/patterns/Tree.md), [ChainOfThought](https://semahash.org/vocabularies/bootstrap/patterns/ChainOfThought.md), [Think](https://semahash.org/vocabularies/bootstrap/patterns/Think.md).

## Parameters

- breadth: type=PositiveInteger, range=unspecified, description=Maximum parallel reasoning branches per node
- depth: type=Integer, range=[1, 20], description=Maximum reasoning tree depth

## Signature

- Think(Tree)

## Where this came from

—

## Builds on

- [Think](https://semahash.org/vocabularies/bootstrap/patterns/Think.md) (references)
- [Tree](https://semahash.org/vocabularies/bootstrap/patterns/Tree.md) (references)
- [ChainOfThought](https://semahash.org/vocabularies/bootstrap/patterns/ChainOfThought.md) (references)

## Related

- [RecursionDive](https://semahash.org/vocabularies/bootstrap/patterns/RecursionDive.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: TreeOfThoughts#8b8c
- Hash: sema:TreeOfThoughts#mh:SHA-256:8b8c49c9d68b7b09e89b3c4f98d1c66d20dce23c0f2838ba90633aa51114ef9b

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/TreeOfThoughts
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/TreeOfThoughts.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
