langgraph-runtime-inmem 0.8.0__tar.gz → 0.8.2__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.
Files changed (17) hide show
  1. langgraph_runtime_inmem-0.8.2/Makefile +20 -0
  2. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/PKG-INFO +1 -1
  3. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/__init__.py +1 -1
  4. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/database.py +1 -1
  5. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/ops.py +5 -9
  6. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/uv.lock +6 -6
  7. langgraph_runtime_inmem-0.8.0/Makefile +0 -16
  8. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/.gitignore +0 -0
  9. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/README.md +0 -0
  10. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/checkpoint.py +0 -0
  11. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/inmem_stream.py +0 -0
  12. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/lifespan.py +0 -0
  13. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/metrics.py +0 -0
  14. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/queue.py +0 -0
  15. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/retry.py +0 -0
  16. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/langgraph_runtime_inmem/store.py +0 -0
  17. {langgraph_runtime_inmem-0.8.0 → langgraph_runtime_inmem-0.8.2}/pyproject.toml +0 -0
@@ -0,0 +1,20 @@
1
+ .PHONY: lint format check-version check-base-imports
2
+
3
+ # lint commands
4
+
5
+ lint:
6
+ uv run ruff check .
7
+ uv run ruff format . --diff
8
+
9
+ format:
10
+ uv run ruff check --fix .
11
+ uv run ruff format .
12
+
13
+ VERSION_KIND ?= patch
14
+
15
+ bump-version:
16
+ uv run --with hatch hatch version $(VERSION_KIND)
17
+
18
+
19
+ check-base-imports:
20
+ DATABASE_URI="foo" REDIS_URI="bar" uv run python -c "from langgraph_runtime_inmem import *"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-runtime-inmem
3
- Version: 0.8.0
3
+ Version: 0.8.2
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
@@ -9,7 +9,7 @@ from langgraph_runtime_inmem import (
9
9
  store,
10
10
  )
11
11
 
12
- __version__ = "0.8.0"
12
+ __version__ = "0.8.2"
13
13
  __all__ = [
14
14
  "ops",
15
15
  "database",
@@ -208,6 +208,6 @@ async def healthcheck() -> None:
208
208
  pass
209
209
 
210
210
 
211
- def pool_stats() -> dict[str, dict[str, int]]:
211
+ def pool_stats(*args, **kwargs) -> dict[str, dict[str, int]]:
212
212
  # TODO??
213
213
  return {}
@@ -406,19 +406,17 @@ class Assistants(Authenticated):
406
406
  else 1
407
407
  )
408
408
 
409
- # Update assistant_versions table
410
- if metadata:
411
- metadata = {
412
- **assistant["metadata"],
413
- **metadata,
414
- }
415
409
  new_version_entry = {
416
410
  "assistant_id": assistant_id,
417
411
  "version": new_version,
418
412
  "graph_id": graph_id if graph_id is not None else assistant["graph_id"],
419
413
  "config": config if config else assistant["config"],
420
414
  "context": context if context is not None else assistant.get("context", {}),
421
- "metadata": metadata if metadata is not None else assistant["metadata"],
415
+ "metadata": (
416
+ {**assistant["metadata"], **metadata}
417
+ if metadata is not None
418
+ else assistant["metadata"]
419
+ ),
422
420
  "created_at": now,
423
421
  "name": name if name is not None else assistant["name"],
424
422
  "description": (
@@ -1901,7 +1899,6 @@ class Runs(Authenticated):
1901
1899
  {
1902
1900
  "configurable": Runs._merge_jsonb(
1903
1901
  Runs._get_configurable(assistant["config"]),
1904
- Runs._get_configurable(config),
1905
1902
  )
1906
1903
  },
1907
1904
  ),
@@ -1945,7 +1942,6 @@ class Runs(Authenticated):
1945
1942
  "configurable": Runs._merge_jsonb(
1946
1943
  Runs._get_configurable(assistant["config"]),
1947
1944
  Runs._get_configurable(existing_thread["config"]),
1948
- Runs._get_configurable(config),
1949
1945
  )
1950
1946
  },
1951
1947
  )
