worker agent example

pull/160/head
Kye 2 years ago
parent 3b90a8db1f
commit 26104035e1

@ -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)
Loading…
Cancel
Save