Skip to content

Commit 30ee034

Browse files
committed
style: fix formatting
1 parent 2f37142 commit 30ee034

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
@@ -517,13 +517,8 @@ async def _handle_a2a_response(
517517
# Filter out thought parts from user-facing response content.
518518
# Intermediate (submitted/working) events have all parts marked as
519519
# thought, so non_thought_parts will be empty and we preserve them.
520-
if (
521-
event.content is not None
522-
and event.content.parts
523-
):
524-
non_thought_parts = [
525-
p for p in event.content.parts if not p.thought
526-
]
520+
if event.content is not None and event.content.parts:
521+
non_thought_parts = [p for p in event.content.parts if not p.thought]
527522
if non_thought_parts:
528523
event.content.parts = non_thought_parts
529524

0 commit comments

Comments
 (0)