-
-
Notifications
You must be signed in to change notification settings - Fork 983
Expand file tree
/
Copy pathgpt_5_example.py
More file actions
32 lines (23 loc) · 718 Bytes
/
Copy pathgpt_5_example.py
File metadata and controls
32 lines (23 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
Instructions:
1. Install the swarms package:
> pip3 install -U swarms
2. Set the model name:
> model_name = "openai/gpt-5-2025-08-07"
3. Add your OPENAI_API_KEY to the .env file and verify your account.
4. Run the agent!
Verify your OpenAI account here: https://platform.openai.com/settings/organization/general
"""
from swarms import Agent
agent = Agent(
name="Research Agent",
description="A research agent that can answer questions",
model_name="openai/gpt-5-2025-08-07",
streaming_on=True,
max_loops=1,
interactive=True,
)
out = agent.run(
"What are the best arbitrage trading strategies for altcoins? Give me research papers and articles on the topic."
)
print(out)