diff --git a/tools/web_tools.py b/tools/web_tools.py index 79444d72b..67a042f34 100644 --- a/tools/web_tools.py +++ b/tools/web_tools.py @@ -105,10 +105,11 @@ def _get_firecrawl_client(): api_key = os.getenv("FIRECRAWL_API_KEY") api_url = os.getenv("FIRECRAWL_API_URL") if not api_key and not api_url: + logger.error("Firecrawl client initialization failed: missing configuration.") raise ValueError( - "FIRECRAWL_API_KEY environment variable not set. " - "Set it for cloud Firecrawl, or set FIRECRAWL_API_URL " - "to use a self-hosted instance." + "Firecrawl client not configured. " + "Set FIRECRAWL_API_KEY (cloud) or FIRECRAWL_API_URL (self-hosted). " + "This tool requires Firecrawl to be available." ) kwargs = {} if api_key: @@ -118,7 +119,6 @@ def _get_firecrawl_client(): _firecrawl_client = Firecrawl(**kwargs) return _firecrawl_client - # ─── Parallel Client ───────────────────────────────────────────────────────── _parallel_client = None