From ff5fed558d07611363c28eef83cfafcc8668e485 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Mon, 8 Jun 2026 23:03:39 +0000 Subject: [PATCH] write agent.py --- agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent.py b/agent.py index 179313c..70edd76 100644 --- a/agent.py +++ b/agent.py @@ -425,6 +425,9 @@ class SeleniumbaseWebsiteScraper(A2AAgent[SeleniumbaseWebsiteScraperConfig, NoAu }, ensure_ascii=False, ) + if planner is None: + decisions.append({"step": step, "action": "stop", "reason": "planner unavailable", "confidence": 0.0}) + break state = await planner.ainvoke( {"messages": [{"role": "user", "content": prompt}]}, config={"recursion_limit": DEEPAGENTS_RECURSION_LIMIT},