chore: refine builders - #61
Conversation
|
Warning Review limit reached
Next review available in: 49 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR standardizes consuming builder methods under a ChangesBuilder API unification
Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ 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.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/engine/bare.rs (1)
1344-1353: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winUpdate Rustdoc references left behind by the builder renames.
src/engine/bare.rs#L1344-L1353: change theswitch_modelexample at Line 917 from.context_window(8192)to.with_context_window(8192).src/tool/shield.rs#L1020-L1059: update the field-doc links at Lines 960, 965, and 972 towith_warn_threshold,with_block_threshold, andwith_pattern.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/engine/bare.rs` around lines 1344 - 1353, The Rustdoc references still use builder method names from before the renames. In src/engine/bare.rs lines 1344-1353, update the switch_model example to call with_context_window; in src/tool/shield.rs lines 1020-1059, update the field-doc links to with_warn_threshold, with_block_threshold, and with_pattern.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@CHANGELOG.md`:
- Around line 194-195: The earlier “### Added” StreamRequest builder listing
still presents renamed methods as current API. Update that listing to use the
corresponding with_* builder names, keeping the documentation consistent with
the rename described in the later changelog entry.
In `@src/structured.rs`:
- Around line 297-300: Update the documentation in RequestOptions::new to
reference Self::with_response_format instead of Self::response_format, matching
the builder method shown in the diff. Leave the with_response_format
implementation unchanged.
---
Outside diff comments:
In `@src/engine/bare.rs`:
- Around line 1344-1353: The Rustdoc references still use builder method names
from before the renames. In src/engine/bare.rs lines 1344-1353, update the
switch_model example to call with_context_window; in src/tool/shield.rs lines
1020-1059, update the field-doc links to with_warn_threshold,
with_block_threshold, and with_pattern.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 75933b9c-93e5-42e8-b718-eb29fc31c34b
📒 Files selected for processing (16)
CHANGELOG.mdsrc/api.rssrc/config.rssrc/engine/bare.rssrc/engine/bare/stream.rssrc/engine/loop_core.rssrc/hooks/builtin/auto_commit.rssrc/middleware.rssrc/middleware/memoize.rssrc/middleware/output_limit.rssrc/middleware/unknown_tool.rssrc/middleware/verify.rssrc/presets.rssrc/provider/grammar.rssrc/structured.rssrc/tool/shield.rs
No description provided.