fix: Only exclude scores that are None

Scores with values 0 (or 0.0) were also getting excluded.

PiperOrigin-RevId: 817658059
This commit is contained in:
Ankur Sharma
2025-10-10 08:38:18 -07:00
committed by Copybara-Service
parent 9a6b8507f0
commit 998264a5b1
+1 -1
View File
@@ -629,7 +629,7 @@ class AgentEvaluator:
scores = [
m.eval_metric_result.score
for m in eval_metric_results_with_invocations
if m.eval_metric_result.score
if m.eval_metric_result.score is not None
]
if scores: