fix: toolcall error count#1562
Conversation
tusharmath
commented
Sep 16, 2025
- chore: add ErrorCounter
- chore: add more tests
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
| .adjust(&[read], &[]) | ||
| .adjust(&[read], &[]) | ||
| .adjust(&[read], &[]); // Exactly at limit |
There was a problem hiding this comment.
Test logic inconsistency with implementation. The test comment says 'Exactly at limit' but calls adjust 4 times for a limit of 3, expecting the tool to be maxed out. However, due to the bug in line 250 using > limit instead of >= limit, this test is actually testing the wrong behavior and masking the boundary condition bug.
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.