From 3de0095af37258daa77bb7d08865eb350c7d5c81 Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 22 Sep 2023 18:06:00 -0400 Subject: [PATCH] clean up Former-commit-id: f2f5f79dc7c16a9e53a15f0c5e323b5167686a4d --- example.py | 12 ------------ workflow.py | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 workflow.py diff --git a/example.py b/example.py index 097124fa..7b708fec 100644 --- a/example.py +++ b/example.py @@ -9,15 +9,3 @@ node = Worker( task = "What were the winning boston marathon times for the past 5 years (ending in 2022)? Generate a table of the year, name, country of origin, and times." response = node.run(task) print(response) - - -# from swarms import Workflow -# from swarms.tools.autogpt import ChatOpenAI - -# workflow = Workflow(ChatOpenAI) - -# workflow.add("What's the weather in miami") -# workflow.add("Provide details for {{ parent_output }}") -# workflow.add("Summarize the above information: {{ parent_output}}") - -# workflow.run() diff --git a/workflow.py b/workflow.py new file mode 100644 index 00000000..a40fe605 --- /dev/null +++ b/workflow.py @@ -0,0 +1,11 @@ + +from swarms import Workflow +from swarms.tools.autogpt import ChatOpenAI + +workflow = Workflow(ChatOpenAI) + +workflow.add("What's the weather in miami") +workflow.add("Provide details for {{ parent_output }}") +workflow.add("Summarize the above information: {{ parent_output}}") + +workflow.run()