Skip to main content
Agents can review and improve their own responses before returning.

Quick Start

1

Simple Usage

2

With Configuration


User Interaction Flow


Configuration Levels


How It Works

  1. Generate: Agent creates initial response
  2. Review: Agent critiques its own work
  3. Improve: Agent fixes identified issues
  4. Repeat: Process continues for specified rounds

API Reference

ReflectionConfig

Complete configuration options

Best Practices

More rounds don’t always mean better results.
Enable for proposals, articles, and important content.
Use reflection with criteria for validated quality.

Criteria

Define success conditions

Agent

Create agents