Reflexion is an agentic pattern where an agent critiques its own past actions. If it fails, it generates a verbal 'reflection' on why, which is stored in memory to avoid repeating the mistake.
Advanced self-correction technique.
Significantly boosts performance on coding and reasoning tasks.