langgraph-checkpointer-couchbase 1.0.2__tar.gz → 1.0.4__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_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/PKG-INFO +4 -4
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/langgraph_checkpointer_couchbase/async_cb_saver.py +1 -3
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/langgraph_checkpointer_couchbase/couchbase_saver.py +4 -7
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/pyproject.toml +4 -4
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/.env.example +0 -0
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/.github/workflows/release.yaml +0 -0
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/.gitignore +0 -0
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/LICENSE +0 -0
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/README.md +0 -0
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/langgraph_checkpointer_couchbase/__init__.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/langgraph_checkpointer_couchbase/utils.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/tests/__init__.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/tests/agent_e2e_test.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langgraph-checkpointer-couchbase
|
|
3
|
-
Version: 1.0.
|
|
4
|
-
Project-URL: Documentation, https://github.com/
|
|
5
|
-
Project-URL: Issues, https://github.com/
|
|
6
|
-
Project-URL: Source, https://github.com/
|
|
3
|
+
Version: 1.0.4
|
|
4
|
+
Project-URL: Documentation, https://github.com/couchbase-ecosystem/langgraph-checkpointer-couchbase#readme
|
|
5
|
+
Project-URL: Issues, https://github.com/couchbase-ecosystem/langgraph-checkpointer-couchbase/issues
|
|
6
|
+
Project-URL: Source, https://github.com/couchbase-ecosystem/langgraph-checkpointer-couchbase
|
|
7
7
|
Author-email: Lokesh Goel <lokesh.goel@couchbase.com>
|
|
8
8
|
License-Expression: MIT
|
|
9
9
|
License-File: LICENSE
|
|
@@ -129,7 +129,6 @@ class AsyncCouchbaseSaver(BaseCheckpointSaver):
|
|
|
129
129
|
query = f'SELECT * FROM {self.bucket_name}.{self.scope_name}.`{self.checkpoints_collection_name}` WHERE thread_id = $1 AND checkpoint_ns = $2 ORDER BY checkpoint_id DESC LIMIT 1'
|
|
130
130
|
query_params = [thread_id, checkpoint_ns]
|
|
131
131
|
|
|
132
|
-
print(query)
|
|
133
132
|
result = self.cluster.query(query, QueryOptions(positional_parameters=query_params))
|
|
134
133
|
|
|
135
134
|
async for row in result:
|
|
@@ -148,7 +147,6 @@ class AsyncCouchbaseSaver(BaseCheckpointSaver):
|
|
|
148
147
|
|
|
149
148
|
pending_writes = []
|
|
150
149
|
async for write_doc in serialized_writes_result:
|
|
151
|
-
print(f"write_doc: {write_doc}") # Debugging statement to log the contents of write_doc
|
|
152
150
|
checkpoint_writes = write_doc.get(self.checkpoint_writes_collection_name, {})
|
|
153
151
|
if "task_id" not in checkpoint_writes:
|
|
154
152
|
print("Error: 'task_id' is not present in checkpoint_writes")
|
|
@@ -293,7 +291,7 @@ class AsyncCouchbaseSaver(BaseCheckpointSaver):
|
|
|
293
291
|
"checkpoint_ns": checkpoint_ns,
|
|
294
292
|
"checkpoint_id": checkpoint_id,
|
|
295
293
|
}
|
|
296
|
-
|
|
294
|
+
|
|
297
295
|
upsert_key = f"{thread_id}::{checkpoint_ns}::{checkpoint_id}"
|
|
298
296
|
|
|
299
297
|
collection = self.bucket.scope(self.scope_name).collection(self.checkpoints_collection_name)
|
|
@@ -7,7 +7,6 @@ from couchbase.cluster import Cluster
|
|
|
7
7
|
from couchbase.bucket import Bucket
|
|
8
8
|
from couchbase.auth import PasswordAuthenticator
|
|
9
9
|
from couchbase.options import ClusterOptions, QueryOptions, UpsertOptions
|
|
10
|
-
from couchbase.management.collections import CollectionSpec
|
|
11
10
|
from couchbase.exceptions import CollectionAlreadyExistsException
|
|
12
11
|
|
|
13
12
|
from langgraph.checkpoint.base import (
|
|
@@ -115,9 +114,8 @@ class CouchbaseSaver(BaseCheckpointSaver):
|
|
|
115
114
|
|
|
116
115
|
collection_manager = self.bucket.collections()
|
|
117
116
|
try:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
except CollectionAlreadyExistsException as caee:
|
|
117
|
+
collection_manager.create_collection(self.checkpoints_collection_name, self.scope_name)
|
|
118
|
+
except CollectionAlreadyExistsException as _:
|
|
121
119
|
pass
|
|
122
120
|
except Exception as e:
|
|
123
121
|
print(f"Error creating collections: {e}")
|
|
@@ -126,9 +124,8 @@ class CouchbaseSaver(BaseCheckpointSaver):
|
|
|
126
124
|
self.checkpoints_collection = self.bucket.scope(self.scope_name).collection(self.checkpoints_collection_name)
|
|
127
125
|
|
|
128
126
|
try:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
except CollectionAlreadyExistsException as caee:
|
|
127
|
+
collection_manager.create_collection(self.checkpoint_writes_collection_name, self.scope_name)
|
|
128
|
+
except CollectionAlreadyExistsException as _:
|
|
132
129
|
pass
|
|
133
130
|
except Exception as e:
|
|
134
131
|
print(f"Error creating collections: {e}")
|
{langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/pyproject.toml
RENAMED
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "langgraph-checkpointer-couchbase"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.4"
|
|
8
8
|
description = ''
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -33,9 +33,9 @@ dependencies = [
|
|
|
33
33
|
]
|
|
34
34
|
|
|
35
35
|
[project.urls]
|
|
36
|
-
Documentation = "https://github.com/
|
|
37
|
-
Issues = "https://github.com/
|
|
38
|
-
Source = "https://github.com/
|
|
36
|
+
Documentation = "https://github.com/couchbase-ecosystem/langgraph-checkpointer-couchbase#readme"
|
|
37
|
+
Issues = "https://github.com/couchbase-ecosystem/langgraph-checkpointer-couchbase/issues"
|
|
38
|
+
Source = "https://github.com/couchbase-ecosystem/langgraph-checkpointer-couchbase"
|
|
39
39
|
|
|
40
40
|
[tool.hatch.version]
|
|
41
41
|
path = "src/langgraph_checkpointer_couchbase/__about__.py"
|
{langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/.env.example
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_checkpointer_couchbase-1.0.2 → langgraph_checkpointer_couchbase-1.0.4}/tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|