Skip to main content
Enable agents to evaluate their own responses and iteratively improve quality through self-reflection.

Quick Start

1

Simple Enable

Enable reflection with defaults:
2

With Configuration

Configure reflection behavior:

Configuration Options


Common Patterns

Pattern 1: High-Quality Responses

Pattern 2: Different Model for Reflection


Best Practices

Balance quality with response time. 2-3 iterations is usually sufficient.
Customize the reflection prompt to evaluate domain-specific criteria.
More iterations and stronger models improve quality but increase cost and latency.

Self Reflection

Learn about self-reflection features

PlanningConfig

Configure planning mode