Repository navigation
fix(agent): clamp dataset navigation max_docs to the default budget - #21755
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Apply and test the document limit internal/agent/tool/dataset_navigation.go, internal/agent/tool/dataset_navigation_test.go |
InvokableRun caps max_docs at the default maximum. The regression test checks a request of 5000 and a request of 2. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested labels: 🐞 bug, 🧪 test, go
Suggested reviewers: yuzhichang
Merge Risk: 
Minimal · up to fe48a
-
Requests cannot raise the document limit above the default. No merge-blocking risk remains established.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
A rabbit checks the document count,
And keeps requests within bounds.
Five thousand hops become the cap,
Two small hops stay on the map.
The tests confirm each measured leap.
Comment @coderabbitai help to get the list of available commands.
Fix
Clamp dataset navigation max_docs to the default budget so the model cannot raise it