mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
use private attr
This commit is contained in:
@@ -40,7 +40,7 @@ class FirecrawlCrawlWebsiteTool(BaseTool):
|
|||||||
try:
|
try:
|
||||||
from firecrawl import FirecrawlApp # type: ignore
|
from firecrawl import FirecrawlApp # type: ignore
|
||||||
|
|
||||||
self.firecrawl = FirecrawlApp(api_key=self.api_key)
|
self._firecrawl = FirecrawlApp(api_key=self.api_key)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import click
|
import click
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ class FirecrawlCrawlWebsiteTool(BaseTool):
|
|||||||
subprocess.run(["uv", "add", "firecrawl-py"], check=True)
|
subprocess.run(["uv", "add", "firecrawl-py"], check=True)
|
||||||
from firecrawl import FirecrawlApp
|
from firecrawl import FirecrawlApp
|
||||||
|
|
||||||
self.firecrawl = FirecrawlApp(api_key=self.api_key)
|
self._firecrawl = FirecrawlApp(api_key=self.api_key)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
raise ImportError("Failed to install firecrawl-py package")
|
raise ImportError("Failed to install firecrawl-py package")
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user