menikev commited on
Commit
740c82e
·
verified ·
1 Parent(s): a675f09

Update crypto__analysis_tasks.py

Browse files
Files changed (1) hide show
  1. crypto__analysis_tasks.py +28 -66
crypto__analysis_tasks.py CHANGED
@@ -4,90 +4,52 @@ from textwrap import dedent
4
  class CryptoAnalysisTasks:
5
  def market_research(self, agent, crypto):
6
  return Task(description=dedent(f"""
7
- Conduct a quick, comprehensive market research on {crypto}.
8
- Focus on:
9
- - Current market status
10
- - Recent price movements
11
- - Key news and developments
12
-
13
- Use the most recent data. Keep the report concise and focused on actionable insights.
14
  """),
15
- expected_output="A concise report summarizing the current market status, price movements, and key developments.",
16
  agent=agent
17
  )
18
 
19
  def technical_analysis(self, agent):
20
  return Task(description=dedent(f"""
21
- Perform a thorough technical analysis of the cryptocurrency.
22
- Examine key technical indicators such as RSI, moving averages,
23
- and trading volumes. Identify potential support and resistance levels.
24
-
25
- Focus on:
26
- 1. Analysis of key technical indicators
27
- 2. Identification of chart patterns
28
- 3. Support and resistance levels
29
- 4. Volume analysis
30
- 5. Short-term and long-term price projections based on technical factors
31
-
32
- Ensure your analysis is based on the most recent market data.
33
  """),
34
- expected_output="A concise technical analysis report that includes key technical indicators, chart patterns, support and resistance levels, volume analysis, and price projections.",
35
  agent=agent
36
  )
37
 
38
  def sentiment_analysis(self, agent):
39
  return Task(description=dedent(f"""
40
- Conduct a sentiment analysis of the cryptocurrency across various platforms.
41
- Analyze social media trends, news sentiment, and community engagement.
42
-
43
- Your final answer must be a comprehensive report that includes:
44
- 1. Overall sentiment score
45
- 2. Analysis of social media trends
46
- 3. News sentiment overview
47
- 4. Community engagement metrics
48
- 5. Any notable shifts in sentiment and potential reasons
49
-
50
- Use the most recent data and consider both quantitative and qualitative factors.
51
  """),
52
- expected_output="""
53
- A comprehensive sentiment analysis report that includes:
54
- 1. An overall sentiment score for the cryptocurrency.
55
- 3. Any notable shifts in sentiment, along with potential reasons or events that caused these changes.
56
- """,
57
  agent=agent
58
  )
59
 
60
  def recommend(self, agent):
61
  return Task(description=dedent(f"""
62
- Review and synthesize the analyses provided by the Market Analyst
63
- and Technical Analyst. Combine these insights to form a comprehensive
64
- investment recommendation.
65
-
66
- Consider all aspects, including market trends, technical indicators,
67
- sentiment analysis, and fundamental factors.
68
-
69
- Your final answer MUST be a detailed investment recommendation report for your client. It should include:
70
- 1. Executive summary
71
- 2. Market analysis recap
72
- 3. Technical analysis insights
73
- 4. Sentiment analysis overview
74
- 5. Risk assessment
75
- 6. Short-term and long-term price projections
76
- 7. Clear investment strategy and recommendations
77
- 8. Potential scenarios and their impacts
78
-
79
- Provide a well-formatted, comprehensive report that a client can use to make informed decisions.
80
  """),
81
- expected_output="""
82
- A detailed investment recommendation report that includes:
83
- 1. An executive summary summarizing the key findings and recommendations.
84
- 2. A recap of the market analysis, highlighting key market trends and their implications.
85
- 3. Insights from the technical analysis, including key indicators and price projections.
86
- 4. Overview of sentiment analysis results, summarizing public and community sentiment.
87
- 5. A thorough risk assessment that outlines potential risks and their impact.
88
- 6. Short-term and long-term price projections based on both market and technical analysis.
89
- 7. A clear and actionable investment strategy, with specific recommendations.
90
- 8. Analysis of potential scenarios (e.g., bullish, bearish) and how they might impact the investment strategy.
91
- """,
92
  agent=agent
93
  )
 
4
  class CryptoAnalysisTasks:
5
  def market_research(self, agent, crypto):
6
  return Task(description=dedent(f"""
7
+ Conduct a quick market research on {crypto}.
8
+ Focus on:
9
+ - Current price and 24h change
10
+ - Market cap
11
+ - One key recent development
12
+ Use the most recent data. Keep the report very concise.
 
13
  """),
14
+ expected_output="A brief report with current price, market cap, and one key development.",
15
  agent=agent
16
  )
17
 
18
  def technical_analysis(self, agent):
19
  return Task(description=dedent(f"""
20
+ Perform a basic technical analysis of the cryptocurrency.
21
+ Focus on:
22
+ 1. Current RSI
23
+ 2. 7-day moving average
24
+ 3. One identified support or resistance level
25
+ Ensure your analysis is based on the most recent market data.
 
 
 
 
 
 
26
  """),
27
+ expected_output="A concise technical analysis report with RSI, 7-day MA, and one support/resistance level.",
28
  agent=agent
29
  )
30
 
31
  def sentiment_analysis(self, agent):
32
  return Task(description=dedent(f"""
33
+ Conduct a quick sentiment analysis of the cryptocurrency.
34
+ Focus on:
35
+ 1. Overall sentiment score
36
+ 2. Brief analysis of the most recent news article
37
+ Use the most recent data available.
 
 
 
 
 
 
38
  """),
39
+ expected_output="A brief sentiment analysis report with an overall score and analysis of one recent news article.",
 
 
 
 
40
  agent=agent
41
  )
42
 
43
  def recommend(self, agent):
44
  return Task(description=dedent(f"""
45
+ Review the analyses provided and form a concise investment recommendation.
46
+ Your final answer MUST include:
47
+ 1. One-sentence market summary
48
+ 2. Key technical indicator (RSI or MA)
49
+ 3. Overall sentiment
50
+ 4. Clear buy/hold/sell recommendation
51
+ Provide a brief, actionable recommendation for the client.
 
 
 
 
 
 
 
 
 
 
 
52
  """),
53
+ expected_output="A concise investment recommendation with market summary, key technical indicator, sentiment, and clear buy/hold/sell advice.",
 
 
 
 
 
 
 
 
 
 
54
  agent=agent
55
  )