CryptoScoutv1 commited on
Commit
c08c614
·
verified ·
1 Parent(s): bb5ac29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -34,11 +34,18 @@ def create_crewai_crypto_setup(crypto_symbol):
34
  llm=llm,
35
  )
36
 
 
 
 
 
 
 
 
37
  # Task 1: Market Outlook
38
  market_outlook_t1 = Task(
39
- description=f"Research and report on cryptocurrency - {crypto_symbol} focus on 2024 and beyond price trends, including timeline of price targets, price action, and short, medium, long term predictions.",
40
  expected_output="Summary of important information and actionale insights focusing on any numbers or metrics. Final ouput strictly equal to or less than 600 chars.",
41
- tools=[WebSearchTools().forecast_search, WebSearchTools().process_search_results],
42
  agent=research_agent,
43
  )
44
 
@@ -72,7 +79,7 @@ def create_crewai_crypto_setup(crypto_symbol):
72
  # Crew setup for processing the tasks sequentially
73
  crypto_crew = Crew(
74
  agents=[research_agent],
75
- tasks=[market_outlook_t1, investment_strategies_t2, technical_signals_t3, risks_t4],
76
  verbose=2,
77
  process=Process.sequential,
78
  )
 
34
  llm=llm,
35
  )
36
 
37
+
38
+ # Task 1: Market Outlook
39
+ market_outlook_t0 = Task(
40
+ description=f"Research cryptocurrency - {crypto_symbol} focus on 2024 and beyond price trends, including timeline of price targets, price action, and short, medium, long term predictions.",
41
+ tools=[WebSearchTools().forecast_search, WebSearchTools().process_search_results],
42
+ agent=research_agent,
43
+ )
44
  # Task 1: Market Outlook
45
  market_outlook_t1 = Task(
46
+ description=f"Create a report based on the last task output on cryptocurrency - {crypto_symbol} focus on 2024 and beyond price trends, including timeline of price targets, price action, and short, medium, long term predictions.",
47
  expected_output="Summary of important information and actionale insights focusing on any numbers or metrics. Final ouput strictly equal to or less than 600 chars.",
48
+ context=[market_outlook_t0],
49
  agent=research_agent,
50
  )
51
 
 
79
  # Crew setup for processing the tasks sequentially
80
  crypto_crew = Crew(
81
  agents=[research_agent],
82
+ tasks=[market_outlook_t0, market_outlook_t1, investment_strategies_t2, technical_signals_t3, risks_t4],
83
  verbose=2,
84
  process=Process.sequential,
85
  )