You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
606 B
24 lines
606 B
# from swarms import Worker
|
|
|
|
# node = Worker(
|
|
# openai_api_key="",
|
|
# ai_name="Optimus Prime",
|
|
|
|
# )
|
|
|
|
# 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 detauls for {{ parent_output }}")
|
|
workflow.add("Summarize the above information: {{ parent_output}}")
|
|
|
|
workflow.run()
|