From b895d8b92d34d8bf99cd2f3effb05926176cb464 Mon Sep 17 00:00:00 2001 From: Kye Date: Thu, 13 Jul 2023 18:12:18 -0400 Subject: [PATCH] swarm table Former-commit-id: 0d0c29f9bab08bddcb66d95579f23fe63acde284 --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 1e9cb8a6..56951780 100644 --- a/README.md +++ b/README.md @@ -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