langgraph-api 0.12.0.dev13__py3-none-any.whl → 0.12.0.dev14__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_api/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.12.0.dev13"
1
+ __version__ = "0.12.0.dev14"
langgraph_api/asyncio.py CHANGED
@@ -103,6 +103,8 @@ async def wait_if_not_done(coro: Coroutine[Any, Any, T], done: ValueEvent) -> T:
103
103
  await logger.ainfo("Done awaiting.", task=str(fut))
104
104
  if e.args and isinstance(e.args[0], Exception):
105
105
  raise e.args[0] from None
106
+ if isinstance(done._value, Exception):
107
+ raise done._value from None
106
108
  raise
107
109
  except ExceptionGroup as e:
108
110
  raise e.exceptions[0] from None
langgraph_api/metadata.py CHANGED
@@ -2,9 +2,9 @@ import asyncio
2
2
  import os
3
3
  import uuid
4
4
  from datetime import UTC, datetime
5
+ from importlib import metadata as importlib_metadata
5
6
  from typing import Any
6
7
 
7
- import langgraph.version
8
8
  import orjson
9
9
  import structlog
10
10
 
@@ -58,6 +58,10 @@ else:
58
58
  HOST = "self-hosted"
59
59
  PLAN = "enterprise" if plus_features_enabled() else "developer"
60
60
  USER_API_URL = os.getenv("LANGGRAPH_API_URL", None)
61
+ DEPENDENCY_VERSION_DISTRIBUTIONS = {
62
+ "langgraph.python.version": "langgraph",
63
+ "starlette.version": "starlette",
64
+ }
61
65
 
62
66
  RUN_COUNTER = 0
63
67
  NODE_COUNTER = 0
@@ -80,6 +84,19 @@ if LANGSMITH_AUTH_ENDPOINT:
80
84
  )
81
85
 
82
86
 
87
+ def _dependency_version_metadata() -> dict[str, str]:
88
+ tags = {}
89
+ for tag, distribution in DEPENDENCY_VERSION_DISTRIBUTIONS.items():
90
+ try:
91
+ tags[tag] = importlib_metadata.version(distribution)
92
+ except importlib_metadata.PackageNotFoundError:
93
+ logger.debug(
94
+ "Dependency package not found for metadata", package=distribution
95
+ )
96
+ tags[tag] = ""
97
+ return tags
98
+
99
+
83
100
  def _lang_usage_metadata() -> tuple[dict[str, str], dict[str, int]]:
84
101
  js_graph_count = sum(1 for graph_id in GRAPHS if is_js_graph(graph_id))
85
102
  py_graph_count = len(GRAPHS) - js_graph_count
@@ -130,8 +147,6 @@ async def metadata_loop() -> None:
130
147
  "No license key or control plane API key set, skipping metadata loop"
131
148
  )
132
149
  return
