langgraph-runtime-inmem 0.6.4__py3-none-any.whl → 0.18.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.
@@ -128,8 +128,7 @@ async def queue():
128
128
  # sweep runs if needed
129
129
  if do_sweep:
130
130
  last_sweep_secs = loop.time()
131
- run_ids = await ops.Runs.sweep(conn)
132
- logger.info("Swept runs", run_ids=run_ids)
131
+ await ops.Runs.sweep()
133
132
  except Exception as exc:
134
133
  # keep trying to run the scheduler indefinitely
135
134
  logger.exception("Background worker scheduler failed", exc_info=exc)
@@ -155,17 +154,6 @@ def _enable_blockbuster():
155
154
 
156
155
  ls_env.get_runtime_environment() # this gets cached
157
156
  bb = BlockBuster(excluded_modules=[])
158
- for module, func in (
159
- # Note, we've cached this call in langsmith==0.3.21 so it shouldn't raise anyway
160
- # but we don't want to raise teh minbound just for that.
161
- ("langsmith/client.py", "_default_retry_config"),
162
- # Only triggers in python 3.11 for getting subgraphs
163
- # Will be unnecessary once we cache the assistant schemas
164
- ("langgraph/pregel/utils.py", "get_function_nonlocals"),
165
- ("importlib/metadata/__init__.py", "metadata"),
166
- ("importlib/metadata/__init__.py", "read_text"),
167
- ):
168
- bb.functions["io.TextIOWrapper.read"].can_block_in(module, func)
169
157
 
170
158
  bb.functions["os.path.abspath"].can_block_in("inspect.py", "getmodule")
171
159
 
@@ -173,12 +161,8 @@ def _enable_blockbuster():
173
161
  ("memory/__init__.py", "sync"),
174
162
  ("memory/__init__.py", "load"),
175
163
  ("memory/__init__.py", "dump"),
164
+ ("pydantic/main.py", "__init__"),
176
165
  ):
177
- bb.functions["io.TextIOWrapper.read"].can_block_in(module, func)
178
- bb.functions["io.TextIOWrapper.write"].can_block_in(module, func)
179
- bb.functions["io.BufferedWriter.write"].can_block_in(module, func)
180
- bb.functions["io.BufferedReader.read"].can_block_in(module, func)
181
-
182
166
  bb.functions["os.remove"].can_block_in(module, func)
183
167
  bb.functions["os.rename"].can_block_in(module, func)
184
168
 
@@ -200,6 +184,12 @@ def _enable_blockbuster():
200
184
  # as well as importlib.metadata.
201
185
  "os.listdir",
202
186
  "os.remove",
187
+ # We used to block the IO things but people use them so often that
188
+ # we've decided to just let people make bad decisions for themselves.
189
+ "io.BufferedReader.read",
190
+ "io.BufferedWriter.write",
191
+ "io.TextIOWrapper.read",
192
+ "io.TextIOWrapper.write",
203
193
  # If people are using threadpoolexecutor, etc. they'd be using this.
204
194
  "threading.Lock.acquire",
205
195
  ]
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-runtime-inmem
3
- Version: 0.6.4
3
+ Version: 0.18.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>=2.0.25
10
- Requires-Dist: langgraph>=0.2
9
+ Requires-Dist: langgraph-checkpoint<4,>=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=8LwgexYJfUTj5uFimXddpKAdiLBMFWKrf71glUqQkTc,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=s_3MN5f4uecR7FaSo4WTjeeUqD0fNgB0QhokiV6y8Hg,109178
8
+ langgraph_runtime_inmem/queue.py,sha256=17HBZrYaxJg_k4NoabToYD_J6cqVzyHpWIz3VzGg_14,9363
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.18.1.dist-info/METADATA,sha256=JJWTv1Yhr5Fx83aOApdJOXkKMSJ3fomwb00xqfK_cnA,570
12
+ langgraph_runtime_inmem-0.18.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
+ langgraph_runtime_inmem-0.18.1.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- langgraph_runtime_inmem/__init__.py,sha256=8jTuoC-OAbGipvvHN2ZvFRwD7HOFnZxWa616pD7txnY,310
2
- langgraph_runtime_inmem/checkpoint.py,sha256=nc1G8DqVdIu-ibjKTqXfbPfMbAsKjPObKqegrSzo6Po,4432
3
- langgraph_runtime_inmem/database.py,sha256=bOPc9cgHysMnJ_RbRpU0yOLxK4ERL9et7artgTBEecY,6280
4
- langgraph_runtime_inmem/inmem_stream.py,sha256=65z_2mBNJ0-yJsXWnlYwRc71039_y6Sa0MN8fL_U3Ko,4581
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=6ZI-PUr1wfJoSoJ4LOn-dsAuIOTPkEODwvK1g4O1OZc,88538
8
- langgraph_runtime_inmem/queue.py,sha256=nqfgz7j_Jkh5Ek5-RsHB2Uvwbxguu9IUPkGXIxvFPns,10037
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.6.4.dist-info/METADATA,sha256=JyDtIIEb7c6nSx6xBUNUTBx5ZuYhGWT0hlzfog4Q5PU,565
12
- langgraph_runtime_inmem-0.6.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
- langgraph_runtime_inmem-0.6.4.dist-info/RECORD,,