langchain/libs/partners/postgres/langchain_postgres/__init__.py
Eugene Yurtsev ba9e0d76c1
postgres[minor]: add postgres checkpoint implementation (#20025)
Adds checkpoint implementation using psycopg
2024-04-08 09:27:15 -04:00

23 lines
562 B
Python

from importlib import metadata
from langchain_postgres.chat_message_histories import PostgresChatMessageHistory
from langchain_postgres.checkpoint import (
CheckpointSerializer,
PickleCheckpointSerializer,
PostgresCheckpoint,
)
try:
__version__ = metadata.version(__package__)
except metadata.PackageNotFoundError:
# Case where package metadata is not available.
__version__ = ""
__all__ = [
"__version__",
"CheckpointSerializer",
"PostgresChatMessageHistory",
"PostgresCheckpoint",
"PickleCheckpointSerializer",
]