[BUGF][[TEST] several modules - ImportError: cannot import name BaseStruct]

pull/343/head
Kye 1 year ago
parent a9b3d7d21d
commit 3327e463c6

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

@ -2,12 +2,12 @@ import concurrent.futures
from dataclasses import dataclass, field
from typing import Dict, List, Optional
from swarms.structs.base import BaseStruct
from swarms.structs.base import BaseStructure
from swarms.structs.task import Task
@dataclass
class ConcurrentWorkflow(BaseStruct):
class ConcurrentWorkflow(BaseStructure):
"""
ConcurrentWorkflow class for running a set of tasks concurrently using N number of autonomous agents.

@ -1,8 +1,8 @@
from swarms.structs.task import Task
from swarms.structs.base import BaseStruct
from swarms.structs.base import BaseStructure
class NonlinearWorkflow(BaseStruct):
class NonlinearWorkflow(BaseStructure):
"""
Represents a Directed Acyclic Graph (DAG) workflow.

@ -1,10 +1,10 @@
from typing import List
from swarms.structs.base import BaseStruct
from swarms.structs.base import BaseStructure
from swarms.structs.task import Task
class RecursiveWorkflow(BaseStruct):
class RecursiveWorkflow(BaseStructure):
"""
RecursiveWorkflow class for running a task recursively until a stopping condition is met.

Loading…
Cancel
Save