mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
ba9e0d76c1
Adds checkpoint implementation using psycopg
23 lines
562 B
Python
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",
|
|
]
|