langgraph-api 0.0.7__py3-none-any.whl → 0.0.8__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.

Potentially problematic release.


This version of langgraph-api might be problematic. Click here for more details.

langgraph_api/cli.py CHANGED
@@ -111,6 +111,8 @@ def run_server(
111
111
  **kwargs: Any,
112
112
  ):
113
113
  """Run the LangGraph API server."""
114
+ import inspect
115
+
114
116
  import uvicorn
115
117
 
116
118
  env_vars = env if isinstance(env, Mapping) else None
@@ -218,6 +220,12 @@ For production use, please use LangGraph Cloud.
218
220
  ):
219
221
  if open_browser:
220
222
  threading.Thread(target=_open_browser, daemon=True).start()
223
+ supported_kwargs = {
224
+ k: v
225
+ for k, v in kwargs.items()
226
+ if k in inspect.signature(uvicorn.run).parameters
227
+ }
228
+
221
229
  uvicorn.run(
222
230
  "langgraph_api.server:app",
223
231
  host=host,
@@ -241,7 +249,7 @@ For production use, please use LangGraph Cloud.
241
249
  },
242
250
  "root": {"handlers": ["console"]},
243
251
  },
244
- **kwargs,
252
+ **supported_kwargs,
245
253
  )
246
254
 
247
255
 
langgraph_api/graph.py CHANGED
@@ -332,10 +332,7 @@ def _graph_from_spec(spec: GraphSpec) -> GraphValue:
332
332
  if callable(graph):
333
333
  sig = inspect.signature(graph)
334
334
  if not sig.parameters:
335
- if not isinstance(graph(), (Graph, Pregel)): # noqa: UP038
336
- raise ValueError(
337
- f"Graph factory function '{spec.variable}' in module '{spec.path}' must return a Graph or Pregel"
338
- )
335
+ pass
339
336
  elif len(sig.parameters) != 1:
340
337
  raise ValueError(
341
338
  f"Graph factory function '{spec.variable}' in module '{spec.path}' must take exactly one argument, a RunnableConfig"
@@ -10,7 +10,7 @@
10
10
  "@hono/node-server": "^1.12.0",
11
11
  "@hono/zod-validator": "^0.2.2",
12
12
  "@langchain/core": "^0.3.22",
13
- "@langchain/langgraph": "^0.2.26",
13
+ "@langchain/langgraph": "^0.2.31",
14
14
  "@types/json-schema": "^7.0.15",
15
15
  "@typescript/vfs": "^1.6.0",
16
16
  "dedent": "^1.5.3",
@@ -30,4 +30,4 @@
30
30
  "prettier": "^3.3.3",
31
31
  "vitest": "^2.0.5"
32
32
  }
33
- }
33
+ }
@@ -2,6 +2,6 @@
2
2
  "private": true,
3
3
  "dependencies": {
4
4
  "@langchain/core": "^0.3.22",
5
- "@langchain/langgraph": "^0.2.26"
5
+ "@langchain/langgraph": "^0.2.31"
6
6
  }
7
- }
7
+ }
@@ -19,10 +19,10 @@
19
19
  zod "^3.22.4"
20
20
  zod-to-json-schema "^3.22.3"
21
21
 
22
- "@langchain/langgraph-checkpoint@~0.0.12":
23
- version "0.0.12"
24
- resolved "https://registry.yarnpkg.com/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-0.0.12.tgz#672f2dd5ea3a33054d9792ff5c151faebd75d852"
25
- integrity sha512-XySxUqpt7X3k02UyncpKupZMOHqLbkjOpkGWFdwBTueT1+kVeS2+DTwZK80QT/BaWH6jEUkMk14oU9/D63R0tg==
22
+ "@langchain/langgraph-checkpoint@~0.0.13":
23
+ version "0.0.13"
24
+ resolved "https://registry.yarnpkg.com/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-0.0.13.tgz#b349f1518184e1b154227d1fead2bec1e27707fd"
25
+ integrity sha512-amdmBcNT8a9xP2VwcEWxqArng4gtRDcnVyVI4DsQIo1Aaz8e8+hH17zSwrUF3pt1pIYztngIfYnBOim31mtKMg==
26
26
  dependencies:
27
27
  uuid "^10.0.0"
28
28
 
