docs: fix Agent reflection API in home.mdx marketing snippet#216
docs: fix Agent reflection API in home.mdx marketing snippet#216MervinPraison wants to merge 1 commit intomainfrom
Conversation
- Remove invalid parameters: self_reflect, reasoning, max_reflect - Replace with correct reflection=True and ReflectionConfig(max_iterations=3) - Add proper imports for ReflectionConfig - Add clear instructions parameter for working examples - Both examples tested and confirmed functional Fixes #204 Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 57 minutes and 45 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the documentation in docs/home.mdx to reflect API changes in the praisonaiagents library. The code examples have been updated to use the new reflection parameter and ReflectionConfig class, replacing the previous self_reflect and max_reflect parameters. I have no feedback to provide as there were no review comments to evaluate.
Summary
Fixes the architectural drift between marketing documentation and actual Agent API implementation.
Problem: The Self-Reflection & Reasoning section in docs/home.mdx showed invalid legacy reflection parameters that caused immediate TypeError for users copying code from the homepage.
Solution: Updated to use the current consolidated reflection API with working examples.
Changes
Testing
Both examples confirmed to work without errors.
Fixes #204
Generated with Claude Code