langgraph-runtime-inmem 0.36.0.dev7__tar.gz → 0.36.0.dev8__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.
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/PKG-INFO +1 -1
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/__init__.py +1 -1
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/ops.py +11 -5
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/.gitignore +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/Makefile +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/README.md +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/_persistence.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/checkpoint.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/database.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/inmem_stream.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/lifespan.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/metrics.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/queue.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/retry.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/routes.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/langgraph_runtime_inmem/store.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/pyproject.toml +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev8}/uv.lock +0 -0
|
@@ -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
|
-
|
|
861
|
-
|
|
862
|
-
"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|