from abc import ABC, abstractmethod from typing import List, Dict, Any class BaseLLMProvider(ABC): @abstractmethod async def generate(self, messages: List[Dict[str, str]], **kwargs) -> Dict[str, Any]: pass