Spaces:
Runtime error
Runtime error
File size: 1,402 Bytes
97f0b2a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
from crewai import Task
from tools import tool
from agents import researcher,news_writer
# Research task
research_task = Task(
description=(
"Based on the topic {topic},figure out what it is that the user needs in order to figure out their problem"
"Make sure not to put exact same input multiple time while searching the internet.Focus on identifying pros and cons and the overall narrative."
"Your final report should clearly articulate the key points, recent advancements or news about {topic}."
# "its market opportunities, and potential risks."
),
expected_output='A clear explanation of the principles, concepts, disciplines, and skills needed by the visionary in order to accomoplish their goal. Prepare a 2 page long report.',
tools=[tool],
agent=researcher,
)
# Writing task with language model configuration
write_task = Task(
description=(
"Compose an insightful article on {topic}."
"Focus on the latest trends and how it's impacting the world."
"This article should be easy to understand, engaging, and positive."
),
expected_output='An article on {topic} , 5 principles and concepts reviewed and thoroughly explaiened. At the end provide 5 internet articles titles and their URL',
tools=[tool],
agent=news_writer,
async_execution=False,
#output_file='new-blog-post.md' # Example of output customization
) |