langgraph-api 0.0.15__py3-none-any.whl → 0.0.17__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/api/assistants.py +49 -17
- langgraph_api/api/store.py +67 -15
- langgraph_api/asyncio.py +5 -0
- langgraph_api/auth/custom.py +25 -6
- langgraph_api/auth/noop.py +9 -1
- langgraph_api/config.py +6 -1
- langgraph_api/cron_scheduler.py +7 -4
- langgraph_api/js/client.mts +5 -1
- langgraph_api/js/client.new.mts +5 -1
- langgraph_api/js/package.json +2 -2
- langgraph_api/js/remote_new.py +10 -2
- langgraph_api/js/remote_old.py +10 -2
- langgraph_api/js/tests/api.test.mts +124 -7
- langgraph_api/js/tests/graphs/agent.mts +58 -3
- langgraph_api/js/tests/graphs/delay.mts +5 -0
- langgraph_api/js/yarn.lock +13 -13
- langgraph_api/models/run.py +9 -2
- langgraph_api/queue.py +58 -8
- langgraph_api/route.py +8 -3
- langgraph_api/schema.py +1 -1
- langgraph_api/stream.py +9 -2
- langgraph_api/utils.py +14 -6
- {langgraph_api-0.0.15.dist-info → langgraph_api-0.0.17.dist-info}/METADATA +2 -2
- {langgraph_api-0.0.15.dist-info → langgraph_api-0.0.17.dist-info}/RECORD +29 -29
- langgraph_storage/ops.py +9 -2
- openapi.json +5 -5
- {langgraph_api-0.0.15.dist-info → langgraph_api-0.0.17.dist-info}/LICENSE +0 -0
- {langgraph_api-0.0.15.dist-info → langgraph_api-0.0.17.dist-info}/WHEEL +0 -0
- {langgraph_api-0.0.15.dist-info → langgraph_api-0.0.17.dist-info}/entry_points.txt +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
|
|
2
2
|
langgraph_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
langgraph_api/api/__init__.py,sha256=zAdS_0jgjmCJK6E0VwEuNcNRkaknMXfQ2C_OES5tEI4,2066
|
|
4
|
-
langgraph_api/api/assistants.py,sha256=
|
|
4
|
+
langgraph_api/api/assistants.py,sha256=9wngelDC9vnSs2vYGTHDSCLf5KNds-6mgP1BWnfoY2M,12865
|
|
5
5
|
langgraph_api/api/meta.py,sha256=hueasWpTDQ6xYLo9Bzt2jhNH8XQRzreH8FTeFfnRoxQ,2700
|
|
6
6
|
langgraph_api/api/openapi.py,sha256=AUxfnD5hlRp7s-0g2hBC5dNSNk3HTwOLeJiF489DT44,2762
|
|
7
7
|
langgraph_api/api/runs.py,sha256=wAzPXi_kcYB9BcLBL4FXgkBohWwCPIpe4XERnsnWnsA,16042
|
|
8
|
-
langgraph_api/api/store.py,sha256=
|
|
8
|
+
langgraph_api/api/store.py,sha256=VzAJVOwO0IxosBB7km5TTf2rhlWGyPkVz_LpvbxetVY,5437
|
|
9
9
|
langgraph_api/api/threads.py,sha256=taU61XPcCEhBPCYPZcMDsgVDwwWUWJs8p-PrXFXWY48,8661
|
|
10
|
-
langgraph_api/asyncio.py,sha256=
|
|
10
|
+
langgraph_api/asyncio.py,sha256=2fOlx-cZvuj1gQ867Kw1R_wsBsl9jdHYHcUtK2a-x-U,6264
|
|
11
11
|
langgraph_api/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
langgraph_api/auth/custom.py,sha256=
|
|
12
|
+
langgraph_api/auth/custom.py,sha256=juCwlVxjWnCzcWI6Amae_4NfIOFtY39kaJ_zPF5AJaw,21025
|
|
13
13
|
langgraph_api/auth/langsmith/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
langgraph_api/auth/langsmith/backend.py,sha256=InScaL-HYCnxYEauhxU198gRZV9pJn9SzzBoR9Edn7g,2654
|
|
15
15
|
langgraph_api/auth/langsmith/client.py,sha256=eKchvAom7hdkUXauD8vHNceBDDUijrFgdTV8bKd7x4Q,3998
|
|
16
16
|
langgraph_api/auth/middleware.py,sha256=qc7SbaFoeWaqxS1wbjZ2PPQ4iI2p9T0shWL7c6g0ed4,1636
|
|
17
|
-
langgraph_api/auth/noop.py,sha256=
|
|
17
|
+
langgraph_api/auth/noop.py,sha256=Bk6Nf3p8D_iMVy_OyfPlyiJp_aEwzL-sHrbxoXpCbac,586
|
|
18
18
|
langgraph_api/auth/studio_user.py,sha256=FzFQRROKDlA9JjtBuwyZvk6Mbwno5M9RVYjDO6FU3F8,186
|
|
19
19
|
langgraph_api/cli.py,sha256=7vQQiD3F50r-8KkbuFjwIz8LLbdKUTd4xZGUJPiO3yQ,11688
|
|
20
|
-
langgraph_api/config.py,sha256=
|
|
21
|
-
langgraph_api/cron_scheduler.py,sha256=
|
|
20
|
+
langgraph_api/config.py,sha256=sJuzbE08y87bdg8SDJbBxlhfh6dUhwVEH15irsXbPig,2926
|
|
21
|
+
langgraph_api/cron_scheduler.py,sha256=MW41-TSGUe5OuXycFTy7Ax7ypxHVAv-0ImLonRT8h8o,2629
|
|
22
22
|
langgraph_api/errors.py,sha256=Bu_i5drgNTyJcLiyrwVE_6-XrSU50BHf9TDpttki9wQ,1690
|
|
23
23
|
langgraph_api/graph.py,sha256=FombjYQkqj8jrXJFEVkl3m2UyFcq5nSVNswR2HoRsQY,16385
|
|
24
24
|
langgraph_api/http.py,sha256=XrbyxpjtfSvnaWWh5ZLGpgZmY83WoDCrP_1GPguNiXI,4712
|
|
@@ -26,14 +26,14 @@ langgraph_api/http_logger.py,sha256=Sxo_q-65tElauRvkzVLt9lJojgNdgtcHGBYD0IRyX7M,
|
|
|
26
26
|
langgraph_api/js/.gitignore,sha256=qAah3Fq0HWAlfRj5ktZyC6QRQIsAolGLRGcRukA1XJI,33
|
|
27
27
|
langgraph_api/js/base.py,sha256=BpE8-xkUp8HFPRjSKx1tfUQubvoV4jYl6OwZdre3veI,209
|
|
28
28
|
langgraph_api/js/build.mts,sha256=sAZXB3xVSoG8exJ1ZEytFyikRmEsXJ_0OlLjDDgD79o,1342
|
|
29
|
-
langgraph_api/js/client.mts,sha256=
|
|
30
|
-
langgraph_api/js/client.new.mts,sha256=
|
|
29
|
+
langgraph_api/js/client.mts,sha256=yFc4aeV5wm7N_z_K8gIukVXo6pHUBnp2Mlryl9B-yrA,22654
|
|
30
|
+
langgraph_api/js/client.new.mts,sha256=54n0xc9SSDnrJDPsN_JcUKcRJJyQVIYuUrkKw3XDcio,23628
|
|
31
31
|
langgraph_api/js/errors.py,sha256=Cm1TKWlUCwZReDC5AQ6SgNIVGD27Qov2xcgHyf8-GXo,361
|
|
32
32
|
langgraph_api/js/global.d.ts,sha256=zR_zLYfpzyPfxpEFth5RgZoyfGulIXyZYPRf7cU0K0Y,106
|
|
33
|
-
langgraph_api/js/package.json,sha256=
|
|
33
|
+
langgraph_api/js/package.json,sha256=i2wjOE0_u1DdUvlc7Ulgj-tg06kjKCsFL99nQKF7vQk,840
|
|
34
34
|
langgraph_api/js/remote.py,sha256=D9cqcEgXau-fm_trpNwCHMra5BXntgUa469lgs_a9JQ,622
|
|
35
|
-
langgraph_api/js/remote_new.py,sha256=
|
|
36
|
-
langgraph_api/js/remote_old.py,sha256=
|
|
35
|
+
langgraph_api/js/remote_new.py,sha256=T_Vr8459bax1C9xxqz_ZYmGivq5Vhspg2Iu9TL0Qc-Q,22707
|
|
36
|
+
langgraph_api/js/remote_old.py,sha256=2a-3ooAYUZs8aPsfnXafbBd4pP7lRmokoU7TiO7P9Js,22546
|
|
37
37
|
langgraph_api/js/schema.py,sha256=7idnv7URlYUdSNMBXQcw7E4SxaPxCq_Oxwnlml8q5ik,408
|
|
38
38
|
langgraph_api/js/server_sent_events.py,sha256=DLgXOHauemt7706vnfDUCG1GI3TidKycSizccdz9KgA,3702
|
|
39
39
|
langgraph_api/js/src/graph.mts,sha256=EO1ITYoKiUykzO_8V8mnQb6NYybooR1VXIovThZzywc,2998
|
|
@@ -45,11 +45,11 @@ langgraph_api/js/src/schema/types.template.mts,sha256=c-FA0Ykzp4KvPyYA6a-hDf60Kd
|
|
|
45
45
|
langgraph_api/js/src/utils/importMap.mts,sha256=pX4TGOyUpuuWF82kXcxcv3-8mgusRezOGe6Uklm2O5A,1644
|
|
46
46
|
langgraph_api/js/src/utils/pythonSchemas.mts,sha256=98IW7Z_VP7L_CHNRMb3_MsiV3BgLE2JsWQY_PQcRR3o,685
|
|
47
47
|
langgraph_api/js/src/utils/serde.mts,sha256=OuyyO9btvwWd55rU_H4x91dFEJiaPxL-lL9O6Zgo908,742
|
|
48
|
-
langgraph_api/js/tests/api.test.mts,sha256=
|
|
48
|
+
langgraph_api/js/tests/api.test.mts,sha256=qJdISmuKo7AWZmR4thY9eq8h4EL5bWKlhI5x7LCJ8dQ,56919
|
|
49
49
|
langgraph_api/js/tests/compose-postgres.yml,sha256=pbNfeqVUqhWILBuUdwAgQOYsVU_fgkCVm0YlTgU8og8,1721
|
|
50
50
|
langgraph_api/js/tests/graphs/.gitignore,sha256=26J8MarZNXh7snXD5eTpV3CPFTht5Znv8dtHYCLNfkw,12
|
|
51
|
-
langgraph_api/js/tests/graphs/agent.mts,sha256=
|
|
52
|
-
langgraph_api/js/tests/graphs/delay.mts,sha256=
|
|
51
|
+
langgraph_api/js/tests/graphs/agent.mts,sha256=E9WMv0alMv0njUEECqEsqoRk9NXJUgXW7SyQJ3GOZ8k,5396
|
|
52
|
+
langgraph_api/js/tests/graphs/delay.mts,sha256=CFneKxqI4bGGK0lYjSbe80QirowPQlsRSuhDUKfydhk,703
|
|
53
53
|
langgraph_api/js/tests/graphs/error.mts,sha256=l4tk89449dj1BnEF_0ZcfPt0Ikk1gl8L1RaSnRfr3xo,487
|
|
54
54
|
langgraph_api/js/tests/graphs/langgraph.json,sha256=frxd7ZWILdeMYSZgUBH6UO-IR7I2YJSOfOlx2mnO1sI,189
|
|
55
55
|
langgraph_api/js/tests/graphs/nested.mts,sha256=4G7jSOSaFVQAza-_ARbK-Iai1biLlF2DIPDZXf7PLIY,1245
|
|
@@ -58,22 +58,22 @@ langgraph_api/js/tests/graphs/weather.mts,sha256=A7mLK3xW8h5B-ZyJNAyX2M2fJJwzPJz
|
|
|
58
58
|
langgraph_api/js/tests/graphs/yarn.lock,sha256=q-1S--E5VWLYtkSv03shqtNzeDDv-N_J-N26FszLsjs,7903
|
|
59
59
|
langgraph_api/js/tests/parser.test.mts,sha256=3zAbboUNhI-cY3hj4Ssr7J-sQXCBTeeI1ItrkG0Ftuk,26257
|
|
60
60
|
langgraph_api/js/tests/utils.mts,sha256=2kTybJ3O7Yfe1q3ehDouqV54ibXkNzsPZ_wBZLJvY-4,421
|
|
61
|
-
langgraph_api/js/yarn.lock,sha256=
|
|
61
|
+
langgraph_api/js/yarn.lock,sha256=4cFZXkAYtsdCO7nPBDNHehQ1kv3hYMRXwwXutupMHs8,103690
|
|
62
62
|
langgraph_api/lifespan.py,sha256=Uj7NV-NqxxD1fgx_umM9pVqclcy-VlqrIxDljyj2he0,1820
|
|
63
63
|
langgraph_api/logging.py,sha256=tiDNrEFwqaIdL5ywZv908OXlzzfXsPCws9GXeoFtBV8,3367
|
|
64
64
|
langgraph_api/metadata.py,sha256=mih2G7ScQxiqyUlbksVXkqR3Oo-pM1b6lXtzOsgR1sw,3044
|
|
65
65
|
langgraph_api/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
66
|
-
langgraph_api/models/run.py,sha256=
|
|
66
|
+
langgraph_api/models/run.py,sha256=1TzTmagDXFQD_LhIMRdguZHmrPSzztq1wiMjF63d2fc,9843
|
|
67
67
|
langgraph_api/patch.py,sha256=94ddcTSZJe22JcpjxiSNjFZdYVnmeoWjk4IX4iBSoyk,1249
|
|
68
|
-
langgraph_api/queue.py,sha256=
|
|
69
|
-
langgraph_api/route.py,sha256=
|
|
70
|
-
langgraph_api/schema.py,sha256=
|
|
68
|
+
langgraph_api/queue.py,sha256=qRuM09mz8o7CkrBIwg-9lV3SW0TehdVGgeXvHc_adYk,13647
|
|
69
|
+
langgraph_api/route.py,sha256=fM4qYCGbmH0a3_cV8uKocb1sLklehxO6HhdRXqLK6OM,4421
|
|
70
|
+
langgraph_api/schema.py,sha256=4aZCFY-dxd_nTot71bdcd9S8QCIgKajuRyj0p2QfgJ4,5291
|
|
71
71
|
langgraph_api/serde.py,sha256=VoJ7Z1IuqrQGXFzEP1qijAITtWCrmjtVqlCRuScjXJI,3533
|
|
72
72
|
langgraph_api/server.py,sha256=afHDnL6b_fAIu_q4icnK60a74lHTTZOMIe1egdhRXIk,1522
|
|
73
73
|
langgraph_api/sse.py,sha256=2wNodCOP2eg7a9mpSu0S3FQ0CHk2BBV_vv0UtIgJIcc,4034
|
|
74
74
|
langgraph_api/state.py,sha256=8jx4IoTCOjTJuwzuXJKKFwo1VseHjNnw_CCq4x1SW14,2284
|
|
75
|
-
langgraph_api/stream.py,sha256=
|
|
76
|
-
langgraph_api/utils.py,sha256=
|
|
75
|
+
langgraph_api/stream.py,sha256=MUYYNgwtLs1Mhq1dm12zda7j8uFYir49umigK6CnuXU,11944
|
|
76
|
+
langgraph_api/utils.py,sha256=aIHPp_yu-NFUzs0jzNRm6mcqoZmtbLMZl1ugFmwWTss,2692
|
|
77
77
|
langgraph_api/validation.py,sha256=McizHlz-Ez8Jhdbc79mbPSde7GIuf2Jlbjx2yv_l6dA,4475
|
|
78
78
|
langgraph_license/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
79
79
|
langgraph_license/middleware.py,sha256=_ODIYzQkymr6W9_Fp9wtf1kAQspnpsmr53xuzyF2GA0,612
|
|
@@ -81,15 +81,15 @@ langgraph_license/validation.py,sha256=Uu_G8UGO_WTlLsBEY0gTVWjRR4czYGfw5YAD3HLZo
|
|
|
81
81
|
langgraph_storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
82
82
|
langgraph_storage/checkpoint.py,sha256=V4t2GwYEJdPCHbhq_4Udhlv0TWKDzlMu_rlNPdTDc50,3589
|
|
83
83
|
langgraph_storage/database.py,sha256=Nr5zE9Fur3-tESkqe7xNXMf2QlBuw3H0CUie7jVa6Q4,6003
|
|
84
|
-
langgraph_storage/ops.py,sha256=
|
|
84
|
+
langgraph_storage/ops.py,sha256=7kmfm7EO7YbP_ItEjMvFPKPsM0a2X6RMhjaKof63HaQ,68206
|
|
85
85
|
langgraph_storage/queue.py,sha256=6cTZ0ubHu3S1T43yxHMVOwsQsDaJupByiU0sTUFFls8,3261
|
|
86
86
|
langgraph_storage/retry.py,sha256=uvYFuXJ-T6S1QY1ZwkZHyZQbsvS-Ab68LSbzbUUSI2E,696
|
|
87
87
|
langgraph_storage/store.py,sha256=D-p3cWc_umamkKp-6Cz3cAriSACpvM5nxUIvND6PuxE,2710
|
|
88
88
|
langgraph_storage/ttl_dict.py,sha256=FlpEY8EANeXWKo_G5nmIotPquABZGyIJyk6HD9u6vqY,1533
|
|
89
89
|
logging.json,sha256=3RNjSADZmDq38eHePMm1CbP6qZ71AmpBtLwCmKU9Zgo,379
|
|
90
|
-
openapi.json,sha256=
|
|
91
|
-
langgraph_api-0.0.
|
|
92
|
-
langgraph_api-0.0.
|
|
93
|
-
langgraph_api-0.0.
|
|
94
|
-
langgraph_api-0.0.
|
|
95
|
-
langgraph_api-0.0.
|
|
90
|
+
openapi.json,sha256=qf2Rw3ieawlAcSJu4mGonh9mNOb6solBD70CGL3w24A,124699
|
|
91
|
+
langgraph_api-0.0.17.dist-info/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
|
|
92
|
+
langgraph_api-0.0.17.dist-info/METADATA,sha256=skjkW8xJ9LfwIyCYABDSreC2ZCXUqktWWekfxrK8AZY,4041
|
|
93
|
+
langgraph_api-0.0.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
94
|
+
langgraph_api-0.0.17.dist-info/entry_points.txt,sha256=3EYLgj89DfzqJHHYGxPH4A_fEtClvlRbWRUHaXO7hj4,77
|
|
95
|
+
langgraph_api-0.0.17.dist-info/RECORD,,
|
langgraph_storage/ops.py
CHANGED
|
@@ -1325,7 +1325,10 @@ class Runs(Authenticated):
|
|
|
1325
1325
|
thread = Thread(
|
|
1326
1326
|
thread_id=thread_id,
|
|
1327
1327
|
status="busy",
|
|
1328
|
-
metadata={
|
|
1328
|
+
metadata={
|
|
1329
|
+
"graph_id": assistant["graph_id"],
|
|
1330
|
+
"assistant_id": str(assistant_id),
|
|
1331
|
+
},
|
|
1329
1332
|
config=Runs._merge_jsonb(
|
|
1330
1333
|
assistant["config"],
|
|
1331
1334
|
config,
|
|
@@ -1345,7 +1348,11 @@ class Runs(Authenticated):
|
|
|
1345
1348
|
if existing_thread["status"] != "busy":
|
|
1346
1349
|
existing_thread["status"] = "busy"
|
|
1347
1350
|
existing_thread["metadata"] = Runs._merge_jsonb(
|
|
1348
|
-
existing_thread["metadata"],
|
|
1351
|
+
existing_thread["metadata"],
|
|
1352
|
+
{
|
|
1353
|
+
"graph_id": assistant["graph_id"],
|
|
1354
|
+
"assistant_id": str(assistant_id),
|
|
1355
|
+
},
|
|
1349
1356
|
)
|
|
1350
1357
|
existing_thread["config"] = Runs._merge_jsonb(
|
|
1351
1358
|
assistant["config"],
|
openapi.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"description": "A run is an invocation of a graph / assistant, with no state or memory persistence."
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"name": "Crons (
|
|
25
|
+
"name": "Crons (Plus tier)",
|
|
26
26
|
"description": "A cron is a periodic run that recurs on a given schedule. The repeats can be isolated, or share state in a thread"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -1473,7 +1473,7 @@
|
|
|
1473
1473
|
"/threads/{thread_id}/runs/crons": {
|
|
1474
1474
|
"post": {
|
|
1475
1475
|
"tags": [
|
|
1476
|
-
"Crons (
|
|
1476
|
+
"Crons (Plus tier)"
|
|
1477
1477
|
],
|
|
1478
1478
|
"summary": "Create Thread Cron",
|
|
1479
1479
|
"description": "Create a cron to schedule runs on a thread.",
|
|
@@ -2058,7 +2058,7 @@
|
|
|
2058
2058
|
"/runs/crons": {
|
|
2059
2059
|
"post": {
|
|
2060
2060
|
"tags": [
|
|
2061
|
-
"Crons (
|
|
2061
|
+
"Crons (Plus tier)"
|
|
2062
2062
|
],
|
|
2063
2063
|
"summary": "Create Cron",
|
|
2064
2064
|
"description": "Create a cron to schedule runs on new threads.",
|
|
@@ -2110,7 +2110,7 @@
|
|
|
2110
2110
|
"/runs/crons/search": {
|
|
2111
2111
|
"post": {
|
|
2112
2112
|
"tags": [
|
|
2113
|
-
"Crons (
|
|
2113
|
+
"Crons (Plus tier)"
|
|
2114
2114
|
],
|
|
2115
2115
|
"summary": "Search Crons",
|
|
2116
2116
|
"description": "Search all active crons",
|
|
@@ -2399,7 +2399,7 @@
|
|
|
2399
2399
|
"/runs/crons/{cron_id}": {
|
|
2400
2400
|
"delete": {
|
|
2401
2401
|
"tags": [
|
|
2402
|
-
"Crons (
|
|
2402
|
+
"Crons (Plus tier)"
|
|
2403
2403
|
],
|
|
2404
2404
|
"summary": "Delete Cron",
|
|
2405
2405
|
"description": "Delete a cron by ID.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|