Skip to content

Commit e3885c7

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 41ea0b3 commit e3885c7

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

contributing/samples/gepa/experiment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
from tau_bench.types import EnvRunResult
4545
from tau_bench.types import RunConfig
4646
import tau_bench_agent as tau_bench_agent_lib
47+
import utils
4748

4849

4950
def run_tau_bench_rollouts(

contributing/samples/gepa/run_experiment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import experiment
2727
import gepa_utils
2828
from google.genai import types
29+
import utils
2930

3031
_OUTPUT_DIR = flags.DEFINE_string(
3132
'output_dir',

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)