Skip to content

Commit 3e01967

Browse files
committed
[Fix][example.py]
1 parent d303ceb commit 3e01967

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

example.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from swarms import Agent
2-
import json
32

43
# Initialize the agent
54
agent = Agent(
@@ -14,4 +13,8 @@
1413
interactive=False,
1514
)
1615

17-
print(json.dumps(agent.to_dict(), indent=4))
16+
out = agent.run(
17+
task="What are the top five best energy stocks across nuclear, solar, gas, and other energy sources?",
18+
)
19+
20+
print(out)

0 commit comments

Comments
 (0)