langgraph-api 0.2.114__py3-none-any.whl → 0.2.117__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/__init__.py +1 -1
- langgraph_api/api/threads.py +2 -2
- langgraph_api/js/remote.py +2 -4
- {langgraph_api-0.2.114.dist-info → langgraph_api-0.2.117.dist-info}/METADATA +1 -1
- {langgraph_api-0.2.114.dist-info → langgraph_api-0.2.117.dist-info}/RECORD +9 -9
- openapi.json +1 -1
- {langgraph_api-0.2.114.dist-info → langgraph_api-0.2.117.dist-info}/WHEEL +0 -0
- {langgraph_api-0.2.114.dist-info → langgraph_api-0.2.117.dist-info}/entry_points.txt +0 -0
- {langgraph_api-0.2.114.dist-info → langgraph_api-0.2.117.dist-info}/licenses/LICENSE +0 -0
langgraph_api/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.2.
|
|
1
|
+
__version__ = "0.2.117"
|
langgraph_api/api/threads.py
CHANGED
|
@@ -172,7 +172,7 @@ async def get_thread_history(
|
|
|
172
172
|
"""Get all past states for a thread."""
|
|
173
173
|
thread_id = request.path_params["thread_id"]
|
|
174
174
|
validate_uuid(thread_id, "Invalid thread ID: must be a UUID")
|
|
175
|
-
limit_ = request.query_params.get("limit",
|
|
175
|
+
limit_ = request.query_params.get("limit", 1)
|
|
176
176
|
try:
|
|
177
177
|
limit = int(limit_)
|
|
178
178
|
except ValueError:
|
|
@@ -205,7 +205,7 @@ async def get_thread_history_post(
|
|
|
205
205
|
for c in await Threads.State.list(
|
|
206
206
|
conn,
|
|
207
207
|
config=config,
|
|
208
|
-
limit=int(payload.get("limit") or
|
|
208
|
+
limit=int(payload.get("limit") or 1),
|
|
209
209
|
before=payload.get("before"),
|
|
210
210
|
metadata=payload.get("metadata"),
|
|
211
211
|
)
|
langgraph_api/js/remote.py
CHANGED
|
@@ -858,7 +858,7 @@ class CustomJsAuthBackend(AuthenticationBackend):
|
|
|
858
858
|
raise ValueError(
|
|
859
859
|
f"LANGGRAPH_AUTH.cache.cache_keys must be a list. Got: {keys}"
|
|
860
860
|
)
|
|
861
|
-
self.cache_keys = keys
|
|
861
|
+
self.cache_keys = [key.lower() for key in keys]
|
|
862
862
|
self.ttl_cache = LRUCache(
|
|
863
863
|
max_size=cache.get("max_size", 1000),
|
|
864
864
|
ttl=cache.get("ttl_seconds", 60),
|
|
@@ -880,9 +880,7 @@ class CustomJsAuthBackend(AuthenticationBackend):
|
|
|
880
880
|
headers["x-langgraph-auth-method"] = conn.scope.get("method")
|
|
881
881
|
cache_key = None
|
|
882
882
|
if self.cache_keys:
|
|
883
|
-
cache_key = tuple(
|
|
884
|
-
(k, headers.get(k)) for k in self.cache_keys if headers.get(k)
|
|
885
|
-
)
|
|
883
|
+
cache_key = tuple((k, headers[k]) for k in self.cache_keys if k in headers)
|
|
886
884
|
if cache_key:
|
|
887
885
|
if self.ttl_cache is not None:
|
|
888
886
|
cached = self.ttl_cache.get(cache_key)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
langgraph_api/__init__.py,sha256=
|
|
1
|
+
langgraph_api/__init__.py,sha256=Uguxufjk6upOoh9NMGA6lnBTXiNXYTIWiygKmtBCq6E,24
|
|
2
2
|
langgraph_api/asgi_transport.py,sha256=eqifhHxNnxvI7jJqrY1_8RjL4Fp9NdN4prEub2FWBt8,5091
|
|
3
3
|
langgraph_api/asyncio.py,sha256=Wv4Rwm-a-Cf6JpfgJmVuVlXQ7SlwrjbTn0eq1ux8I2Q,9652
|
|
4
4
|
langgraph_api/cli.py,sha256=xQojITwmmKSJw48Lr2regcnRPRq2FJqWlPpeyr5TgbU,16158
|
|
@@ -35,7 +35,7 @@ langgraph_api/api/meta.py,sha256=fmc7btbtl5KVlU_vQ3Bj4J861IjlqmjBKNtnxSV-S-Q,419
|
|
|
35
35
|
langgraph_api/api/openapi.py,sha256=KToI2glOEsvrhDpwdScdBnL9xoLOqkTxx5zKq2pMuKQ,11957
|
|
36
36
|
langgraph_api/api/runs.py,sha256=iPzPen-_UMikGuRtg4xiageZC6eKwsmsMnqpnGdbucY,20962
|
|
37
37
|
langgraph_api/api/store.py,sha256=TSeMiuMfrifmEnEbL0aObC2DPeseLlmZvAMaMzPgG3Y,5535
|
|
38
|
-
langgraph_api/api/threads.py,sha256=
|
|
38
|
+
langgraph_api/api/threads.py,sha256=Cpw1LIWRAF3YBq65OMVXNu9K86WCITaJ5fGWZlzmnUE,9724
|
|
39
39
|
langgraph_api/api/ui.py,sha256=17QrRy2XVzP7x_0RdRw7pmSv-n1lmnb54byHCGGeNhM,2490
|
|
40
40
|
langgraph_api/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
41
41
|
langgraph_api/auth/custom.py,sha256=ZtNSQ4hIldbd2HvRsilwKzN_hjCWIiIOHClmYyPi8FM,22206
|
|
@@ -55,7 +55,7 @@ langgraph_api/js/client.mts,sha256=CEz5oOtI_mwqsvsC33S_2TQbxD6mW-AKl6shsRI5G18,3
|
|
|
55
55
|
langgraph_api/js/errors.py,sha256=Cm1TKWlUCwZReDC5AQ6SgNIVGD27Qov2xcgHyf8-GXo,361
|
|
56
56
|
langgraph_api/js/global.d.ts,sha256=j4GhgtQSZ5_cHzjSPcHgMJ8tfBThxrH-pUOrrJGteOU,196
|
|
57
57
|
langgraph_api/js/package.json,sha256=BpNAO88mbE-Gv4WzQfj1TLktCWGqm6XBqI892ObuOUw,1333
|
|
58
|
-
langgraph_api/js/remote.py,sha256=
|
|
58
|
+
langgraph_api/js/remote.py,sha256=iMsdDsixqWDCASMkaxVTK4S1XB9cXgwAIF9XaNYl9EY,38000
|
|
59
59
|
langgraph_api/js/schema.py,sha256=M4fLtr50O1jck8H1hm_0W4cZOGYGdkrB7riLyCes4oY,438
|
|
60
60
|
langgraph_api/js/sse.py,sha256=lsfp4nyJyA1COmlKG9e2gJnTttf_HGCB5wyH8OZBER8,4105
|
|
61
61
|
langgraph_api/js/traceblock.mts,sha256=QtGSN5VpzmGqDfbArrGXkMiONY94pMQ5CgzetT_bKYg,761
|
|
@@ -93,9 +93,9 @@ langgraph_runtime/retry.py,sha256=V0duD01fO7GUQ_btQkp1aoXcEOFhXooGVP6q4yMfuyY,11
|
|
|
93
93
|
langgraph_runtime/store.py,sha256=7mowndlsIroGHv3NpTSOZDJR0lCuaYMBoTnTrewjslw,114
|
|
94
94
|
LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
|
|
95
95
|
logging.json,sha256=3RNjSADZmDq38eHePMm1CbP6qZ71AmpBtLwCmKU9Zgo,379
|
|
96
|
-
openapi.json,sha256=
|
|
97
|
-
langgraph_api-0.2.
|
|
98
|
-
langgraph_api-0.2.
|
|
99
|
-
langgraph_api-0.2.
|
|
100
|
-
langgraph_api-0.2.
|
|
101
|
-
langgraph_api-0.2.
|
|
96
|
+
openapi.json,sha256=3xZmMHaCAH2hLqBkGa9zjg_umc8oNxhMZHjIDDG-CY4,145613
|
|
97
|
+
langgraph_api-0.2.117.dist-info/METADATA,sha256=ZIY5qydQGZWyXcBsGY_WA-DbmjvxURQ91P4LiJVXeJE,3890
|
|
98
|
+
langgraph_api-0.2.117.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
99
|
+
langgraph_api-0.2.117.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
|
|
100
|
+
langgraph_api-0.2.117.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
|
|
101
|
+
langgraph_api-0.2.117.dist-info/RECORD,,
|
openapi.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|