You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
896 B
33 lines
896 B
from swarms import Agent, run_agents_concurrently_uvloop
|
|
from swarms.prompts.finance_agent_sys_prompt import (
|
|
FINANCIAL_AGENT_SYS_PROMPT,
|
|
)
|
|
|
|
|
|
# Initialize the equity analyst agents
|
|
equity_analyst_1 = Agent(
|
|
agent_name="Equity-Analyst-1",
|
|
agent_description="Equity research analyst focused on fundamental analysis",
|
|
system_prompt=FINANCIAL_AGENT_SYS_PROMPT,
|
|
max_loops=1,
|
|
model_name="gpt-4.1",
|
|
dynamic_temperature_enabled=True,
|
|
)
|
|
|
|
equity_analyst_2 = Agent(
|
|
agent_name="Equity-Analyst-2",
|
|
agent_description="Equity research analyst focused on technical analysis",
|
|
system_prompt=FINANCIAL_AGENT_SYS_PROMPT,
|
|
max_loops=1,
|
|
model_name="gpt-4.1",
|
|
dynamic_temperature_enabled=True,
|
|
)
|
|
|
|
|
|
outputs = run_agents_concurrently_uvloop(
|
|
agents=[equity_analyst_1, equity_analyst_2],
|
|
task="What are the best new therapies for diabetes?",
|
|
)
|
|
|
|
print(outputs)
|