@@ -36,12 +36,12 @@
36
36
  p-retry "4"
37
37
  uuid "^9.0.0"
38
38
 
39
- "@langchain/langgraph@^0.2.26":
40
- version "0.2.26"
41
- resolved "https://registry.yarnpkg.com/@langchain/langgraph/-/langgraph-0.2.26.tgz#8a9f771e4e356de616f7e4a90c61f566cd267a92"
42
- integrity sha512-79nq4N5gUCW3RJQSTGdqRg28Rrdd6V493oxCW7dKST1qwS/CFf+Y/nU0nDzmwKYUekLZ3Fkh7WtyYrgonZhjjg==
39
+ "@langchain/langgraph@^0.2.31":
40
+ version "0.2.31"
41
+ resolved "https://registry.yarnpkg.com/@langchain/langgraph/-/langgraph-0.2.31.tgz#2cb2faac1d02a7ccf47559aec87aae7f44dc7d3f"
42
+ integrity sha512-/otJC3/P3Pt58eVZz1gxC3sBiC0N0HhOaAbOBKxckskhayBO6OC6ZDHtH9a+rxEIlreBoninR1/At1Gj/3liFA==
43
43
  dependencies:
44
- "@langchain/langgraph-checkpoint" "~0.0.12"
44
+ "@langchain/langgraph-checkpoint" "~0.0.13"
45
45
  "@langchain/langgraph-sdk" "~0.0.21"
46
46
  uuid "^10.0.0"
47
47
  zod "^3.23.8"
@@ -318,10 +318,10 @@
318
318
  zod "^3.22.4"
319
319
  zod-to-json-schema "^3.22.3"
320
320
 
321
- "@langchain/langgraph-checkpoint@~0.0.12":
322
- version "0.0.12"
323
- resolved "https://registry.yarnpkg.com/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-0.0.12.tgz#672f2dd5ea3a33054d9792ff5c151faebd75d852"
324
- integrity sha512-XySxUqpt7X3k02UyncpKupZMOHqLbkjOpkGWFdwBTueT1+kVeS2+DTwZK80QT/BaWH6jEUkMk14oU9/D63R0tg==
321
+ "@langchain/langgraph-checkpoint@~0.0.13":
322
+ version "0.0.13"
323
+ resolved "https://registry.yarnpkg.com/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-0.0.13.tgz#b349f1518184e1b154227d1fead2bec1e27707fd"
324
+ integrity sha512-amdmBcNT8a9xP2VwcEWxqArng4gtRDcnVyVI4DsQIo1Aaz8e8+hH17zSwrUF3pt1pIYztngIfYnBOim31mtKMg==
325
325
  dependencies:
326
326
  uuid "^10.0.0"
327
327
 
@@ -345,12 +345,12 @@
345
345
  p-retry "4"
346
346
  uuid "^9.0.0"
347
347
 
348
- "@langchain/langgraph@^0.2.26":
349
- version "0.2.26"
350
- resolved "https://registry.yarnpkg.com/@langchain/langgraph/-/langgraph-0.2.26.tgz#8a9f771e4e356de616f7e4a90c61f566cd267a92"
351
- integrity sha512-79nq4N5gUCW3RJQSTGdqRg28Rrdd6V493oxCW7dKST1qwS/CFf+Y/nU0nDzmwKYUekLZ3Fkh7WtyYrgonZhjjg==
348
+ "@langchain/langgraph@^0.2.31":
349
+ version "0.2.31"
350
+ resolved "https://registry.yarnpkg.com/@langchain/langgraph/-/langgraph-0.2.31.tgz#2cb2faac1d02a7ccf47559aec87aae7f44dc7d3f"
351
+ integrity sha512-/otJC3/P3Pt58eVZz1gxC3sBiC0N0HhOaAbOBKxckskhayBO6OC6ZDHtH9a+rxEIlreBoninR1/At1Gj/3liFA==
352
352
  dependencies:
353
- "@langchain/langgraph-checkpoint" "~0.0.12"
353
+ "@langchain/langgraph-checkpoint" "~0.0.13"
354
354
  "@langchain/langgraph-sdk" "~0.0.21"
355
355
  uuid "^10.0.0"
356
356
  zod "^3.23.8"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langgraph-api
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary:
5
5
  License: Elastic-2.0
