Reflection / Self-Correction Loops

Reflection loop means the agent checks its own output and improves it before returning the final result.

flowchart LR A[Draft response] --> B[Check against criteria] B --> C{Pass?} C -- No --> D[Revise] D --> B C -- Yes --> E[Final response]

What to check

Trade-off

More reflection can improve quality, but increases latency and cost.