bstraehle's picture
Update agents.py
5d83ebb verified
raw
history blame
1.77 kB
from crewai import Agent
from tools import get_scrape_tool, get_search_tool
def get_researcher_agent():
return Agent(
role="Researcher",
goal="Plan engaging and factually accurate content on {topic}",
backstory="You're working on planning a blog article "
"about the topic: {topic}."
"You collect information that helps the "
"audience learn something "
"and make informed decisions. "
"Your work is the basis for "
"the Content Writer to write an article on this topic.",
tools = [get_scrape_tool(), get_search_tool()],
allow_delegation=False,
verbose=True
)
def get_author_agent():
return Agent(
role="Author",
goal="Write insightful and factually accurate "
"opinion piece about the topic: {topic}",
backstory="You're working on a writing "
"a new opinion piece about the topic: {topic}. "
"You base your writing on the work of "
"the Content Planner, who provides an outline "
"and relevant context about the topic. "
"You follow the main objectives and "
"direction of the outline, "
"as provide by the Content Planner. "
"You also provide objective and impartial insights "
"and back them up with information "
"provide by the Content Planner. "
"You acknowledge in your opinion piece "
"when your statements are opinions "
"as opposed to objective statements.",
allow_delegation=False,
verbose=True
)