# What is Tree-of-thoughts? Definition and meaning

A search over multiple partial reasoning paths with evaluation and backtracking.

## Definition

**Tree-of-thoughts**: A search over multiple partial reasoning paths with evaluation and backtracking.

In short: Exploring several reasoning branches.

## When it is used

Problems where one chain of thought often fails.

## Where it fits

Tree-of-thoughts belongs to **Patterns** in the [Agentic AI](/topics/agentic-ai) topic. These are the other terms in the same group:

- **[ReAct loop](/glossary/react-loop)**: An agent pattern in which the model writes a thought, takes an action with a tool, observes the result and repeats.
- **[Plan-and-execute](/glossary/plan-and-execute)**: A pattern where one step produces a plan and later steps execute and revise it.
- **[Reflection](/glossary/reflection)**: A pattern where the model reviews its output, finds mistakes and revises it before finishing.
- **[Orchestrator-workers](/glossary/orchestrator-workers)**: One model breaks down a task dynamically and hands subtasks to workers, then combines their results.
- **[Multi-agent systems](/glossary/multi-agent-systems)**: A design in which specialized agents with separate contexts divide work and exchange results.
- **[Human-in-the-loop](/glossary/human-in-the-loop)**: Places human review at defined points of an automated workflow, especially before consequential actions.
- **[LLM-as-judge](/glossary/llm-as-judge)**: A model scores or compares responses against a rubric.
- **[Guardrails](/glossary/guardrails)**: Checks on inputs, outputs and actions that block unsafe, off-topic or malformed behaviour.

## Learn more

The full guide to **[Tree-of-thoughts](/tools/tree-of-thoughts)** explains how it works, when to use it and how it compares with the alternatives, with examples. The [glossary](/glossary) lists every term on the site from A to Z.

Previous term: [Transformers](/glossary/transformers) · Next term: [Trino](/glossary/trino)
