write agent.py

This commit is contained in:
a2a-cloud
2026-06-08 23:03:34 +00:00
parent 545dc38396
commit 86a02c725a

View File

@@ -351,7 +351,11 @@ class SeleniumbaseWebsiteScraper(A2AAgent[SeleniumbaseWebsiteScraperConfig, NoAu
} }
# Build deep agent planner # Build deep agent planner
try:
planner = self._build_deep_agent(ctx=ctx, creds=creds, system_prompt=system_prompt) planner = self._build_deep_agent(ctx=ctx, creds=creds, system_prompt=system_prompt)
except Exception as exc: # noqa: BLE001
warnings.append("planner_unavailable: " + _friendly_error(exc))
planner = None
current_url = start_url current_url = start_url
current_selectors = selectors or {"title": "title"} current_selectors = selectors or {"title": "title"}