From 53d8d257a1b53b604da56a72a60e9cc94952bbba Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 8 Jun 2026 22:49:25 +0000 Subject: [PATCH] write agent.py --- agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent.py b/agent.py index 39a1b37..c71ab80 100644 --- a/agent.py +++ b/agent.py @@ -386,10 +386,10 @@ class SeleniumbaseWebsiteScraper(A2AAgent[SeleniumbaseWebsiteScraperConfig, NoAu saved_paths.extend(run.get("saved_paths") or []) if status in {"challenge_detected", "manual_intervention_required", "blocked", "blocked_by_robots_txt", "browser_runtime_unavailable"}: - warnings.append(f"iteration {iteration} stopped due to status={status}") + warnings.append(f"step {step} stopped due to status={status}") break if len(all_items) >= int(min_items): - decisions.append({"iteration": iteration, "action": "stop", "reason": "min_items reached", "confidence": 1.0}) + decisions.append({"step": step, "action": "stop", "reason": "min_items reached", "confidence": 1.0}) break # Ask planner what to do next