use praisonai::Agent;
// Build reflection into instructions
let agent = Agent::new()
.name("Writer")
.instructions("Before providing your final answer:
1. Draft your initial response
2. Ask yourself: Is this helpful and accurate?
3. If not, revise and improve
4. Provide the improved response")
.build()?;
let response = agent.chat("Write a summary of AI advances").await?;
// Agent self-reflects and improves before responding