from abc import ABC, abstractmethod


class BasePlatformAdapter(ABC):
    """AI平台查询适配器基类"""

    platform_name: str  # 平台枚举值
    platform_url: str   # 平台URL

    @abstractmethod
    async def query(self, keyword: str) -> str:
        """在AI平台查询关键词，返回原始响应文本"""
        pass

    async def close(self):
        """清理资源"""
        pass
