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.
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/PKG-INFO +1 -1
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/__init__.py +1 -1
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/database.py +6 -1
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/ops.py +11 -5
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/.gitignore +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/Makefile +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/README.md +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/_persistence.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/checkpoint.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/inmem_stream.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/lifespan.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/metrics.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/queue.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/retry.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/routes.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/langgraph_runtime_inmem/store.py +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/pyproject.toml +0 -0
- {langgraph_runtime_inmem-0.36.0.dev7 → langgraph_runtime_inmem-0.36.0.dev9}/uv.lock +0 -0
|
@@ -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
|
-
|
|
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
|