parent
7fd7ebd9da
commit
0de94f802f
@ -0,0 +1,5 @@
|
||||
# from swarms.apps.base import App
|
||||
|
||||
"""
|
||||
from swarms.apps import App
|
||||
"""
|
@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
#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
|
Loading…
Reference in new issue