langgraph-runtime-inmem 0.6.6__py3-none-any.whl → 0.6.8__py3-none-any.whl
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_runtime_inmem/__init__.py +1 -1
- langgraph_runtime_inmem/ops.py +7 -11
- {langgraph_runtime_inmem-0.6.6.dist-info → langgraph_runtime_inmem-0.6.8.dist-info}/METADATA +1 -1
- {langgraph_runtime_inmem-0.6.6.dist-info → langgraph_runtime_inmem-0.6.8.dist-info}/RECORD +5 -5
- {langgraph_runtime_inmem-0.6.6.dist-info → langgraph_runtime_inmem-0.6.8.dist-info}/WHEEL +0 -0
langgraph_runtime_inmem/ops.py
CHANGED
|
@@ -157,9 +157,6 @@ class Assistants(Authenticated):
|
|
|
157
157
|
and (not filters or _check_filter_match(assistant["metadata"], filters))
|
|
158
158
|
]
|
|
159
159
|
|
|
160
|
-
# Get total count before sorting and pagination
|
|
161
|
-
total_count = len(filtered_assistants)
|
|
162
|
-
|
|
163
160
|
# Sort based on sort_by and sort_order
|
|
164
161
|
sort_by = sort_by.lower() if sort_by else None
|
|
165
162
|
if sort_by and sort_by in (
|
|
@@ -186,12 +183,13 @@ class Assistants(Authenticated):
|
|
|
186
183
|
|
|
187
184
|
# Apply pagination
|
|
188
185
|
paginated_assistants = filtered_assistants[offset : offset + limit]
|
|
186
|
+
cur = offset + limit if len(filtered_assistants) > offset + limit else None
|
|
189
187
|
|
|
190
188
|
async def assistant_iterator() -> AsyncIterator[Assistant]:
|
|
191
189
|
for assistant in paginated_assistants:
|
|
192
190
|
yield assistant
|
|
193
191
|
|
|
194
|
-
return assistant_iterator(),
|
|
192
|
+
return assistant_iterator(), cur
|
|
195
193
|
|
|
196
194
|
@staticmethod
|
|
197
195
|
async def get(
|
|
@@ -649,9 +647,9 @@ def _patch_interrupt(
|
|
|
649
647
|
interrupt = Interrupt(**interrupt)
|
|
650
648
|
|
|
651
649
|
return {
|
|
652
|
-
"id":
|
|
653
|
-
|
|
654
|
-
|
|
650
|
+
"id": (
|
|
651
|
+
interrupt.interrupt_id if hasattr(interrupt, "interrupt_id") else None
|
|
652
|
+
),
|
|
655
653
|
"value": interrupt.value,
|
|
656
654
|
"resumable": interrupt.resumable,
|
|
657
655
|
"ns": interrupt.ns,
|
|
@@ -710,8 +708,6 @@ class Threads(Authenticated):
|
|
|
710
708
|
continue
|
|
711
709
|
|
|
712
710
|
filtered_threads.append(thread)
|
|
713
|
-
# Get total count before pagination
|
|
714
|
-
total_count = len(filtered_threads)
|
|
715
711
|
|
|
716
712
|
if sort_by and sort_by in [
|
|
717
713
|
"thread_id",
|
|
@@ -731,13 +727,13 @@ class Threads(Authenticated):
|
|
|
731
727
|
|
|
732
728
|
# Apply limit and offset
|
|
733
729
|
paginated_threads = sorted_threads[offset : offset + limit]
|
|
730
|
+
cursor = offset + limit if len(sorted_threads) > offset + limit else None
|
|
734
731
|
|
|
735
732
|
async def thread_iterator() -> AsyncIterator[Thread]:
|
|
736
733
|
for thread in paginated_threads:
|
|
737
734
|
yield thread
|
|
738
735
|
|
|
739
|
-
|
|
740
|
-
return thread_iterator(), total_count
|
|
736
|
+
return thread_iterator(), cursor
|
|
741
737
|
|
|
742
738
|
@staticmethod
|
|
743
739
|
async def _get_with_filters(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
langgraph_runtime_inmem/__init__.py,sha256=
|
|
1
|
+
langgraph_runtime_inmem/__init__.py,sha256=Zy5RCTPPvryu_HMij5RWuFUvkeY5gEeOV66pJgigHDM,310
|
|
2
2
|
langgraph_runtime_inmem/checkpoint.py,sha256=nc1G8DqVdIu-ibjKTqXfbPfMbAsKjPObKqegrSzo6Po,4432
|
|
3
3
|
langgraph_runtime_inmem/database.py,sha256=G_6L2khpRDSpS2Vs_SujzHayODcwG5V2IhFP7LLBXgw,6349
|
|
4
4
|
langgraph_runtime_inmem/inmem_stream.py,sha256=65z_2mBNJ0-yJsXWnlYwRc71039_y6Sa0MN8fL_U3Ko,4581
|
|
5
5
|
langgraph_runtime_inmem/lifespan.py,sha256=t0w2MX2dGxe8yNtSX97Z-d2pFpllSLS4s1rh2GJDw5M,3557
|
|
6
6
|
langgraph_runtime_inmem/metrics.py,sha256=HhO0RC2bMDTDyGBNvnd2ooLebLA8P1u5oq978Kp_nAA,392
|
|
7
|
-
langgraph_runtime_inmem/ops.py,sha256=
|
|
7
|
+
langgraph_runtime_inmem/ops.py,sha256=CpicJwlu55cGm8WMWtfyse1Sy1rj8vLZqbLWVF45mB0,89326
|
|
8
8
|
langgraph_runtime_inmem/queue.py,sha256=nqfgz7j_Jkh5Ek5-RsHB2Uvwbxguu9IUPkGXIxvFPns,10037
|
|
9
9
|
langgraph_runtime_inmem/retry.py,sha256=XmldOP4e_H5s264CagJRVnQMDFcEJR_dldVR1Hm5XvM,763
|
|
10
10
|
langgraph_runtime_inmem/store.py,sha256=rTfL1JJvd-j4xjTrL8qDcynaWF6gUJ9-GDVwH0NBD_I,3506
|
|
11
|
-
langgraph_runtime_inmem-0.6.
|
|
12
|
-
langgraph_runtime_inmem-0.6.
|
|
13
|
-
langgraph_runtime_inmem-0.6.
|
|
11
|
+
langgraph_runtime_inmem-0.6.8.dist-info/METADATA,sha256=v2xaQ-PTil64hCubv5PMmqlc-k1xQSExh4jisUNbTCk,565
|
|
12
|
+
langgraph_runtime_inmem-0.6.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
13
|
+
langgraph_runtime_inmem-0.6.8.dist-info/RECORD,,
|
|
File without changes
|