"""Backward-compatible re-export of ChatService as AzureChatService.

New code should import from ``src.llm`` instead.
"""

from functools import lru_cache

from src.llm import get_chat_service
from src.llm.chat_service import ChatService

# Alias for backward compatibility
AzureChatService = ChatService


@lru_cache()
def get_azure_chat_service() -> ChatService:
    """Get a cached chat service instance.

    Returns:
        ChatService instance (provider selected by settings.llm_provider)
    """
    return get_chat_service()
