File size: 1,359 Bytes
d9b1770
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from crewai import Task
from textwrap import dedent

class CryptoAnalysisTasks():
    def research(self, agent, coin):
        return Task(description=dedent(f"""
                                  Conduct a comprehensive analysis of the crypto coin {coin} .
                                  Make sure to use the most recent data as possible.
                                  Identify reliably potential oppotunity of the coin: {coin}.
                                  """),
                               expected_output="Full analysis report in bullet points",
                               # tools=[GetCryptoNews()],
                               agent=agent,
                              )

    def recommend(self, agent, coin):
        return Task(description=dedent(f"""
                                            Review and synthesize the analyses provided by the Crypto Analyst.
                                            Combine these insights to form a comprehensive investment recommendation.
                                            Answer if it's worth to invest in the coin {coin}. """),
                    expected_output='A article of recommendations in bullet points',
                    agent=agent,
                   )

    def __tip_section(self):
        return "If you do your BEST WORK, I'll give you a $10,000 commission!"