Skip to content
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/google/adk/models/gemini_llm_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,11 @@ async def receive(self) -> AsyncGenerator[LlmResponse, None]:
if text:
yield self.__build_full_text_response(text)
text = ''
else:
# this condition prevents duplicate interruption signals
if (
not (content and content.parts)
and not message.server_content.grounding_metadata
):
yield LlmResponse(
interrupted=message.server_content.interrupted,
model_version=self._model_version,
Expand Down