From f89995cc12ef0b376c3eefe647b5d7733b5d12a5 Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 14 Jul 2023 19:23:38 -0400 Subject: [PATCH] clean up Former-commit-id: 6f460b5ab5f38a2acfce54c48c5d856cea1e38be --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index e79755e2..897a84aa 100644 --- a/README.md +++ b/README.md @@ -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!