@@ -322,15 +322,15 @@ dev = [
322
322
 
323
323
  [[package]]
324
324
  name = "langgraph-sdk"
325
- version = "0.2.0"
325
+ version = "0.2.2"
326
326
  source = { registry = "https://pypi.org/simple" }
327
327
  dependencies = [
328
328
  { name = "httpx" },
329
329
  { name = "orjson" },
330
330
  ]
331
- sdist = { url = "https://files.pythonhosted.org/packages/2a/3e/3dc45dc7682c9940db9edaf8773d2e157397c5bd6881f6806808afd8731e/langgraph_sdk-0.2.0.tar.gz", hash = "sha256:cd8b5f6595e5571be5cbffd04cf936978ab8f5d1005517c99715947ef871e246", size = 72510, upload-time = "2025-07-22T17:31:06.745Z" }
331
+ sdist = { url = "https://files.pythonhosted.org/packages/4d/3a/ea929b5b3827615802f020abdaa6d4a6f9d59ab764f65559fa6f87a6dda6/langgraph_sdk-0.2.2.tar.gz", hash = "sha256:9484e8071953df75d7aaf9845d82db3595e485af7d5dcc235c9b32c52362e1fc", size = 77981, upload-time = "2025-08-18T19:25:42.596Z" }
332
332
  wheels = [
333
- { url = "https://files.pythonhosted.org/packages/a5/03/a8ab0e8ea74be6058cb48bb1d85485b5c65d6ea183e3ee1aa8ca1ac73b3e/langgraph_sdk-0.2.0-py3-none-any.whl", hash = "sha256:150722264f225c4d47bbe7394676be102fdbf04c4400a0dd1bd41a70c6430cc7", size = 50569, upload-time = "2025-07-22T17:31:04.582Z" },
333
+ { url = "https://files.pythonhosted.org/packages/01/0d/dfa633c6b85e973e7d4383e9b92603b7e910e89768411daeb7777bfbae04/langgraph_sdk-0.2.2-py3-none-any.whl", hash = "sha256:1afbec01ade166f8b6ce18782875415422eb70dcb82852aeaa373e6152db4b82", size = 52017, upload-time = "2025-08-18T19:25:40.567Z" },
334
334
  ]
335
335
 
336
336
  [[package]]
@@ -703,7 +703,7 @@ wheels = [
703
703
 
704
704
  [[package]]
705
705
  name = "requests"
706
- version = "2.32.4"
706
+ version = "2.32.5"
707
707
  source = { registry = "https://pypi.org/simple" }
708
708
  dependencies = [
709
709
  { name = "certifi" },
@@ -711,9 +711,9 @@ dependencies = [
711
711
  { name = "idna" },
712
712
  { name = "urllib3" },
713
713
  ]
714
- sdist = { url = "https://files.pythonhosted.org/packages/e1/0a/929373653770d8a0d7ea76c37de6e41f11eb07559b103b1c02cafb3f7cf8/requests-2.32.4.tar.gz", hash = "sha256:27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422", size = 135258, upload-time = "2025-06-09T16:43:07.34Z" }
714
+ sdist = { url = "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf", size = 134517, upload-time = "2025-08-18T20:46:02.573Z" }
715
715
  wheels = [
716
- { url = "https://files.pythonhosted.org/packages/7c/e4/56027c4a6b4ae70ca9de302488c5ca95ad4a39e190093d6c1a8ace08341b/requests-2.32.4-py3-none-any.whl", hash = "sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c", size = 64847, upload-time = "2025-06-09T16:43:05.728Z" },
716
+ { url = "https://files.pythonhosted.org/packages/1e/db/4254e3eabe8020b458f1a747140d32277ec7a271daf1d235b70dc0b4e6e3/requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6", size = 64738, upload-time = "2025-08-18T20:46:00.542Z" },
717
717
  ]
718
718
 
719
719
  [[package]]
@@ -1,16 +0,0 @@
1
- .PHONY: lint format check-version
2
-
3
- # lint commands
4
-
5
- lint:
6
- uv run ruff check .
7
- uv run ruff format . --diff
8
-
9
- format:
10
- uv run ruff check --fix .
11
- uv run ruff format .
12
-
13
- VERSION_KIND ?= patch
14
-
15
- bump-version:
16
- uv run --with hatch hatch version $(VERSION_KIND)