langgraph-checkpoint-sqlite 2.0.3__tar.gz → 2.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langgraph_checkpoint_sqlite-2.0.3 → langgraph_checkpoint_sqlite-2.0.5}/PKG-INFO +2 -2
- {langgraph_checkpoint_sqlite-2.0.3 → langgraph_checkpoint_sqlite-2.0.5}/langgraph/checkpoint/sqlite/__init__.py +4 -1
- {langgraph_checkpoint_sqlite-2.0.3 → langgraph_checkpoint_sqlite-2.0.5}/langgraph/checkpoint/sqlite/aio.py +4 -1
- {langgraph_checkpoint_sqlite-2.0.3 → langgraph_checkpoint_sqlite-2.0.5}/pyproject.toml +2 -2
- {langgraph_checkpoint_sqlite-2.0.3 → langgraph_checkpoint_sqlite-2.0.5}/README.md +0 -0
- {langgraph_checkpoint_sqlite-2.0.3 → langgraph_checkpoint_sqlite-2.0.5}/langgraph/checkpoint/sqlite/py.typed +0 -0
- {langgraph_checkpoint_sqlite-2.0.3 → langgraph_checkpoint_sqlite-2.0.5}/langgraph/checkpoint/sqlite/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: langgraph-checkpoint-sqlite
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.5
|
|
4
4
|
Summary: Library with a SQLite implementation of LangGraph checkpoint saver.
|
|
5
5
|
Home-page: https://www.github.com/langchain-ai/langgraph
|
|
6
6
|
License: MIT
|
|
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Requires-Dist: aiosqlite (>=0.20.0,<0.21.0)
|
|
15
|
-
Requires-Dist: langgraph-checkpoint (>=2.0.
|
|
15
|
+
Requires-Dist: langgraph-checkpoint (>=2.0.15,<3.0.0)
|
|
16
16
|
Project-URL: Repository, https://www.github.com/langchain-ai/langgraph
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
@@ -15,6 +15,7 @@ from langgraph.checkpoint.base import (
|
|
|
15
15
|
CheckpointTuple,
|
|
16
16
|
SerializerProtocol,
|
|
17
17
|
get_checkpoint_id,
|
|
18
|
+
get_checkpoint_metadata,
|
|
18
19
|
)
|
|
19
20
|
from langgraph.checkpoint.serde.jsonplus import JsonPlusSerializer
|
|
20
21
|
from langgraph.checkpoint.serde.types import ChannelProtocol
|
|
@@ -397,7 +398,9 @@ class SqliteSaver(BaseCheckpointSaver[str]):
|
|
|
397
398
|
thread_id = config["configurable"]["thread_id"]
|
|
398
399
|
checkpoint_ns = config["configurable"]["checkpoint_ns"]
|
|
399
400
|
type_, serialized_checkpoint = self.serde.dumps_typed(checkpoint)
|
|
400
|
-
serialized_metadata = self.jsonplus_serde.dumps(
|
|
401
|
+
serialized_metadata = self.jsonplus_serde.dumps(
|
|
402
|
+
get_checkpoint_metadata(config, metadata)
|
|
403
|
+
)
|
|
401
404
|
with self.cursor() as cur:
|
|
402
405
|
cur.execute(
|
|
403
406
|
"INSERT OR REPLACE INTO checkpoints (thread_id, checkpoint_ns, checkpoint_id, parent_checkpoint_id, type, checkpoint, metadata) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
|
@@ -16,6 +16,7 @@ from langgraph.checkpoint.base import (
|
|
|
16
16
|
CheckpointTuple,
|
|
17
17
|
SerializerProtocol,
|
|
18
18
|
get_checkpoint_id,
|
|
19
|
+
get_checkpoint_metadata,
|
|
19
20
|
)
|
|
20
21
|
from langgraph.checkpoint.serde.jsonplus import JsonPlusSerializer
|
|
21
22
|
from langgraph.checkpoint.serde.types import ChannelProtocol
|
|
@@ -463,7 +464,9 @@ class AsyncSqliteSaver(BaseCheckpointSaver[str]):
|
|
|
463
464
|
thread_id = config["configurable"]["thread_id"]
|
|
464
465
|
checkpoint_ns = config["configurable"]["checkpoint_ns"]
|
|
465
466
|
type_, serialized_checkpoint = self.serde.dumps_typed(checkpoint)
|
|
466
|
-
serialized_metadata = self.jsonplus_serde.dumps(
|
|
467
|
+
serialized_metadata = self.jsonplus_serde.dumps(
|
|
468
|
+
get_checkpoint_metadata(config, metadata)
|
|
469
|
+
)
|
|
467
470
|
async with (
|
|
468
471
|
self.lock,
|
|
469
472
|
self.conn.execute(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "langgraph-checkpoint-sqlite"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.5"
|
|
4
4
|
description = "Library with a SQLite implementation of LangGraph checkpoint saver."
|
|
5
5
|
authors = []
|
|
6
6
|
license = "MIT"
|
|
@@ -10,7 +10,7 @@ packages = [{ include = "langgraph" }]
|
|
|
10
10
|
|
|
11
11
|
[tool.poetry.dependencies]
|
|
12
12
|
python = "^3.9.0"
|
|
13
|
-
langgraph-checkpoint = "^2.0.
|
|
13
|
+
langgraph-checkpoint = "^2.0.15"
|
|
14
14
|
aiosqlite = "^0.20.0"
|
|
15
15
|
|
|
16
16
|
[tool.poetry.group.dev.dependencies]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|