Skip to content

Commit 63d148b

Browse files
committed
style: run autoformat.sh to fix formatting
Address rohityan's review feedback to fix formatting errors. Ran autoformat.sh which reformatted remote_a2a_agent.py and fixed import ordering in contributing samples.
1 parent a9d6acf commit 63d148b

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

contributing/samples/gepa/experiment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
from tau_bench.types import EnvRunResult
4444
from tau_bench.types import RunConfig
4545
import tau_bench_agent as tau_bench_agent_lib
46-
4746
import utils
4847

4948

contributing/samples/gepa/run_experiment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from absl import flags
2626
import experiment
2727
from google.genai import types
28-
2928
import utils
3029

3130
_OUTPUT_DIR = flags.DEFINE_string(

src/google/adk/agents/remote_a2a_agent.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -515,13 +515,8 @@ async def _handle_a2a_response(
515515
# Filter out thought parts from user-facing response content.
516516
# Intermediate (submitted/working) events have all parts marked as
517517
# thought, so non_thought_parts will be empty and we preserve them.
518-
if (
519-
event.content is not None
520-
and event.content.parts
521-
):
522-
non_thought_parts = [
523-
p for p in event.content.parts if not p.thought
524-
]
518+
if event.content is not None and event.content.parts:
519+
non_thought_parts = [p for p in event.content.parts if not p.thought]
525520
if non_thought_parts:
526521
event.content.parts = non_thought_parts
527522

0 commit comments

Comments
 (0)