fix: Make all parts of a thought event be marked as thought

PiperOrigin-RevId: 857218905
This commit is contained in:
Google Team Member
2026-01-16 10:40:25 -08:00
committed by Copybara-Service
parent 7dc6adf4e5
commit f92d4e397f
+2 -1
View File
@@ -443,7 +443,8 @@ class RemoteA2aAgent(BaseAgent):
and event.content is not None
and event.content.parts
):
event.content.parts[0].thought = True
for part in event.content.parts:
part.thought = True
elif (
isinstance(update, A2ATaskStatusUpdateEvent)
and update.status