no shapeless

pull/55/head
Kye 1 year ago
parent a085a1e233
commit 8bf8dc8946

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "swarms" name = "swarms"
version = "1.5.4" version = "1.5.7"
description = "Swarms - Pytorch" description = "Swarms - Pytorch"
license = "MIT" license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"] authors = ["Kye Gomez <kye@apac.ai>"]
@ -42,7 +42,6 @@ ggl = "*"
beautifulsoup4 = "*" beautifulsoup4 = "*"
pydantic = "*" pydantic = "*"
tenacity = "*" tenacity = "*"
celery = "*"
redis = "*" redis = "*"
Pillow = "*" Pillow = "*"
shapeless="*" shapeless="*"

@ -1,5 +1,5 @@
#swarms #swarms
from swarms.orchestrator.autoscaler import AutoScaler #from swarms.orchestrator.autoscaler import AutoScaler
# worker # worker
# from swarms.workers.worker_node import WorkerNode # from swarms.workers.worker_node import WorkerNode

@ -1,6 +1,6 @@
from shapeless import shapeless #from shapeless import shapeless
@shapeless #@shapeless
class ErrorArtifact: class ErrorArtifact:
def __init__( def __init__(
self, self,

@ -4,13 +4,13 @@ from time import sleep
from swarms.workers.worker import Worker from swarms.workers.worker import Worker
from swarms.utils.decorators import error_decorator, log_decorator, timing_decorator from swarms.utils.decorators import error_decorator, log_decorator, timing_decorator
from shapeless import shapeless #from shapeless import shapeless
# TODO Handle task assignment and task delegation # TODO Handle task assignment and task delegation
# TODO: User task => decomposed into very small sub tasks => sub tasks assigned to workers => workers complete and update the swarm, can ask for help from other agents. # TODO: User task => decomposed into very small sub tasks => sub tasks assigned to workers => workers complete and update the swarm, can ask for help from other agents.
# TODO: Missing, Task Assignment, Task delegation, Task completion, Swarm level communication with vector db # TODO: Missing, Task Assignment, Task delegation, Task completion, Swarm level communication with vector db
@shapeless #@shapeless
class AutoScaler: class AutoScaler:
@log_decorator @log_decorator
@error_decorator @error_decorator

@ -1,8 +1,8 @@
from abc import ABC from abc import ABC
from shapeless import shapeless #from shapeless import shapeless
@shapeless #@shapeless
class BaseTask(ABC): class BaseTask(ABC):
def __init__( def __init__(
self, self,

@ -9,13 +9,13 @@ from logging import Logger
from typing import Optional, Union from typing import Optional, Union
from rich.logging import RichHandler from rich.logging import RichHandler
from shapeless import shapeless #from shapeless import shapeless
from swarms.artifacts.error_artifact import ErrorArtifact from swarms.artifacts.error_artifact import ErrorArtifact
from swarms.structs.task import BaseTask from swarms.structs.task import BaseTask
@shapeless #@shapeless
class Workflow(ABC): class Workflow(ABC):
def __init__( def __init__(
self, self,

Loading…
Cancel
Save