langgraph-runtime-inmem 0.14.0__py3-none-any.whl → 0.14.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.
@@ -9,7 +9,7 @@ from langgraph_runtime_inmem import (
9
9
  store,
10
10
  )
11
11
 
12
- __version__ = "0.14.0"
12
+ __version__ = "0.14.1"
13
13
  __all__ = [
14
14
  "ops",
15
15
  "database",
@@ -2933,11 +2933,18 @@ def _check_filter_match(metadata: dict, filters: Auth.types.FilterType | None) -
2933
2933
  if key not in metadata or metadata[key] != filter_value:
2934
2934
  return False
2935
2935
  elif op == "$contains":
2936
- if (
2937
- key not in metadata
2938
- or not isinstance(metadata[key], list)
2939
- or filter_value not in metadata[key]
2940
- ):
2936
+ if key not in metadata or not isinstance(metadata[key], list):
2937
+ return False
2938
+
2939
+ if isinstance(filter_value, list):
2940
+ # Mimick Postgres containment operator behavior.
2941
+ # It would be more efficient to use set operations here,
2942
+ # but we can't assume that elements are hashable.
2943
+ # The Postgres algorithm is also O(n^2).
2944
+ for filter_element in filter_value:
2945
+ if filter_element not in metadata[key]:
2946
+ return False
2947
+ elif filter_value not in metadata[key]:
2941
2948
  return False
2942
2949
  else:
2943
2950
  # Direct equality
@@ -172,6 +172,7 @@ def _enable_blockbuster():
172
172
  ("memory/__init__.py", "sync"),
173
173
  ("memory/__init__.py", "load"),
174
174
  ("memory/__init__.py", "dump"),
175
+ ("pydantic/main.py", "__init__"),
175
176
  ):
176
177
  bb.functions["io.TextIOWrapper.read"].can_block_in(module, func)
177
178
  bb.functions["io.TextIOWrapper.write"].can_block_in(module, func)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-runtime-inmem
3
- Version: 0.14.0
3
+ Version: 0.14.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
@@ -1,13 +1,13 @@
1
- langgraph_runtime_inmem/__init__.py,sha256=csu7K0Iyy69kpS21MCa9q3MkfeJLSBXmsT02eK_hGXc,311
1
+ langgraph_runtime_inmem/__init__.py,sha256=OZOJVSjzHe53ZvPaFQCaym4cJf0rfhEoIWpNtrI10tI,311
2
2
  langgraph_runtime_inmem/checkpoint.py,sha256=nc1G8DqVdIu-ibjKTqXfbPfMbAsKjPObKqegrSzo6Po,4432
3
3
  langgraph_runtime_inmem/database.py,sha256=QgaA_WQo1IY6QioYd8r-e6-0B0rnC5anS0muIEJWby0,6364
4
4
  langgraph_runtime_inmem/inmem_stream.py,sha256=PFLWbsxU8RqbT5mYJgNk6v5q6TWJRIY1hkZWhJF8nkI,9094
5
5
  langgraph_runtime_inmem/lifespan.py,sha256=tngIYHMhDwTFd2zgpq9CZOxcBLONYYnkhwv2d2T5WWQ,3614
6
6
  langgraph_runtime_inmem/metrics.py,sha256=HhO0RC2bMDTDyGBNvnd2ooLebLA8P1u5oq978Kp_nAA,392
7
- langgraph_runtime_inmem/ops.py,sha256=63uV88PijGnNxzgWGL_SljeXIeHd8dAwowBrWi9X4Xo,107645
8
- langgraph_runtime_inmem/queue.py,sha256=33qfFKPhQicZ1qiibllYb-bTFzUNSN2c4bffPACP5es,9952
7
+ langgraph_runtime_inmem/ops.py,sha256=sq-NokK_XKPPyTFqIvRqRbH7P7cgvkGtWjqMCokkhZ4,108107
8
+ langgraph_runtime_inmem/queue.py,sha256=yV781CDjlsKNvkJ3puHyiHNnJpIIdB1G_gTY9dg6mys,9994
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.14.0.dist-info/METADATA,sha256=jegaYI5exlmydXtt4oxMbgFBCIrKaV7HawwHKNr2MrU,566
12
- langgraph_runtime_inmem-0.14.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
- langgraph_runtime_inmem-0.14.0.dist-info/RECORD,,
11
+ langgraph_runtime_inmem-0.14.1.dist-info/METADATA,sha256=89FgDgsH2lLRd4WvKKycy1aTIYXLBP9PcOQmWVlVmbc,566
12
+ langgraph_runtime_inmem-0.14.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
+ langgraph_runtime_inmem-0.14.1.dist-info/RECORD,,