-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoken_analysis_tasks.py
84 lines (67 loc) · 3.17 KB
/
token_analysis_tasks.py
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
from crewai import Task
from textwrap import dedent
class TokenAnalysisTasks():
def research(self, agent, token):
return Task(description=dedent(f"""
Collect and summarize recent news articles, press
releases, and market analyses related to the crypto token and
its industry.
Pay special attention to any significant events, market
sentiments, and analysts' opinions. Also include upcoming
events like earnings and others.
Your final answer MUST be a report that includes a
comprehensive summary of the latest news, any notable
shifts in market sentiment, and potential impacts on
the token price.
Also make sure to return the token name for the token.
Make sure to use the most recent data as possible.
Selected token by the customer: {token}
"""),
agent=agent
)
def financial_analysis(self, agent):
return Task(description=dedent(f"""
Conduct a thorough analysis of the crypto token performance, project developments and market performance.
This includes examining key financial metrics such as
user base, marketcap
Also, analyze the token's performance in comparison
to its industry peers and overall market trends.
Your final report MUST expand on the summary provided
but now including a clear assessment of the token
performance, its strengths and weaknesses,
and how it fares against its competitors in the current
market scenario.
Make sure to use the most recent data possible.
"""),
agent=agent
)
def anouncement_analysis(self, agent):
return Task(description=dedent(f"""
Analyze the latest announcements for
the token in question from sources like cryptonews.com and coindesk.com
Focus on key sections like partnerships, major deliverables, significant events,
and any disclosed risks.
Extract relevant data and insights that could influence
the token's future performance.
Your final answer must be an expanded report that now
also highlights significant findings from these anouncements,
including any red flags or positive indicators for
your customer.
"""),
agent=agent
)
def recommend(self, agent):
return Task(description=dedent(f"""
Review and synthesize the analyses provided by the Financial Analyst and the Research Analyst.
Combine these insights to form a comprehensive report.
You MUST Consider all aspects, including performance aspect of the token
,market sentiment, announcements, community engagement and qualitative data from
internet sources.
Make sure to include a section that shows significant announcements, and upcoming events like major milestones.
Your final answer MUST be a comprehensive report for your
customer. It should be a full super detailed report, providing a
clear investment stance and strategy with supporting evidence.
Make it pretty and well formatted for your customer.
"""),
agent=agent
)