Experiment - Reflection and self-critique pattern
Problem:You have built an AI agent that performs a task, but it sometimes makes mistakes or misses opportunities to improve its answers.
Current Metrics:Agent accuracy: 75%, error rate: 25%
Issue:The agent lacks a mechanism to review its own outputs and learn from mistakes, leading to suboptimal performance.