menikev commited on
Commit
490e635
·
verified ·
1 Parent(s): 5933bbd

Update crypto__analysis_tasks.py

Browse files
Files changed (1) hide show
  1. 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(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
  )
 
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
  )