Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

ehance:change the scrape engine in eigent (#2685)

Yifeng Wang(正经人王同学)b7b0e3fe0d84
diff --git a/examples/workforce/eigent.py b/examples/workforce/eigent.py
index 4c204f7da..c9ac2b6b2 100644
--- a/examples/workforce/eigent.py
+++ b/examples/workforce/eigent.py
@@ -15,6 +15,7 @@
import asyncio
from camel.agents.chat_agent import ChatAgent
+from camel.loaders import Crawl4AI
from camel.messages.base import BaseMessage
from camel.models import BaseModelBackend, ModelFactory
from camel.societies.workforce import Workforce
@@ -47,6 +48,7 @@ def developer_agent_factory(model: BaseModelBackend, task_id: str):
tools = [
*TerminalToolkit().get_tools(),
HumanToolkit().ask_human_via_console,
+ *TerminalToolkit(clone_current_env=True).get_tools(),
*CodeExecutionToolkit().get_tools(),
]
@@ -95,7 +97,7 @@ def search_agent_factory(
# *browser_toolkits.get_tools(),
*terminal_toolkits.get_tools(),
human_toolkits.ask_human_via_console,
- # Firecrawl().scrape,
+ FunctionTool(Crawl4AI().scrape),
]
system_message = """You are a helpful assistant that can search the web,