Spaces:
Sleeping
Sleeping
Update crypto__analysis_tasks.py
Browse files- crypto__analysis_tasks.py +13 -14
crypto__analysis_tasks.py
CHANGED
@@ -4,14 +4,13 @@ from textwrap import dedent
|
|
4 |
class CryptoAnalysisTasks:
|
5 |
def market_research(self, agent, crypto):
|
6 |
return Task(
|
7 |
-
description=
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
"""),
|
15 |
expected_output="A brief report with current price, market cap, and one key development for {crypto}.",
|
16 |
agent=agent
|
17 |
)
|
@@ -19,12 +18,12 @@ class CryptoAnalysisTasks:
|
|
19 |
def technical_analysis(self, agent, crypto):
|
20 |
return Task(
|
21 |
description=dedent(f"""
|
22 |
-
Perform a
|
23 |
Focus on:
|
24 |
1. Current RSI
|
25 |
2. 7-day moving average
|
26 |
3. One identified support or resistance level
|
27 |
-
|
28 |
"""),
|
29 |
expected_output="A concise technical analysis report for {crypto} with RSI, 7-day MA, and one support/resistance level.",
|
30 |
agent=agent
|
@@ -35,9 +34,9 @@ class CryptoAnalysisTasks:
|
|
35 |
description=dedent(f"""
|
36 |
Conduct a quick sentiment analysis of {crypto}.
|
37 |
Focus on:
|
38 |
-
1. Overall sentiment
|
39 |
-
2.
|
40 |
-
|
41 |
"""),
|
42 |
expected_output="A brief sentiment analysis report for {crypto} with an overall score and analysis of one recent news article.",
|
43 |
agent=agent
|
@@ -52,7 +51,7 @@ class CryptoAnalysisTasks:
|
|
52 |
2. Key technical indicator (RSI or MA)
|
53 |
3. Overall sentiment
|
54 |
4. Clear buy/hold/sell recommendation
|
55 |
-
|
56 |
"""),
|
57 |
expected_output="A concise investment recommendation for {crypto} with market summary, key technical indicator, sentiment, and clear buy/hold/sell advice.",
|
58 |
agent=agent
|
|
|
4 |
class CryptoAnalysisTasks:
|
5 |
def market_research(self, agent, crypto):
|
6 |
return Task(
|
7 |
+
description=f"""
|
8 |
+
Provide a brief market overview for {crypto}. Include:
|
9 |
+
1. Current price
|
10 |
+
2. 24h price change percentage
|
11 |
+
3. One recent significant news item
|
12 |
+
Keep it concise, under 100 words.
|
13 |
+
""",
|
|
|
14 |
expected_output="A brief report with current price, market cap, and one key development for {crypto}.",
|
15 |
agent=agent
|
16 |
)
|
|
|
18 |
def technical_analysis(self, agent, crypto):
|
19 |
return Task(
|
20 |
description=dedent(f"""
|
21 |
+
Perform a quick 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 |
+
Keep it concise under 100 words
|
27 |
"""),
|
28 |
expected_output="A concise technical analysis report for {crypto} with RSI, 7-day MA, and one support/resistance level.",
|
29 |
agent=agent
|
|
|
34 |
description=dedent(f"""
|
35 |
Conduct a quick sentiment analysis of {crypto}.
|
36 |
Focus on:
|
37 |
+
1. Overall sentiment (positive, neutral, or negative)
|
38 |
+
2. One key factor influencing the sentiment
|
39 |
+
Keep it concise, under 50 words.
|
40 |
"""),
|
41 |
expected_output="A brief sentiment analysis report for {crypto} with an overall score and analysis of one recent news article.",
|
42 |
agent=agent
|
|
|
51 |
2. Key technical indicator (RSI or MA)
|
52 |
3. Overall sentiment
|
53 |
4. Clear buy/hold/sell recommendation
|
54 |
+
Keep it concise, under 50 words.
|
55 |
"""),
|
56 |
expected_output="A concise investment recommendation for {crypto} with market summary, key technical indicator, sentiment, and clear buy/hold/sell advice.",
|
57 |
agent=agent
|