langgraph-runtime-inmem 0.39.0.dev3__tar.gz → 0.39.0.dev5__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.
Files changed (19) hide show
  1. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/PKG-INFO +1 -1
  2. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/__init__.py +1 -1
  3. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/ops.py +23 -4
  4. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/uv.lock +6 -6
  5. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/.gitignore +0 -0
  6. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/Makefile +0 -0
  7. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/README.md +0 -0
  8. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/_persistence.py +0 -0
  9. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/checkpoint.py +0 -0
  10. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/database.py +0 -0
  11. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/encryption.py +0 -0
  12. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/inmem_stream.py +0 -0
  13. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/lifespan.py +0 -0
  14. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/metrics.py +0 -0
  15. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/queue.py +0 -0
  16. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/retry.py +0 -0
  17. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/routes.py +0 -0
  18. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/langgraph_runtime_inmem/store.py +0 -0
  19. {langgraph_runtime_inmem-0.39.0.dev3 → langgraph_runtime_inmem-0.39.0.dev5}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-runtime-inmem
3
- Version: 0.39.0.dev3
3
+ Version: 0.39.0.dev5
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
@@ -11,7 +11,7 @@ from langgraph_runtime_inmem import (
11
11
  store,
12
12
  )
13
13
 
14
- __version__ = "0.39.0.dev3"
14
+ __version__ = "0.39.0.dev5"
15
15
  __all__ = [
16
16
  "ops",
17
17
  "database",
@@ -241,8 +241,11 @@ async def _save_thread_status(
241
241
 
242
242
  def _run_stream_mode_matches(event_mode: str, stream_mode: list[str] | None) -> bool:
243
243
  """Return True if a published run-stream event matches the join filter."""
244
- # A run's error is its outcome, not a selectable mode, so no filter drops it.
245
- if not stream_mode or event_mode == "error":
244
+ # The interrupts a run answers are for the thread's other clients.
245
+ if event_mode == "interrupts":
246
+ return False
247
+ # A run's error and end are its outcome, not selectable modes, so no filter drops them.
248
+ if not stream_mode or event_mode in ("error", "end"):
246
249
  return True
247
250
  if event_mode in stream_mode:
248
251
  return True
@@ -1580,6 +1583,8 @@ class Threads(Authenticated):
1580
1583
  conn: InMemConnectionProto,
1581
1584
  thread_id: UUID,
1582
1585
  ctx: Auth.types.BaseAuthContext | None = None,
1586
+ *,
1587
+ sync_checkpoint_delete: bool = False, # deletes are always synchronous
1583
1588
  ) -> AsyncIterator[UUID]:
1584
1589
  """Delete a thread by ID and cascade delete all associated runs."""
1585
1590
  thread_list = conn.store["threads"]
@@ -1638,6 +1643,8 @@ class Threads(Authenticated):
1638
1643
  strategy: Literal["delete", "keep_latest"] = "delete",
1639
1644
  batch_size: int = 100,
1640
1645
  ctx: Auth.types.BaseAuthContext | None = None,
1646
+ *,
1647
+ sync_checkpoint_delete: bool = False,
1641
1648
  ) -> int:
