/ examples / consolidated_params / basic_reflection.py
basic_reflection.py
 1  """
 2  Basic Reflection Example - Agent-Centric API
 3  
 4  Demonstrates reflection (self-reflect) with consolidated params.
 5  Presets: minimal, standard, thorough
 6  """
 7  
 8  from praisonaiagents import Agent
 9  
10  # Basic: Enable reflection with preset
11  agent = Agent(
12      instructions="You are a helpful assistant that reflects on your answers.",
13      reflection="standard",  # Presets: minimal, standard, thorough
14  )
15  
16  if __name__ == "__main__":
17      response = agent.start("Explain quantum computing in simple terms.")
18      print(response)