Skip to content

Commit 6a29940

Browse files
committed
style: fix formatting
1 parent dd786a8 commit 6a29940

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/google/adk/agents/remote_a2a_agent.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -534,13 +534,8 @@ async def _handle_a2a_response(
534534
# Filter out thought parts from user-facing response content.
535535
# Intermediate (submitted/working) events have all parts marked as
536536
# 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-
]
537+
if event.content is not None and event.content.parts:
538+
non_thought_parts = [p for p in event.content.parts if not p.thought]
544539
if non_thought_parts:
545540
event.content.parts = non_thought_parts
546541

0 commit comments

Comments
 (0)