from abc import ABC, abstractmethod from typing import Any class AIAdapter(ABC): """Interface for model provider adapters.""" provider_name: str @abstractmethod def ask(self, prompt: str, context: dict[str, Any] | None = None) -> dict[str, Any]: raise NotImplementedError