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.
swarms/examples/tools/exa_search_agent_quant.py

21 lines
538 B

from swarms import Agent
from swarms_tools import exa_search
# Initialize the agent
agent = Agent(
agent_name="Quantitative-Trading-Agent",
agent_description="Advanced quantitative trading and algorithmic analysis agent",
model_name="gpt-4o-mini",
dynamic_temperature_enabled=True,
max_loops=1,
dynamic_context_window=True,
tools=[exa_search],
streaming_on=False,
)
out = agent.run(
task="What are the top five best energy stocks across nuclear, solar, gas, and other energy sources?",
)
print(out)