Spaces:
Running
Running
Update crew.py
Browse files
crew.py
CHANGED
@@ -4,19 +4,20 @@ from langchain_openai import ChatOpenAI
|
|
4 |
from agents import get_data_analyst_agent, get_trading_strategy_agent, get_execution_agent, get_risk_management_agent
|
5 |
from tasks import get_data_analysis_task, get_strategy_development_task, get_execution_planning_task, get_risk_assessment_task
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
4 |
from agents import get_data_analyst_agent, get_trading_strategy_agent, get_execution_agent, get_risk_management_agent
|
5 |
from tasks import get_data_analysis_task, get_strategy_development_task, get_execution_planning_task, get_risk_assessment_task
|
6 |
|
7 |
+
class Crew:
|
8 |
+
def get_get_financial_trading_crew():
|
9 |
+
# Define the crew with agents and tasks
|
10 |
+
return Crew(
|
11 |
+
agents=[get_data_analyst_agent,
|
12 |
+
get_trading_strategy_agent,
|
13 |
+
get_execution_agent,
|
14 |
+
get_risk_management_agent],
|
15 |
+
tasks=[get_data_analysis_task,
|
16 |
+
get_strategy_development_task,
|
17 |
+
get_execution_planning_task,
|
18 |
+
get_risk_assessment_task],
|
19 |
+
manager_llm=ChatOpenAI(model="gpt-3.5-turbo",
|
20 |
+
temperature=0.7),
|
21 |
+
process=Process.hierarchical,
|
22 |
+
verbose=True
|
23 |
+
)
|