Spaces:
Running
Running
File size: 395 Bytes
508316a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # workflows/base.py
from abc import ABC, abstractmethod
from playwright.async_api import Page
class BaseWorkflow(ABC):
"""Basisklasse für alle autonomen Workflows."""
def __init__(self, page: Page):
self.page = page
@abstractmethod
async def run(self, *args, **kwargs) -> dict:
"""Führt den Workflow aus und gibt das Ergebnis zurück."""
...
|