6
6
  Author: Nuno Campos
@@ -14,18 +14,18 @@ langgraph_api/auth/langsmith/backend.py,sha256=uHeb5-h13NIjrX_LDAvfWYr3zpbJvlvbd
14
14
  langgraph_api/auth/langsmith/client.py,sha256=eKchvAom7hdkUXauD8vHNceBDDUijrFgdTV8bKd7x4Q,3998
15
15
  langgraph_api/auth/middleware.py,sha256=_gJTOskEaln4RUT2rVYdQGPJVAyAiq-orsL_eQ3CynE,1369
16
16
  langgraph_api/auth/noop.py,sha256=vDJmzG2vArJxVzdHePvrJWahEa0dvGnhc2LEMMeiFz0,391
17
- langgraph_api/cli.py,sha256=GjFMWQM4nXV6npc-A2AyLfEFuNIxj2EuQwy2LFrQVEw,10093
17
+ langgraph_api/cli.py,sha256=qQIJHw8doFE-sLebnqnUZjukeYp_WW4GDQ443l3z0ag,10281
18
18
  langgraph_api/config.py,sha256=cG6eO4P_SZ2pKedb2b4n4vnBHRQr0aiECvGvOA8ZlJA,2259
19
19
  langgraph_api/cron_scheduler.py,sha256=DAzY2DsADzEpPVbG2BOSLTIufI93yeRswd71Aby_lV0,2257
20
20
  langgraph_api/errors.py,sha256=Bu_i5drgNTyJcLiyrwVE_6-XrSU50BHf9TDpttki9wQ,1690
21
- langgraph_api/graph.py,sha256=uHAc5DP0aUN-ecgYjXGOYp0IJBC1k3JWlYhExL4jYaE,16505
21
+ langgraph_api/graph.py,sha256=gpLblFbqtT2VQU2I69KvRX8mqOJRJDxQW5Sh1fW8FXY,16268
22
22
  langgraph_api/http.py,sha256=XrbyxpjtfSvnaWWh5ZLGpgZmY83WoDCrP_1GPguNiXI,4712
23
23
  langgraph_api/http_logger.py,sha256=Sxo_q-65tElauRvkzVLt9lJojgNdgtcHGBYD0IRyX7M,3146
24
24
  langgraph_api/js/.gitignore,sha256=qAah3Fq0HWAlfRj5ktZyC6QRQIsAolGLRGcRukA1XJI,33
25
25
  langgraph_api/js/build.mts,sha256=v4ZJFnfBJBuLn8g0q-Uab9sgNtcssXcFEI-CmMoiOBc,1301
26
26
  langgraph_api/js/client.mts,sha256=GF34EYtjIKvl9u44PeWhWD_QCbTbrxFQ-BL-7v6P23c,24434
27
27
  langgraph_api/js/global.d.ts,sha256=zR_zLYfpzyPfxpEFth5RgZoyfGulIXyZYPRf7cU0K0Y,106
28
- langgraph_api/js/package.json,sha256=MuXjwh1Y-vLZFQnBAMgMABBJt2hDORvVLiS1xniyZnA,792
28
+ langgraph_api/js/package.json,sha256=nxZ3fmuO4ZiKli087PxrK8p95ZrQKaubQa2wDKRnwsk,791
29
29
  langgraph_api/js/remote.py,sha256=rudGN-8kHVuEbnGeDMEZbn__edtqkjxXlrxIuO1xOo0,23323
30
30
  langgraph_api/js/server_sent_events.py,sha256=DLgXOHauemt7706vnfDUCG1GI3TidKycSizccdz9KgA,3702
31
31
  langgraph_api/js/src/graph.mts,sha256=EO1ITYoKiUykzO_8V8mnQb6NYybooR1VXIovThZzywc,2998
@@ -44,12 +44,12 @@ langgraph_api/js/tests/graphs/agent.mts,sha256=i2s0GOnydW88laDGBatYkQnjUe9Q44RNH
44
44
  langgraph_api/js/tests/graphs/error.mts,sha256=l4tk89449dj1BnEF_0ZcfPt0Ikk1gl8L1RaSnRfr3xo,487
