CryptoScoutv1 commited on
Commit
24f66b3
·
verified ·
1 Parent(s): cf8d23e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -9
app.py CHANGED
@@ -34,13 +34,22 @@ def create_crewai_crypto_setup(crypto_symbol):
34
  # Main Research Agent for technical and market analysis
35
  research_agent = Agent(
36
  role="Crypto Analysis Expert",
37
- goal=f"Perform in-depth analysis on cryptocurrency realted queries, focusing on market outlook, trading metrics, information and metrics.",
 
 
 
 
 
 
 
 
38
  backstory="Expert in technical analysis, market sentiment, and investment strategy for cryptocurrencies.",
39
  verbose=True,
40
- allow_delegation=True,
41
  tools=[duckduckgo_search_tool],
42
  llm=llm,
43
  )
 
44
  research_agent2 = Agent(
45
  role="Crypto Analysis Expert",
46
  goal=f"""Using the websearchtools perform in-depth research for the cryptocurrency - {crypto_symbol},
@@ -55,15 +64,16 @@ def create_crewai_crypto_setup(crypto_symbol):
55
 
56
  # Task 1: Market Outlook
57
  market_data_t0 = Task(
58
- description=f"""Search and gather market data and metrics for cryptocurrency - {crypto_symbol} - Only focus on the crypto name and symbol.
59
- focus on 2024 and beyond price trends, including timeline of price targets, key price points, buy/sell/hold levels,
60
- techincal triggers and metrics, price action, and short, medium, long term predictions along with any other relavant information, metrics and or datapoints.""",
 
61
  expected_output="Group similar data into sections, with information and data metrics presented in a clear and concise manner",
62
  tools=[search.pricetargets_search,
63
  search.forecast_search,
64
  search.technicalsignals_search,
65
  process],
66
- agent=research_agent2,
67
  )
68
 
69
  # Task 3: Technical/Trade Signals
@@ -82,9 +92,7 @@ def create_crewai_crypto_setup(crypto_symbol):
82
 
83
  Summary_t3 = Task(
84
  description=f""""
85
- Create a market/trade report based on the request {crypto_symbol} (Focus on talioring the info, metrics, and data that are relavant to the query).
86
- Summarize any data and information and provide actionable advice when you can.
87
- You have access to all the information you need and can delegate research if needed.
88
  """,
89
  expected_output="Report based on query with summary. The report should be organized, easy to read, clear and concise",
90
  agent=research_agent,
 
34
  # Main Research Agent for technical and market analysis
35
  research_agent = Agent(
36
  role="Crypto Analysis Expert",
37
+ goal=f"""
38
+ Perform market analysis on cryptocurrency, your job is search, research and generate a report based on the clients prompts.
39
+ NOTE - Make sure the report is clear, concise and professional with actionable advice and provide any relavant metrics / information.
40
+ Ensure that you focus your search and research on the cryptocurrency symbol/name provided in the prompt along with the scope of or details the client wants.
41
+
42
+ Here is the clients prompt - {crypto_symbol}.
43
+
44
+ Note: Always use the process tool after the search to get futher data.
45
+ """,
46
  backstory="Expert in technical analysis, market sentiment, and investment strategy for cryptocurrencies.",
47
  verbose=True,
48
+ allow_delegation=False,
49
  tools=[duckduckgo_search_tool],
50
  llm=llm,
51
  )
52
+
53
  research_agent2 = Agent(
54
  role="Crypto Analysis Expert",
55
  goal=f"""Using the websearchtools perform in-depth research for the cryptocurrency - {crypto_symbol},
 
64
 
65
  # Task 1: Market Outlook
66
  market_data_t0 = Task(
67
+ description=f"""
68
+ Research using the following clients prompt which includes a cryptocurrency symbol or coin name - {crypto_symbol}. Focus on the topic/details that are relavant to the clients prompt.Research and search the information desired using the search and process tools.
69
+ Then orgainze your information and metrics which will be used and refered to in order to create a market/trade report for the client
70
+ """,
71
  expected_output="Group similar data into sections, with information and data metrics presented in a clear and concise manner",
72
  tools=[search.pricetargets_search,
73
  search.forecast_search,
74
  search.technicalsignals_search,
75
  process],
76
+ agent=research_agent,
77
  )
78
 
79
  # Task 3: Technical/Trade Signals
 
92
 
93
  Summary_t3 = Task(
94
  description=f""""
95
+ Create a market/trade report based on the request.
 
 
96
  """,
97
  expected_output="Report based on query with summary. The report should be organized, easy to read, clear and concise",
98
  agent=research_agent,