Concept from "Agentic Reasoning" Survey (Pages 21, 23)
Reflexion implements a Generate-Critique-Revise loop for self-improvement:
- Generate: Produce an initial solution/answer
- Evaluate: Test the solution against validators (tests, criteria)
- Reflect: Analyze failures to identify errors and improvements
- Memory: Store reflections to avoid repeating mistakes
- Revise: Generate improved solution using reflections
"Reflection-based frameworks allow agents to critique and refine their own reasoning processes."
Write a function that prints numbers 1-n. For multiples of 3 print "Fizz", for multiples of 5 print "Buzz", for both print "FizzBuzz".
๐ Reflection Memory
No reflections stored yet...