> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reflection Config • AI Agent SDK

> ReflectionConfig: Configuration for self-reflection.

# ReflectionConfig

> Defined in the [**Feature Configs**](../modules/feature_configs) module.

<Badge color="blue">AI Agent</Badge>

Configuration for self-reflection.

Consolidates: self\_reflect, max\_reflect, min\_reflect, reflect\_llm, reflect\_prompt

## Properties

<ResponseField name="min_iterations" type="int">
  No description available.
</ResponseField>

<ResponseField name="max_iterations" type="int">
  No description available.
</ResponseField>

<ResponseField name="llm" type="Optional">
  No description available.
</ResponseField>

<ResponseField name="prompt" type="Optional">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **to\_dict**: Convert to dictionary.
</Accordion>

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Simple enable
    Agent(reflection=True)
    
    # With config
    Agent(reflection=ReflectionConfig(
        min_iterations=1,
        max_iterations=3,
        llm="gpt-4o",
        prompt="Evaluate your response for accuracy...",
    ))
```

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/config/feature_configs.py#L336">
  `praisonaiagents/config/feature_configs.py` at line 336
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Configuration Overview" icon="gear" href="/docs/configuration/index" />

  <Card title="Agent Config" icon="robot" href="/docs/configuration/agent-config" />

  <Card title="Reflection Concept" icon="mirror" href="/docs/concepts/reflection" />

  <Card title="Self Reflection" icon="brain" href="/docs/features/selfreflection" />

  <Card title="Reflection Configuration" icon="gear" href="/docs/configuration/reflection-config" />
</CardGroup>
