write agent.py
This commit is contained in:
4
agent.py
4
agent.py
@@ -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"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user