swarm table

Former-commit-id: 0d0c29f9bab08bddcb66d95579f23fe63acde284
pull/160/head
Kye 2 years ago
parent d624b84628
commit b895d8b92d

@ -117,6 +117,17 @@ The ports you can use are 4500 and 6500.
swarm.run_swarms(objective)
```
# Various agents
Here are some agents in the swarm you can use!
| Agent | Import Statement | Example Usage |
|--------------|----------------------------------------------------|---------------------------------------------------------|
| WorkerNode | `from swarms import worker_node` | ```python api_key = "sksdsds" node = worker_node(api_key) objective = "Please make a web GUI for using HTTP API server..." task = node.run(objective) print(task)``` |
| Swarms | `from swarms.swarms import Swarms` | ```python import os from swarms.swarms import Swarms api_key = os.getenv("OPENAI_API_KEY") swarm = Swarms(openai_api_key=api_key) objective = "Please make a web GUI for using HTTP API server..." task = swarm.run_swarms(objective) print(task)``` |
---
## Share with your Friends

Loading…
Cancel
Save