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.
17 lines
404 B
17 lines
404 B
2 years ago
|
from swarms import HierarchicalSwarm
|
||
2 years ago
|
|
||
|
# Retrieve your API key from the environment or replace with your actual key
|
||
|
api_key = ""
|
||
|
|
||
2 years ago
|
# Initialize HierarchicalSwarm with your API key
|
||
|
swarm = HierarchicalSwarm(api_key)
|
||
2 years ago
|
|
||
|
# Define an objective
|
||
1 year ago
|
objective = (
|
||
1 year ago
|
"Find 20 potential customers for a HierarchicalSwarm based AI"
|
||
|
" Agent automation infrastructure"
|
||
1 year ago
|
)
|
||
2 years ago
|
|
||
2 years ago
|
# Run HierarchicalSwarm
|
||
1 year ago
|
swarm.run(objective)
|