mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
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:
committed by
Copybara-Service
parent
9a6b8507f0
commit
998264a5b1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user