langgraph-checkpointer-couchbase 1.0.3__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.3 → langgraph_checkpointer_couchbase-1.0.4}/PKG-INFO +1 -1
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/langgraph_checkpointer_couchbase/couchbase_saver.py +4 -7
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/pyproject.toml +1 -1
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/.env.example +0 -0
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/.github/workflows/release.yaml +0 -0
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/.gitignore +0 -0
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/LICENSE +0 -0
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/README.md +0 -0
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/langgraph_checkpointer_couchbase/__init__.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/langgraph_checkpointer_couchbase/async_cb_saver.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/langgraph_checkpointer_couchbase/utils.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/tests/__init__.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/tests/agent_e2e_test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langgraph-checkpointer-couchbase
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.4
|
|
4
4
|
Project-URL: Documentation, https://github.com/couchbase-ecosystem/langgraph-checkpointer-couchbase#readme
|
|
5
5
|
Project-URL: Issues, https://github.com/couchbase-ecosystem/langgraph-checkpointer-couchbase/issues
|
|
6
6
|
Project-URL: Source, https://github.com/couchbase-ecosystem/langgraph-checkpointer-couchbase
|
|
@@ -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.3 → langgraph_checkpointer_couchbase-1.0.4}/.env.example
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_checkpointer_couchbase-1.0.3 → langgraph_checkpointer_couchbase-1.0.4}/tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|