Files
encoach_backend/app/services/abc/third_parties/ai_detector.py
Carlos Mesquita 3cf9fa5cba Async release
2024-07-23 08:40:35 +01:00

14 lines
283 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