pull/55/head
Kye 1 year ago
parent a204c14791
commit 00460ccf96

@ -1,23 +1,23 @@
# from swarms import Worker from swarms import Worker
# node = Worker( node = Worker(
# openai_api_key="", openai_api_key="",
# ai_name="Optimus Prime", 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." 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) response = node.run(task)
# print(response) print(response)
from swarms import Workflow # from swarms import Workflow
from swarms.tools.autogpt import ChatOpenAI # from swarms.tools.autogpt import ChatOpenAI
workflow = Workflow(ChatOpenAI) # workflow = Workflow(ChatOpenAI)
workflow.add("What's the weather in miami") # workflow.add("What's the weather in miami")
workflow.add("Provide details for {{ parent_output }}") # workflow.add("Provide details for {{ parent_output }}")
workflow.add("Summarize the above information: {{ parent_output}}") # workflow.add("Summarize the above information: {{ parent_output}}")
workflow.run() # workflow.run()

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "swarms" name = "swarms"
version = "1.6.1" version = "1.6.2"
description = "Swarms - Pytorch" description = "Swarms - Pytorch"
license = "MIT" license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"] authors = ["Kye Gomez <kye@apac.ai>"]

@ -1,7 +1,6 @@
import logging import logging
import queue import queue
import threading import threading
# from abc import ABC, abstractmethod
from concurrent.futures import ThreadPoolExecutor from concurrent.futures import ThreadPoolExecutor
from typing import Any, Dict, List from typing import Any, Dict, List
from enum import Enum from enum import Enum

Loading…
Cancel
Save