langgraph-runtime-inmem 0.18.0__py3-none-any.whl → 0.19.0__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.
@@ -9,7 +9,7 @@ from langgraph_runtime_inmem import (
9
9
  store,
10
10
  )
11
11
 
12
- __version__ = "0.18.0"
12
+ __version__ = "0.19.0"
13
13
  __all__ = [
14
14
  "ops",
15
15
  "database",
@@ -141,6 +141,7 @@ class Assistants(Authenticated):
141
141
  conn: InMemConnectionProto,
142
142
  *,
143
143
  graph_id: str | None,
144
+ name: str | None,
144
145
  metadata: MetadataInput,
145
146
  limit: int,
146
147
  offset: int,
@@ -164,6 +165,7 @@ class Assistants(Authenticated):
164
165
  assistant
165
166
  for assistant in assistants
166
167
  if (not graph_id or assistant["graph_id"] == graph_id)
168
+ and (not name or name.lower() in assistant["name"].lower())
167
169
  and (not metadata or is_jsonb_contained(assistant["metadata"], metadata))
168
170
  and (not filters or _check_filter_match(assistant["metadata"], filters))
169
171
  ]
@@ -2845,6 +2847,7 @@ class Crons:
2845
2847
  schedule: str,
2846
2848
  cron_id: UUID | None = None,
2847
2849
  thread_id: UUID | None = None,
2850
+ on_run_completed: Literal["delete", "keep"] | None = None,
2848
2851
  end_time: datetime | None = None,
2849
2852
  ctx: Auth.types.BaseAuthContext | None = None,
2850
2853
  ) -> AsyncIterator[Cron]:
@@ -154,17 +154,6 @@ 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")
170
159
 
@@ -174,11 +163,6 @@ def _enable_blockbuster():
174
163
  ("memory/__init__.py", "dump"),
175
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-runtime-inmem
3
- Version: 0.18.0
3
+ Version: 0.19.0
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
@@ -1,13 +1,13 @@
1
- langgraph_runtime_inmem/__init__.py,sha256=0OJlzkajmSaVNDTxR81HA_IpgMleuq6KhszFWEohtGM,311
1
+ langgraph_runtime_inmem/__init__.py,sha256=0BIs1nkaj3_LrNv5Rn9zRPO-KeI1bc0YYx5ZxleIq8c,311
2
2
  langgraph_runtime_inmem/checkpoint.py,sha256=nc1G8DqVdIu-ibjKTqXfbPfMbAsKjPObKqegrSzo6Po,4432
3
3
  langgraph_runtime_inmem/database.py,sha256=g2XYa5KN-T8MbDeFH9sfUApDG62Wp4BACumVnDtxYhI,6403
4
4
  langgraph_runtime_inmem/inmem_stream.py,sha256=PFLWbsxU8RqbT5mYJgNk6v5q6TWJRIY1hkZWhJF8nkI,9094
5
5
  langgraph_runtime_inmem/lifespan.py,sha256=fCoYcN_h0cxmj6-muC-f0csPdSpyepZuGRD1yBrq4XM,4755
6
6
  langgraph_runtime_inmem/metrics.py,sha256=_YiSkLnhQvHpMktk38SZo0abyL-5GihfVAtBo0-lFIc,403
7
- langgraph_runtime_inmem/ops.py,sha256=umfHzcvGX8hdzAxYryeX5doCyA9HnfwEeEPupj7Ckyg,109111
8
- langgraph_runtime_inmem/queue.py,sha256=yV781CDjlsKNvkJ3puHyiHNnJpIIdB1G_gTY9dg6mys,9994
7
+ langgraph_runtime_inmem/ops.py,sha256=lDR4b-N4pALnMPPc61lpACce1Up-u5U9R5sO0hPTIAw,109276
8
+ langgraph_runtime_inmem/queue.py,sha256=17HBZrYaxJg_k4NoabToYD_J6cqVzyHpWIz3VzGg_14,9363
9
9
  langgraph_runtime_inmem/retry.py,sha256=XmldOP4e_H5s264CagJRVnQMDFcEJR_dldVR1Hm5XvM,763
10
10
  langgraph_runtime_inmem/store.py,sha256=rTfL1JJvd-j4xjTrL8qDcynaWF6gUJ9-GDVwH0NBD_I,3506
11
- langgraph_runtime_inmem-0.18.0.dist-info/METADATA,sha256=oigJEnL7JdWwUoUK6pos7aCx9PZaDbIXyzd2RaTqyR4,570
12
- langgraph_runtime_inmem-0.18.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
- langgraph_runtime_inmem-0.18.0.dist-info/RECORD,,
11
+ langgraph_runtime_inmem-0.19.0.dist-info/METADATA,sha256=opTbJKPl-tNZseiVB7djNcdOCfoyPCesrjz3QFoB4Hs,570
12
+ langgraph_runtime_inmem-0.19.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
+ langgraph_runtime_inmem-0.19.0.dist-info/RECORD,,