Skip to content

Commit 9352f62

Browse files
committed
fix: add None guard for user_content in eval event processing
1 parent f641904 commit 9352f62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/google/adk/evaluation/evaluation_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ def convert_events_to_eval_invocations(
675675
# Skip invocations without user content — evaluations without
676676
# user input are not meaningful and would cause a Pydantic
677677
# ValidationError on Invocation.user_content.
678-
if not user_content.parts:
678+
if not (user_content and user_content.parts):
679679
continue
680680

681681
invocation_events = [

0 commit comments

Comments
 (0)