Skip to content

docs: fix Agent reflection API in home.mdx marketing snippet#216

Open
MervinPraison wants to merge 1 commit intomainfrom
claude/issue-204-20260422-0445
Open

docs: fix Agent reflection API in home.mdx marketing snippet#216
MervinPraison wants to merge 1 commit intomainfrom
claude/issue-204-20260422-0445

Conversation

@MervinPraison
Copy link
Copy Markdown
Owner

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

  • Fixed invalid reflection parameters in home.mdx
  • Added proper imports for ReflectionConfig
  • Added working instructions parameter for complete examples
  • Tested both simple and advanced examples - no TypeError

Testing

Both examples confirmed to work without errors.

Fixes #204

Generated with Claude Code

- 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>
Copilot AI review requested due to automatic review settings April 22, 2026 04:48
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 22, 2026

Warning

Rate limit exceeded

@MervinPraison has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 57 minutes and 45 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d0d7ee55-07b7-4736-87fd-5296a5781f69

📥 Commits

Reviewing files that changed from the base of the PR and between 95ceda2 and b7ffef9.

📒 Files selected for processing (1)
  • docs/home.mdx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-204-20260422-0445

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs] Architectural drift: home.mdx marketing snippet vs Agent reflection surface

2 participants