mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-14 17:13:25 +00:00
feat: blackbox call
This commit is contained in:
@ -8,7 +8,7 @@ class Blackbox(ABC):
|
||||
the methods processing, valid and fast_api_handler.
|
||||
If implemented correctly, the blackbox class can be used in the main.py file
|
||||
"""
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
def __init__(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
"""
|
||||
@ -18,7 +18,7 @@ class Blackbox(ABC):
|
||||
Output same as above.
|
||||
"""
|
||||
@abstractmethod
|
||||
async def processing(self, *args, **kwargs) -> any:
|
||||
async def processing(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
"""
|
||||
@ -34,5 +34,9 @@ class Blackbox(ABC):
|
||||
to the method.
|
||||
"""
|
||||
@abstractmethod
|
||||
def fast_api_handler(self, request: Request) -> Response:
|
||||
async def fast_api_handler(self, request: Request) -> Response:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def __call__(self, *args, **kwargs):
|
||||
pass
|
||||
Reference in New Issue
Block a user