Spaces:
Running
Running
Update agents.py
Browse files
agents.py
CHANGED
@@ -2,9 +2,9 @@ from crewai import Agent
|
|
2 |
|
3 |
from tools import get_scrape_tool, get_search_tool
|
4 |
|
5 |
-
def
|
6 |
return Agent(
|
7 |
-
role="
|
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}."
|
@@ -18,9 +18,9 @@ def get_content_planner_agent():
|
|
18 |
verbose=True
|
19 |
)
|
20 |
|
21 |
-
def
|
22 |
return Agent(
|
23 |
-
role="
|
24 |
goal="Write insightful and factually accurate "
|
25 |
"opinion piece about the topic: {topic}",
|
26 |
backstory="You're working on a writing "
|
@@ -39,21 +39,4 @@ def get_content_writer_agent():
|
|
39 |
"as opposed to objective statements.",
|
40 |
allow_delegation=False,
|
41 |
verbose=True
|
42 |
-
)
|
43 |
-
|
44 |
-
def get_editor_agent():
|
45 |
-
return Agent(
|
46 |
-
role="Editor",
|
47 |
-
goal="Edit a given blog post to align with "
|
48 |
-
"the writing style of the organization. ",
|
49 |
-
backstory="You are an editor who receives a blog post "
|
50 |
-
"from the Content Writer. "
|
51 |
-
"Your goal is to review the blog post "
|
52 |
-
"to ensure that it follows journalistic best practices,"
|
53 |
-
"provides balanced viewpoints "
|
54 |
-
"when providing opinions or assertions, "
|
55 |
-
"and also avoids major controversial topics "
|
56 |
-
"or opinions when possible.",
|
57 |
-
allow_delegation=False,
|
58 |
-
verbose=True
|
59 |
)
|
|
|
2 |
|
3 |
from tools import get_scrape_tool, get_search_tool
|
4 |
|
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}."
|
|
|
18 |
verbose=True
|
19 |
)
|
20 |
|
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 "
|
|
|
39 |
"as opposed to objective statements.",
|
40 |
allow_delegation=False,
|
41 |
verbose=True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
)
|