Update crew.py
Browse files
crew.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
|
3 |
-
from crewai import Agent,
|
4 |
from crewai_tools import (
|
5 |
SerperDevTool,
|
6 |
WebsiteSearchTool
|
@@ -22,17 +22,17 @@ def get_crew():
|
|
22 |
web_rag_tool = WebsiteSearchTool()
|
23 |
|
24 |
researcher = Agent(
|
25 |
-
role="Web Research Agent
|
26 |
-
goal="Search the web and scrape web
|
27 |
-
backstory="
|
28 |
tools=[search_tool, web_rag_tool],
|
29 |
verbose=True
|
30 |
)
|
31 |
|
32 |
research = Task(
|
33 |
agent=researcher,
|
34 |
-
description="Search the web and scrape web
|
35 |
-
expected_output="
|
36 |
)
|
37 |
|
38 |
return Crew(
|
|
|
1 |
import os
|
2 |
|
3 |
+
from crewai import Agent, Crew, Process, Task
|
4 |
from crewai_tools import (
|
5 |
SerperDevTool,
|
6 |
WebsiteSearchTool
|
|
|
22 |
web_rag_tool = WebsiteSearchTool()
|
23 |
|
24 |
researcher = Agent(
|
25 |
+
role="Web Research Agent",
|
26 |
+
goal="Search the web for topic {topic} and scrape the most relevant web page.",
|
27 |
+
backstory="As an expert web research assistant, you are search the web for topic {topic} and scraping the most relevant web page.",
|
28 |
tools=[search_tool, web_rag_tool],
|
29 |
verbose=True
|
30 |
)
|
31 |
|
32 |
research = Task(
|
33 |
agent=researcher,
|
34 |
+
description="Search the web for topic {topic} and scrape the most relevant web page.",
|
35 |
+
expected_output="Content on topic {topic}."
|
36 |
)
|
37 |
|
38 |
return Crew(
|