Reflection Config • AI Agent SDK

ReflectionConfig: Configuration for self-reflection.

ReflectionConfig

Defined in the Feature Configs module.

AI Agent

Configuration for self-reflection.

Consolidates: self_reflect, max_reflect, min_reflect, reflect_llm, reflect_prompt

Properties

ResponseField int

No description available.

ResponseField int

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional[str]

No description available.

Internal & Generic Methods
  • to_dict: Convert to dictionary.

Usage

python
# 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

View on GitHub

praisonaiagents/config/feature_configs.py at line 498


Related Documentation