|
|
@ -7,16 +7,16 @@ from swarms.structs.hiearchical_swarm import (
|
|
|
|
HierarchicalSwarm,
|
|
|
|
HierarchicalSwarm,
|
|
|
|
SwarmSpec,
|
|
|
|
SwarmSpec,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
from swarms.utils.function_caller_model import OpenAIFunctionCaller
|
|
|
|
from swarms.utils.litellm_wrapper import LiteLLM
|
|
|
|
|
|
|
|
|
|
|
|
load_dotenv()
|
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Trading Director: Responsible for orchestrating tasks among multiple stock analysts
|
|
|
|
# Trading Director: Responsible for orchestrating tasks among multiple stock analysts
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
director_llm = OpenAIFunctionCaller(
|
|
|
|
director_llm = LiteLLM(
|
|
|
|
base_model=SwarmSpec,
|
|
|
|
model_name="gpt-4o",
|
|
|
|
api_key=os.getenv("OPENAI_API_KEY"),
|
|
|
|
response_format=SwarmSpec,
|
|
|
|
system_prompt=(
|
|
|
|
system_prompt=(
|
|
|
|
"You are the Trading Director in charge of coordinating a team of specialized "
|
|
|
|
"You are the Trading Director in charge of coordinating a team of specialized "
|
|
|
|
"Stock Analysts. Your responsibilities include:\n\n"
|
|
|
|
"Stock Analysts. Your responsibilities include:\n\n"
|
|
|
|