parent
9ff3dfa3d9
commit
fd01d22e87
@ -0,0 +1,6 @@
|
||||
from swarms.workflows.main import Workflow
|
||||
|
||||
workflow = Workflow()
|
||||
|
||||
workflow.add('Find 50 ceos in linkedin in agriculture ')
|
||||
|
@ -0,0 +1,16 @@
|
||||
from shapeless import shapeless
|
||||
|
||||
@shapeless
|
||||
class ErrorArtifact:
|
||||
def __init__(
|
||||
self,
|
||||
value
|
||||
):
|
||||
self.value = value
|
||||
|
||||
def __add__(self, other):
|
||||
return ErrorArtififact(self.value + other.value)
|
||||
|
||||
def to_text(self) -> str:
|
||||
return self.value
|
||||
|
@ -1,14 +1,44 @@
|
||||
from abc import ABC
|
||||
from shapeless import shapeless
|
||||
|
||||
|
||||
@shapeless
|
||||
class Task:
|
||||
class BaseTask(ABC):
|
||||
def __init__(
|
||||
self,
|
||||
id,
|
||||
):
|
||||
self.id = id
|
||||
|
||||
def forward(self):
|
||||
def add(self):
|
||||
pass
|
||||
|
||||
def schedule(self, time):
|
||||
pass
|
||||
|
||||
def parents(self):
|
||||
pass
|
||||
|
||||
def children(self):
|
||||
pass
|
||||
|
||||
def preprocess(self):
|
||||
pass
|
||||
|
||||
def add_parent(self):
|
||||
pass
|
||||
|
||||
def is_pending(self):
|
||||
pass
|
||||
|
||||
def is_finished(self):
|
||||
pass
|
||||
|
||||
def is_executing(self):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
pass
|
||||
|
||||
def reset(self):
|
||||
pass
|
Loading…
Reference in new issue