133
- lg_version = langgraph.version.__version__
134
-
135
150
  if (
136
151
  LANGGRAPH_CLOUD_LICENSE_KEY
137
152
  and not LANGGRAPH_CLOUD_LICENSE_KEY.startswith("lcl_")
@@ -160,7 +175,7 @@ async def metadata_loop() -> None:
160
175
  base_tags = _ensure_strings(
161
176
  # Tag values must be strings.
162
177
  {
163
- "langgraph.python.version": lg_version,
178
+ **_dependency_version_metadata(),
164
179
  "langgraph_api.version": __version__ or "",
165
180
  "langgraph.platform.revision": REVISION or "",
166
181
  "langgraph.platform.variant": VARIANT or "",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-api
3
- Version: 0.12.0.dev13
3
+ Version: 0.12.0.dev14
4
4
  Author-email: Will Fu-Hinthorn <will@langchain.dev>, Josh Rogers <josh@langchain.dev>, Parker Rule <parker@langchain.dev>
5
5
  License: Elastic-2.0
6
6
  License-File: LICENSE
@@ -1,7 +1,7 @@
1
- langgraph_api/__init__.py,sha256=hom8LDza4isfZKrYaGZxZ5cj1otdh2O5s3xZqMaK8zc,29
1
+ langgraph_api/__init__.py,sha256=-QlAaSjuNluGg0H_gwVm8vuSM9gjDKkdM4rOChZ_TZw,29
2
2
  langgraph_api/_factory_utils.py,sha256=5JsiJbg_YocVSryN2jwoZTg03-eyymlWMK6sKCmXwz0,5756
3
3
  langgraph_api/asgi_transport.py,sha256=XApY3lIWBZTMbbsl8dDJzl0cLGirmAGE0SifqZUnXvs,11896
4
- langgraph_api/asyncio.py,sha256=c-YE-14N7_AP1GzifsbP14XnhLsmxT2P916KXruerpI,10573
4
+ langgraph_api/asyncio.py,sha256=smqyAoO9nIyPPQRw1IVSCh85fwoZP4PEo-5dDhxGruc,10676
5
5
  langgraph_api/cache.py,sha256=LuB3Te0UdXC8a-uEJoRHoe5XsgXulXI59f_Q6DCJNKc,13005
6
6
  langgraph_api/cli.py,sha256=ATtS9s9Cx7QNiGPJceKnMCko29A25ZA-xz39fdxmgfg,22389
7
7
  langgraph_api/command.py,sha256=d-k8h6H4ix1n7fSZ-Zb01NbSkEyqrD6cMKfDFXEIYEw,821
@@ -13,7 +13,7 @@ langgraph_api/http.py,sha256=7hPxKbj-xoAKcm7iucBpT5nM_hXOgGVCPbBsCD693Cw,6977
13
13
  langgraph_api/http_metrics.py,sha256=etxbZNmYxdb58DVLNkHP7S-N6njXPTiQh2OWKMaIZi8,5336
14
14
  langgraph_api/http_metrics_utils.py,sha256=sjxF7SYGTzY0Wz_G0dzatsYNnWr31S6ujej4JmBG2yo,866
15
15
  langgraph_api/logging.py,sha256=V1RCnqVLuMvJtrBiyMMLfaEdbS3k5A2M8Unhr4FUUdQ,6801
16
- langgraph_api/metadata.py,sha256=ih2et_R0prFsCzikQ4_L0j9up7t0rObAMVKyEk7ienI,9778
16
+ langgraph_api/metadata.py,sha256=hXkF55cWxxnjAJ0MB_PhU_4NfVzpLuwU4xwFDaAgi7I,10314
17
17
  langgraph_api/metrics_collector.py,sha256=gMLHL18rJyYl985AOmu9eH7W1ttdRdkPHzeyczjCOBw,8280
18
18
  langgraph_api/metrics_otlp.py,sha256=t9oJrxfxY2O5jY4JW2gONPKoBiBuklhzCrnZvn1qTxQ,28730
19
19
  langgraph_api/otel_context.py,sha256=DWFwW4Yu88QY4W2J0IRcURR450Th9J2DupvDDkSkMBA,7166
@@ -229,8 +229,8 @@ langgraph_grpc_common/proto/errors_pb2.py,sha256=JI6x-vBK1AE7DHZ5DQwN1mZWF6C4xTR
229
229
  langgraph_grpc_common/proto/errors_pb2.pyi,sha256=rd3-BYUH8V-aO66taL7OOblaLgdrDtf1Vcd38GUoVVM,2181
230
230
  langgraph_grpc_common/proto/errors_pb2_grpc.py,sha256=2-LwQ0OPGo-NtC0269q7Fw6GPBxnTLYWq3xP5Eq0_YA,886
231
231
  langgraph_grpc_common/proto/errors_pb2_grpc.pyi,sha256=uC9Wnq6uyg488QiONpJ0ba1s_iouQCOYsjd_FDd1XUM,495
232
- langgraph_api-0.12.0.dev13.dist-info/METADATA,sha256=JurA5etESRZZMt2ew_YYMC9wLFzGh53TVBzR6b5l0to,4632
233
- langgraph_api-0.12.0.dev13.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
234
- langgraph_api-0.12.0.dev13.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
235
- langgraph_api-0.12.0.dev13.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
236
- langgraph_api-0.12.0.dev13.dist-info/RECORD,,
232
+ langgraph_api-0.12.0.dev14.dist-info/METADATA,sha256=1V1Zxm9x49BqTxlUEXLtfxgNykA2vlXHpExniGt2Tzo,4632
233
+ langgraph_api-0.12.0.dev14.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
234
+ langgraph_api-0.12.0.dev14.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
235
+ langgraph_api-0.12.0.dev14.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
236
+ langgraph_api-0.12.0.dev14.dist-info/RECORD,,