From ada88c15034142362662962df9d64432bf3d82c5 Mon Sep 17 00:00:00 2001 From: Ali Parvizi <91437594+alimosaed@users.noreply.github.com> Date: Thu, 24 Jul 2025 10:43:50 -0400 Subject: [PATCH] fix: include events with function response --- src/google/adk/flows/llm_flows/contents.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/google/adk/flows/llm_flows/contents.py b/src/google/adk/flows/llm_flows/contents.py index e5f584905..36871c115 100644 --- a/src/google/adk/flows/llm_flows/contents.py +++ b/src/google/adk/flows/llm_flows/contents.py @@ -226,6 +226,7 @@ def _get_contents( or not event.content.role or not event.content.parts or event.content.parts[0].text == '' + and not event.content.parts[0].function_response ): # Skip events without content, or generated neither by user nor by model # or has empty text.