Skip to content

Commit c172355

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: Add None check for agent_info in evals.py
PiperOrigin-RevId: 853445012
1 parent 937d5af commit c172355

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vertexai/_genai/evals.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,7 @@ def create_evaluation_run(
16081608
)
16091609
if (
16101610
dataset.candidate_name
1611+
and agent_info
16111612
and agent_info.name
16121613
and dataset.candidate_name != agent_info.name
16131614
):

0 commit comments

Comments
 (0)