Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes ToolCallAccuracy raises ZeroDivisionError when called without a…
…ny arguments. (#1685) - Fixes: #1684 1. Check for both empty dictionaries: - If both refs and preds are empty, return 1.0 as you specified in your logic. 2. Check for empty refs: - If refs is empty but preds is not, return 0.0 since there's nothing to compare. Co-authored-by: ikka <shahules786@gmail.com>
- Loading branch information