"""Agno-backed provider (keeps legacy class name for compatibility)."""

from asedclaw.providers.agno_provider import AgnoOpenAILikeProvider


class LiteLLMProvider(AgnoOpenAILikeProvider):
    """Compatibility alias: runtime now uses agno OpenAILike model."""

    @staticmethod
    def _resolve_model(model: str) -> str:
        """
        Compatibility shim retained for existing callers/tests.

        Normalizes explicit provider prefixes to underscore style.
        """
        if model.startswith("github-copilot/"):
            return model.replace("github-copilot/", "github_copilot/", 1)
        if model.startswith("openai-codex/"):
            return model.replace("openai-codex/", "openai_codex/", 1)
        return model
