langgraph-checkpointer-couchbase 1.0.1__tar.gz → 1.0.3__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.1 → langgraph_checkpointer_couchbase-1.0.3}/PKG-INFO +5 -5
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/README.md +1 -1
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/langgraph_checkpointer_couchbase/async_cb_saver.py +4 -5
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/langgraph_checkpointer_couchbase/couchbase_saver.py +2 -2
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/pyproject.toml +4 -4
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/.env.example +0 -0
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/.github/workflows/release.yaml +0 -0
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/.gitignore +0 -0
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/LICENSE +0 -0
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/langgraph_checkpointer_couchbase/__init__.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/langgraph_checkpointer_couchbase/utils.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/tests/__init__.py +0 -0
- {langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/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.3
|
|
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
|
|
@@ -168,7 +168,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
168
168
|
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
169
169
|
---
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
## 📢 Support Policy
|
|
172
172
|
|
|
173
173
|
We truly appreciate your interest in this project!
|
|
174
174
|
This project is **community-maintained**, which means it's **not officially supported** by our support team.
|
|
@@ -141,7 +141,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
141
141
|
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
142
142
|
---
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
## 📢 Support Policy
|
|
145
145
|
|
|
146
146
|
We truly appreciate your interest in this project!
|
|
147
147
|
This project is **community-maintained**, which means it's **not officially supported** by our support team.
|
|
@@ -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)
|
|
@@ -331,8 +329,9 @@ class AsyncCouchbaseSaver(BaseCheckpointSaver):
|
|
|
331
329
|
for idx, (channel, value) in enumerate(writes):
|
|
332
330
|
upsert_key = f"{thread_id}::{checkpoint_ns}::{checkpoint_id}::{task_id}::{idx}"
|
|
333
331
|
type_, serialized_value = self.serde.dumps_typed(value)
|
|
334
|
-
|
|
335
|
-
|
|
332
|
+
|
|
333
|
+
serialized_value = _encode_binary(serialized_value)
|
|
334
|
+
|
|
336
335
|
doc = {
|
|
337
336
|
"thread_id": thread_id,
|
|
338
337
|
"checkpoint_ns": checkpoint_ns,
|
|
@@ -374,8 +374,8 @@ class CouchbaseSaver(BaseCheckpointSaver):
|
|
|
374
374
|
type_, serialized_value = self.serde.dumps_typed(value)
|
|
375
375
|
|
|
376
376
|
# Encode the serialized value to base64 string
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
|
|
378
|
+
serialized_value = _encode_binary(serialized_value)
|
|
379
379
|
|
|
380
380
|
doc = {
|
|
381
381
|
"thread_id": thread_id,
|
{langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/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.3"
|
|
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.1 → langgraph_checkpointer_couchbase-1.0.3}/.env.example
RENAMED
|
File without changes
|
|
File without changes
|
{langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langgraph_checkpointer_couchbase-1.0.1 → langgraph_checkpointer_couchbase-1.0.3}/tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|