1642
1649
  """Prune threads by ID (inmem implementation).
1643
1650
 
@@ -1646,6 +1653,7 @@ class Threads(Authenticated):
1646
1653
  strategy: Prune strategy ("delete" supported, "keep_latest" not supported)
1647
1654
  batch_size: Not used in inmem implementation
1648
1655
  ctx: Auth context for permission checks
1656
+ sync_checkpoint_delete: Not used; inmem deletes are always synchronous
1649
1657
 
1650
1658
  Returns:
1651
1659
  Number of threads successfully pruned
@@ -1858,8 +1866,13 @@ class Threads(Authenticated):
1858
1866
  config: Config,
1859
1867
  subgraphs: bool = False,
1860
1868
  ctx: Auth.types.BaseAuthContext | None = None,
1869
+ channels: Sequence[str] | None = None,
1861
1870
  ) -> StateSnapshot:
1862
- """Get state for a thread."""
1871
+ """Get state for a thread.
1872
+
1873
+ ``channels`` is accepted for parity with the gRPC runtime; the
1874
+ in-memory checkpointer always loads whole checkpoints.
1875
+ """
1863
1876
  from langgraph_api.graph import get_graph # noqa: PLC0415
1864
1877
  from langgraph_api.store import get_store # noqa: PLC0415
1865
1878
 
@@ -3220,8 +3233,14 @@ class Runs(Authenticated):
3220
3233
  *,
3221
3234
  thread_id: UUID,
3222
3235
  ctx: Auth.types.BaseAuthContext | None = None,
3236
+ read_mask_paths: list[str] | None = None,
3223
3237
  ) -> AsyncIterator[Run]:
3224
- """Get a run by ID."""
3238
+ """Get a run by ID.
3239
+
3240
+ Args:
3241
+ read_mask_paths: Column restriction hint for the postgres runtime;
3242
+ ignored for inmem since there's no input-column I/O to skip.
3243
+ """
3225
3244
 
3226
3245
  run_id, thread_id = _ensure_uuid(run_id), _ensure_uuid(thread_id)
3227
3246
  filters = await Runs.handle_event(
@@ -283,7 +283,7 @@ wheels = [
283
283
 
284
284
  [[package]]
285
285
  name = "langgraph"
286
- version = "1.2.6"
286
+ version = "1.2.19"
287
287
  source = { registry = "https://pypi.org/simple" }
288
288
  dependencies = [
289
289
  { name = "langchain-core" },
@@ -293,9 +293,9 @@ dependencies = [
293
293
  { name = "pydantic" },
294
294
  { name = "xxhash" },
295
295
  ]
296
- sdist = { url = "https://files.pythonhosted.org/packages/02/7a/ea09b05bb0cbddfa43bd34fc581357e87fc3f21a751cc0d419688c3106da/langgraph-1.2.6.tar.gz", hash = "sha256:f9b45a34f13930c94d96cdb76277447ad2cc70ec2d18cd2764d7fdadb36cdc1b", size = 714400, upload-time = "2026-06-18T20:58:21.514Z" }
296
+ sdist = { url = "https://files.pythonhosted.org/packages/ba/10/329dc49ce3fc40e36faafd407f08607fe3fab75613e709a66758b53faac2/langgraph-1.2.19.tar.gz", hash = "sha256:4a00fa1aad2b5fc2d3a789a8e9eaf993f76218ca924b434902ecf1bbaaf300f6", size = 782618, upload-time = "2026-10-30T22:23:32.962Z" }
297
297
  wheels = [
298
- { url = "https://files.pythonhosted.org/packages/89/32/772db1b00a9fe42f50320d1aa20caefb76e621eff1f7218b9918093d631d/langgraph-1.2.6-py3-none-any.whl", hash = "sha256:1cf94d3ca124f84f77ce408fa1b06c3dee680a8aafffe364a8fd5d7d03eb8695", size = 246132, upload-time = "2026-06-18T20:58:20.335Z" },
298
+ { url = "https://files.pythonhosted.org/packages/d7/9e/bd29e368fb16feea8d24270d377d56c34b49afea371717124f19cdfa890c/langgraph-1.2.19-py3-none-any.whl", hash = "sha256:6094a5cbed52a77d8c74c276fcd2056abde7b2836eab1c7a6b74bacbd1a269b3", size = 262285, upload-time = "2026-10-30T22:23:31.334Z" },
299
299
  ]
300
300
 
301
301
  [[package]]
@@ -388,7 +388,7 @@ dev = [
388
388
 
389
389
  [[package]]
390
390
  name = "langgraph-sdk"
391
- version = "0.4.4"
391
+ version = "0.4.11"
392
392
  source = { registry = "https://pypi.org/simple" }
393
393
  dependencies = [
394
394
  { name = "httpx" },
@@ -397,9 +397,9 @@ dependencies = [
397
397
  { name = "orjson" },
398
398
  { name = "websockets" },
399
399
  ]
400
- sdist = { url = "https://files.pythonhosted.org/packages/3f/ae/91446c1fffa04a2dc1f81afbfb5bfff3590452891a72bd9098a656ab2657/langgraph_sdk-0.4.4.tar.gz", hash = "sha256:4e651ffa09de695681579396375377bdde23bedbc8e35b070e615cbd5af7da8b", size = 345789, upload-time = "2026-08-27T21:25:22.593Z" }
400
+ sdist = { url = "https://files.pythonhosted.org/packages/64/a8/d5807df5976f2b8e181baddbddf857cc0ba501bba274e81711b10385c65b/langgraph_sdk-0.4.11.tar.gz", hash = "sha256:2550af3bc7cb78ac4facb97d141ec1a76568fa3eb3d29040cff70b45bda84740", size = 366656, upload-time = "2026-10-30T22:17:49.202Z" }
401
401
  wheels = [
402
- { url = "https://files.pythonhosted.org/packages/43/d5/2ad7f3a835c6fcebf58b6669552536ecd52d2dfe4cf49c6c36648fd83572/langgraph_sdk-0.4.4-py3-none-any.whl", hash = "sha256:39afe416c91742925e6f8a93715f566d499b36e1b636b804a4ffe3190e4f4e64", size = 162270, upload-time = "2026-08-27T21:25:21.072Z" },
402
+ { url = "https://files.pythonhosted.org/packages/01/88/69899bb20b96b80468e98b90377e605c36658125e7e7fba401868a86138e/langgraph_sdk-0.4.11-py3-none-any.whl", hash = "sha256:6a65be4a8f825966a07317b8e34e3337cd227b9b58b185f0123fd13c3d0116fa", size = 169311, upload-time = "2026-10-30T22:17:47.96Z" },
403
403
  ]
404
404
 
405
405
  [[package]]