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
intNo description available.
ResponseField
intNo description available.
ResponseField
Optional[str]No description available.
ResponseField
Optional[str]No description available.
Internal & Generic Methods
- to_dict: Convert to dictionary.
Usage
# 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 GitHubpraisonaiagents/config/feature_configs.py at line 498