test / managers /queue /base.py
gaoqilan's picture
Upload 103 files
1f1b4db verified
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