bstraehle commited on
Commit
2bc4a9f
·
verified ·
1 Parent(s): add33ab

Update agents.py

Browse files
Files changed (1) hide show
  1. agents.py +8 -25
agents.py CHANGED
@@ -5,15 +5,10 @@ from tools import get_scrape_tool, get_search_tool
5
  def get_researcher_agent():
6
  return Agent(
7
  role="Researcher",
8
- goal="Plan engaging and factually accurate content on {topic}",
9
- backstory="You're working on planning a blog article "
10
- "about the topic: {topic}."
11
- "You collect information that helps the "
12
- "audience learn something "
13
- "and make informed decisions. "
14
- "Your work is the basis for "
15
- "the Content Writer to write an article on this topic.",
16
- tools = [get_scrape_tool(), get_search_tool()],
17
  allow_delegation=False,
18
  verbose=True
19
  )
@@ -21,22 +16,10 @@ def get_researcher_agent():
21
  def get_author_agent():
22
  return Agent(
23
  role="Author",
24
- goal="Write insightful and factually accurate "
25
- "opinion piece about the topic: {topic}",
26
- backstory="You're working on a writing "
27
- "a new opinion piece about the topic: {topic}. "
28
- "You base your writing on the work of "
29
- "the Content Planner, who provides an outline "
30
- "and relevant context about the topic. "
31
- "You follow the main objectives and "
32
- "direction of the outline, "
33
- "as provide by the Content Planner. "
34
- "You also provide objective and impartial insights "
35
- "and back them up with information "
36
- "provide by the Content Planner. "
37
- "You acknowledge in your opinion piece "
38
- "when your statements are opinions "
39
- "as opposed to objective statements.",
40
  allow_delegation=False,
41
  verbose=True
42
  )
 
5
  def get_researcher_agent():
6
  return Agent(
7
  role="Researcher",
8
+ goal="Research content on {topic}",
9
+ backstory="You're working on researching content on topic: {topic}. "
10
+ "Your work is the basis for the Author to write a LinkedIn post on this topic.",
11
+ tools = [get_search_tool(), get_scrape_tool()],
 
 
 
 
 
12
  allow_delegation=False,
13
  verbose=True
14
  )
 
16
  def get_author_agent():
17
  return Agent(
18
  role="Author",
19
+ goal="Write LinkedIn post on topic: {topic}",
20
+ backstory="You're working on a writing a LinkeIn post on topic: {topic}. "
21
+ "You base your writing on the work of the Researcher, who provides context about the topic. "
22
+ "The LinkedIn post must not exceed 10 sentences and may contain some emojis.",
 
 
 
 
 
 
 
 
 
 
 
 
23
  allow_delegation=False,
24
  verbose=True
25
  )