Update hs_stock_team.py

pull/1101/head
CI-DEV 1 week ago committed by GitHub
parent 5e3863ffb9
commit 60e80e6104
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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"

Loading…
Cancel
Save