Spaces:
Sleeping
Sleeping
Update crypto__analysis_tasks.py
Browse files- crypto__analysis_tasks.py +43 -43
crypto__analysis_tasks.py
CHANGED
@@ -3,53 +3,53 @@ from textwrap import dedent
|
|
3 |
|
4 |
class CryptoAnalysisTasks:
|
5 |
def market_research(self, agent, crypto):
|
6 |
-
return Task(
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
)
|
17 |
|
18 |
-
def technical_analysis(self, agent):
|
19 |
-
return Task(
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
)
|
30 |
|
31 |
-
def sentiment_analysis(self, agent):
|
32 |
-
return Task(
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
)
|
42 |
|
43 |
-
def recommend(self, agent):
|
44 |
-
return Task(
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
)
|
|
|
3 |
|
4 |
class CryptoAnalysisTasks:
|
5 |
def market_research(self, agent, crypto):
|
6 |
+
return Task(
|
7 |
+
description=dedent(f"""
|
8 |
+
Conduct a quick market research on {crypto}.
|
9 |
+
Focus on:
|
10 |
+
- Current price and 24h change
|
11 |
+
- Market cap
|
12 |
+
- One key recent development
|
13 |
+
Use the most recent data. Keep the report very concise.
|
14 |
+
"""),
|
15 |
+
agent=agent
|
16 |
)
|
17 |
|
18 |
+
def technical_analysis(self, agent, crypto):
|
19 |
+
return Task(
|
20 |
+
description=dedent(f"""
|
21 |
+
Perform a basic technical analysis of {crypto}.
|
22 |
+
Focus on:
|
23 |
+
1. Current RSI
|
24 |
+
2. 7-day moving average
|
25 |
+
3. One identified support or resistance level
|
26 |
+
Ensure your analysis is based on the most recent market data.
|
27 |
+
"""),
|
28 |
+
agent=agent
|
29 |
)
|
30 |
|
31 |
+
def sentiment_analysis(self, agent, crypto):
|
32 |
+
return Task(
|
33 |
+
description=dedent(f"""
|
34 |
+
Conduct a quick sentiment analysis of {crypto}.
|
35 |
+
Focus on:
|
36 |
+
1. Overall sentiment score
|
37 |
+
2. Brief analysis of the most recent news article
|
38 |
+
Use the most recent data available.
|
39 |
+
"""),
|
40 |
+
agent=agent
|
41 |
)
|
42 |
|
43 |
+
def recommend(self, agent, crypto):
|
44 |
+
return Task(
|
45 |
+
description=dedent(f"""
|
46 |
+
Review the analyses provided for {crypto} and form a concise investment recommendation.
|
47 |
+
Your final answer MUST include:
|
48 |
+
1. One-sentence market summary
|
49 |
+
2. Key technical indicator (RSI or MA)
|
50 |
+
3. Overall sentiment
|
51 |
+
4. Clear buy/hold/sell recommendation
|
52 |
+
Provide a brief, actionable recommendation for the client.
|
53 |
+
"""),
|
54 |
+
agent=agent
|
55 |
)
|