Apply pre-commit formatting fixes
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
from app.tool.base import BaseTool
|
||||
from app.tool.bash import Bash
|
||||
from app.tool.browser_use_tool import BrowserUseTool
|
||||
from app.tool.crawl4ai import Crawl4aiTool
|
||||
from app.tool.create_chat_completion import CreateChatCompletion
|
||||
from app.tool.planning import PlanningTool
|
||||
from app.tool.str_replace_editor import StrReplaceEditor
|
||||
from app.tool.terminate import Terminate
|
||||
from app.tool.tool_collection import ToolCollection
|
||||
from app.tool.web_search import WebSearch
|
||||
from app.tool.crawl4ai import Crawl4aiTool
|
||||
|
||||
|
||||
__all__ = [
|
||||
@@ -20,5 +20,5 @@ __all__ = [
|
||||
"ToolCollection",
|
||||
"CreateChatCompletion",
|
||||
"PlanningTool",
|
||||
"Crawl4aiTool"
|
||||
"Crawl4aiTool",
|
||||
]
|
||||
|
||||
@@ -248,7 +248,7 @@ class Crawl4aiTool(BaseTool):
|
||||
|
||||
return ToolResult(output="\n".join(output_lines))
|
||||
|
||||
except ImportError as e:
|
||||
except ImportError:
|
||||
error_msg = "Crawl4AI is not installed. Please install it with: pip install crawl4ai"
|
||||
logger.error(error_msg)
|
||||
return ToolResult(error=error_msg)
|
||||
|
||||
Reference in New Issue
Block a user