langgraph-runtime-inmem 0.6.6__py3-none-any.whl → 0.6.7__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.
@@ -9,7 +9,7 @@ from langgraph_runtime_inmem import (
9
9
  store,
10
10
  )
11
11
 
12
- __version__ = "0.6.6"
12
+ __version__ = "0.6.7"
13
13
  __all__ = [
14
14
  "ops",
15
15
  "database",
@@ -649,9 +649,9 @@ def _patch_interrupt(
649
649
  interrupt = Interrupt(**interrupt)
650
650
 
651
651
  return {
652
- "id": interrupt.interrupt_id
653
- if hasattr(interrupt, "interrupt_id")
654
- else None,
652
+ "id": (
653
+ interrupt.interrupt_id if hasattr(interrupt, "interrupt_id") else None
654
+ ),
655
655
  "value": interrupt.value,
656
656
  "resumable": interrupt.resumable,
657
657
  "ns": interrupt.ns,
@@ -710,8 +710,6 @@ class Threads(Authenticated):
710
710
  continue
711
711
 
712
712
  filtered_threads.append(thread)
713
- # Get total count before pagination
714
- total_count = len(filtered_threads)
715
713
 
716
714
  if sort_by and sort_by in [
717
715
  "thread_id",
@@ -731,13 +729,13 @@ class Threads(Authenticated):
731
729
 
732
730
  # Apply limit and offset
733
731
  paginated_threads = sorted_threads[offset : offset + limit]
732
+ cursor = offset + limit if len(sorted_threads) > offset + limit else None
734
733
 
735
734
  async def thread_iterator() -> AsyncIterator[Thread]:
736
735
  for thread in paginated_threads:
737
736
  yield thread
738
737
 
739
- # Return both the iterator and the total count
740
- return thread_iterator(), total_count
738
+ return thread_iterator(), cursor
741
739
 
742
740
  @staticmethod
743
741
  async def _get_with_filters(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-runtime-inmem
3
- Version: 0.6.6
3
+ Version: 0.6.7
4
4
  Summary: Inmem implementation for the LangGraph API server.
5
5
  Author-email: Will Fu-Hinthorn <will@langchain.dev>
6
6
  License: Elastic-2.0
@@ -1,13 +1,13 @@
1
- langgraph_runtime_inmem/__init__.py,sha256=KDmH2YP4H44U-xjgCT_hgTMK9eR-VgmkmI6wGA-0k4g,310
1
+ langgraph_runtime_inmem/__init__.py,sha256=IO8abGzSnjJCCIfUCYcUfMMQUyqIIQ6oHu2-2yJJCg0,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=QHkoJiiKoKuMTNKlkpApxNsDhiR2CtlcQDR-zraTuew,89412
7
+ langgraph_runtime_inmem/ops.py,sha256=kx0f6pKqYTypbcoMByM6L0YBF4O0b1TEYpOqdBnJMao,89354
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.6.dist-info/METADATA,sha256=hkFJC5S9J-g-c1eGRwLWUh1nsMCE4omusGOeMIKar8M,565
12
- langgraph_runtime_inmem-0.6.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
- langgraph_runtime_inmem-0.6.6.dist-info/RECORD,,
11
+ langgraph_runtime_inmem-0.6.7.dist-info/METADATA,sha256=83cPJjL678QXBM5qzhYS5CRQZUObUqyGjQRLMI-1TBA,565
12
+ langgraph_runtime_inmem-0.6.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
+ langgraph_runtime_inmem-0.6.7.dist-info/RECORD,,