Reflexion Architecture
Domain: Agent Architectures
π― Motivation
After each attempt, the agent reflects on failures and adds self-critique to memory, improving on the next try.
π Concrete Example
Attempt 1: code fails. Reflection: βForgot to handle empty input.β Attempt 2: code with empty input handling. Reflection: βNow works but slow.β Attempt 3: optimized. Each attempt is better.
π Analogy
A student taking practice tests - after each test, they note which questions they missed and why. Before the next test, they study those areas. Each practice test improves their score.