AI Agent Design Patterns. Part 3: Reflexion Pattern
Reflexion is a pattern where an agent learns from its own mistakes through verbal reinforcement and episodic memory. I trace the evolution of self-critique from Constitutional AI to Reflexion, honestly show its limitations (doesn’t work without an external verifier), and implement a working example in Go using Eino compose.Graph with an Actor → Evaluator → Reflector → retry loop.