Reasoning strategies
Use the Reasoning node to answer with chain of thought, self-consistency, decomposition, tree or graph of thoughts, MCTS, backtracking, self-refine, Reflexion, debate, mixture of agents, step-back or program of thought.
The Reasoning node answers a question (with optional context) using an explicit reasoning strategy, records the whole explored tree, and returns answer, reasoning (the chosen path) and result (the explored tree: ids, parents, text, score, visits, status, plus the call count).
Template Think it through is set to tree of thoughts and outputs the explored thoughts so you can see the search.
The twelve methods
| Method | What it does | Key settings | Cost |
|---|---|---|---|
chain_of_thought |
Step-by-step reasoning, then the answer. With samples > 1: self-consistency, a majority vote over independent chains. |
samples |
1 × samples |
decomposition |
Least-to-most: split into sub-questions, answer them in order, then the question. | max_subquestions |
low |
tree_of_thoughts |
Propose branching next steps per state, score them in one call, keep the best beam_width, up to depth. |
branching, beam_width, depth |
medium–high |
graph_of_thoughts |
Generate solutions, score them, aggregate the best into a node with several parents, refine while the score improves. | refinements |
medium–high |
mcts |
Monte Carlo tree search: UCT selection, model-proposed expansion, a model-estimated value as the simulation result, back-propagation; answers along the path with the best mean value. | iterations, branching |
high |
backtracking |
Depth-first search with a validity check per step; rejected steps try the next alternative, dead ends back up. | branching, depth |
medium |
self_refine |
Draft → critique (issues, good_enough) → revise, until the critique finds nothing or rounds run out. |
rounds |
low–medium |
reflexion |
Attempt → self-evaluation (correct, score, feedback) → a one-line lesson → retry with all lessons. Returns the first correct attempt, else the best scored. |
rounds |
medium |
debate |
agents debaters (or one per entry in models) answer, then read each other and revise for rounds - 1 rounds; a strict majority wins, else a neutral judge decides. |
agents, models, rounds |
agents × rounds |
mixture_of_agents |
Proposers answer in rounds layers, each seeing the previous layer; an aggregator synthesises the last. |
agents, models, rounds |
agents × rounds |
step_back |
First name the underlying principle, then solve with it. | — | 2 calls |
program_of_thought |
The model writes one arithmetic expression; the safe calculator evaluates it (no code execution); up to two corrections if it does not evaluate. | — | low |
Budgets
Search methods trade model calls for quality, so every method is bounded:
max_llm_calls(default 40) andtoken_budget(80,000) stop the search;- when they run out, the node answers from the best path found so far with one final call allowed past the limit, and marks the result
stopped_early; - proposing and sampling use
temperature(0.7); scoring and checking use 0; max_tokens(1200) applies per call;reasoning_effortapplies to reasoning models.
Choosing a method
| Problem | Try |
|---|---|
| Arithmetic word problems | program_of_thought, or chain_of_thought with samples: 5 |
| Multi-hop questions | decomposition |
| Puzzles, planning, problems with dead ends | tree_of_thoughts, backtracking, mcts |
| Writing that must meet a bar | self_refine |
| Tasks with checkable answers and retries | reflexion |
| Contested or judgement questions | debate (across models), mixture_of_agents |
| Physics/chemistry/principle questions | step_back |
With modern reasoning models (which already think internally) simple methods often match search methods at a fraction of the cost. Compare on your own questions with the Evaluation Lab.
Example
Ask Think it through: A bat and a ball cost 1.10 in total. The bat costs 1.00 more than the ball. How much does the ball cost? Tree of thoughts, self-consistency and MCTS all answered 0.05 in testing. Switch method and compare the explored thoughts and call counts.
Limits
MCTS uses model value estimates instead of full rollouts, and backtracking relies on the model’s step checks: both are only as good as the model’s judgement. Debate and mixture across models must use one provider. Reasoning strategies do not yet run inside the Agent loop itself.
Theory
Each method, the papers behind it and when it helps: Reasoning strategies in the handbook.

