Skip to main content
Agents can review and improve their own responses before returning.
reflection is accepted on a Task for Python-SDK parity but is not yet implemented in the TypeScript SDK — passing it emits a [praisonai] … not yet honoured notice and has no effect. This feature is Python-only for now.

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