bstraehle commited on
Commit
00aced7
·
verified ·
1 Parent(s): 7311d82

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +6 -6
crew.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
 
3
- from crewai import Agent, Task, Crew
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 pages.",
27
- backstory="An expert researcher that can search the web and scrape web page content.",
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 pages.",
35
- expected_output="Scraped web page content."
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(