Spaces:
Running
Running
Update crew.py
Browse files
crew.py
CHANGED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from crewai import Agent, Task, Crew
|
2 |
+
|
3 |
+
# Define the crew with agents and tasks
|
4 |
+
financial_trading_crew = Crew(
|
5 |
+
agents=[data_analyst_agent,
|
6 |
+
trading_strategy_agent,
|
7 |
+
execution_agent,
|
8 |
+
risk_management_agent],
|
9 |
+
|
10 |
+
tasks=[data_analysis_task,
|
11 |
+
strategy_development_task,
|
12 |
+
execution_planning_task,
|
13 |
+
risk_assessment_task],
|
14 |
+
|
15 |
+
manager_llm=ChatOpenAI(model="gpt-3.5-turbo",
|
16 |
+
temperature=0.7),
|
17 |
+
process=Process.hierarchical,
|
18 |
+
verbose=True
|
19 |
+
)
|