from importlib import metadata

from langchain_oceanbase.ai_functions import OceanBaseAIFunctions
from langchain_oceanbase.chat_message_histories import OceanBaseChatMessageHistory
from langchain_oceanbase.vectorstores import OceanbaseVectorStore

try:
    __version__ = metadata.version(__package__)
except metadata.PackageNotFoundError:
    # Case where package metadata is not available.
    __version__ = ""
del metadata  # optional, avoids polluting the results of dir(__package__)

__all__ = [
    "OceanbaseVectorStore",
    "OceanBaseChatMessageHistory",
    "OceanBaseAIFunctions",
    "__version__",
]
