eaglelandsonce commited on
Commit
8102fd2
1 Parent(s): 3018853

Delete stock_analysis_tasks.py

Browse files
Files changed (1) hide show
  1. stock_analysis_tasks.py +0 -93
stock_analysis_tasks.py DELETED
@@ -1,93 +0,0 @@
1
- from crewai import Task
2
- from textwrap import dedent
3
-
4
- class StockAnalysisTasks():
5
- def research(self, agent, company):
6
- return Task(description=dedent(f"""
7
- Collect and summarize recent news articles, press
8
- releases, and market analyses related to the stock and
9
- its industry.
10
- Pay special attention to any significant events, market
11
- sentiments, and analysts' opinions. Also include upcoming
12
- events like earnings and others.
13
-
14
- Your final answer MUST be a report that includes a
15
- comprehensive summary of the latest news, any notable
16
- shifts in market sentiment, and potential impacts on
17
- the stock.
18
- Also make sure to return the stock ticker.
19
-
20
- {self.__tip_section()}
21
-
22
- Make sure to use the most recent data as possible.
23
-
24
- Selected company by the customer: {company}
25
- """),
26
- agent=agent
27
- )
28
-
29
- def financial_analysis(self, agent):
30
- return Task(description=dedent(f"""
31
- Conduct a thorough analysis of the stock's financial
32
- health and market performance.
33
- This includes examining key financial metrics such as
34
- P/E ratio, EPS growth, revenue trends, and
35
- debt-to-equity ratio.
36
- Also, analyze the stock's performance in comparison
37
- to its industry peers and overall market trends.
38
-
39
- Your final report MUST expand on the summary provided
40
- but now including a clear assessment of the stock's
41
- financial standing, its strengths and weaknesses,
42
- and how it fares against its competitors in the current
43
- market scenario.{self.__tip_section()}
44
-
45
- Make sure to use the most recent data possible.
46
- """),
47
- agent=agent
48
- )
49
-
50
- def filings_analysis(self, agent):
51
- return Task(description=dedent(f"""
52
- Analyze the latest 10-Q and 10-K filings from EDGAR for
53
- the stock in question.
54
- Focus on key sections like Management's Discussion and
55
- Analysis, financial statements, insider trading activity,
56
- and any disclosed risks.
57
- Extract relevant data and insights that could influence
58
- the stock's future performance.
59
-
60
- Your final answer must be an expanded report that now
61
- also highlights significant findings from these filings,
62
- including any red flags or positive indicators for
63
- your customer.
64
- {self.__tip_section()}
65
- """),
66
- agent=agent
67
- )
68
-
69
- def recommend(self, agent):
70
- return Task(description=dedent(f"""
71
- Review and synthesize the analyses provided by the
72
- Financial Analyst and the Research Analyst.
73
- Combine these insights to form a comprehensive
74
- investment recommendation.
75
-
76
- You MUST Consider all aspects, including financial
77
- health, market sentiment, and qualitative data from
78
- EDGAR filings.
79
-
80
- Make sure to include a section that shows insider
81
- trading activity, and upcoming events like earnings.
82
-
83
- Your final answer MUST be a recommendation for your
84
- customer. It should be a full super detailed report, providing a
85
- clear investment stance and strategy with supporting evidence.
86
- Make it pretty and well formatted for your customer.
87
- {self.__tip_section()}
88
- """),
89
- agent=agent
90
- )
91
-
92
- def __tip_section(self):
93
- return "If you do your BEST WORK, I'll give you a $10,000 commision!"