Week 2: Technical Assistant - Salah (Bootcamp)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class AIClient(ABC):
|
||||
@abstractmethod
|
||||
def chat(self, messages):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def analyze_code(self, code, language):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def generate_linkedin_post(self, topic, tone="professional"):
|
||||
pass
|
||||
|
||||
class AudioService(ABC):
|
||||
@abstractmethod
|
||||
def speech_to_text(self, audio_file):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def text_to_speech(self, text):
|
||||
pass
|
||||
Reference in New Issue
Block a user