Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion autogen/agents/experimental/websurfer/websurfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
BrowserUseTool,
Crawl4AITool,
DuckDuckGoSearchTool,
FirecrawlTool,
PerplexitySearchTool,
SearxngSearchTool,
TavilySearchTool,
Expand All @@ -29,7 +30,9 @@ def __init__(
*,
llm_config: Optional[Union[LLMConfig, dict[str, Any]]] = None,
web_tool_llm_config: Optional[Union[LLMConfig, dict[str, Any]]] = None,
web_tool: Literal["browser_use", "crawl4ai", "duckduckgo", "perplexity", "tavily", "searxng"] = "browser_use",
web_tool: Literal[
"browser_use", "crawl4ai", "duckduckgo", "firecrawl", "perplexity", "tavily", "searxng"
] = "browser_use",
web_tool_kwargs: Optional[dict[str, Any]] = None,
**kwargs: Any,
) -> None:
Expand All @@ -49,6 +52,8 @@ def __init__(
self.tool: Tool = BrowserUseTool(llm_config=web_tool_llm_config, **web_tool_kwargs) # type: ignore[arg-type]
elif web_tool == "crawl4ai":
self.tool = Crawl4AITool(llm_config=web_tool_llm_config, **web_tool_kwargs)
elif web_tool == "firecrawl":
self.tool = FirecrawlTool(llm_config=web_tool_llm_config, **web_tool_kwargs)
elif web_tool == "perplexity":
self.tool = PerplexitySearchTool(**web_tool_kwargs)
elif web_tool == "tavily":
Expand Down
2 changes: 2 additions & 0 deletions autogen/tools/experimental/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from .crawl4ai import Crawl4AITool
from .deep_research import DeepResearchTool
from .duckduckgo import DuckDuckGoSearchTool
from .firecrawl import FirecrawlTool
from .google_search import GoogleSearchTool, YoutubeSearchTool
from .messageplatform import (
DiscordRetrieveTool,
Expand All @@ -30,6 +31,7 @@
"DiscordRetrieveTool",
"DiscordSendTool",
"DuckDuckGoSearchTool",
"FirecrawlTool",
"GoogleSearchTool",
"PerplexitySearchTool",
"ReliableTool",
Expand Down
7 changes: 7 additions & 0 deletions autogen/tools/experimental/firecrawl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2023 - 2025, AG2ai, Inc., AG2ai open-source projects maintainers and core contributors
#
# SPDX-License-Identifier: Apache-2.0

from .firecrawl_tool import FirecrawlTool

__all__ = ["FirecrawlTool"]
Loading
Loading