Tree-of-thought (ToT) prompting is useful when a decision has several plausible paths and a single chain of reasoning may overlook one. Instead of committing to the first answer, the model generates candidate approaches, evaluates their merits and drawbacks, and selects a response using stated criteria. section 2.7.7
A practical prompt can ask the model to:
- Generate multiple possible solutions or actions. section 2.7.7
- Evaluate each branch against the relevant circumstances, including its advantages and drawbacks. section 2.7.7
- Select the best-supported branch using predefined criteria, then produce the final response. section 2.7.7
Damaged-TV return
For a customer asking about a damaged TV bought last month, candidate paths include a return under a 30-day policy, a warranty claim for repair or replacement, and an exception process. The appropriate answer depends on the purchase timing, warranty, and applicable policy; listing paths alone does not establish eligibility. section 2.7.7
The same pattern can support an agent weighing shipping partners, warehouse consolidation, and bulk-shipping discounts to reduce European shipping costs. Unlike ReAct’s iterative reason–act–observe cycle, ToT explores alternatives before choosing among them. Branch evaluation makes the choice explicit, but the quality of the result still depends on the criteria used. section 6.2.5 section 2.7.7





