kyegomez/tree-of-thoughts
Plug-and-play Python implementation of Tree of Thoughts for improving LLM problem-solving through multi-path reasoning.

Velocity · 7d
+4.1
★ / day
Trend
→steady
star history
This repository provides an implementation of the Tree of Thoughts reasoning framework, which enables Large Language Models to explore multiple solution paths when solving complex problems. Unlike linear chain-of-thought prompting, it allows deliberate backtracking and evaluation of intermediate reasoning steps. The library integrates with various LLM providers and supports evaluating different thought branches to select optimal solutions.