Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,14 @@ llm = HuggingFaceEndpoint(
|
|
23 |
temperature=0.7,
|
24 |
)
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
data_analyst_agent = Agent(
|
27 |
role="Data Analyst",
|
28 |
goal="First step is to monitor markets in the given country to identify companies with "
|
@@ -186,6 +194,7 @@ financial_trading_crew = Crew(
|
|
186 |
|
187 |
# manager_llm=ChatOpenAI(model="gpt-4o-mini", openai_api_key =os.getenv('OPENAI_API_KEY'), temperature=0.7),
|
188 |
manager_llm=ChatOpenAI(model="mistralai/Mistral-7B-Instruct-v0.3", temperature=0.7),
|
|
|
189 |
full_output =True,
|
190 |
process=Process.hierarchical,
|
191 |
verbose=True
|
|
|
23 |
temperature=0.7,
|
24 |
)
|
25 |
|
26 |
+
manager = Agent(
|
27 |
+
role="Project Manager",
|
28 |
+
goal="Efficiently manage the crew and ensure high-quality task completion",
|
29 |
+
backstory="You're an experienced project manager, specialized in financial investments & trading, skilled in overseeing complex projects and guiding teams to success. Your role is to coordinate the efforts of the crew members, ensuring that each task is completed on time and to the highest standard.",
|
30 |
+
allow_delegation=True,
|
31 |
+
)
|
32 |
+
|
33 |
+
|
34 |
data_analyst_agent = Agent(
|
35 |
role="Data Analyst",
|
36 |
goal="First step is to monitor markets in the given country to identify companies with "
|
|
|
194 |
|
195 |
# manager_llm=ChatOpenAI(model="gpt-4o-mini", openai_api_key =os.getenv('OPENAI_API_KEY'), temperature=0.7),
|
196 |
manager_llm=ChatOpenAI(model="mistralai/Mistral-7B-Instruct-v0.3", temperature=0.7),
|
197 |
+
manager_agent=manager,
|
198 |
full_output =True,
|
199 |
process=Process.hierarchical,
|
200 |
verbose=True
|