Skip to content

Commit c63702c

Browse files
fix schema definitions
1 parent f5f1f67 commit c63702c

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

langgraph/checkpoint/redis/base.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
{
3232
"index": {
3333
"name": "checkpoints",
34-
"prefix": CHECKPOINT_PREFIX + REDIS_KEY_SEPARATOR,
34+
"prefix": CHECKPOINT_PREFIX,
35+
"key_separator": REDIS_KEY_SEPARATOR,
3536
"storage_type": "json",
3637
},
3738
"fields": [
@@ -46,7 +47,8 @@
4647
{
4748
"index": {
4849
"name": "checkpoints_blobs",
49-
"prefix": CHECKPOINT_BLOB_PREFIX + REDIS_KEY_SEPARATOR,
50+
"prefix": CHECKPOINT_BLOB_PREFIX,
51+
"key_separator": REDIS_KEY_SEPARATOR,
5052
"storage_type": "json",
5153
},
5254
"fields": [
@@ -60,7 +62,8 @@
6062
{
6163
"index": {
6264
"name": "checkpoint_writes",
63-
"prefix": CHECKPOINT_WRITE_PREFIX + REDIS_KEY_SEPARATOR,
65+
"prefix": CHECKPOINT_WRITE_PREFIX,
66+
"key_separator": REDIS_KEY_SEPARATOR,
6467
"storage_type": "json",
6568
},
6669
"fields": [

langgraph/checkpoint/redis/shallow.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
{
3232
"index": {
3333
"name": "checkpoints",
34-
"prefix": CHECKPOINT_PREFIX + REDIS_KEY_SEPARATOR,
34+
"prefix": CHECKPOINT_PREFIX,
35+
"key_separator": REDIS_KEY_SEPARATOR,
3536
"storage_type": "json",
3637
},
3738
"fields": [
@@ -44,7 +45,8 @@
4445
{
4546
"index": {
4647
"name": "checkpoints_blobs",
47-
"prefix": CHECKPOINT_BLOB_PREFIX + REDIS_KEY_SEPARATOR,
48+
"prefix": CHECKPOINT_BLOB_PREFIX,
49+
"key_separator": REDIS_KEY_SEPARATOR,
4850
"storage_type": "json",
4951
},
5052
"fields": [
@@ -57,7 +59,8 @@
5759
{
5860
"index": {
5961
"name": "checkpoint_writes",
60-
"prefix": CHECKPOINT_WRITE_PREFIX + REDIS_KEY_SEPARATOR,
62+
"prefix": CHECKPOINT_WRITE_PREFIX,
63+
"key_separator": REDIS_KEY_SEPARATOR,
6164
"storage_type": "json",
6265
},
6366
"fields": [

0 commit comments

Comments
 (0)