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