diff --git a/agent/tools/searxng.py b/agent/tools/searxng.py index f8c30bfd1..32e807585 100644 --- a/agent/tools/searxng.py +++ b/agent/tools/searxng.py @@ -85,7 +85,7 @@ class SearXNG(ToolBase, ABC): self.set_output("formalized_content", "") return "" - searxng_url = (kwargs.get("searxng_url") or getattr(self._param, "searxng_url", "") or "").strip() + searxng_url = (getattr(self._param, "searxng_url", "") or kwargs.get("searxng_url") or "").strip() # In try-run, if no URL configured, just return empty instead of raising if not searxng_url: self.set_output("formalized_content", "")