-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.py
More file actions
60 lines (51 loc) · 2.89 KB
/
Copy pathtasks.py
File metadata and controls
60 lines (51 loc) · 2.89 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from crewai import Task
from agents import NewsLetterAgents
class NewsLetterTasks():
def task_search_job_market(self, agent):
return Task(
description="""Conduct a comprehensive search of the latest tech job market,not general labor market, news.
Pick the top 3 popular and significant articles on this topic.
Do not forget the original link for reference.""",
expected_output="Your search result report in bullet points",
agent= agent
)
def task_write_job_market_report(self, agent, prev_research_task):
return Task(
description="""Writet a comprehensive and informative report of the latest tech job market news.
Identify key trends, big news, and potential industry impacts. Extract the insights from the articles.
Newsletter is time sensitive. So, remember to mention what date your information source is up to.
""",
expected_output="Full analysis report in bullet points",
agent= agent,
dependencies=[prev_research_task]
)
def task_search_interest_rate_news(self, agent):
return Task(
description="""Conduct a comprehensive search of the latest interest rate news of USA.
Analysis how that will impact the operations and hirings of the tech industry.
Pick the top 3 popular and significant articles on this topic.
Do not forget the original link for reference.""",
expected_output="Your search result report in bullet points",
agent=agent
)
def task_write_interest_rate_report(self, agent,prev_research_task):
return Task(
description="""Writet a comprehensive and informative report of the latest interest rate, in USA, news.
Identify key trends, big news, and potential impacts on tech industry. Extract the insights from the articles.
Newsletter is time sensitive. So, remember to mention what date your information source is up to.""",
expected_output="Full analysis report in bullet points",
agent=agent,
dependencies=[prev_research_task]
)
def task_write_newsletter(self, agent,interest_writting_task, tech_job_market_writting_task):
return Task(
description="""Write a comprehensive and informative newsletter of the job market analysis.
Identify key trends, big announcements, and important opinions.
Your most important opinion is at the title.
Do not forget the original link for reference.
Tell the current tech job seeker what they should pay attention to. Give a summary at the end.
Newsletter is time sensitive. So, remember to mention what date your information source is up to.""",
expected_output="Full newsletter which can be read in 3 minutes.",
agent=agent,
dependencies=[interest_writting_task, tech_job_market_writting_task]
)