Skip to content

Commit 7077e0c

Browse files
chore: remove orphan checks
1 parent a1da45a commit 7077e0c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/accuracy/sdk/accuracyScorer.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,12 @@ export function calculateToolCallingAccuracy(
9797

9898
function compareParams(expected: Record<string, unknown>, actual: Record<string, unknown>): number {
9999
const differences = diff(expected, actual);
100-
101100
if (differences.length === 0) {
102101
return 1;
103102
}
104103

105104
const hasOnlyAdditions = differences.every((d) => d.type === "CREATE");
106-
const hasRemovals = differences.some((d) => d.type === "REMOVE");
107-
const hasChanges = differences.some((d) => d.type === "CHANGE");
108-
109-
if (hasOnlyAdditions && !hasRemovals && !hasChanges) {
105+
if (hasOnlyAdditions) {
110106
return 0.75;
111107
}
112108

0 commit comments

Comments
 (0)