"""
This module provides backward-compatible exports of core language model classes.

These classes are re-exported for compatibility with older versions of LangChain
and allow users to import language model interfaces from a stable path.

Exports:
    - LLM: Abstract base class for all LLMs
    - BaseLLM: Deprecated or foundational class for legacy LLMs
    - BaseLanguageModel: Base class for core language model implementations
"""

from langchain_core.language_models import BaseLanguageModel
from langchain_core.language_models.llms import LLM, BaseLLM

__all__ = [
    "LLM",
    "BaseLLM",
    "BaseLanguageModel",
]

# Backwards compatibility.
from langchain_core.language_models import BaseLanguageModel
from langchain_core.language_models.llms import (
    LLM,
    BaseLLM,
)

__all__ = [
    "LLM",
    "BaseLLM",
    "BaseLanguageModel",
]
