File size: 366 Bytes
1f1b4db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from abc import ABC, abstractmethod
from typing import Optional
from api.chat.chat_api import ChatAPI

class ChatQueueBase(ABC):
    @abstractmethod
    async def add(self, api_key: str) -> None:
        pass
    
    @abstractmethod
    async def get(self) -> Optional[ChatAPI]:
        pass
    
    @abstractmethod
    async def length(self) -> int:
        pass