crypto_crewAI / .ipynb_checkpoints /tasks-checkpoint.py
quocdat25's picture
Upload folder using huggingface_hub
d9b1770 verified
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!"