Files
encoach_backend/app/services/abc/third_parties/ai_detector.py
2024-10-01 19:31:01 +01:00

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