Skip to content

Commit

Permalink
swarm worker base
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Oct 11, 2023
1 parent cacdc1d commit 35b5264
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions swarms/swarms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ def run(self):
"""Run the swarm"""
pass

@abstractmethod
def arun(self):
"""Run the swarm Asynchronously"""
pass

@abstractmethod
def add_worker(self, worker: "AbstractWorker"):
"""Add a worker to the swarm"""
Expand Down

0 comments on commit 35b5264

Please sign in to comment.