You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/swarms/apps/base.py

27 lines
357 B

#base App class
class App:
"""
This is a base app class for examples
Args:
worker: Worker Agent
Usage
app = App(Worker)
app.run()
"""
def __init__(
self,
worker,
):
self.worker = worker
self.worker.app = self
def run(self, task):
"""Run the app"""
pass