File size: 469 Bytes
132cb66
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from abc import ABC, abstractmethod
from typing import Dict, List, Optional

from modules.utils.commom import Card, CardReadingMethod


class CardInterpreterInterface(ABC):
    @abstractmethod
    def generate_interpretation(self, cards: List[Card], context: Optional[str], method: CardReadingMethod) -> str:
        ...

    @abstractmethod
    def generate_prompt(self, cards: List[Card], context: str, method: CardReadingMethod) -> List[Dict[str, str]]:
        ...