Update app.py
Browse files
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"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
backstory="Expert in technical analysis, market sentiment, and investment strategy for cryptocurrencies.",
|
39 |
verbose=True,
|
40 |
-
allow_delegation=
|
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"""
|
59 |
-
|
60 |
-
|
|
|
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=
|
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
|
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,
|