Skip to content

Commit 998264a

Browse files
ankursharmascopybara-github
authored andcommitted
fix: Only exclude scores that are None
Scores with values 0 (or 0.0) were also getting excluded. PiperOrigin-RevId: 817658059
1 parent 9a6b850 commit 998264a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/google/adk/evaluation/agent_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def _process_metrics_and_get_failures(
629629
scores = [
630630
m.eval_metric_result.score
631631
for m in eval_metric_results_with_invocations
632-
if m.eval_metric_result.score
632+
if m.eval_metric_result.score is not None
633633
]
634634

635635
if scores:

0 commit comments

Comments
 (0)