From 26104035e15bc11a2f5a27f1d0c07438bced22c7 Mon Sep 17 00:00:00 2001 From: Kye Date: Sat, 8 Jul 2023 15:27:17 -0400 Subject: [PATCH] worker agent example --- playground/worker_auto.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 playground/worker_auto.py diff --git a/playground/worker_auto.py b/playground/worker_auto.py new file mode 100644 index 00000000..3b7e0c16 --- /dev/null +++ b/playground/worker_auto.py @@ -0,0 +1,15 @@ +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)