14 lines
296 B
Python
14 lines
296 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Dict, Optional
|
|
|
|
|
|
class IAIDetectorService(ABC):
|
|
|
|
@abstractmethod
|
|
async def run_detection(self, text: str):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def _parse_detection(self, response: Dict) -> Optional[Dict]:
|
|
pass
|