pull/25/head
Kye 1 year ago
parent 2f361d62ad
commit b8d7e8248f

@ -1,4 +1,4 @@
# many boss + workers in unison # workers in unison
#kye gomez jul 13 4:01pm, can scale up the number of swarms working on a probkem with `hivemind(swarms=4, or swarms=auto which will scale the agents depending on the complexity)` #kye gomez jul 13 4:01pm, can scale up the number of swarms working on a probkem with `hivemind(swarms=4, or swarms=auto which will scale the agents depending on the complexity)`
import concurrent.futures import concurrent.futures
@ -11,8 +11,8 @@ from swarms.agents.tools.agent_tools import *
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
# add typechecking, documentation, and deeper error handling # add typechecking, documentation, and deeper error handling
# TODO: MANY WORKERS
class HiveMind: class HiveMind:
def __init__(self, openai_api_key="", num_swarms=1, max_workers=None): def __init__(self, openai_api_key="", num_swarms=1, max_workers=None):
self.openai_api_key = openai_api_key self.openai_api_key = openai_api_key

@ -17,6 +17,8 @@ from swarms.utils.task import Task
# TODO: Pass in abstract LLM class that can utilize Hf or Anthropic models # TODO: Pass in abstract LLM class that can utilize Hf or Anthropic models
# TODO: Move away from OPENAI # TODO: Move away from OPENAI
# TODO: ADD Universal Communication Layer, a vectorstore
# TODO: BE MORE EXPLICIT ON TOOL USE, TASK DECOMPOSITION AND TASK COMPLETETION AND ALLOCATION
class Swarms: class Swarms:
def __init__(self, openai_api_key="", use_vectorstore=True, use_async=True, human_in_the_loop=True): def __init__(self, openai_api_key="", use_vectorstore=True, use_async=True, human_in_the_loop=True):
#openai_api_key: the openai key. Default is empty #openai_api_key: the openai key. Default is empty

Loading…
Cancel
Save