langgraph-runtime-inmem 0.9.0__py3-none-any.whl → 0.20.1__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.
- langgraph_runtime_inmem/__init__.py +1 -1
- langgraph_runtime_inmem/database.py +3 -1
- langgraph_runtime_inmem/inmem_stream.py +24 -2
- langgraph_runtime_inmem/lifespan.py +41 -2
- langgraph_runtime_inmem/metrics.py +1 -1
- langgraph_runtime_inmem/ops.py +463 -230
- langgraph_runtime_inmem/queue.py +16 -16
- {langgraph_runtime_inmem-0.9.0.dist-info → langgraph_runtime_inmem-0.20.1.dist-info}/METADATA +3 -3
- langgraph_runtime_inmem-0.20.1.dist-info/RECORD +13 -0
- {langgraph_runtime_inmem-0.9.0.dist-info → langgraph_runtime_inmem-0.20.1.dist-info}/WHEEL +1 -1
- langgraph_runtime_inmem-0.9.0.dist-info/RECORD +0 -13
langgraph_runtime_inmem/queue.py
CHANGED
|
@@ -154,30 +154,24 @@ def _enable_blockbuster():
|
|
|
154
154
|
|
|
155
155
|
ls_env.get_runtime_environment() # this gets cached
|
|
156
156
|
bb = BlockBuster(excluded_modules=[])
|
|
157
|
-
for module, func in (
|
|
158
|
-
# Note, we've cached this call in langsmith==0.3.21 so it shouldn't raise anyway
|
|
159
|
-
# but we don't want to raise teh minbound just for that.
|
|
160
|
-
("langsmith/client.py", "_default_retry_config"),
|
|
161
|
-
# Only triggers in python 3.11 for getting subgraphs
|
|
162
|
-
# Will be unnecessary once we cache the assistant schemas
|
|
163
|
-
("langgraph/pregel/utils.py", "get_function_nonlocals"),
|
|
164
|
-
("importlib/metadata/__init__.py", "metadata"),
|
|
165
|
-
("importlib/metadata/__init__.py", "read_text"),
|
|
166
|
-
):
|
|
167
|
-
bb.functions["io.TextIOWrapper.read"].can_block_in(module, func)
|
|
168
157
|
|
|
169
158
|
bb.functions["os.path.abspath"].can_block_in("inspect.py", "getmodule")
|
|
159
|
+
for fn in (
|
|
160
|
+
"os.access",
|
|
161
|
+
"os.getcwd",
|
|
162
|
+
"os.unlink",
|
|
163
|
+
"os.write",
|
|
164
|
+
):
|
|
165
|
+
bb.functions[fn].can_block_in(
|
|
166
|
+
"langgraph_api/api/profile.py", "_profile_with_pyspy"
|
|
167
|
+
)
|
|
170
168
|
|
|
171
169
|
for module, func in (
|
|
172
170
|
("memory/__init__.py", "sync"),
|
|
173
171
|
("memory/__init__.py", "load"),
|
|
174
172
|
("memory/__init__.py", "dump"),
|
|
173
|
+
("pydantic/main.py", "__init__"),
|
|
175
174
|
):
|
|
176
|
-
bb.functions["io.TextIOWrapper.read"].can_block_in(module, func)
|
|
177
|
-
bb.functions["io.TextIOWrapper.write"].can_block_in(module, func)
|
|
178
|
-
bb.functions["io.BufferedWriter.write"].can_block_in(module, func)
|
|
179
|
-
bb.functions["io.BufferedReader.read"].can_block_in(module, func)
|
|
180
|
-
|
|
181
175
|
bb.functions["os.remove"].can_block_in(module, func)
|
|
182
176
|
bb.functions["os.rename"].can_block_in(module, func)
|
|
183
177
|
|
|
@@ -199,6 +193,12 @@ def _enable_blockbuster():
|
|
|
199
193
|
# as well as importlib.metadata.
|
|
200
194
|
"os.listdir",
|
|
201
195
|
"os.remove",
|
|
196
|
+
# We used to block the IO things but people use them so often that
|
|
197
|
+
# we've decided to just let people make bad decisions for themselves.
|
|
198
|
+
"io.BufferedReader.read",
|
|
199
|
+
"io.BufferedWriter.write",
|
|
200
|
+
"io.TextIOWrapper.read",
|
|
201
|
+
"io.TextIOWrapper.write",
|
|
202
202
|
# If people are using threadpoolexecutor, etc. they'd be using this.
|
|
203
203
|
"threading.Lock.acquire",
|
|
204
204
|
]
|
{langgraph_runtime_inmem-0.9.0.dist-info → langgraph_runtime_inmem-0.20.1.dist-info}/METADATA
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langgraph-runtime-inmem
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.20.1
|
|
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
|
|
7
7
|
Requires-Python: >=3.11.0
|
|
8
8
|
Requires-Dist: blockbuster<2.0.0,>=1.5.24
|
|
9
|
-
Requires-Dist: langgraph-checkpoint
|
|
10
|
-
Requires-Dist: langgraph
|
|
9
|
+
Requires-Dist: langgraph-checkpoint<5,>=3
|
|
10
|
+
Requires-Dist: langgraph<2,>=0.4.10
|
|
11
11
|
Requires-Dist: sse-starlette>=2
|
|
12
12
|
Requires-Dist: starlette>=0.37
|
|
13
13
|
Requires-Dist: structlog>23
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
langgraph_runtime_inmem/__init__.py,sha256=e4M7aySmFiZUS_yTkC-q-Qi2j5olmmHDojVLRwD-HMU,311
|
|
2
|
+
langgraph_runtime_inmem/checkpoint.py,sha256=nc1G8DqVdIu-ibjKTqXfbPfMbAsKjPObKqegrSzo6Po,4432
|
|
3
|
+
langgraph_runtime_inmem/database.py,sha256=g2XYa5KN-T8MbDeFH9sfUApDG62Wp4BACumVnDtxYhI,6403
|
|
4
|
+
langgraph_runtime_inmem/inmem_stream.py,sha256=PFLWbsxU8RqbT5mYJgNk6v5q6TWJRIY1hkZWhJF8nkI,9094
|
|
5
|
+
langgraph_runtime_inmem/lifespan.py,sha256=fCoYcN_h0cxmj6-muC-f0csPdSpyepZuGRD1yBrq4XM,4755
|
|
6
|
+
langgraph_runtime_inmem/metrics.py,sha256=_YiSkLnhQvHpMktk38SZo0abyL-5GihfVAtBo0-lFIc,403
|
|
7
|
+
langgraph_runtime_inmem/ops.py,sha256=qNK_-isTB92kQi3vVSt84__gMG02JUqmkNh-9LURexo,114772
|
|
8
|
+
langgraph_runtime_inmem/queue.py,sha256=WM6ZJu25QPVjFXeJYW06GALLUgRsnRrA4YdypR0oG0U,9584
|
|
9
|
+
langgraph_runtime_inmem/retry.py,sha256=XmldOP4e_H5s264CagJRVnQMDFcEJR_dldVR1Hm5XvM,763
|
|
10
|
+
langgraph_runtime_inmem/store.py,sha256=rTfL1JJvd-j4xjTrL8qDcynaWF6gUJ9-GDVwH0NBD_I,3506
|
|
11
|
+
langgraph_runtime_inmem-0.20.1.dist-info/METADATA,sha256=nMzYXp5OXuPOROcMYfi8EEAa-8ENdpX5t5H35xV1ww4,570
|
|
12
|
+
langgraph_runtime_inmem-0.20.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
13
|
+
langgraph_runtime_inmem-0.20.1.dist-info/RECORD,,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
langgraph_runtime_inmem/__init__.py,sha256=f-VPPHH1-hKFwEreffg7dNATe9IdcYwQedcSx2MiZog,310
|
|
2
|
-
langgraph_runtime_inmem/checkpoint.py,sha256=nc1G8DqVdIu-ibjKTqXfbPfMbAsKjPObKqegrSzo6Po,4432
|
|
3
|
-
langgraph_runtime_inmem/database.py,sha256=QgaA_WQo1IY6QioYd8r-e6-0B0rnC5anS0muIEJWby0,6364
|
|
4
|
-
langgraph_runtime_inmem/inmem_stream.py,sha256=pUEiHW-1uXQrVTcwEYPwO8YXaYm5qZbpRWawt67y6Lw,8187
|
|
5
|
-
langgraph_runtime_inmem/lifespan.py,sha256=t0w2MX2dGxe8yNtSX97Z-d2pFpllSLS4s1rh2GJDw5M,3557
|
|
6
|
-
langgraph_runtime_inmem/metrics.py,sha256=HhO0RC2bMDTDyGBNvnd2ooLebLA8P1u5oq978Kp_nAA,392
|
|
7
|
-
langgraph_runtime_inmem/ops.py,sha256=0Jx65S3PCvvHlIpA0XYpl-UnDEo_AiGWXRE2QiFSocY,105165
|
|
8
|
-
langgraph_runtime_inmem/queue.py,sha256=33qfFKPhQicZ1qiibllYb-bTFzUNSN2c4bffPACP5es,9952
|
|
9
|
-
langgraph_runtime_inmem/retry.py,sha256=XmldOP4e_H5s264CagJRVnQMDFcEJR_dldVR1Hm5XvM,763
|
|
10
|
-
langgraph_runtime_inmem/store.py,sha256=rTfL1JJvd-j4xjTrL8qDcynaWF6gUJ9-GDVwH0NBD_I,3506
|
|
11
|
-
langgraph_runtime_inmem-0.9.0.dist-info/METADATA,sha256=ptwW1Ei-Xln53P81eJK1aPcFozU8D192OCZBuC_y5EQ,565
|
|
12
|
-
langgraph_runtime_inmem-0.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
13
|
-
langgraph_runtime_inmem-0.9.0.dist-info/RECORD,,
|