langgraph-api 0.0.12__py3-none-any.whl → 0.0.14__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/auth/custom.py +14 -3
- {langgraph_api-0.0.12.dist-info → langgraph_api-0.0.14.dist-info}/METADATA +1 -1
- {langgraph_api-0.0.12.dist-info → langgraph_api-0.0.14.dist-info}/RECORD +7 -7
- langgraph_storage/ops.py +2 -2
- {langgraph_api-0.0.12.dist-info → langgraph_api-0.0.14.dist-info}/LICENSE +0 -0
- {langgraph_api-0.0.12.dist-info → langgraph_api-0.0.14.dist-info}/WHEEL +0 -0
- {langgraph_api-0.0.12.dist-info → langgraph_api-0.0.14.dist-info}/entry_points.txt +0 -0
langgraph_api/auth/custom.py
CHANGED
|
@@ -92,12 +92,23 @@ async def handle_event(
|
|
|
92
92
|
handler = _get_handler(auth, ctx)
|
|
93
93
|
if not handler:
|
|
94
94
|
return
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
try:
|
|
96
|
+
result = await handler(ctx=ctx, value=value)
|
|
97
|
+
except Auth.exceptions.HTTPException as e:
|
|
98
|
+
raise HTTPException(
|
|
99
|
+
status_code=e.status_code,
|
|
100
|
+
detail=e.detail,
|
|
101
|
+
headers=dict(e.headers) if e.headers else None,
|
|
102
|
+
) from e
|
|
103
|
+
except AssertionError as e:
|
|
104
|
+
raise HTTPException(
|
|
105
|
+
status_code=403,
|
|
106
|
+
detail=str(e),
|
|
107
|
+
) from e
|
|
97
108
|
|
|
98
109
|
if result in (None, True):
|
|
99
110
|
return
|
|
100
|
-
if result is
|
|
111
|
+
if result is False:
|
|
101
112
|
raise HTTPException(403, "Forbidden")
|
|
102
113
|
|
|
103
114
|
if not isinstance(result, dict):
|
|
@@ -9,7 +9,7 @@ langgraph_api/api/store.py,sha256=y7VIejpsE7rpPF-tiMGBqqBwWPZ1wb3o48th6NUvb5I,38
|
|
|
9
9
|
langgraph_api/api/threads.py,sha256=taU61XPcCEhBPCYPZcMDsgVDwwWUWJs8p-PrXFXWY48,8661
|
|
10
10
|
langgraph_api/asyncio.py,sha256=XiFEllu-Kg4zAO084npHPYOPnLQRire3V75XrVQYMxE,6023
|
|
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=_BlII18X8ji_t8qA9FIUq_ip99dMQGkNscjsuEiLHus,20527
|
|
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
|
|
@@ -74,15 +74,15 @@ langgraph_license/validation.py,sha256=Uu_G8UGO_WTlLsBEY0gTVWjRR4czYGfw5YAD3HLZo
|
|
|
74
74
|
langgraph_storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
75
|
langgraph_storage/checkpoint.py,sha256=V4t2GwYEJdPCHbhq_4Udhlv0TWKDzlMu_rlNPdTDc50,3589
|
|
76
76
|
langgraph_storage/database.py,sha256=Nr5zE9Fur3-tESkqe7xNXMf2QlBuw3H0CUie7jVa6Q4,6003
|
|
77
|
-
langgraph_storage/ops.py,sha256=
|
|
77
|
+
langgraph_storage/ops.py,sha256=l6sL3wq9vp2OJwhRbdNkPozi-bi2ma-yXHBNGRbmQzk,67985
|
|
78
78
|
langgraph_storage/queue.py,sha256=6cTZ0ubHu3S1T43yxHMVOwsQsDaJupByiU0sTUFFls8,3261
|
|
79
79
|
langgraph_storage/retry.py,sha256=uvYFuXJ-T6S1QY1ZwkZHyZQbsvS-Ab68LSbzbUUSI2E,696
|
|
80
80
|
langgraph_storage/store.py,sha256=D-p3cWc_umamkKp-6Cz3cAriSACpvM5nxUIvND6PuxE,2710
|
|
81
81
|
langgraph_storage/ttl_dict.py,sha256=FlpEY8EANeXWKo_G5nmIotPquABZGyIJyk6HD9u6vqY,1533
|
|
82
82
|
logging.json,sha256=3RNjSADZmDq38eHePMm1CbP6qZ71AmpBtLwCmKU9Zgo,379
|
|
83
83
|
openapi.json,sha256=gh6FxpyQqspAuQQH3O22qqGW5owtFj45gyR15QAcS9k,124729
|
|
84
|
-
langgraph_api-0.0.
|
|
85
|
-
langgraph_api-0.0.
|
|
86
|
-
langgraph_api-0.0.
|
|
87
|
-
langgraph_api-0.0.
|
|
88
|
-
langgraph_api-0.0.
|
|
84
|
+
langgraph_api-0.0.14.dist-info/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
|
|
85
|
+
langgraph_api-0.0.14.dist-info/METADATA,sha256=mmOzz3Y5VWe7rlFtMozGNTuOOmiWm5QFn_SCYH8OxAU,4041
|
|
86
|
+
langgraph_api-0.0.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
87
|
+
langgraph_api-0.0.14.dist-info/entry_points.txt,sha256=3EYLgj89DfzqJHHYGxPH4A_fEtClvlRbWRUHaXO7hj4,77
|
|
88
|
+
langgraph_api-0.0.14.dist-info/RECORD,,
|
langgraph_storage/ops.py
CHANGED
|
@@ -92,7 +92,7 @@ class Authenticated:
|
|
|
92
92
|
async def handle_event(
|
|
93
93
|
cls,
|
|
94
94
|
ctx: Auth.types.BaseAuthContext | None,
|
|
95
|
-
action: Literal["create", "read", "update", "delete", "search"],
|
|
95
|
+
action: Literal["create", "read", "update", "delete", "search", "create_run"],
|
|
96
96
|
value: Any,
|
|
97
97
|
) -> Auth.types.FilterType | None:
|
|
98
98
|
ctx = ctx or get_auth_ctx()
|
|
@@ -1299,7 +1299,7 @@ class Runs(Authenticated):
|
|
|
1299
1299
|
)
|
|
1300
1300
|
filters = await Runs.handle_event(
|
|
1301
1301
|
ctx,
|
|
1302
|
-
"
|
|
1302
|
+
"create_run",
|
|
1303
1303
|
Auth.types.RunsCreate(
|
|
1304
1304
|
thread_id=thread_id,
|
|
1305
1305
|
assistant_id=assistant_id,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|