langgraph-runtime-inmem 0.36.0.dev7__tar.gz → 0.36.0.dev9__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 (18) hide show
  1. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/PKG-INFO +1 -1
  2. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/__init__.py +1 -1
  3. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/database.py +6 -1
  4. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/ops.py +11 -5
  5. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/.gitignore +0 -0
  6. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/Makefile +0 -0
  7. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/README.md +0 -0
  8. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/_persistence.py +0 -0
  9. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/checkpoint.py +0 -0
  10. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/inmem_stream.py +0 -0
  11. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/lifespan.py +0 -0
  12. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/metrics.py +0 -0
  13. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/queue.py +0 -0
  14. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/retry.py +0 -0
  15. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/routes.py +0 -0
  16. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/store.py +0 -0
  17. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/pyproject.toml +0 -0
  18. {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-runtime-inmem
3
- Version: 0.36.0.dev7
3
+ Version: 0.36.0.dev9
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
@@ -10,7 +10,7 @@ from langgraph_runtime_inmem import (
10
10
  store,
11
11
  )
12
12
 
13
- __version__ = "0.36.0.dev7"
13
+ __version__ = "0.36.0.dev9"
14
14
  __all__ = [
15
15
  "ops",
16
16
  "database",
@@ -2,7 +2,7 @@ import asyncio
2
2
  import os
3
3
  import uuid
4
4
  from collections import defaultdict
5
- from collections.abc import AsyncIterator
5
+ from collections.abc import AsyncIterator, Awaitable, Callable
6
6
  from contextlib import asynccontextmanager
7
7
  from datetime import datetime
8
8
  from typing import TYPE_CHECKING, Any, NotRequired
@@ -214,6 +214,11 @@ async def stop_pool() -> None:
214
214
  await stop_stream()
215
215
 
216
216
 
217
+ def dependency_checks() -> dict[str, Callable[[], Awaitable[None]]]:
218
+ """No external data dependencies to probe."""
219
+ return {}
220
+
221
+
217
222
  async def healthcheck(*, check_db: bool = True) -> None:
218
223
  # What could possibly go wrong?
219
224
  pass
@@ -852,15 +852,21 @@ def _patch_interrupt(
852
852
 
853
853
  In v0.4 and v0.5, interrupt_id is a property on the langgraph.types.Interrupt object,
854
854
  so we reconstruct the type in order to access the id, with compatibility for the new
855
- v0.6 interrupt format as well.
855
+ v0.6 interrupt format as well. `response_schema` is optional; older langgraph releases
856
+ do not set it.
856
857
  """
857
858
  if USE_NEW_INTERRUPTS:
859
+ response_schema = (
860
+ interrupt.get("response_schema")
861
+ if isinstance(interrupt, dict)
862
+ else getattr(interrupt, "response_schema", None)
863
+ )
858
864
  interrupt = Interrupt(**interrupt) if isinstance(interrupt, dict) else interrupt
859
865
 
860
- return {
861
- "id": interrupt.id,
862
- "value": interrupt.value,
863
- }
866
+ patched: InterruptSchema = {"id": interrupt.id, "value": interrupt.value}
867
+ if response_schema is not None:
868
+ patched["response_schema"] = response_schema
869
+ return patched
864
870
  else:
865
871
  if isinstance(interrupt, dict):
866
872
  # interrupt_id is a deprecated property on Interrupt and should not be used for initialization