Skip to content

Commit 7475272

Browse files
committed
Address review comments
1 parent 542d395 commit 7475272

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

samples/agent/adk/contact_lookup/agent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,14 @@ async def stream(self, query, session_id) -> AsyncIterable[dict[str, Any]]:
255255
)
256256
is_valid = True
257257
else:
258-
# --- New Validation Steps ---
259-
# 1. Check if it validates against the A2UI_SCHEMA
258+
# --- Validation Steps ---
259+
# Check if it validates against the A2UI_SCHEMA
260260
# This will raise jsonschema.exceptions.ValidationError if it fails
261261
logger.info(
262262
"--- ContactAgent.stream: Validating against A2UI_SCHEMA... ---"
263263
)
264264
selected_catalog.validator.validate(parsed_json_data)
265-
# --- End New Validation Steps ---
265+
# --- End Validation Steps ---
266266

267267
logger.info(
268268
"--- ContactAgent.stream: UI JSON successfully parsed AND validated"

samples/agent/adk/restaurant_finder/agent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,14 @@ async def stream(self, query, session_id) -> AsyncIterable[dict[str, Any]]:
243243
try:
244244
text_part, parsed_json_data = parse_response(final_response_content)
245245

246-
# --- New Validation Steps ---
247-
# 1. Check if it validates against the A2UI_SCHEMA
246+
# --- Validation Steps ---
247+
# Check if it validates against the A2UI_SCHEMA
248248
# This will raise jsonschema.exceptions.ValidationError if it fails
249249
logger.info(
250250
"--- RestaurantAgent.stream: Validating against A2UI_SCHEMA... ---"
251251
)
252252
selected_catalog.validator.validate(parsed_json_data)
253-
# --- End New Validation Steps ---
253+
# --- End Validation Steps ---
254254

255255
logger.info(
256256
"--- RestaurantAgent.stream: UI JSON successfully parsed AND validated"

0 commit comments

Comments
 (0)