Skip to content

Commit 1f7a004

Browse files
committed
fix: avoid duplicate interruption signals
1 parent 99f98b0 commit 1f7a004

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/google/adk/models/gemini_llm_connection.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ async def receive(self) -> AsyncGenerator[LlmResponse, None]:
180180
if message.server_content:
181181
content = message.server_content.model_turn
182182
if content and content.parts:
183-
llm_response = LlmResponse(
184-
content=content, interrupted=message.server_content.interrupted
185-
)
183+
llm_response = LlmResponse(content=content)
186184
if content.parts[0].text:
187185
text += content.parts[0].text
188186
llm_response.partial = True

0 commit comments

Comments
 (0)