20 lines
625 B
Python
20 lines
625 B
Python
|
|
"""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",
|
||
|
|
]
|