-
-
Notifications
You must be signed in to change notification settings - Fork 746
Expand file tree
/
Copy pathexample.py
More file actions
19 lines (16 loc) · 601 Bytes
/
example.py
File metadata and controls
19 lines (16 loc) · 601 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from swarms.structs.agent import Agent
# Initialize the agent
agent = Agent(
agent_name="Quantitative-Trading-Agent",
agent_description="Advanced quantitative trading and algorithmic analysis agent",
system_prompt="You are a helpful assistant that can answer questions and help with tasks and your name is Quantitative-Trading-Agent",
model_name="anthropic/claude-sonnet-4-5",
dynamic_temperature_enabled=True,
max_loops=2,
dynamic_context_window=True,
streaming_on=True,
interactive=True,
top_p=None,
)
out = agent.run(task="what is your name?")
print(out)