We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd786a8 commit 6a29940Copy full SHA for 6a29940
1 file changed
src/google/adk/agents/remote_a2a_agent.py
@@ -534,13 +534,8 @@ async def _handle_a2a_response(
534
# Filter out thought parts from user-facing response content.
535
# Intermediate (submitted/working) events have all parts marked as
536
# thought, so non_thought_parts will be empty and we preserve them.
537
- if (
538
- event.content is not None
539
- and event.content.parts
540
- ):
541
- non_thought_parts = [
542
- p for p in event.content.parts if not p.thought
543
- ]
+ if event.content is not None and event.content.parts:
+ non_thought_parts = [p for p in event.content.parts if not p.thought]
544
if non_thought_parts:
545
event.content.parts = non_thought_parts
546
0 commit comments