Spaces:
Sleeping
Sleeping
Update crypto__analysis_tasks.py
Browse files- 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 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
Use the most recent data. Keep the report concise and focused on actionable insights.
|
14 |
"""),
|
15 |
-
expected_output="A
|
16 |
agent=agent
|
17 |
)
|
18 |
|
19 |
def technical_analysis(self, agent):
|
20 |
return Task(description=dedent(f"""
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
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
|
35 |
agent=agent
|
36 |
)
|
37 |
|
38 |
def sentiment_analysis(self, agent):
|
39 |
return Task(description=dedent(f"""
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
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 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
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 |
)
|