group-wbl/.venv/lib/python3.13/site-packages/langchain_classic/llms/base.py

20 lines
625 B
Python
Raw Permalink Normal View History

2026-01-09 09:48:03 +08:00
"""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",
]