45
45
  langgraph_api/js/tests/graphs/langgraph.json,sha256=-wSU_9H2fraq7Tijq_dTuK8SBDYLHsnfrYgi2zYUK2o,155
46
46
  langgraph_api/js/tests/graphs/nested.mts,sha256=4G7jSOSaFVQAza-_ARbK-Iai1biLlF2DIPDZXf7PLIY,1245
47
- langgraph_api/js/tests/graphs/package.json,sha256=y8ZYXtFv3cl-qQHNmZtgsFXvsAlxKdlpvbyFqv8ReSY,119
47
+ langgraph_api/js/tests/graphs/package.json,sha256=kG5a7jRCnlSQMV2WXUsXegmp5cCWm9F3AOIBUUqPn8A,118
48
48
  langgraph_api/js/tests/graphs/weather.mts,sha256=A7mLK3xW8h5B-ZyJNAyX2M2fJJwzPJzXs4DYesJwreQ,1655
49
- langgraph_api/js/tests/graphs/yarn.lock,sha256=H66dRY5yBM2zzKnszqeprc8eN58B0mEgXseX2_H4lRM,7903
49
+ langgraph_api/js/tests/graphs/yarn.lock,sha256=q-1S--E5VWLYtkSv03shqtNzeDDv-N_J-N26FszLsjs,7903
50
50
  langgraph_api/js/tests/parser.test.mts,sha256=3zAbboUNhI-cY3hj4Ssr7J-sQXCBTeeI1ItrkG0Ftuk,26257
51
51
  langgraph_api/js/tests/utils.mts,sha256=2kTybJ3O7Yfe1q3ehDouqV54ibXkNzsPZ_wBZLJvY-4,421
52
- langgraph_api/js/yarn.lock,sha256=WAgI5IVsaZrATwEEs6uCvyB6P_iHJ6ghk39Cj1dyLtc,65156
52
+ langgraph_api/js/yarn.lock,sha256=roj7_0fuKEyeDgQqHIx6CDLjfX73-OsQz342QQlQo_E,65156
53
53
  langgraph_api/lifespan.py,sha256=Uj7NV-NqxxD1fgx_umM9pVqclcy-VlqrIxDljyj2he0,1820
54
54
  langgraph_api/logging.py,sha256=tiDNrEFwqaIdL5ywZv908OXlzzfXsPCws9GXeoFtBV8,3367
55
55
  langgraph_api/metadata.py,sha256=mih2G7ScQxiqyUlbksVXkqR3Oo-pM1b6lXtzOsgR1sw,3044
@@ -79,8 +79,8 @@ langgraph_storage/store.py,sha256=D-p3cWc_umamkKp-6Cz3cAriSACpvM5nxUIvND6PuxE,27
79
79
  langgraph_storage/ttl_dict.py,sha256=FlpEY8EANeXWKo_G5nmIotPquABZGyIJyk6HD9u6vqY,1533
80
80
  logging.json,sha256=3RNjSADZmDq38eHePMm1CbP6qZ71AmpBtLwCmKU9Zgo,379
81
81
  openapi.json,sha256=UxAGHZYM4PgNd48TSZt7f2lVuyPUkDadxBBhRy5jcmk,124512
82
- langgraph_api-0.0.7.dist-info/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
83
- langgraph_api-0.0.7.dist-info/METADATA,sha256=2-Fe-_N61HLzOGA8evWq8yOoMEV2mRoXhxJIdr5Nxa0,3993
84
- langgraph_api-0.0.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
85
- langgraph_api-0.0.7.dist-info/entry_points.txt,sha256=3EYLgj89DfzqJHHYGxPH4A_fEtClvlRbWRUHaXO7hj4,77
86
- langgraph_api-0.0.7.dist-info/RECORD,,
82
+ langgraph_api-0.0.8.dist-info/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
83
+ langgraph_api-0.0.8.dist-info/METADATA,sha256=A_zUXmA2dKkblSdlXqHFDeKePEWLja9Yenl57LleJKs,3993
84
+ langgraph_api-0.0.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
85
+ langgraph_api-0.0.8.dist-info/entry_points.txt,sha256=3EYLgj89DfzqJHHYGxPH4A_fEtClvlRbWRUHaXO7hj4,77
86
+ langgraph_api-0.0.8.dist-info/RECORD,,