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/single_agent/tools/swarms_tools_example.py

15 lines
389 B

from swarms import Agent
from swarms_tools.finance.okx_tool import okx_api_tool
# Initialize the agent
agent = Agent(
agent_name="Financial-Analysis-Agent",
agent_description="Personal finance advisor agent",
max_loops=1,
model_name="gpt-4o-mini",
tools=[okx_api_tool],
dynamic_temperature_enabled=True,
)
agent.run("fetch the current price of bitcoin with okx")