Enabling Reflection
To enable reflection, setreflection=True during agent initialization.
Configuring Reflection
You can customize the reflection process usingReflectionConfig.
When to Use Reflection?
- Coding Tasks: To catch bugs and improve code quality.
- Complex Reasoning: To verify logic and assumptions.
- Creative Writing: To refine style and tone.
Reflection increases the time and token usage for each task as it involves additional model calls for critique and revision.

