🧠
Reasoning Patterns
Techniques that improve how agents think — making reasoning explicit, exploring alternatives, and learning from mistakes.
5 patterns
Chain-of-Thought
Basic
Prompt the LLM to show its intermediate reasoning steps before arriving at a final answer, dramatically improving accuracy on complex tasks.
ReAct
Intermediate
Interleave reasoning (thinking about what to do) with acting (using tools) in a Thought → Action → Observation loop.
Tree of Thoughts
Advanced
Explore multiple reasoning paths in a tree structure, evaluate them, and backtrack to find the best solution.
Reflexion
Advanced
The agent reflects on its past failures, stores verbal self-critiques in memory, and uses them to improve future attempts.
Self-Consistency
Intermediate
Generate multiple independent reasoning paths for the same problem and select the most consistent answer through majority voting.