Former-commit-id: 6f460b5ab5f38a2acfce54c48c5d856cea1e38be
pull/160/head
Kye 2 years ago
parent 7e319f06a6
commit f89995cc12

@ -110,6 +110,26 @@ The ports you can use are 4500 and 6500.
swarm.run_swarms(objective)
```
* Or just the worker no `BossNode`:
```python
from swarms import worker_node
# Your OpenAI API key
api_key = "sksdsds"
# Initialize a WorkerNode with your API key
node = worker_node(api_key)
# Define an objective
objective = "Please make a web GUI for using HTTP API server..."
# Run the task
task = node.run(objective)
print(task)
```
# Various agents
Here are some agents in the swarm you can use!

Loading…
Cancel
Save